返回顶部
1 2 3 4 5 ··· 25 下一页
摘要: 我的版本 "@umijs/max": "^4.0.88" "ahooks": "^3.7.8", 1.父组件 import { Button } from 'antd' import { Outlet } from '@umijs/max' import useEventEmitter from ' 阅读全文
posted @ 2025-06-05 16:33 前端-xyq 阅读(5) 评论(0) 推荐(0)
摘要: 1.新建eventBus.ts // src/utils/eventBus.ts import { EventEmitter } from 'events'; export default new EventEmitter(); 2.组件A import eventBus from '@/utils 阅读全文
posted @ 2025-06-05 14:57 前端-xyq 阅读(6) 评论(0) 推荐(0)
摘要: 参考 1.datav 大屏特效使用 https://blog.csdn.net/qq_53479087/article/details/129411685 2.map china not exists. the geojson of the map must be provided. https:/ 阅读全文
posted @ 2025-05-30 11:41 前端-xyq 阅读(33) 评论(0) 推荐(0)
摘要: 官网:https://ant-design-charts.antgroup.com/options/plots/component/axis 我的ant-design/charts版本是2.2.7 原效果: 改后效果: 代码: const config: ColumnConfig = { ... a 阅读全文
posted @ 2025-05-20 16:45 前端-xyq 阅读(32) 评论(0) 推荐(0)
摘要: <ProFormText name="username" label="用户名" normalize={(value) => value.replace(/\s+/g, '')} // 移除所有空格 /> 阅读全文
posted @ 2025-05-15 16:41 前端-xyq 阅读(5) 评论(0) 推荐(0)
摘要: 偶现问题: 解决方法: 版本问题,原版本是2.4.4,换到2.8.1就可以了 "@ant-design/pro-components": "^2.8.1", 阅读全文
posted @ 2025-05-15 15:25 前端-xyq 阅读(4) 评论(0) 推荐(0)
摘要: 参考: 1.ahooks官网:https://ahooks.js.org/zh-CN/hooks/use-event-emitter useSubscription会在组件创建时自动注册订阅,并在组件销毁时自动取消订阅。 useEventEmitter 适合的是在距离较远的组件之间进行事件通知,或是 阅读全文
posted @ 2025-05-14 17:16 前端-xyq 阅读(75) 评论(0) 推荐(0)
摘要: 参考: 1.umijs官网:https://umijs.org/docs/guides/routes 1.开启权限配置,umirc.ts: export default { access: {}, // access 插件依赖 initial State 所以需要同时开启 initialState: 阅读全文
posted @ 2025-05-14 15:02 前端-xyq 阅读(86) 评论(0) 推荐(0)
摘要: 参考: 1.Umi】umi-max 中使用 Dva https://juejin.cn/post/7373606026027237413 我的项目是:umijs+react 效果: 1.安装dva npm install dva Dva 是一个基于 Redux、Redux-Saga 和 React- 阅读全文
posted @ 2025-05-13 09:55 前端-xyq 阅读(54) 评论(0) 推荐(0)
摘要: 参考: 1. https://blog.csdn.net/huochai770880/article/details/125925665 我的情况 antD表单校验,代码未报错,但提交时控制台报错:Warning: `callback` is deprecated. Please return a 阅读全文
posted @ 2024-11-11 18:52 前端-xyq 阅读(313) 评论(0) 推荐(0)
1 2 3 4 5 ··· 25 下一页