会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
返回顶部
前端-xyq
博客园
首页
新随笔
联系
订阅
管理
2025年12月4日
electron+vue——托盘图标及菜单实现
摘要: 效果: 我的项目结构: background.js: "use strict"; import { app, BrowserWindow, Menu, Tray, nativeImage } from "electron"; import * as path from "path"; const f
阅读全文
posted @ 2025-12-04 15:33 前端-xyq
阅读(3)
评论(0)
推荐(0)
2025年10月14日
electron+vue——区分窗口普通关闭和强制退出
摘要: js: import { app, BrowserWindow } from "electron"; let mainWindow = null;... function createWindow() { // 创建浏览器窗口 mainWindow = new BrowserWindow({ wid
阅读全文
posted @ 2025-10-14 11:05 前端-xyq
阅读(10)
评论(0)
推荐(0)
electron+vue——屏蔽顶部标题栏最大化按钮
摘要: js: import { BrowserWindow } from "electron"; function createWindow() { // 创建浏览器窗口 mainWindow = new BrowserWindow({ width: 1000, height: 600, // maxim
阅读全文
posted @ 2025-10-14 10:38 前端-xyq
阅读(10)
评论(0)
推荐(0)
2025年6月5日
umijs+react——Outlet传递context,实现父子组件传值及事件触发
摘要: 我的版本 "@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
阅读(121)
评论(0)
推荐(0)
umijs+react——EventEmitter,eventBus实现非父子组件事件触发
摘要: 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
阅读(29)
评论(0)
推荐(0)
2025年5月30日
react+echarts实现地图飞线图
摘要: 参考 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
阅读(305)
评论(0)
推荐(0)
2025年5月20日
ant-design/charts——柱状图y轴间隔设置为整数
摘要: 官网: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
阅读(153)
评论(0)
推荐(0)
2025年5月15日
proComponents——ProFormText限制不能录入空格
摘要: <ProFormText name="username" label="用户名" normalize={(value) => value.replace(/\s+/g, '')} // 移除所有空格 />
阅读全文
posted @ 2025-05-15 16:41 前端-xyq
阅读(31)
评论(0)
推荐(0)
procomponents——账密登录,输入账号后回车偶现输入框堆叠
摘要: 偶现问题: 解决方法: 版本问题,原版本是2.4.4,换到2.8.1就可以了 "@ant-design/pro-components": "^2.8.1",
阅读全文
posted @ 2025-05-15 15:25 前端-xyq
阅读(12)
评论(0)
推荐(0)
2025年5月14日
ahooks——useEventEmitter多个组件之间进行事件通知
摘要: 参考: 1.ahooks官网:https://ahooks.js.org/zh-CN/hooks/use-event-emitter useSubscription会在组件创建时自动注册订阅,并在组件销毁时自动取消订阅。 useEventEmitter 适合的是在距离较远的组件之间进行事件通知,或是
阅读全文
posted @ 2025-05-14 17:16 前端-xyq
阅读(199)
评论(0)
推荐(0)
下一页
公告