返回顶部
摘要: js: import { app, BrowserWindow } from "electron"; let mainWindow = null;... function createWindow() { // 创建浏览器窗口 mainWindow = new BrowserWindow({ wid 阅读全文
posted @ 2025-10-14 11:05 前端-xyq 阅读(5) 评论(0) 推荐(0)
摘要: js: import { BrowserWindow } from "electron"; function createWindow() { // 创建浏览器窗口 mainWindow = new BrowserWindow({ width: 1000, height: 600, // maxim 阅读全文
posted @ 2025-10-14 10:38 前端-xyq 阅读(7) 评论(0) 推荐(0)
摘要: 我的版本 "@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 阅读(105) 评论(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 阅读(24) 评论(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 阅读(270) 评论(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 阅读(129) 评论(0) 推荐(0)
摘要: <ProFormText name="username" label="用户名" normalize={(value) => value.replace(/\s+/g, '')} // 移除所有空格 /> 阅读全文
posted @ 2025-05-15 16:41 前端-xyq 阅读(23) 评论(0) 推荐(0)
摘要: 偶现问题: 解决方法: 版本问题,原版本是2.4.4,换到2.8.1就可以了 "@ant-design/pro-components": "^2.8.1", 阅读全文
posted @ 2025-05-15 15:25 前端-xyq 阅读(10) 评论(0) 推荐(0)
摘要: 参考: 1.ahooks官网:https://ahooks.js.org/zh-CN/hooks/use-event-emitter useSubscription会在组件创建时自动注册订阅,并在组件销毁时自动取消订阅。 useEventEmitter 适合的是在距离较远的组件之间进行事件通知,或是 阅读全文
posted @ 2025-05-14 17:16 前端-xyq 阅读(183) 评论(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 阅读(222) 评论(0) 推荐(0)