Compare commits

...

390 Commits

Author SHA1 Message Date
xiaoxian521
7d8eeee22b Merge branch 'main' into pages 2025-11-08 10:30:33 +08:00
cvpv
244211c4eb fix: 修复RePureTableBarReVxeTableBar组件的列设置弹窗样式问题 (#1239) 2025-11-07 13:54:55 +08:00
xiaoming
e01ad0a5df chore: ReDrawer组件适配el-drawer最新版本的API变更以及补充相关示例 (#1238) 2025-11-07 12:35:36 +08:00
xiaoxian521
8bb96ef370 Merge branch 'main' into pages 2025-11-05 10:01:55 +08:00
xiaoming
ac61eb807b chore: ReDialog组件适配el-dialog最新版本的API变更以及补充相关示例 (#1236) 2025-11-04 18:22:31 +08:00
xiaoxian521
68decd01b8 fix: 修复导航菜单在使用iconfont图标时,选中/激活状态的样式显示异常问题 2025-10-22 11:25:23 +08:00
xiaoxian521
91ceb8f397 chore: update 2025-10-17 10:38:56 +08:00
xiaoxian521
401d99b3be Merge branch 'main' into pages 2025-10-17 10:19:32 +08:00
xiaoxian521
c0fd7419c5 release: update 6.2.0 2025-10-16 13:54:37 +08:00
xiaoming
6b179e6ff1 fix: 修复params传参模式下标签页右键菜单显示不正确的问题 (#1221) 2025-10-16 11:52:31 +08:00
xiaoming
e1fde7d386 fix: 修复不同路由使用相同参数时,多个标签页会同时被激活的问题 (#1220) 2025-10-15 10:48:36 +08:00
xiaoming
fc30039a40 fix: 修复设置了keepAlive: true的页面在初次加载缓慢的情况下出现的页面缓存失效的问题,较难复现,感谢反馈 (#1219) 2025-10-14 10:39:07 +08:00
xiaoxian521
880963c683 chore: 升级echarts至最新v6版本 2025-10-10 10:28:45 +08:00
xiaoxian521
36ec0ebd0d chore: 升级@faker-js/faker至最新v10版本 2025-10-09 11:20:21 +08:00
xiaoxian521
339d68ffc5 chore(deps): update 2025-10-09 10:45:44 +08:00
tinyThing
fa606b429b fix: 修复在内嵌同源iframe页面中,当其注册了beforeunload事件时,右键标签页点击重新加载导致浏览器弹出两次确认拦截的问题 (#1229) 2025-09-28 15:10:49 +08:00
xiaoxian521
37cd77d4dd chore: update 2025-09-25 20:27:14 +08:00
xiaoxian521
5b14db8785 fix: 修复失效链接 2025-09-23 11:16:00 +08:00
cvpv
0c53e84ee7 perf: 显式配置Tailwind CSS入口文件路径,优化Tailwind CSS IntelliSense插件的上下文识别与提示性能 (#1228) 2025-09-23 11:05:18 +08:00
xiaoxian521
728ccd6d9a chore: update 2025-09-22 14:00:52 +08:00
xiaoxian521
07785fe989 Merge branch 'main' into pages 2025-09-19 14:37:16 +08:00
xiaoxian521
bf1f5b9f3f perf: 优化当捕获所有未匹配路由并跳转全屏404页面的时机 2025-09-19 14:34:08 +08:00
xiaoxian521
cb3672ec1e Merge branch 'main' into pages 2025-09-18 10:10:03 +08:00
xiaoming
faf24f300b feat: 添加全屏403404500页面,全屏错误页面清晰且安全,提升用户体验 (#1226) 2025-09-18 10:05:14 +08:00
xiaoxian521
1ebfc2c0ec Merge branch 'main' into pages 2025-09-15 15:51:48 +08:00
xiaoming
915e01c15c perf: 优化nprogress进度条,页面重进或接口请求时不再显示进度条,提升用户体验 (#1225) 2025-09-15 15:40:46 +08:00
xiaoxian521
c821f32ae9 chore(deps): update 2025-09-15 11:39:41 +08:00
xiaoxian521
acf15af930 fix: 修复内置的首页未设置name导致设置页面缓存后缓存无效的问题 2025-08-18 15:26:43 +08:00
xiaoxian521
d353da6ac5 chore: update 2025-08-14 09:10:49 +08:00
xiaoxian521
2cc688135e Merge branch 'main' into pages 2025-08-14 08:25:23 +08:00
xiaoxian521
069131a9c8 release: update 6.1.0 2025-07-31 12:07:32 +08:00
xiaoxian521
be4c4a00ec chore: update 2025-07-31 10:57:18 +08:00
xiaoxian521
9fcf54c360 chore: 升级@pureadmin/table兼容最新版element-plus 2025-07-30 16:54:55 +08:00
xiaoxian521
51e9dfc717 Merge branch 'main' into pages 2025-07-24 12:28:56 +08:00
xiaoxian521
185a5b710a fix: 修复标签页-关闭左侧标签页关闭异常问题 2025-07-24 12:14:03 +08:00
xiaoxian521
baabe42b84 chore: 升级至vite7,更新依赖,相关兼容处理 2025-07-07 13:44:35 +08:00
xiaoxian521
2799cfd8cf chore(deps): update 2025-06-09 16:50:22 +08:00
xiaoxian521
d9a4ab8f86 chore(deps): update 2025-05-31 12:41:54 +08:00
xiaoxian521
bd5ab754ca docs: update README 2025-05-27 15:39:09 +08:00
xiaoxian521
fe7d67af0d chore: update 2025-05-27 14:30:44 +08:00
xiaoxian521
2f2749e644 perf: 优化代码 2025-05-16 12:08:46 +08:00
xiaoxian521
b61d7b359f chore: 升级依赖,相关兼容处理 2025-05-15 10:11:22 +08:00
xiaoxian521
c2ae49a2e6 chore: update 2025-05-12 16:07:26 +08:00
xiaoxian521
99f070190c chore(deps): update 2025-05-03 10:20:21 +08:00
xiaoxian521
891ad9d6a2 chore: fix typo 2025-04-21 13:37:04 +08:00
xiaoxian521
22ee607aea docs: 新增一位特别代码贡献者[tinysimple](https://github.com/tinysimple) 2025-04-21 12:38:22 +08:00
tinyThing
8255f9063b fix: 修复resetRouter未清空全部路由数据 (#1208) 2025-04-21 12:29:38 +08:00
xiaoxian521
59319aac8b chore: 升级element-plus至最新版,相关兼容处理 2025-04-19 13:25:01 +08:00
xiaoxian521
a7f78ff1ec Merge branch 'main' into pages 2025-04-18 15:06:38 +08:00
xiaoxian521
6be410a03c chore: update 2025-04-18 14:25:53 +08:00
xiaoxian521
de36c33d3c Merge branch 'main' into pages 2025-04-17 14:45:23 +08:00
xiaoxian521
1730ecf4ce perf: 优化导航样式 2025-04-17 14:40:07 +08:00
xiaoxian521
41daa6a5db Merge branch 'main' into pages 2025-04-14 16:42:23 +08:00
xiaoxian521
51c3ac8631 fix: 修复ReSegmented分段控制器组件在浅色和深色整体风格切换时的闪烁问题 2025-04-14 16:34:17 +08:00
xiaoxian521
08b7b1b641 style: update 2025-04-14 10:50:46 +08:00
xiaoxian521
9b871c8164 chore: update 2025-04-10 18:39:00 +08:00
xiaoxian521
c3f017434e chore: update 2025-04-10 11:04:23 +08:00
xiaoxian521
c48279ce56 Merge branch 'main' into pages 2025-04-10 10:48:04 +08:00
xiaoxian521
1daf83cf9d release: update 6.0.0 2025-04-10 09:53:09 +08:00
xiaoxian521
a8ca71ae61 chore: update 2025-04-10 09:15:53 +08:00
xiaoxian521
7c61fabebe chore: update 2025-04-09 19:18:32 +08:00
xiaoxian521
440ce053e5 Merge branch 'main' into pages 2025-04-09 19:16:25 +08:00
xiaoming
e08626d443 refactor: 升级tailwindcssv4版本,带来更快的构建速度、更简化的安装和配置、提供专属vite插件 (#1203) 2025-04-09 19:09:45 +08:00
xiaoxian521
e72ac8ae70 Merge branch 'main' into pages 2025-03-11 09:51:24 +08:00
xiaoxian521
edfbe7de87 chore: update 2024-12-27 12:04:30 +08:00
xiaoxian521
5c73d182b4 Merge branch 'main' into pages 2024-12-27 11:58:04 +08:00
xiaoxian521
dfa3797b27 Merge branch 'main' into pages 2024-12-19 17:38:42 +08:00
xiaoxian521
a84529418c Merge branch 'main' into pages 2024-12-14 17:09:24 +08:00
xiaoxian521
81d8a51d6c chore: update 2024-11-28 13:06:32 +08:00
xiaoxian521
533199656e chore: update 2024-11-24 13:58:31 +08:00
xiaoxian521
5057e0933b chore: update 2024-10-19 09:37:05 +08:00
xiaoxian521
5ce380d7e6 Merge branch 'main' into pages 2024-10-19 08:24:32 +08:00
xiaoxian521
9d351ab600 Merge branch 'main' into pages 2024-09-25 17:00:31 +08:00
xiaoxian521
81111c096a Merge branch 'main' into pages 2024-09-24 12:12:16 +08:00
xiaoxian521
66f099fa99 Merge branch 'main' into pages 2024-09-23 14:52:29 +08:00
xiaoxian521
190c3c6123 Merge branch 'main' into pages 2024-08-13 10:28:40 +08:00
xiaoxian521
c0d683c9b1 Merge branch 'main' into pages 2024-08-03 15:39:24 +08:00
xiaoxian521
c3320d771c chore: update 2024-06-26 17:52:50 +08:00
xiaoxian521
76a173ceb2 chore: update 2024-06-15 17:09:38 +08:00
xiaoxian521
87a89ff85a chore: js 2024-06-11 22:35:05 +08:00
xiaoxian521
bf0d7dd060 Merge branch 'main' into pages 2024-06-11 22:30:41 +08:00
xiaoxian521
f1d1abd661 chore: 通知 2024-06-06 10:51:32 +08:00
xiaoxian521
06977488ef Merge branch 'main' into pages 2024-06-06 10:48:26 +08:00
xiaoxian521
debd439eeb Merge branch 'main' into pages 2024-06-04 13:59:51 +08:00
xiaoxian521
e33eb54d36 chore: update sponsors 2024-06-01 06:26:27 +08:00
xiaoxian521
4315c3122f chore: update 2024-05-30 08:42:27 +08:00
xiaoxian521
7159227ebf Merge branch 'main' into pages 2024-05-30 08:30:18 +08:00
xiaoxian521
134a06d282 Merge branch 'main' into pages 2024-05-28 12:39:16 +08:00
xiaoxian521
bdb32b3b22 chore: update 2024-05-20 22:15:03 +08:00
xiaoxian521
a02b5b7b5c chore: update 2024-05-14 21:15:03 +08:00
xiaoxian521
b80013f458 chore: update 2024-05-14 18:41:19 +08:00
xiaoxian521
097d6cd8bf Merge branch 'main' into pages 2024-05-14 18:02:09 +08:00
xiaoxian521
d9bd2ecca3 Merge branch 'main' into pages 2024-05-08 16:08:03 +08:00
xiaoxian521
2e0fdcad4b chore: update 2024-05-06 16:44:51 +08:00
xiaoxian521
da9467d98a chore: update 2024-05-06 16:41:55 +08:00
xiaoxian521
fb856a158d Merge branch 'main' into gitee 2024-05-06 16:40:05 +08:00
xiaoxian521
b617ce650a Merge branch 'main' into gitee 2024-05-06 16:08:45 +08:00
xiaoxian521
0e68510f4f chore: update 2024-04-26 13:08:33 +08:00
xiaoxian521
b33f8ca05c Merge branch 'main' into gitee 2024-04-26 13:05:42 +08:00
xiaoxian521
192a52a07c chore: update 2024-04-24 11:30:28 +08:00
xiaoxian521
5f768aa3c5 Merge branch 'main' into gitee 2024-04-24 11:26:31 +08:00
xiaoxian521
5d12a6d556 chore: update 2024-04-24 10:52:09 +08:00
xiaoxian521
8b2ca51272 chore: update 2024-04-24 10:48:45 +08:00
xiaoxian521
b3983df384 Merge branch 'main' into gitee 2024-04-24 10:40:12 +08:00
xiaoxian521
a5a527fa54 chore: update 2024-04-18 13:50:05 +08:00
xiaoxian521
c8686999f5 Merge branch 'main' into gitee 2024-04-18 13:48:43 +08:00
xiaoxian521
dabadf98fd chore: update 2024-04-17 15:48:20 +08:00
xiaoxian521
3720c15712 Merge branch 'main' into gitee 2024-04-17 15:47:06 +08:00
xiaoxian521
b4a8384fa9 chore: update 2024-04-15 17:57:56 +08:00
xiaoxian521
ebf6bb23eb Merge branch 'main' into gitee 2024-04-15 17:56:10 +08:00
xiaoxian521
147e8125e8 chore: update 2024-04-13 11:26:55 +08:00
xiaoxian521
0f35e7e0c5 Merge branch 'main' into gitee 2024-04-13 11:24:57 +08:00
xiaoxian521
733cb795fa chore: update 2024-04-12 16:26:23 +08:00
xiaoxian521
07dc4942ba Merge branch 'main' into gitee 2024-04-12 16:24:07 +08:00
xiaoxian521
c1cfe98f3e chore: update 2024-04-04 22:21:40 +08:00
xiaoxian521
5b51aedab4 chore: update 2024-04-04 22:20:14 +08:00
xiaoxian521
0bb0026974 Merge branch 'main' into gitee 2024-04-04 22:18:28 +08:00
xiaoxian521
3db2e53367 chore: update 2024-03-31 20:44:49 +08:00
xiaoxian521
0c1b14a9b5 Merge branch 'main' into gitee 2024-03-31 20:42:04 +08:00
xiaoxian521
3b1af3ec99 chore: update 2024-03-29 10:15:56 +08:00
xiaoxian521
1c5cc42220 chore: update 2024-03-29 10:14:01 +08:00
xiaoxian521
fc40bb3ea3 Merge branch 'main' into gitee 2024-03-29 10:12:02 +08:00
xiaoxian521
a47610fb59 chore: update 2024-03-28 11:34:33 +08:00
xiaoxian521
8d987d247d chore: update 2024-03-28 11:33:09 +08:00
xiaoxian521
2ac8eab760 chore: update 2024-03-27 13:58:47 +08:00
xiaoxian521
a5f2fcca01 chore: update 2024-03-27 13:57:25 +08:00
xiaoxian521
34d5d2d64d chore: update 2024-03-27 10:39:58 +08:00
xiaoxian521
6eb28f13fd chore: update 2024-03-27 10:38:38 +08:00
xiaoxian521
08b902a836 chore: update 2024-03-27 10:30:27 +08:00
xiaoxian521
1a033a784f Merge branch 'main' into gitee 2024-03-27 10:28:52 +08:00
xiaoxian521
b00afc7b82 chore: update 2024-03-24 21:22:32 +08:00
xiaoxian521
1d27d6e83a Merge branch 'main' into gitee 2024-03-24 21:21:00 +08:00
xiaoxian521
14aa977cb7 Merge branch 'main' into gitee 2024-03-24 19:38:40 +08:00
xiaoxian521
518db3d318 chore: update 2024-03-23 16:24:25 +08:00
xiaoxian521
6f4f2276bb Merge branch 'main' into gitee 2024-03-23 16:20:11 +08:00
xiaoxian521
9098546fc4 chore: update 2024-03-23 08:40:42 +08:00
xiaoxian521
a4f32df68d chore: update 2024-03-23 08:39:09 +08:00
xiaoxian521
9a6124c97b Merge branch 'main' into gitee 2024-03-23 08:24:55 +08:00
xiaoxian521
6764da7991 chore: update 2024-03-22 15:43:03 +08:00
xiaoxian521
712aca8ba1 Merge branch 'main' into gitee 2024-03-22 15:41:13 +08:00
xiaoxian521
c23919cc5d chore: update 2024-03-21 23:09:55 +08:00
xiaoxian521
26ee13de8c chore: update 2024-03-21 23:08:37 +08:00
xiaoxian521
3a25022df0 chore: update 2024-03-21 22:48:37 +08:00
xiaoxian521
edd481ad67 chore: update 2024-03-21 22:47:13 +08:00
xiaoxian521
52b59453f3 chore: update 2024-03-21 16:24:24 +08:00
xiaoxian521
c6b96cfe63 Merge branch 'main' into gitee 2024-03-21 16:21:30 +08:00
xiaoxian521
e5d90d9089 chore: update 2024-03-21 00:18:27 +08:00
xiaoxian521
a93850341c Merge branch 'main' into gitee 2024-03-21 00:17:11 +08:00
xiaoxian521
e793a69cb1 chore: update 2024-03-20 19:40:27 +08:00
xiaoxian521
dc5745e502 Merge branch 'main' into gitee 2024-03-20 19:39:14 +08:00
xiaoxian521
dcc4904e32 chore: update 2024-03-20 15:07:39 +08:00
xiaoxian521
4d6bbb2ada Merge branch 'main' into gitee 2024-03-20 15:05:56 +08:00
xiaoxian521
258ba5adaa chore: update 2024-03-19 21:08:43 +08:00
xiaoxian521
caab9c9843 Merge branch 'main' into gitee 2024-03-19 21:07:39 +08:00
xiaoxian521
b3be037a2d chore: update 2024-03-19 16:55:49 +08:00
xiaoxian521
97ff577085 Merge branch 'main' into gitee 2024-03-19 16:54:28 +08:00
xiaoxian521
58f0891141 chore: update 2024-03-19 16:25:05 +08:00
xiaoxian521
c1659c01a4 Merge branch 'main' into gitee 2024-03-19 16:23:56 +08:00
xiaoxian521
4d746a969c chore: update 2024-03-18 16:18:26 +08:00
xiaoxian521
e3b4f0f7f9 Merge branch 'main' into gitee 2024-03-18 16:17:23 +08:00
xiaoxian521
c074e99021 chore: update 2024-03-17 22:58:29 +08:00
xiaoxian521
166f785ce6 Merge branch 'main' into gitee 2024-03-17 22:57:05 +08:00
xiaoxian521
54f3ebbc9b chore: update 2024-03-17 14:19:43 +08:00
xiaoxian521
3f195a33c3 Merge branch 'main' into gitee 2024-03-17 14:18:41 +08:00
xiaoxian521
27b374d9fc chore: update 2024-03-16 23:29:07 +08:00
xiaoxian521
56ec3eda80 Merge branch 'main' into gitee 2024-03-16 23:27:38 +08:00
xiaoxian521
7e976bebbe chore: update 2024-03-16 01:27:17 +08:00
xiaoxian521
8d16627ca9 chore: update 2024-03-16 01:26:24 +08:00
xiaoxian521
b6f2575182 chore: update 2024-03-14 11:25:24 +08:00
xiaoxian521
91a57cbba9 Merge branch 'main' into gitee 2024-03-14 11:24:14 +08:00
xiaoxian521
e153ed3054 chore: update 2024-03-14 10:16:54 +08:00
xiaoxian521
26d564095b Merge branch 'main' into gitee 2024-03-14 10:15:39 +08:00
xiaoxian521
47855a39f2 chore: update 2024-03-13 21:19:45 +08:00
xiaoxian521
be773575bb Merge branch 'main' into gitee 2024-03-13 21:18:39 +08:00
xiaoxian521
4ac6a0b238 chore: update 2024-03-13 20:52:43 +08:00
xiaoxian521
0fb677540a Merge branch 'main' into gitee 2024-03-13 20:50:26 +08:00
xiaoxian521
e642f37317 chore: update 2024-03-12 14:51:49 +08:00
xiaoxian521
017a294112 Merge branch 'main' into gitee 2024-03-12 14:49:40 +08:00
xiaoxian521
0386152b52 chore: update 2024-03-08 14:39:07 +08:00
xiaoxian521
6d47fa628b chore: update 2024-03-08 14:37:58 +08:00
xiaoxian521
3209cf727f chore: update 2024-03-06 16:26:30 +08:00
xiaoxian521
be64390cee Merge branch 'main' into gitee 2024-03-06 16:24:50 +08:00
xiaoxian521
c5863f6e34 chore: update 2024-03-06 12:13:53 +08:00
xiaoxian521
4406b5fa1b Merge branch 'main' into gitee 2024-03-06 12:07:55 +08:00
xiaoxian521
562e31d119 chore: update 2024-03-06 08:53:15 +08:00
xiaoxian521
cf1efcc9f5 Merge branch 'main' into gitee 2024-03-06 08:50:51 +08:00
xiaoxian521
c9655d25d1 chore: update 2024-03-06 01:17:27 +08:00
xiaoxian521
969c0f89ec Merge branch 'main' into gitee 2024-03-06 01:15:52 +08:00
xiaoxian521
5b7c868829 chore: update 2024-03-05 22:26:40 +08:00
xiaoxian521
87a2af7181 Merge branch 'main' into gitee 2024-03-05 22:24:55 +08:00
xiaoxian521
057db33e5a chore: update 2024-03-05 00:13:41 +08:00
xiaoxian521
74197929d5 chore: update 2024-03-05 00:12:06 +08:00
xiaoxian521
43b61aad25 chore: update 2024-03-04 16:51:30 +08:00
xiaoxian521
8742a67d56 Merge branch 'main' into gitee 2024-03-04 16:50:18 +08:00
xiaoxian521
3885cec95b chore: update 2024-03-04 01:14:01 +08:00
xiaoxian521
95f3cf7c0a chore: update 2024-03-04 01:12:38 +08:00
xiaoxian521
0576b1cfeb Merge branch 'main' into gitee 2024-03-04 01:07:55 +08:00
xiaoxian521
a65f90f50a chore: update 2024-03-02 01:33:15 +08:00
xiaoxian521
08110770e0 Merge branch 'main' into gitee 2024-03-02 01:31:19 +08:00
xiaoxian521
cd8d80bfb0 chore: update 2024-03-01 21:13:02 +08:00
xiaoxian521
0316a3de5f Merge branch 'main' into gitee 2024-03-01 21:11:10 +08:00
xiaoxian521
691cec8c94 chore: update 2024-03-01 16:42:37 +08:00
xiaoxian521
10aa2c0718 Merge branch 'main' into gitee 2024-03-01 16:40:24 +08:00
xiaoxian521
bdcdef41df chore: update 2024-03-01 12:10:40 +08:00
xiaoxian521
97cb48e726 Merge branch 'main' into gitee 2024-03-01 12:09:15 +08:00
xiaoxian521
41df77fe95 chore: update 2024-02-29 13:21:03 +08:00
xiaoxian521
7076d2761a Merge branch 'main' into gitee 2024-02-29 13:18:53 +08:00
xiaoxian521
13c1adf03c chore: update 2024-02-26 23:17:32 +08:00
xiaoxian521
bbf64e1ff0 Merge branch 'main' into gitee 2024-02-26 23:13:54 +08:00
xiaoxian521
c32a60a10d chore: update 2024-02-19 13:47:30 +08:00
xiaoxian521
7a32d804b5 Merge branch 'main' into gitee 2024-02-19 13:43:08 +08:00
xiaoxian521
5027e26633 chore: update 2024-01-29 13:32:11 +08:00
xiaoxian521
907f8ffbef Merge remote-tracking branch 'origin/main' into gitee 2024-01-29 13:28:30 +08:00
xiaoxian521
358f7c2c1f chore: update 2024-01-27 16:42:55 +08:00
xiaoxian521
8c2bd1e986 chore: update 2024-01-27 16:39:59 +08:00
xiaoxian521
63f5d47fc7 chore: update 2024-01-27 16:31:53 +08:00
xiaoxian521
f069f45418 Merge remote-tracking branch 'origin/main' into gitee 2024-01-27 16:28:45 +08:00
xiaoxian521
60304dcb33 chore: update 2024-01-24 15:59:56 +08:00
xiaoxian521
07f6145179 Merge remote-tracking branch 'origin/main' into gitee 2024-01-24 15:56:57 +08:00
xiaoxian521
be1504ea83 chore: update 2024-01-23 14:03:17 +08:00
xiaoxian521
9d640eee48 Merge remote-tracking branch 'origin/main' into gitee 2024-01-23 14:00:11 +08:00
xiaoxian521
213ad9d851 chore: update 2024-01-22 11:25:00 +08:00
xiaoxian521
ac36246e19 Merge remote-tracking branch 'origin/main' into gitee 2024-01-22 11:19:06 +08:00
xiaoxian521
64f529a84e chore: update 2024-01-21 23:34:55 +08:00
xiaoxian521
46cec38fe6 Merge remote-tracking branch 'origin/main' into gitee 2024-01-21 23:31:02 +08:00
xiaoxian521
5def64a02d chore: update 2024-01-19 17:24:55 +08:00
xiaoxian521
bce6656926 Merge remote-tracking branch 'origin/main' into gitee 2024-01-19 17:22:01 +08:00
xiaoxian521
e42012a3eb chore: update 2024-01-19 16:25:57 +08:00
xiaoxian521
01a2e49377 Merge remote-tracking branch 'origin/main' into gitee 2024-01-19 16:23:08 +08:00
xiaoxian521
cc59397dc5 chore: update 2024-01-19 13:06:15 +08:00
xiaoxian521
c9bb37339d Merge remote-tracking branch 'origin/main' into gitee 2024-01-19 13:03:16 +08:00
xiaoxian521
1d8ec613ce chore: update 2024-01-18 23:57:34 +08:00
xiaoxian521
a118b701d1 Merge remote-tracking branch 'origin/main' into gitee 2024-01-18 23:53:03 +08:00
xiaoxian521
765bd35b9f chore: update 2024-01-18 17:53:34 +08:00
xiaoxian521
90b4107496 Merge remote-tracking branch 'origin/main' into gitee 2024-01-18 17:50:07 +08:00
xiaoxian521
666dc9bcb0 chore: update 2024-01-17 10:44:25 +08:00
xiaoxian521
8376191b19 chore: update 2024-01-17 10:41:21 +08:00
xiaoxian521
800577c127 chore: update 2024-01-16 13:07:17 +08:00
xiaoxian521
fdf0b9ba7e Merge remote-tracking branch 'origin/main' into gitee 2024-01-16 13:05:40 +08:00
xiaoxian521
03f8a25f75 chore: update 2024-01-16 01:02:30 +08:00
xiaoxian521
827481c909 Merge remote-tracking branch 'origin/main' into gitee 2024-01-16 01:01:22 +08:00
xiaoxian521
947bf62635 chore: update 2024-01-16 00:52:06 +08:00
xiaoxian521
dd647eb3b2 Merge remote-tracking branch 'origin/main' into gitee 2024-01-16 00:50:22 +08:00
xiaoxian521
305da78f75 chore: update 2024-01-16 00:47:18 +08:00
xiaoxian521
9eec96809f chore: update 2024-01-14 23:27:52 +08:00
xiaoxian521
e3f5f3c1a9 Merge remote-tracking branch 'origin/main' into gitee 2024-01-14 23:26:00 +08:00
xiaoxian521
27e4ad9460 chore: update 2024-01-14 12:51:27 +08:00
xiaoxian521
17eaf8161f Merge remote-tracking branch 'origin/main' into gitee 2024-01-14 12:49:39 +08:00
xiaoxian521
78b37d3480 chore: update 2024-01-12 01:04:39 +08:00
xiaoxian521
bad65648a2 Merge remote-tracking branch 'origin/main' into gitee 2024-01-12 01:03:03 +08:00
xiaoxian521
dce3dea7fe chore: update 2024-01-11 19:46:16 +08:00
xiaoxian521
4b3cdbf473 Merge remote-tracking branch 'origin/main' into gitee 2024-01-11 19:43:54 +08:00
xiaoxian521
4bcdc7229a chore: update 2024-01-11 01:58:59 +08:00
xiaoxian521
236f9e1b6a Merge remote-tracking branch 'origin/main' into gitee 2024-01-11 01:57:17 +08:00
xiaoxian521
7d5c7dfeb3 chore: update 2024-01-08 00:03:57 +08:00
xiaoxian521
1a38146587 Merge remote-tracking branch 'origin/main' into gitee 2024-01-08 00:02:10 +08:00
xiaoxian521
796348094d Merge remote-tracking branch 'origin/main' into gitee 2024-01-07 23:31:16 +08:00
xiaoxian521
6126d53bc0 chore: update 2024-01-03 17:34:25 +08:00
xiaoxian521
9a5f1f0d89 Merge remote-tracking branch 'origin/main' into gitee 2024-01-03 17:32:52 +08:00
xiaoxian521
1abdfe683a chore: update 2024-01-03 00:09:15 +08:00
xiaoxian521
f9124c886c Merge remote-tracking branch 'origin/main' into gitee 2024-01-03 00:07:21 +08:00
xiaoxian521
2aaf141178 chore: update 2024-01-02 23:18:01 +08:00
xiaoxian521
4dc7ccda4f Merge remote-tracking branch 'origin/main' into gitee 2024-01-02 23:16:18 +08:00
xiaoxian521
951496c72b chore: update 2024-01-02 19:54:47 +08:00
xiaoxian521
4fb186424c Merge remote-tracking branch 'origin/main' into gitee 2024-01-02 19:52:43 +08:00
xiaoxian521
7c66dcdfe1 chore: update 2023-11-02 10:07:20 +08:00
xiaoxian521
c57b2be2b0 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-11-02 10:06:18 +08:00
xiaoxian521
d921e54f76 chore: update 2023-10-31 01:00:12 +08:00
xiaoxian521
3be4d87f6a Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-10-31 00:59:05 +08:00
xiaoxian521
18aade8cde chore: update 2023-10-30 23:54:06 +08:00
xiaoxian521
3a488eff38 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-10-30 23:52:58 +08:00
xiaoxian521
9d6624fe5e chore: update 2023-10-17 11:41:08 +08:00
xiaoxian521
227a7b7a2a Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-10-17 11:39:36 +08:00
xiaoxian521
7336406b02 chore: update 2023-10-09 19:02:53 +08:00
xiaoxian521
ea188be3d7 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-10-09 19:00:40 +08:00
xiaoxian521
09e24f5e03 chore: update 2023-10-07 15:33:43 +08:00
xiaoxian521
94382e4bcd chore: update 2023-10-07 15:32:03 +08:00
xiaoxian521
0c01fbfa9c Merge branch 'main' into gitee 2023-10-07 15:09:03 +08:00
xiaoxian521
a2e0b9155b chore: update 2023-08-30 21:53:35 +08:00
xiaoxian521
d7a479afc6 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-08-30 21:52:26 +08:00
xiaoxian521
e38b5ec797 chore: update 2023-08-30 21:51:41 +08:00
xiaoxian521
fd097c5a6a chore: update 2023-08-30 12:39:32 +08:00
xiaoxian521
421fe54bbd chore: update 2023-08-30 12:36:43 +08:00
xiaoxian521
6fa1d28748 chore: update 2023-08-30 12:14:51 +08:00
xiaoxian521
94c5c6e7d0 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-08-30 12:12:12 +08:00
xiaoxian521
1a61d934bd chore: update 2023-07-18 12:46:39 +08:00
xiaoxian521
29ba70d041 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-07-18 12:45:22 +08:00
xiaoxian521
bd5e96c6ab chore: update 2023-07-12 18:27:40 +08:00
xiaoxian521
ff272087ee Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-07-12 18:25:35 +08:00
xiaoxian521
c0ec81b669 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-07-12 18:17:02 +08:00
xiaoxian521
16ff8b60c1 chore: update 2023-06-27 17:57:56 +08:00
xiaoxian521
71a7d3ce1f chore: update 2023-06-27 17:46:30 +08:00
xiaoxian521
a831ea2bb3 chore: update 2023-06-27 17:45:15 +08:00
xiaoxian521
1cd173b66c Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-06-27 17:44:30 +08:00
xiaoxian521
dbff002c00 chore: update 2023-06-26 18:07:18 +08:00
xiaoxian521
43cd5d9321 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-06-26 18:06:01 +08:00
xiaoxian521
131766bba1 chore: update 2023-06-26 11:33:52 +08:00
xiaoxian521
4d458169ea Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-06-26 11:32:30 +08:00
xiaoxian521
8194f6c98f chore: update 2023-06-25 18:39:46 +08:00
xiaoxian521
cf54809ee8 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-06-25 18:38:36 +08:00
xiaoxian521
e362927e51 chore: update 2023-06-22 00:38:07 +08:00
xiaoxian521
eed805414d Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-06-22 00:36:58 +08:00
xiaoxian521
e9a1550134 chore: update 2023-06-19 11:57:27 +08:00
xiaoxian521
52a973db34 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-06-19 11:56:02 +08:00
xiaoxian521
98790df5b8 chore: update 2023-06-14 11:11:18 +08:00
xiaoxian521
433035ac94 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-06-14 11:10:13 +08:00
xiaoxian521
41e912101a chore: update 2023-06-13 23:14:27 +08:00
xiaoxian521
518fd88362 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-06-13 23:13:17 +08:00
xiaoxian521
04aa161a1d chore: update 2023-06-12 21:14:45 +08:00
xiaoxian521
4e62edc78e Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-06-12 21:13:23 +08:00
xiaoxian521
19522aa2f0 chore: update 2023-06-09 18:08:38 +08:00
xiaoxian521
2bd7d44119 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-06-09 18:07:26 +08:00
xiaoxian521
f13b471e9b chore: update 2023-06-07 11:06:35 +08:00
xiaoxian521
793e228be2 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-06-07 11:05:30 +08:00
xiaoxian521
de628597c0 chore: update 2023-06-05 19:35:34 +08:00
xiaoxian521
f797d9531c Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-06-05 19:34:16 +08:00
xiaoxian521
0e09b8c809 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-06-04 12:47:03 +08:00
xiaoxian521
55129577c7 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-06-04 12:44:01 +08:00
xiaoxian521
c95a090649 chore: update 2023-05-29 11:37:34 +08:00
xiaoxian521
d18b2787f4 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-05-29 11:34:16 +08:00
xiaoxian521
7d4a5cc431 chore: update 2023-05-27 21:59:43 +08:00
xiaoxian521
2a7e35696b Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-05-27 21:58:34 +08:00
xiaoxian521
362bae0e64 chore: update 2023-05-27 13:35:12 +08:00
xiaoxian521
22e7b4b503 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-05-27 13:33:53 +08:00
xiaoxian521
ad0ca59796 chore: update 2023-05-27 13:33:15 +08:00
xiaoxian521
a33dea3c6d chore: update 2023-05-26 23:30:14 +08:00
xiaoxian521
24b645d462 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-05-26 23:27:51 +08:00
xiaoxian521
52d0adf4a8 chore: update 2023-05-26 23:11:09 +08:00
xiaoxian521
69841db686 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-05-26 23:08:39 +08:00
xiaoxian521
76acd82ec5 chore: update 2023-05-26 12:49:16 +08:00
xiaoxian521
9d2878f534 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-05-26 12:40:49 +08:00
xiaoxian521
08f05fe621 chore: update 2023-05-24 13:01:18 +08:00
xiaoxian521
6294a3ffac Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-05-24 12:58:59 +08:00
xiaoxian521
e59acea894 chore: update 2023-05-18 17:26:20 +08:00
xiaoxian521
b1ada2f1ae Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-05-18 17:25:14 +08:00
xiaoxian521
b9daa90b37 chore: update 2023-05-16 14:36:04 +08:00
xiaoxian521
93498b6643 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-05-16 14:35:01 +08:00
xiaoxian521
7b067a8801 chore: update 2023-05-15 19:16:46 +08:00
xiaoxian521
88f7aefa16 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-05-15 19:15:37 +08:00
xiaoxian521
fb72d4afec chore: update 2023-05-15 14:50:02 +08:00
xiaoxian521
45ec532ec6 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-05-15 14:48:13 +08:00
xiaoxian521
45d225c3d0 chore: update 2023-05-14 16:42:53 +08:00
xiaoxian521
b9c1d8e351 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-05-14 16:41:23 +08:00
xiaoxian521
21f658489c chore: update 2023-05-11 20:53:36 +08:00
xiaoxian521
ff9d0da464 chore: update 2023-05-11 20:37:21 +08:00
xiaoxian521
d352cfbcde Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-05-11 20:36:00 +08:00
xiaoxian521
1adec2df2a chore: update 2023-05-11 15:25:20 +08:00
xiaoxian521
a51c11865d Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-05-11 15:23:37 +08:00
xiaoxian521
c5f2118a34 chore: update 2023-05-10 01:54:17 +08:00
xiaoxian521
2df0b16320 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-05-10 01:52:32 +08:00
xiaoxian521
3fa7176a68 chore: update 2023-05-09 15:35:56 +08:00
xiaoxian521
c8356ac05f Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-05-09 15:34:26 +08:00
xiaoxian521
784b6943a0 chore: update 2023-05-08 20:16:48 +08:00
xiaoxian521
c77ec6bda3 Merge branch 'main' of github.com:pure-admin/vue-pure-admin into gitee 2023-05-08 20:14:32 +08:00
xiaoxian521
0c2a430485 chore: update 2023-03-30 12:27:12 +08:00
xiaoxian521
013ae275de Merge branch 'main' into gitee 2023-03-30 12:25:53 +08:00
xiaoxian521
6696a3964e chore: update 2023-02-28 22:58:13 +08:00
xiaoxian521
6b2b5dee78 Merge branch 'main' into gitee 2023-02-28 22:56:58 +08:00
xiaoxian521
e637b37416 chore: update 2023-02-16 12:44:44 +08:00
xiaoxian521
534d125c33 Merge branch 'main' into gitee 2023-02-16 12:43:26 +08:00
xiaoxian521
a873c3977b chore: update 2023-02-13 14:03:46 +08:00
xiaoxian521
d063407e3d Merge branch 'main' into gitee 2023-02-13 14:02:19 +08:00
xiaoxian521
534e889f49 perf: 优化logo图和文字布局 2023-02-13 14:00:37 +08:00
xiaoxian521
cb7bd9e5a8 chore: update 2023-02-12 23:55:06 +08:00
xiaoxian521
0b4a281bad Merge branch 'main' into gitee 2023-02-12 23:53:58 +08:00
xiaoxian521
9243e6e290 chore: update 2023-02-12 14:40:59 +08:00
xiaoxian521
039a194788 Merge branch 'main' into gitee 2023-02-12 14:40:21 +08:00
xiaoxian521
8f12419660 style: update 2023-02-12 14:38:50 +08:00
xiaoxian521
9683a7be9c chore: update 2023-02-12 13:29:47 +08:00
xiaoxian521
94ac2ba400 Merge branch 'main' into gitee 2023-02-12 13:28:41 +08:00
xiaoxian521
eed95cd109 chore: update 2023-02-11 16:18:55 +08:00
xiaoxian521
3fb9c6895e Merge branch 'main' into gitee 2023-02-11 16:17:53 +08:00
xiaoxian521
9c3ac7a888 chore: update 2023-02-09 12:11:18 +08:00
xiaoxian521
d05a4e9990 Merge branch 'main' into gitee 2023-02-09 12:09:47 +08:00
xiaoxian521
585997dbb7 chore: update 2023-02-09 00:25:06 +08:00
xiaoxian521
0c7185cc47 Merge branch 'main' into gitee 2023-02-09 00:23:57 +08:00
xiaoxian521
d0c45b7995 chore: update 2023-02-08 18:11:24 +08:00
xiaoxian521
9ba545ae3b Merge branch 'main' into gitee 2023-02-08 18:10:12 +08:00
xiaoxian521
86f5a040dc chore: update 2023-01-08 16:15:33 +08:00
xiaoxian521
9ff777c8d2 Merge branch 'main' into gitee 2023-01-08 16:11:59 +08:00
xiaoxian521
e0b7922b13 chore: update 2022-12-26 12:57:03 +08:00
xiaoxian521
c951880e3a Merge branch 'main' into gitee 2022-12-26 12:56:01 +08:00
xiaoxian521
0d02cb739e chore: update 2022-12-16 14:54:53 +08:00
xiaoxian521
9c5140d117 Merge branch 'main' into gitee 2022-12-16 14:53:11 +08:00
xiaoxian521
7707607545 chore: update 2022-12-13 15:28:52 +08:00
xiaoxian521
e6775a1b05 Merge branch 'main' into gitee 2022-12-13 15:27:01 +08:00
xiaoxian521
0087f0f27c chore: update 2022-12-09 22:35:31 +08:00
xiaoxian521
5da968f122 Merge branch 'main' into gitee 2022-12-09 22:34:27 +08:00
xiaoxian521
43d0a53ce0 chore: update 2022-12-09 20:23:54 +08:00
xiaoxian521
db64905ab0 chore: update 2022-12-09 20:21:50 +08:00
151 changed files with 4370 additions and 3666 deletions

3
.gitignore vendored
View File

@@ -1,10 +1,9 @@
node_modules
.DS_Store
dist
dist-ssr
*.local
.eslintcache
report.html
dist
vite.config.*.timestamp*
yarn.lock

View File

@@ -1,8 +0,0 @@
#!/bin/sh
# shellcheck source=./_/husky.sh
. "$(dirname "$0")/_/husky.sh"
PATH="/usr/local/bin:$PATH"
npx --no-install commitlint --edit "$1"

View File

@@ -1,9 +0,0 @@
#!/bin/sh
command_exists () {
command -v "$1" >/dev/null 2>&1
}
# Workaround for Windows 10, Git Bash and Pnpm
if command_exists winpty && test -t 1; then
exec < /dev/tty
fi

View File

@@ -1,10 +0,0 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"
[ -n "$CI" ] && exit 0
PATH="/usr/local/bin:$PATH"
# Perform lint check on files in the staging area through .lintstagedrc configuration
pnpm exec lint-staged

2
.nvmrc
View File

@@ -1 +1 @@
v22.14.0
v22.20.0

View File

@@ -1,4 +1,5 @@
{
"tailwindCSS.experimental.configFile": "src/style/tailwind.css",
"editor.formatOnType": true,
"editor.formatOnSave": true,
"[vue]": {

View File

@@ -1,8 +1,74 @@
# 6.2.0 (2025-10-16)
### 🎫 Features
- Added full-screen `403`, `404`, and `500` error pages. These full-screen error pages are clear and secure, improving the user experience.
### 🐞 Bug Fixes
- Fixed an issue where the built-in homepage did not have a `name` configured, causing cache invalidation after setting the page cache.
- Fixed an issue where, in an embedded same-origin `iframe` page, when the `beforeunload` event was registered, right-clicking a tab and reloading it would cause the browser to prompt two confirmation blocks.
- Fixed an issue where pages with `keepAlive: true` set to cache invalidation when the initial load was slow.
- Fixed an issue where multiple tabs could be activated simultaneously when using the same parameters in different routes.
- Fixed an issue where the right-click menu on a tab displayed incorrectly when passing `params` parameters.
### 🍏 Perf
- Optimized the `nprogress` progress bar. It no longer displays when reloading a page or requesting an interface, improving the user experience.
- Optimized the timing of capturing all unmatched routes and redirecting to a full-screen `404` page.
- Explicitly configured the `Tailwind CSS` entry file path to improve the contextual recognition and prompting performance of the `Tailwind CSS IntelliSense` plugin
# 6.1.0 (2025-07-31)
### ✔️ Refactor
- Upgrade to `vite7`, update dependencies, and related compatibility processing
### 🐞 Bug fixes
- Fixed a flickering issue in the `ReSegmented` segmented controller component when switching between light and dark styles
- Fixed an issue where `resetRouter` did not clear all routing data
- Fixed an issue where closing the left tab in the tabs window did not work properly
### 🍏 Perf
- Optimized navigation styles
- Upgraded `@pureadmin/table` to be compatible with all `el-table` APIs in the latest `element-plus` version.
# 6.0.0 (2025-04-10)
### ✔️ Refactor
- Refactor the icon module, use `@iconify/json` to replace the `@iconify-icons/*` dependency that is no longer maintained and updated, optimize the user experience, ensure that the icon library can be continuously updated and support `Tree-shaking`
- Upgrade `tailwindcss` to `v4` version, bringing faster build speed, simpler installation and configuration, and providing a dedicated `vite` plug-in
### 🎫 Feat
- Add `Ai` chat component example
- Add `tagOnClick` tag to switch global public events
- Add code editor example
- Add `Markdown` example
- Add slider example
### 🐞 Bug fixes
- Fix `aria-hidden` error
- Fix the problem that code hints cannot be displayed when using `this` syntax and update `pinia` related syntax
### 🍏 Perf
- Fix broken links in the waterfall infinite scrolling example
- Update `vue-flow`, related compatibility processing
- Delete the deprecated dependency package `eslint-define-config`, upgrade `eslint` to the latest version, related compatibility processing
- Optimize `src/style/dark.scss` syntax
- Optimize login parameter transfer
- Use `keydown` to replace `keypress`, the `keypress` event has been deprecated
# 5.9.0 (2024-12-10)
### ✔Refactor
- Upgrade `vite` to `v6` version, upgrade `sass` to the latest version, reconstruct the theme writing method, and deprecate [@pureadmin/theme](https://www.npmjs.com/package/@pureadmin/theme) , click to view [Related optimization point details](https://github.com/pure-admin/vue-pure-admin/pull/1188#issue-2630095115). For users who have the [Max version](https://pure-admin.cn/pages/max/), it is strongly recommended to upgrade. Subsequent Max version users will enjoy a more modern, beautiful and highly customized theme color
- Upgrade `vite` to `v6` version, upgrade `sass` to the latest version, reconstruct the theme writing method, and deprecate [@pureadmin/theme](https://www.npmjs.com/package/@pureadmin/theme) , click to view [Related optimization point details](https://github.com/pure-admin/vue-pure-admin/pull/1188#issue-2630095115). For users who have the [Max version](https://pure-admin.cn/pages/service/#max-%E7%89%88%E6%9C%AC), it is strongly recommended to upgrade. Subsequent Max version users will enjoy a more modern, beautiful and highly customized theme color
- Use [code-inspector-plugin](https://www.npmjs.com/package/code-inspector-plugin) to replace [vite-plugin-vue-inspector](https://www.npmjs.com/package/vite-plugin-vue-inspector)
### 🎫Feat

View File

@@ -1,8 +1,74 @@
# 6.2.0 (2025-10-16)
### 🎫 Features
- Added full-screen `403`, `404`, and `500` error pages. These full-screen error pages are clear and secure, improving the user experience.
### 🐞 Bug Fixes
- Fixed an issue where the built-in homepage did not have a `name` configured, causing cache invalidation after setting the page cache.
- Fixed an issue where, in an embedded same-origin `iframe` page, when the `beforeunload` event was registered, right-clicking a tab and reloading it would cause the browser to prompt two confirmation blocks.
- Fixed an issue where pages with `keepAlive: true` set to cache invalidation when the initial load was slow.
- Fixed an issue where multiple tabs could be activated simultaneously when using the same parameters in different routes.
- Fixed an issue where the right-click menu on a tab displayed incorrectly when passing `params` parameters.
### 🍏 Perf
- Optimized the `nprogress` progress bar. It no longer displays when reloading a page or requesting an interface, improving the user experience.
- Optimized the timing of capturing all unmatched routes and redirecting to a full-screen `404` page.
- Explicitly configured the `Tailwind CSS` entry file path to improve the contextual recognition and prompting performance of the `Tailwind CSS IntelliSense` plugin
# 6.1.0 (2025-07-31)
### ✔️ Refactor
- Upgrade to `vite7`, update dependencies, and related compatibility processing
### 🐞 Bug fixes
- Fixed a flickering issue in the `ReSegmented` segmented controller component when switching between light and dark styles
- Fixed an issue where `resetRouter` did not clear all routing data
- Fixed an issue where closing the left tab in the tabs window did not work properly
### 🍏 Perf
- Optimized navigation styles
- Upgraded `@pureadmin/table` to be compatible with all `el-table` APIs in the latest `element-plus` version.
# 6.0.0 (2025-04-10)
### ✔️ Refactor
- Refactor the icon module, use `@iconify/json` to replace the `@iconify-icons/*` dependency that is no longer maintained and updated, optimize the user experience, ensure that the icon library can be continuously updated and support `Tree-shaking`
- Upgrade `tailwindcss` to `v4` version, bringing faster build speed, simpler installation and configuration, and providing a dedicated `vite` plug-in
### 🎫 Feat
- Add `Ai` chat component example
- Add `tagOnClick` tag to switch global public events
- Add code editor example
- Add `Markdown` example
- Add slider example
### 🐞 Bug fixes
- Fix `aria-hidden` error
- Fix the problem that code hints cannot be displayed when using `this` syntax and update `pinia` related syntax
### 🍏 Perf
- Fix broken links in the waterfall infinite scrolling example
- Update `vue-flow`, related compatibility processing
- Delete the deprecated dependency package `eslint-define-config`, upgrade `eslint` to the latest version, related compatibility processing
- Optimize `src/style/dark.scss` syntax
- Optimize login parameter transfer
- Use `keydown` to replace `keypress`, the `keypress` event has been deprecated
# 5.9.0 (2024-12-10)
### ✔Refactor
- Upgrade `vite` to `v6` version, upgrade `sass` to the latest version, reconstruct the theme writing method, and deprecate [@pureadmin/theme](https://www.npmjs.com/package/@pureadmin/theme) , click to view [Related optimization point details](https://github.com/pure-admin/vue-pure-admin/pull/1188#issue-2630095115). For users who have the [Max version](https://pure-admin.cn/pages/max/), it is strongly recommended to upgrade. Subsequent Max version users will enjoy a more modern, beautiful and highly customized theme color
- Upgrade `vite` to `v6` version, upgrade `sass` to the latest version, reconstruct the theme writing method, and deprecate [@pureadmin/theme](https://www.npmjs.com/package/@pureadmin/theme) , click to view [Related optimization point details](https://github.com/pure-admin/vue-pure-admin/pull/1188#issue-2630095115). For users who have the [Max version](https://pure-admin.cn/pages/service/#max-%E7%89%88%E6%9C%AC), it is strongly recommended to upgrade. Subsequent Max version users will enjoy a more modern, beautiful and highly customized theme color
- Use [code-inspector-plugin](https://www.npmjs.com/package/code-inspector-plugin) to replace [vite-plugin-vue-inspector](https://www.npmjs.com/package/vite-plugin-vue-inspector)
### 🎫Feat

View File

@@ -1,8 +1,74 @@
# 6.2.0 (2025-10-16)
### 🎫 Feat
- 添加全屏`403``404``500`页面,全屏错误页面清晰且安全,提升用户体验
### 🐞 Bug fixes
- 修复内置的首页未设置`name`导致设置页面缓存后缓存无效的问题
- 修复在内嵌同源`iframe`页面中,当其注册了`beforeunload`事件时,右键标签页点击重新加载导致浏览器弹出两次确认拦截的问题
- 修复设置了`keepAlive: true`的页面在初次加载缓慢的情况下出现的页面缓存失效的问题
- 修复不同路由使用相同参数时,多个标签页会同时被激活的问题
- 修复`params`传参模式下标签页右键菜单显示不正确的问题
### 🍏 Perf
- 优化`nprogress`进度条,页面重进或接口请求时不再显示进度条,提升用户体验
- 优化当捕获所有未匹配路由并跳转全屏`404`页面的时机
- 显式配置`Tailwind CSS`入口文件路径,优化`Tailwind CSS IntelliSense`插件的上下文识别与提示性能
# 6.1.0 (2025-07-31)
### ✔️ Refactor
- 升级至`vite7`,更新依赖,相关兼容处理
### 🐞 Bug fixes
- 修复`ReSegmented`分段控制器组件在浅色和深色整体风格切换时的闪烁问题
- 修复`resetRouter`未清空全部路由数据问题
- 修复标签页-关闭左侧标签页关闭异常问题
### 🍏 Perf
- 优化导航样式
- 升级`@pureadmin/table`兼容最新版`element-plus``el-table`的所有`API`
# 6.0.0 (2025-04-10)
### ✔️ Refactor
- 重构图标模块,使用`@iconify/json`替换不再维护更新的`@iconify-icons/*`依赖,优化使用体验,确保图标库可持续更新并支持`Tree-shaking`
- 升级`tailwindcss``v4`版本,带来更快的构建速度、更简化的安装和配置、提供专属`vite`插件
### 🎫 Feat
- 添加`Ai`聊天组件示例
- 添加`tagOnClick`标签切换全局公共事件
- 添加代码编辑器示例
- 添加`Markdown`示例
- 添加滑块示例
### 🐞 Bug fixes
- 修复`aria-hidden`报错
- 修复使用`this`语法时无法显示代码提示的问题并更新`pinia`相关语法
### 🍏 Perf
- 修复组件-瀑布流无限滚动示例中失效的链接
- 更新`vue-flow`,相关兼容处理
- 删除已弃用的依赖包`eslint-define-config`,升级`eslint`至最新版本,相关兼容处理
- 优化`src/style/dark.scss`语法
- 优化登录传参
- 使用`keydown`替换`keypress``keypress`事件已弃用
# 5.9.0 (2024-12-10)
### ✔️ Refactor
- 升级`vite``v6`版本,升级`sass`至最新版,重构主题写法,弃用 [@pureadmin/theme](https://www.npmjs.com/package/@pureadmin/theme),点击查看 [相关优化点细节](https://github.com/pure-admin/vue-pure-admin/pull/1188#issue-2630095115)。对于拥有 [Max版本](https://pure-admin.cn/pages/max/) 的用户平台强烈建议升级,后续`Max版本用户`会享有一套更现代、美观且自定义程度高的主题色
- 升级`vite``v6`版本,升级`sass`至最新版,重构主题写法,弃用 [@pureadmin/theme](https://www.npmjs.com/package/@pureadmin/theme),点击查看 [相关优化点细节](https://github.com/pure-admin/vue-pure-admin/pull/1188#issue-2630095115)。对于拥有 [Max版本](https://pure-admin.cn/pages/service/#max-%E7%89%88%E6%9C%AC) 的用户平台强烈建议升级,后续`Max版本用户`会享有一套更现代、美观且自定义程度高的主题色
- 使用 [code-inspector-plugin](https://www.npmjs.com/package/code-inspector-plugin) 替换 [vite-plugin-vue-inspector](https://www.npmjs.com/package/vite-plugin-vue-inspector)
### 🎫 Feat

View File

@@ -31,18 +31,10 @@ The simplified version is based on the shelf extracted from [vue-pure-admin](htt
[Click me to view vue-pure-admin documentation](https://pure-admin.cn/)
[Click me to view @pureadmin/utils documentation](https://pure-admin-utils.netlify.app)
## Quality service, software outsourcing, sponsorship support
## Premium service
[Click me for details](https://pure-admin.cn/pages/service/)
## `js` version
[Click me to view js version](https://pure-admin.cn/pages/js/)
## `max` version
[Click me to view the max version](https://pure-admin.cn/pages/max/)
## Tauri
[Click Watch Tauri](https://github.com/pure-admin/tauri-pure-admin)
@@ -192,6 +184,7 @@ Thank you very much for your in-depth understanding of the source code and your
| [edgexie](https://github.com/edgexie) | [code](https://github.com/pure-admin/vue-pure-admin/commits?author=edgexie) |
| [way-jm](https://github.com/way-jm) | [code](https://github.com/pure-admin/vue-pure-admin/commits?author=way-jm) |
| [simple-hui](https://github.com/simple-hui) | [code](https://github.com/pure-admin/vue-pure-admin/commits?author=simple-hui) |
| [tinysimple](https://github.com/tinysimple) | [code](https://github.com/pure-admin/vue-pure-admin/commits?author=tinysimple) |
## Git Contribution submission specification

View File

@@ -32,18 +32,10 @@
[点我查看 vue-pure-admin 文档](https://pure-admin.cn/)
[点我查看 @pureadmin/utils 文档](https://pure-admin-utils.netlify.app)
## 优质服务、软件外包、赞助支持
## 高级服务
[点我查看详情](https://pure-admin.cn/pages/service/)
## `js` 版本
[点我查看 js 版本](https://pure-admin.cn/pages/js/)
## `max` 版本
[点我查看 max 版本](https://pure-admin.cn/pages/max/)
## `Tauri` 版本
[点我查看 Tauri 版本](https://github.com/pure-admin/tauri-pure-admin)
@@ -193,6 +185,7 @@ docker run -dp 8080:80 --name pure-admin vue-pure-admin
| [edgexie](https://github.com/edgexie) | [代码](https://github.com/pure-admin/vue-pure-admin/commits?author=edgexie) |
| [way-jm](https://github.com/way-jm) | [代码](https://github.com/pure-admin/vue-pure-admin/commits?author=way-jm) |
| [simple-hui](https://github.com/simple-hui) | [代码](https://github.com/pure-admin/vue-pure-admin/commits?author=simple-hui) |
| [tinysimple](https://github.com/tinysimple) | [代码](https://github.com/pure-admin/vue-pure-admin/commits?author=tinysimple) |
## `Git` 贡献提交规范

View File

@@ -6,6 +6,7 @@ import svgLoader from "vite-svg-loader";
import Icons from "unplugin-icons/vite";
import type { PluginOption } from "vite";
import vueJsx from "@vitejs/plugin-vue-jsx";
import tailwindcss from "@tailwindcss/vite";
import { configCompressPlugin } from "./compress";
import removeNoMatch from "vite-plugin-router-warn";
import { visualizer } from "rollup-plugin-visualizer";
@@ -20,6 +21,7 @@ export function getPluginsList(
): PluginOption[] {
const lifecycle = process.env.npm_lifecycle_event;
return [
tailwindcss(),
vue({
template: {
compilerOptions: {

View File

@@ -1,15 +1,23 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="renderer" content="webkit" />
<meta
name="viewport"
content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"
/>
<meta name="viewport"
content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" />
<title>vue-pure-admin</title>
<link rel="icon" href="/favicon.ico" />
<script>
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script")
hm.src = "https://hm.baidu.com/hm.js?d3824e75ef2bf6d851035f74ae1aec68"
var s = document.getElementsByTagName("script")[0]
s.parentNode.insertBefore(hm, s)
})();
</script>
</head>
<body>
@@ -66,6 +74,7 @@
}
@keyframes load-animation {
0%,
80%,
100% {
@@ -81,4 +90,5 @@
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>

View File

@@ -80,9 +80,9 @@ menus:
pureMarkdown: Markdown
pureEditor: Editor
pureAbnormal: Abnormal Page
pureFourZeroFour: "404"
pureFourZeroOne: "403"
pureFive: "500"
purePageNotFound: "404"
pureAccessDenied: "403"
pureServerError: "500"
pureComponents: Components
pureDialog: Dialog
pureDrawer: Drawer

View File

@@ -80,9 +80,9 @@ menus:
pureMarkdown: Markdown
pureEditor: 编辑器
pureAbnormal: 异常页面
pureFourZeroFour: "404"
pureFourZeroOne: "403"
pureFive: "500"
purePageNotFound: "404"
pureAccessDenied: "403"
pureServerError: "500"
pureComponents: 组件
pureDialog: 函数式弹框
pureDrawer: 函数式抽屉

View File

@@ -1,6 +1,6 @@
{
"name": "vue-pure-admin",
"version": "5.9.0",
"version": "6.2.0",
"private": true,
"type": "module",
"scripts": {
@@ -48,134 +48,134 @@
},
"dependencies": {
"@amap/amap-jsapi-loader": "^1.0.1",
"@howdyjs/mouse-menu": "^2.1.6",
"@howdyjs/mouse-menu": "^2.1.7",
"@infectoone/vue-ganttastic": "^2.3.2",
"@logicflow/core": "^1.2.28",
"@logicflow/extension": "^1.2.28",
"@pureadmin/descriptions": "^1.2.1",
"@pureadmin/table": "^3.2.1",
"@pureadmin/utils": "^2.6.0",
"@pureadmin/table": "^3.3.0",
"@pureadmin/utils": "^2.6.2",
"@vue-flow/background": "^1.3.2",
"@vue-flow/core": "^1.42.5",
"@vueuse/core": "^12.5.0",
"@vueuse/motion": "^2.2.6",
"@vue-flow/core": "^1.47.0",
"@vueuse/core": "^13.9.0",
"@vueuse/motion": "^3.0.3",
"@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-vue": "^5.1.12",
"@zxcvbn-ts/core": "^3.0.4",
"animate.css": "^4.1.1",
"axios": "^1.7.9",
"axios": "^1.12.2",
"china-area-data": "^5.0.1",
"codemirror": "^5.65.18",
"codemirror": "^5.65.20",
"codemirror-editor-vue3": "^2.8.0",
"cropperjs": "^1.6.2",
"dayjs": "^1.11.13",
"deep-chat": "^2.1.1",
"echarts": "^5.6.0",
"el-table-infinite-scroll": "^3.0.6",
"element-plus": "^2.9.4",
"dayjs": "^1.11.18",
"deep-chat": "^2.2.2",
"echarts": "^6.0.0",
"el-table-infinite-scroll": "^3.0.7",
"element-plus": "^2.11.7",
"highlight.js": "^11.11.1",
"intro.js": "^7.2.0",
"js-cookie": "^3.0.5",
"jsbarcode": "^3.11.6",
"jsbarcode": "^3.12.1",
"localforage": "^1.10.0",
"mint-filter": "^4.0.3",
"mitt": "^3.0.1",
"mqtt": "4.3.7",
"nprogress": "^0.2.0",
"path-browserify": "^1.0.1",
"pinia": "^3.0.1",
"pinyin-pro": "^3.26.0",
"plus-pro-components": "^0.1.20",
"pinia": "^3.0.3",
"pinyin-pro": "^3.27.0",
"plus-pro-components": "^0.1.29",
"qrcode": "^1.5.4",
"qs": "^6.14.0",
"responsive-storage": "^2.2.0",
"sortablejs": "^1.15.6",
"swiper": "^11.2.3",
"swiper": "^12.0.2",
"typeit": "^8.8.7",
"v-contextmenu": "^3.2.0",
"v3-infinite-loading": "^1.3.2",
"vditor": "^3.10.9",
"vditor": "^3.11.2",
"version-rocket": "^1.7.4",
"vue": "^3.5.13",
"vue-i18n": "^11.1.1",
"vue-json-pretty": "^2.4.0",
"vue-pdf-embed": "^2.1.2",
"vue-router": "^4.5.0",
"vue-tippy": "^6.6.0",
"vue-types": "^5.1.3",
"vue": "^3.5.22",
"vue-i18n": "^11.1.12",
"vue-json-pretty": "^2.5.0",
"vue-pdf-embed": "^2.1.3",
"vue-router": "^4.5.1",
"vue-tippy": "^6.7.1",
"vue-types": "^6.0.0",
"vue-virtual-scroller": "2.0.0-beta.8",
"vue-waterfall-plugin-next": "^2.6.5",
"vue3-danmaku": "^1.6.1",
"vue-waterfall-plugin-next": "^2.6.9",
"vue3-danmaku": "^1.6.6",
"vue3-puzzle-vcode": "^1.1.7",
"vuedraggable": "^4.1.0",
"vxe-table": "4.6.25",
"wavesurfer.js": "^7.9.1",
"xgplayer": "^3.0.20",
"wavesurfer.js": "^7.11.0",
"xgplayer": "^3.0.23",
"xlsx": "^0.18.5"
},
"devDependencies": {
"@commitlint/cli": "^19.7.1",
"@commitlint/config-conventional": "^19.7.1",
"@commitlint/types": "^19.5.0",
"@eslint/js": "^9.24.0",
"@faker-js/faker": "^9.5.0",
"@iconify/json": "^2.2.319",
"@commitlint/cli": "^20.1.0",
"@commitlint/config-conventional": "^20.0.0",
"@commitlint/types": "^20.0.0",
"@eslint/js": "^9.37.0",
"@faker-js/faker": "^10.0.0",
"@iconify/json": "^2.2.393",
"@iconify/vue": "4.2.0",
"@intlify/unplugin-vue-i18n": "^6.0.3",
"@types/codemirror": "^5.60.15",
"@types/dagre": "^0.7.52",
"@intlify/unplugin-vue-i18n": "^11.0.1",
"@tailwindcss/vite": "^4.1.14",
"@types/codemirror": "^5.60.16",
"@types/dagre": "^0.7.53",
"@types/intro.js": "^5.1.5",
"@types/js-cookie": "^3.0.6",
"@types/node": "^20.17.19",
"@types/node": "^20.19.19",
"@types/nprogress": "^0.2.3",
"@types/path-browserify": "^1.0.3",
"@types/qrcode": "^1.5.5",
"@types/qs": "^6.9.18",
"@types/qs": "^6.14.0",
"@types/sortablejs": "^1.15.8",
"@vitejs/plugin-vue": "^5.2.1",
"@vitejs/plugin-vue-jsx": "^4.1.1",
"autoprefixer": "^10.4.20",
"@vitejs/plugin-vue": "^6.0.1",
"@vitejs/plugin-vue-jsx": "^5.1.1",
"boxen": "^8.0.1",
"code-inspector-plugin": "^0.20.0",
"cssnano": "^7.0.6",
"code-inspector-plugin": "^1.2.10",
"cssnano": "^7.1.1",
"dagre": "^0.8.5",
"eslint": "^9.24.0",
"eslint-config-prettier": "^10.1.1",
"eslint-plugin-prettier": "^5.2.6",
"eslint-plugin-vue": "^10.0.0",
"eslint": "^9.37.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.4",
"eslint-plugin-vue": "^10.5.0",
"gradient-string": "^3.0.0",
"husky": "^9.1.7",
"lint-staged": "^15.4.3",
"postcss": "^8.5.2",
"lint-staged": "^16.2.3",
"postcss": "^8.5.6",
"postcss-html": "^1.8.0",
"postcss-import": "^16.1.0",
"postcss-load-config": "^6.0.1",
"postcss-scss": "^4.0.9",
"prettier": "^3.5.1",
"prettier": "^3.6.2",
"rimraf": "^6.0.1",
"rollup-plugin-visualizer": "^5.14.0",
"sass": "^1.85.0",
"stylelint": "^16.14.1",
"stylelint-config-recess-order": "^6.0.0",
"stylelint-config-recommended-vue": "^1.6.0",
"rollup-plugin-visualizer": "^6.0.4",
"sass": "^1.93.2",
"stylelint": "^16.25.0",
"stylelint-config-recess-order": "^7.3.0",
"stylelint-config-recommended-vue": "^1.6.1",
"stylelint-config-standard-scss": "^14.0.0",
"stylelint-prettier": "^5.0.3",
"svgo": "^3.3.2",
"tailwindcss": "3.4.17",
"typescript": "^5.7.3",
"typescript-eslint": "^8.29.1",
"unplugin-icons": "^22.1.0",
"vite": "^6.1.0",
"svgo": "^4.0.0",
"tailwindcss": "^4.1.14",
"typescript": "^5.9.3",
"typescript-eslint": "^8.46.0",
"unplugin-icons": "^22.4.2",
"vite": "^7.1.9",
"vite-plugin-cdn-import": "^1.0.1",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-fake-server": "^2.2.0",
"vite-plugin-remove-console": "^2.2.0",
"vite-plugin-router-warn": "^1.0.0",
"vite-svg-loader": "^5.1.0",
"vue-eslint-parser": "^10.1.3",
"vue-tsc": "^2.2.0"
"vue-eslint-parser": "^10.2.0",
"vue-tsc": "^3.1.1"
},
"engines": {
"node": "^18.18.0 || ^20.9.0 || >=22.0.0",
"node": "^20.19.0 || >=22.13.0",
"pnpm": ">=9"
},
"pnpm": {
@@ -200,6 +200,10 @@
"esbuild",
"typeit",
"vue-demi"
],
"ignoredBuiltDependencies": [
"@tailwindcss/oxide",
"vue3-danmaku"
]
}
}

6057
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -3,10 +3,6 @@
/** @type {import('postcss-load-config').Config} */
export default {
plugins: {
"postcss-import": {},
"tailwindcss/nesting": {},
tailwindcss: {},
autoprefixer: {},
...(process.env.NODE_ENV === "production" ? { cssnano: {} } : {})
}
};

View File

@@ -1,5 +1,5 @@
{
"Version": "5.9.0",
"Version": "6.2.0",
"Title": "PureAdmin",
"FixedHeader": true,
"HiddenSideBar": false,

View File

@@ -16,6 +16,7 @@ import en from "element-plus/es/locale/lang/en";
import zhCn from "element-plus/es/locale/lang/zh-cn";
import plusEn from "plus-pro-components/es/locale/lang/en";
import plusZhCn from "plus-pro-components/es/locale/lang/zh-cn";
import { ElNotification } from "element-plus";
export default defineComponent({
name: "app",
@@ -54,5 +55,31 @@ export default defineComponent({
);
}
}
// mounted() {
// ElNotification({
// title: "平台最新活动与动态",
// duration: 0,
// customClass: "fullpage-notification",
// // @ts-expect-error
// style: { width: "260px" },
// position: "bottom-right",
// dangerouslyUseHTMLString: true,
// message: `
// <a target='_blank' class='block text-base text-center border mt-4 rounded hover:text-[red]!' href='https://pure-admin.cn/pages/service/#%E6%9C%80%E6%96%B0%E6%B4%BB%E5%8A%A8%E4%B8%8E%E5%8A%A8%E6%80%81'>
// 点我查看
// </a>
// `
// });
// }
});
</script>
<style>
.fullpage-notification > .el-notification__group > .el-notification__closeBtn {
top: 15px;
}
.fullpage-notification > div > h2 {
color: red;
font-size: 18px;
}
</style>

File diff suppressed because one or more lines are too long

View File

@@ -95,7 +95,7 @@ function onMouseleave() {
:view-style="{ overflow: 'hidden' }"
class="border-t border-[#e5e7eb]"
>
<ul class="flex flex-wrap justify-around mb-1">
<ul class="flex flex-wrap justify-around mb-1!">
<li
v-for="(animate, index) in animatesList"
:key="index"

View File

@@ -119,7 +119,7 @@ export default defineComponent({
"p-[6px]",
"h-[30px]",
"w-[30px]",
"outline-none",
"outline-hidden",
"rounded-[4px]",
"cursor-pointer",
"hover:bg-[rgba(0,0,0,0.06)]"

View File

@@ -79,7 +79,7 @@ const fullscreenClass = computed(() => {
"el-dialog__close",
"-translate-x-2",
"cursor-pointer",
"hover:!text-[red]"
"hover:text-[red]!"
];
});

View File

@@ -35,8 +35,20 @@ type DialogProps = {
top?: string;
/** 是否需要遮罩层,默认 `true` */
modal?: boolean;
/** 是否允许穿透遮罩层,默认 `false`。使用时需将 `modal` 属性设置为 `false` */
modalPenetrable?: boolean;
/** 遮罩的自定义类名 */
modalClass?: string;
/** `header` 部分的自定义 `class` 名 */
headerClass?: string;
/** `body` 部分的自定义 `class` 名 */
bodyClass?: string;
/** `footer` 部分的自定义 `class` 名 */
footerClass?: string;
/** `Dialog` 自身是否插入至 `body` 元素上。嵌套的 `Dialog` 必须指定该属性并赋值为 `true`,默认 `false` */
appendToBody?: boolean;
/** `Dialog` 挂载到哪个 `DOM` 元素,该属性会覆盖 `append-to-body` 属性,默认 `body` */
appendTo?: string | HTMLElement;
/** 是否在 `Dialog` 出现时将 `body` 滚动锁定,默认 `true` */
lockScroll?: boolean;
/** `Dialog` 的自定义类名 */
@@ -57,12 +69,22 @@ type DialogProps = {
beforeClose?: (done: DoneFn) => void;
/** 为 `Dialog` 启用可拖拽功能,默认 `false` */
draggable?: boolean;
/** 拖动范围可以超出可视区,默认 `false` */
overflow?: boolean;
/** 是否让 `Dialog` 的 `header` 和 `footer` 部分居中排列,默认 `false` */
center?: boolean;
/** 是否水平垂直对齐对话框,默认 `false` */
alignCenter?: boolean;
/** 当关闭 `Dialog` 时,销毁其中的元素,默认 `false` */
destroyOnClose?: boolean;
/** 自定义关闭图标,默认 `Close` */
closeIcon?: string | Component;
/** 和原生的 `CSS` 的 `z-index` 相同,改变 `z` 轴的顺序 */
zIndex?: number;
/** `header` 的 `aria-level` 属性 */
headerAriaLevel?: string;
/** 对话框动画的自定义过渡配置。可以是一个字符串(过渡名称),也可以是一个包含 `Vue` 过渡属性的对象,默认 `dialog-fade` */
transition?: string | object;
};
//element-plus.org/zh-CN/component/popconfirm.html#attributes

View File

@@ -6,7 +6,6 @@ type ArgsType = {
/** `cancel` 点击取消按钮、`sure` 点击确定按钮、`close` 点击右上角关闭按钮或空白页或按下了 `esc` 键 */
command: "cancel" | "sure" | "close";
};
type ButtonType =
| "primary"
| "success"
@@ -20,11 +19,11 @@ type DrawerProps = {
visible?: boolean;
/** `Drawer` 自身是否插入至 `body` 元素上。嵌套的 `Drawer` 必须指定该属性并赋值为 `true`,默认 `false` */
appendToBody?: boolean;
/** 挂载到哪个 `DOM` 元素覆盖 `appendToBody` */
/** 挂载到哪个 `DOM` 元素,会覆盖 `appendToBody` 属性,默认 `body` */
appendTo?: string;
/** 是否在 `Drawer` 出现时将 `body` 滚动锁定,默认 `true` */
lockScroll?: boolean;
/** 关闭前的回调,会暂停 `Drawer` 的关闭 回调函数内执行 `done` 参数方法的时候才是真正关闭对话框的时候 */
/** 关闭前的回调,会暂停 `Drawer` 的关闭回调函数内执行 `done` 参数方法的时候才是真正关闭对话框的时候 */
beforeClose?: (done: DoneFn) => void;
/** 是否可以通过点击 `modal` 关闭 `Drawer` ,默认 `true` */
closeOnClickModal?: boolean;
@@ -44,9 +43,13 @@ type DrawerProps = {
destroyOnClose?: boolean;
/** 是否需要遮罩层,默认 `true` */
modal?: boolean;
/** 是否允许穿透遮罩层,默认 `false`。使用时需将 `modal` 属性设置为 `false` */
modalPenetrable?: boolean;
/** `Drawer` 打开的方向,默认 `rtl` */
direction?: "rtl" | "ltr" | "ttb" | "btt";
/** `Drawer` 窗体的大小, 当使用 `number` 类型时, 以像素为单位, 当使用 `string` 类型时, 请传入 `'x%'`, 否则便会以 `number` 类型解释 */
/** 是否启用可调整大小的功能,默认 `false` */
resizable?: boolean;
/** `Drawer` 窗体的大小, 当使用 `number` 类型时, 以像素为单位, 当使用 `string` 类型时, 请传入 `'x%'`, 否则便会以 `number` 类型解释,默认 `30%` */
size?: string | number;
/** `Drawer` 的标题 */
title?: string;
@@ -54,6 +57,12 @@ type DrawerProps = {
withHeader?: boolean;
/** 遮罩层的自定义类名 */
modalClass?: string;
/** `header` 部分的自定义 `class` 名 */
headerClass?: string;
/** `body` 部分的自定义 `class` 名 */
bodyClass?: string;
/** `footer` 部分的自定义 `class` 名 */
footerClass?: string;
/** 设置 `z-index` */
zIndex?: number;
/** `header` 的 `aria-level` 属性,默认 `2` */

View File

@@ -114,7 +114,8 @@ onMounted(() => {
:style="{
cursor: item.disabled === false ? 'pointer' : 'not-allowed',
color: item.disabled === false ? '' : '#00000040',
background: 'transparent'
background: 'transparent',
border: 'none'
}"
@click="onControl(item, key)"
>

View File

@@ -23,9 +23,9 @@
function h() {
n || ((n = !0), o());
}
(t = function () {
((t = function () {
var c, t, e, o;
((o = document.createElement("div")).innerHTML = i),
(((o = document.createElement("div")).innerHTML = i),
(i = null),
(e = o.getElementsByTagName("svg")[0]) &&
((e.style.position = "absolute"),
@@ -35,13 +35,13 @@
(c = e),
(t = document.body).firstChild
? ((o = c), (e = t.firstChild).parentNode.insertBefore(o, e))
: t.appendChild(c));
: t.appendChild(c)));
}),
document.addEventListener
? ~["complete", "loaded", "interactive"].indexOf(document.readyState)
? setTimeout(t, 0)
: ((e = function () {
document.removeEventListener("DOMContentLoaded", e, !1), t();
(document.removeEventListener("DOMContentLoaded", e, !1), t());
}),
document.addEventListener("DOMContentLoaded", e, !1))
: document.attachEvent &&
@@ -58,5 +58,5 @@
})(),
(a.onreadystatechange = function () {
"complete" == a.readyState && ((a.onreadystatechange = null), h());
}));
})));
})(window);

View File

@@ -158,7 +158,7 @@ watch(
:name="pane.name"
>
<el-scrollbar height="220px">
<ul class="flex flex-wrap px-2 ml-2">
<ul class="flex flex-wrap px-2! ml-2!">
<li
v-for="(item, key) in pageList"
:key="key"
@@ -198,7 +198,7 @@ watch(
@current-change="onCurrentChange"
/>
<el-button
class="justify-end mr-2 ml-2"
class="justify-end mx-2!"
type="danger"
size="small"
text

View File

@@ -49,8 +49,10 @@ export function useRenderIcon(icon: any, attrs?: iconType): Component {
return defineComponent({
name: "Icon",
render() {
const IconifyIcon =
icon && icon.includes(":") ? IconifyIconOnline : IconifyIconOffline;
if (!icon) return;
const IconifyIcon = icon.includes(":")
? IconifyIconOnline
: IconifyIconOffline;
return h(IconifyIcon, {
icon,
...attrs

View File

@@ -54,8 +54,8 @@ const icons = [
// Remix Icon: https://github.com/Remix-Design/RemixIcon
["ri/mind-map", RiMindMap],
["ri/admin-fill", RiAdminFill],
["ri/links-fill", RiTableLine],
["ri/table-line", RiLinksFill],
["ri/table-line", RiTableLine],
["ri/links-fill", RiLinksFill],
["ri/admin-line", RiAdminLine],
["ri/list-check", RiListCheck],
["ri/search-line", RiSearchLine],

View File

@@ -87,9 +87,9 @@ export default defineComponent({
"text-black",
"dark:text-white",
"duration-100",
"hover:!text-primary",
"hover:text-primary!",
"cursor-pointer",
"outline-none"
"outline-hidden"
];
});
@@ -100,7 +100,7 @@ export default defineComponent({
"pt-[3px]",
"px-[11px]",
"border-b-[1px]",
"border-solid",
"border-b-solid",
"border-[#dcdfe6]",
"dark:border-[#303030]"
];
@@ -255,12 +255,12 @@ export default defineComponent({
<div
{...attrs}
class={[
"w-[99/100]",
"w-full",
"px-2",
"pb-2",
"bg-bg_color",
isFullscreen.value
? ["!w-full", "!h-full", "z-[2002]", "fixed", "inset-0"]
? ["h-full!", "z-2002", "fixed", "inset-0"]
: "mt-2"
]}
>
@@ -317,7 +317,7 @@ export default defineComponent({
>
<div class={[topClass.value]}>
<el-checkbox
class="!-mr-1"
class="-mr-1!"
label="列展示"
v-model={checkAll.value}
indeterminate={isIndeterminate.value}
@@ -347,8 +347,8 @@ export default defineComponent({
class={[
"drag-btn w-[16px] mr-2",
isFixedColumn(item)
? "!cursor-no-drop"
: "!cursor-grab"
? "cursor-no-drop!"
: "cursor-grab!"
]}
onMouseenter={(event: {
preventDefault: () => void;

View File

@@ -98,7 +98,6 @@
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
transition: 0.1s;
}
.pure-segmented-group {

View File

@@ -33,10 +33,10 @@
}
l();
}
(t = function () {
((t = function () {
var e,
t = document.createElement("div");
(t.innerHTML = i),
((t.innerHTML = i),
(i = null),
(t = t.getElementsByTagName("svg")[0]) &&
((t.style.position = "absolute"),
@@ -44,13 +44,15 @@
(t.style.height = 0),
(t.style.overflow = "hidden"),
(t = t),
(e = document.body).firstChild ? m(t, e.firstChild) : e.appendChild(t));
(e = document.body).firstChild
? m(t, e.firstChild)
: e.appendChild(t)));
}),
document.addEventListener
? ~["complete", "loaded", "interactive"].indexOf(document.readyState)
? setTimeout(t, 0)
: ((n = function () {
document.removeEventListener("DOMContentLoaded", n, !1), t();
(document.removeEventListener("DOMContentLoaded", n, !1), t());
}),
document.addEventListener("DOMContentLoaded", n, !1))
: document.attachEvent &&
@@ -60,5 +62,5 @@
a(),
(o.onreadystatechange = function () {
"complete" == o.readyState && ((o.onreadystatechange = null), l());
}));
})));
})(window);

View File

@@ -80,9 +80,9 @@ export default defineComponent({
"text-black",
"dark:text-white",
"duration-100",
"hover:!text-primary",
"hover:text-primary!",
"cursor-pointer",
"outline-none"
"outline-hidden"
];
});
@@ -93,7 +93,7 @@ export default defineComponent({
"pt-[3px]",
"px-[11px]",
"border-b-[1px]",
"border-solid",
"border-b-solid",
"border-[#dcdfe6]",
"dark:border-[#303030]"
];
@@ -248,12 +248,12 @@ export default defineComponent({
<div
{...attrs}
class={[
"w-[99/100]",
"w-full",
"px-2",
"pb-2",
"bg-bg_color",
isFullscreen.value
? ["!w-full", "!h-full", "z-[2002]", "fixed", "inset-0"]
? ["h-full!", "z-2002", "fixed", "inset-0"]
: "mt-2"
]}
>
@@ -310,7 +310,7 @@ export default defineComponent({
>
<div class={[topClass.value]}>
<el-checkbox
class="!-mr-1"
class="-mr-1!"
label="列展示"
v-model={checkAll.value}
indeterminate={isIndeterminate.value}
@@ -340,8 +340,8 @@ export default defineComponent({
class={[
"drag-btn w-[16px] mr-2",
isFixedColumn(item)
? "!cursor-no-drop"
: "!cursor-grab"
? "cursor-no-drop!"
: "cursor-grab!"
]}
onMouseenter={(event: {
preventDefault: () => void;

View File

@@ -13,10 +13,10 @@ $ripple-animation-visible-opacity: 0.25 !default;
z-index: 0;
width: 100%;
height: 100%;
contain: strict;
overflow: hidden;
pointer-events: none;
border-radius: inherit;
contain: strict;
}
&__animation {

View File

@@ -8,20 +8,31 @@ const TITLE = getConfig("Title");
<footer
class="layout-footer text-[rgba(0,0,0,0.6)] dark:text-[rgba(220,220,242,0.8)]"
>
Copyright © 2020-present
Copyright © 2020-2025
<a
class="hover:text-primary"
class="hover:text-primary!"
href="https://github.com/pure-admin"
target="_blank"
>
&nbsp;{{ TITLE }}
</a>
<!-- <div class="ml-8">
<span>赞助商</span>
<a
class="hover:text-primary"
href="https://ai-tools.cn/resume/start"
target="_blank"
>
二猫 AI 简历
</a>
</div> -->
</footer>
</template>
<style lang="scss" scoped>
.layout-footer {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
width: 100%;

View File

@@ -33,7 +33,7 @@ const { t, locale, translationCh, translationEn } = useTranslationLang();
</script>
<template>
<div class="navbar bg-[#fff] shadow-sm shadow-[rgba(0,21,41,0.08)]">
<div class="navbar bg-[#fff] shadow-xs shadow-[rgba(0,21,41,0.08)]">
<LaySidebarTopCollapse
v-if="device === 'mobile'"
class="hamburger-container"
@@ -54,13 +54,13 @@ const { t, locale, translationCh, translationEn } = useTranslationLang();
<!-- 国际化 -->
<el-dropdown id="header-translation" trigger="click">
<GlobalizationIcon
class="navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"
class="navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-hidden"
/>
<template #dropdown>
<el-dropdown-menu class="translation">
<el-dropdown-item
:style="getDropdownItemStyle(locale, 'zh')"
:class="['dark:!text-white', getDropdownItemClass(locale, 'zh')]"
:class="['dark:text-white!', getDropdownItemClass(locale, 'zh')]"
@click="translationCh"
>
<IconifyIconOffline
@@ -72,7 +72,7 @@ const { t, locale, translationCh, translationEn } = useTranslationLang();
</el-dropdown-item>
<el-dropdown-item
:style="getDropdownItemStyle(locale, 'en')"
:class="['dark:!text-white', getDropdownItemClass(locale, 'en')]"
:class="['dark:text-white!', getDropdownItemClass(locale, 'en')]"
@click="translationEn"
>
<span v-show="locale === 'en'" class="check-en">

View File

@@ -49,7 +49,7 @@ function hoverDescription(event, description) {
<template>
<div
class="notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"
class="notice-container border-0 border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"
>
<el-avatar
v-if="noticeItem.avatar"

View File

@@ -16,7 +16,7 @@ const iconClass = computed(() => {
"flex",
"justify-center",
"items-center",
"outline-none",
"outline-hidden",
"rounded-[4px]",
"cursor-pointer",
"transition-colors",
@@ -51,7 +51,7 @@ onBeforeUnmount(() => {
<div class="right-panel-background" />
<div ref="target" class="right-panel bg-bg_color">
<div
class="project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"
class="project-configuration border-0 border-b-[1px] border-solid border-[var(--pure-border-color)]"
>
<h4 class="dark:text-white">
{{ t("panel.pureSystemSet") }}
@@ -78,7 +78,7 @@ onBeforeUnmount(() => {
</el-scrollbar>
<div
class="flex justify-end p-3 border-t-[1px] border-solid border-[var(--pure-border-color)]"
class="flex justify-end p-3 border-0 border-t-[1px] border-solid border-[var(--pure-border-color)]"
>
<el-button
v-tippy="{

View File

@@ -6,8 +6,8 @@ import { useRouter } from "vue-router";
import SearchResult from "./SearchResult.vue";
import SearchFooter from "./SearchFooter.vue";
import { useNav } from "@/layout/hooks/useNav";
import { transformI18n } from "@/plugins/i18n";
import SearchHistory from "./SearchHistory.vue";
import { transformI18n, $t } from "@/plugins/i18n";
import type { optionsItem, dragItem } from "../types";
import { ref, computed, shallowRef, watch } from "vue";
import { useDebounceFn, onKeyStroke } from "@vueuse/core";

View File

@@ -20,8 +20,8 @@ import { useDataThemeChange } from "@/layout/hooks/useDataThemeChange";
import { useDark, useGlobal, debounce, isNumber } from "@pureadmin/utils";
import Check from "~icons/ep/check";
import LeftArrow from "~icons/ri/arrow-left-s-line";
import RightArrow from "~icons/ri/arrow-right-s-line";
import LeftArrow from "~icons/ri/arrow-left-s-line?width=20&height=20";
import RightArrow from "~icons/ri/arrow-right-s-line?width=20&height=20";
import DayIcon from "@/assets/svg/day.svg?component";
import DarkIcon from "@/assets/svg/dark.svg?component";
import SystemIcon from "@/assets/svg/system.svg?component";
@@ -189,7 +189,7 @@ const getThemeColor = computed(() => {
});
const pClass = computed(() => {
return ["mb-[12px]", "font-medium", "text-sm", "dark:text-white"];
return ["mb-[12px]!", "font-medium", "text-sm", "dark:text-white"];
});
const themeOptions = computed<Array<OptionsType>>(() => {
@@ -335,7 +335,7 @@ onUnmounted(() => removeMatchMedia);
"
/>
<p :class="['mt-5', pClass]">{{ t("panel.pureThemeColor") }}</p>
<p :class="['mt-5!', pClass]">{{ t("panel.pureThemeColor") }}</p>
<ul class="theme-color">
<li
v-for="(item, index) in themeColors"
@@ -354,7 +354,7 @@ onUnmounted(() => removeMatchMedia);
</li>
</ul>
<p :class="['mt-5', pClass]">{{ t("panel.pureLayoutModel") }}</p>
<p :class="['mt-5!', pClass]">{{ t("panel.pureLayoutModel") }}</p>
<ul class="pure-theme">
<li
ref="verticalRef"
@@ -397,7 +397,7 @@ onUnmounted(() => removeMatchMedia);
</ul>
<span v-if="useAppStoreHook().getViewportWidth > 1280">
<p :class="['mt-5', pClass]">{{ t("panel.pureStretch") }}</p>
<p :class="['mt-5!', pClass]">{{ t("panel.pureStretch") }}</p>
<Segmented
resize
class="mb-2 select-none"
@@ -426,21 +426,19 @@ onUnmounted(() => removeMatchMedia);
>
<IconifyIconOffline
:icon="settings.stretch ? RightArrow : LeftArrow"
height="20"
/>
<div
class="flex-grow border-b border-dashed"
class="grow border-0 border-b border-dashed"
style="border-color: var(--el-color-primary)"
/>
<IconifyIconOffline
:icon="settings.stretch ? LeftArrow : RightArrow"
height="20"
/>
</div>
</button>
</span>
<p :class="['mt-4', pClass]">{{ t("panel.pureTagsStyle") }}</p>
<p :class="['mt-4!', pClass]">{{ t("panel.pureTagsStyle") }}</p>
<Segmented
resize
class="select-none"
@@ -449,7 +447,7 @@ onUnmounted(() => removeMatchMedia);
@change="onChange"
/>
<p class="mt-5 font-medium text-sm dark:text-white">
<p class="mt-5! font-medium text-sm dark:text-white">
{{ t("panel.pureInterfaceDisplay") }}
</p>
<ul class="setting">

View File

@@ -84,13 +84,13 @@ onMounted(() => {
<!-- 国际化 -->
<el-dropdown id="header-translation" trigger="click">
<GlobalizationIcon
class="navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"
class="navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-hidden"
/>
<template #dropdown>
<el-dropdown-menu class="translation">
<el-dropdown-item
:style="getDropdownItemStyle(locale, 'zh')"
:class="['dark:!text-white', getDropdownItemClass(locale, 'zh')]"
:class="['dark:text-white!', getDropdownItemClass(locale, 'zh')]"
@click="translationCh"
>
<span v-show="locale === 'zh'" class="check-zh">
@@ -100,7 +100,7 @@ onMounted(() => {
</el-dropdown-item>
<el-dropdown-item
:style="getDropdownItemStyle(locale, 'en')"
:class="['dark:!text-white', getDropdownItemClass(locale, 'en')]"
:class="['dark:text-white!', getDropdownItemClass(locale, 'en')]"
@click="translationEn"
>
<span v-show="locale === 'en'" class="check-en">

View File

@@ -105,13 +105,13 @@ watch(
<!-- 国际化 -->
<el-dropdown id="header-translation" trigger="click">
<GlobalizationIcon
class="navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"
class="navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-hidden"
/>
<template #dropdown>
<el-dropdown-menu class="translation">
<el-dropdown-item
:style="getDropdownItemStyle(locale, 'zh')"
:class="['dark:!text-white', getDropdownItemClass(locale, 'zh')]"
:class="['dark:text-white!', getDropdownItemClass(locale, 'zh')]"
@click="translationCh"
>
<span v-show="locale === 'zh'" class="check-zh">
@@ -121,7 +121,7 @@ watch(
</el-dropdown-item>
<el-dropdown-item
:style="getDropdownItemStyle(locale, 'en')"
:class="['dark:!text-white', getDropdownItemClass(locale, 'en')]"
:class="['dark:text-white!', getDropdownItemClass(locale, 'en')]"
@click="translationEn"
>
<span v-show="locale === 'en'" class="check-en">

View File

@@ -105,12 +105,12 @@ watch(
</script>
<template>
<el-breadcrumb class="!leading-[50px] select-none" separator="/">
<el-breadcrumb class="leading-[50px]! select-none" separator="/">
<transition-group name="breadcrumb">
<el-breadcrumb-item
v-for="item in levelList"
:key="item.path"
class="!inline !items-stretch"
class="inline! items-stretch!"
>
<a @click.prevent="handleLink(item)">
{{ transformI18n(item.meta.title) }}

View File

@@ -61,6 +61,21 @@ const getSubMenuIconStyle = computed((): CSSProperties => {
};
});
const textClass = computed(() => {
const item = props.item;
const baseClass = "w-full! text-inherit!";
if (
layout.value !== "horizontal" &&
isCollapse.value &&
!toRaw(item.meta.icon) &&
((layout.value === "vertical" && item.parentId === null) ||
(layout.value === "mix" && item.pathList.length === 2))
) {
return `${baseClass} min-w-[54px]! text-center! px-3!`;
}
return baseClass;
});
const expandCloseIcon = computed(() => {
if (!getConfig()?.MenuArrowIconNoTransition) return "";
return {
@@ -144,7 +159,7 @@ function resolvePath(routePath) {
item?.pathList?.length === 2)
"
truncated
class="!w-full !pl-4 !text-inherit"
class="w-full! px-3! min-w-[54px]! text-center! text-inherit!"
>
{{ transformI18n(onlyOneChild.meta.title) }}
</el-text>
@@ -156,7 +171,7 @@ function resolvePath(routePath) {
offset: [0, -10],
theme: tooltipEffect
}"
class="!w-full !text-inherit"
class="w-full! text-inherit!"
>
{{ transformI18n(onlyOneChild.meta.title) }}
</ReText>
@@ -195,15 +210,7 @@ function resolvePath(routePath) {
offset: [0, -10],
theme: tooltipEffect
}"
:class="{
'!w-full': true,
'!text-inherit': true,
'!pl-4':
layout !== 'horizontal' &&
isCollapse &&
!toRaw(item.meta.icon) &&
item.parentId === null
}"
:class="textClass"
>
{{ transformI18n(item.meta.title) }}
</ReText>

View File

@@ -23,7 +23,7 @@ const iconClass = computed(() => {
"mb-1",
"w-[16px]",
"h-[16px]",
"inline-block",
"inline-block!",
"align-middle",
"cursor-pointer",
"duration-[100ms]"

View File

@@ -32,7 +32,7 @@ const toggleClick = () => {
>
<IconifyIconOffline
:icon="isActive ? MenuFold : MenuUnfold"
class="inline-block align-middle hover:text-primary dark:hover:!text-white"
class="inline-block! align-middle hover:text-primary dark:hover:text-white!"
/>
</div>
</template>

View File

@@ -1,6 +1,7 @@
<script setup lang="ts">
import { $t } from "@/plugins/i18n";
import { emitter } from "@/utils/mitt";
import NProgress from "@/utils/progress";
import { RouteConfigs } from "../../types";
import { useTags } from "../../hooks/useTag";
import { routerArrays } from "@/layout/types";
@@ -206,12 +207,14 @@ function dynamicRouteTag(value: string): void {
/** 刷新路由 */
function onFresh() {
NProgress.start();
const { fullPath, query } = unref(route);
router.replace({
path: "/redirect" + fullPath,
query
});
handleAliveRoute(route as ToRouteType, "refresh");
NProgress.done();
}
function deleteDynamicTag(obj: any, current: any, tag?: string) {
@@ -254,7 +257,7 @@ function deleteDynamicTag(obj: any, current: any, tag?: string) {
if (tag === "other") {
spliceRoute(1, 1, true);
} else if (tag === "left") {
spliceRoute(fixedTags.length, valueIndex - 1, true);
spliceRoute(fixedTags.length, valueIndex - fixedTags.length);
} else if (tag === "right") {
spliceRoute(valueIndex + 1, multiTags.value.length);
} else {
@@ -353,7 +356,7 @@ function onClickDrop(key, item, selectRoute?: RouteConfigs) {
break;
}
setTimeout(() => {
showMenuModel(route.fullPath, route.query);
showMenuModel(route.fullPath, route.query, route.params);
});
}
@@ -388,15 +391,18 @@ function disabledMenus(value: boolean, fixedTag = false) {
function showMenuModel(
currentPath: string,
query: object = {},
params: object = {},
refresh = false
) {
const allRoute = multiTags.value;
const routeLength = multiTags.value.length;
let currentIndex = -1;
if (isAllEmpty(query)) {
currentIndex = allRoute.findIndex(v => v.path === currentPath);
} else {
if (!isAllEmpty(params)) {
currentIndex = allRoute.findIndex(v => isEqual(v.params, params));
} else if (!isAllEmpty(query)) {
currentIndex = allRoute.findIndex(v => isEqual(v.query, query));
} else {
currentIndex = allRoute.findIndex(v => v.path === currentPath);
}
function fixedTagDisabled() {
if (allRoute[currentIndex]?.meta?.fixedTag) {
@@ -462,14 +468,14 @@ function openMenu(tag, e) {
} else if (route.path !== tag.path && route.name !== tag.name) {
// 右键菜单不匹配当前路由,隐藏刷新
tagsViews[0].show = false;
showMenuModel(tag.path, tag.query);
showMenuModel(tag.path, tag.query, tag.params);
} else if (multiTags.value.length === 2 && route.path !== tag.path) {
showMenus(true);
// 只有两个标签时不显示关闭其他标签页
tagsViews[4].show = false;
} else if (route.path === tag.path) {
// 右键当前激活的菜单
showMenuModel(tag.path, tag.query, true);
showMenuModel(tag.path, tag.query, tag.params);
} else {
showMenuModel(tag.path, tag.query, tag.params, true);
}
currentSelect.value = tag;
@@ -589,7 +595,7 @@ onBeforeUnmount(() => {
>
<template v-if="showModel !== 'chrome'">
<span
class="tag-title dark:!text-text_color_primary dark:hover:!text-primary"
class="tag-title dark:text-text_color_primary! dark:hover:text-primary!"
>
{{ transformI18n(item.meta.title) }}
</span>

View File

@@ -19,13 +19,22 @@ const loading = ref(true);
const currentRoute = useRoute();
const frameSrc = ref<string>("");
const frameRef = ref<HTMLElement | null>(null);
const fallbackTimer = ref<number | null>(null);
if (unref(currentRoute.meta)?.frameSrc) {
frameSrc.value = unref(currentRoute.meta)?.frameSrc as string;
}
unref(currentRoute.meta)?.frameLoading === false && hideLoading();
function clearFallbackTimer() {
if (fallbackTimer.value !== null) {
clearTimeout(fallbackTimer.value);
fallbackTimer.value = null;
}
}
function hideLoading() {
loading.value = false;
clearFallbackTimer();
}
function init() {
@@ -34,32 +43,42 @@ function init() {
if (!iframe) return;
const _frame = iframe as any;
if (_frame.attachEvent) {
_frame.attachEvent("onload", () => {
hideLoading();
});
_frame.attachEvent("onload", hideLoading);
} else {
iframe.onload = () => {
hideLoading();
};
iframe.onload = hideLoading;
}
});
}
let isRedirect = false;
watch(
() => currentRoute.fullPath,
path => {
if (
currentRoute.name === "Redirect" &&
path.includes(props.frameInfo?.fullPath)
props.frameInfo?.fullPath &&
path.includes(props.frameInfo.fullPath)
) {
frameSrc.value = path; // redirect时置换成任意值待重定向后 重新赋值
isRedirect = true;
loading.value = true;
return;
}
// 重新赋值
if (props.frameInfo?.fullPath === path) {
frameSrc.value = props.frameInfo?.frameSrc;
if (props.frameInfo?.fullPath === path && isRedirect) {
loading.value = true;
clearFallbackTimer();
const url = new URL(props.frameInfo.frameSrc, window.location.origin);
const joinChar = url.search ? "&" : "?";
frameSrc.value = `${props.frameInfo.frameSrc}${joinChar}t=${Date.now()}`;
fallbackTimer.value = window.setTimeout(() => {
if (loading.value) {
hideLoading();
}
}, 1500);
isRedirect = false;
}
},
{ immediate: true }
);
onMounted(() => {

View File

@@ -64,7 +64,7 @@ export function useNav() {
const getDropdownItemClass = computed(() => {
return (locale, t) => {
return locale === t ? "" : "dark:hover:!text-primary";
return locale === t ? "" : "dark:hover:text-primary!";
};
});

View File

@@ -114,14 +114,21 @@ export function useTags() {
]);
function conditionHandle(item, previous, next) {
const currentName = route.name || "";
const itemName = item.name || "";
if (isBoolean(route?.meta?.showLink) && route?.meta?.showLink === false) {
if (Object.keys(route.query).length > 0) {
return isEqual(route.query, item.query) ? previous : next;
return currentName === itemName && isEqual(route.query, item.query)
? previous
: next;
} else {
return isEqual(route.params, item.params) ? previous : next;
return currentName === itemName && isEqual(route.params, item.params)
? previous
: next;
}
} else {
return route.path === item.path ? previous : next;
return currentName === itemName ? previous : next;
}
}

View File

@@ -6,6 +6,7 @@ export const routerArrays: Array<RouteConfigs> =
? [
{
path: "/welcome",
name: "Welcome",
meta: {
title: "menus.pureHome",
icon: "ep/home-filled"

View File

@@ -7,7 +7,13 @@ import { buildHierarchyTree } from "@/utils/tree";
import remainingRouter from "./modules/remaining";
import { useMultiTagsStoreHook } from "@/store/modules/multiTags";
import { usePermissionStoreHook } from "@/store/modules/permission";
import { isUrl, openLink, storageLocal, isAllEmpty } from "@pureadmin/utils";
import {
isUrl,
openLink,
cloneDeep,
isAllEmpty,
storageLocal
} from "@pureadmin/utils";
import {
ascending,
getTopMenu,
@@ -21,9 +27,9 @@ import {
} from "./utils";
import {
type Router,
createRouter,
type RouteRecordRaw,
type RouteComponent
type RouteComponent,
createRouter
} from "vue-router";
import {
type DataInfo,
@@ -55,6 +61,9 @@ export const constantRoutes: Array<RouteRecordRaw> = formatTwoStageRoutes(
formatFlatteningRoutes(buildHierarchyTree(ascending(routes.flat(Infinity))))
);
/** 初始的静态路由,用于退出登录时重置路由 */
const initConstantRoutes: Array<RouteRecordRaw> = cloneDeep(constantRoutes);
/** 用于渲染菜单,保持原始层级 */
export const constantMenus: Array<RouteComponent> = ascending(
routes.flat(Infinity)
@@ -85,20 +94,25 @@ export const router: Router = createRouter({
}
});
/** 记录已经加载的页面路径 */
const loadedPaths = new Set<string>();
/** 重置已加载页面记录 */
export function resetLoadedPaths() {
loadedPaths.clear();
}
/** 重置路由 */
export function resetRouter() {
router.getRoutes().forEach(route => {
const { name, meta } = route;
if (name && router.hasRoute(name) && meta?.backstage) {
router.removeRoute(name);
router.options.routes = formatTwoStageRoutes(
formatFlatteningRoutes(
buildHierarchyTree(ascending(routes.flat(Infinity)))
)
);
router.clearRoutes();
for (const route of initConstantRoutes.concat(...(remainingRouter as any))) {
router.addRoute(route);
}
});
router.options.routes = formatTwoStageRoutes(
formatFlatteningRoutes(buildHierarchyTree(ascending(routes.flat(Infinity))))
);
usePermissionStoreHook().clearAllCachePage();
resetLoadedPaths();
}
/** 路由白名单 */
@@ -107,6 +121,12 @@ const whiteList = ["/login"];
const { VITE_HIDE_HOME } = import.meta.env;
router.beforeEach((to: ToRouteType, _from, next) => {
to.meta.loaded = loadedPaths.has(to.path);
if (!to.meta.loaded) {
NProgress.start();
}
if (to.meta?.keepAlive) {
handleAliveRoute(to, "add");
// 页面整体刷新和点击标签页刷新
@@ -115,7 +135,6 @@ router.beforeEach((to: ToRouteType, _from, next) => {
}
}
const userInfo = storageLocal().getItem<DataInfo<number>>(userKey);
NProgress.start();
const externalLink = isUrl(to?.name as string);
if (!externalLink) {
to.matched.some(item => {
@@ -201,7 +220,8 @@ router.beforeEach((to: ToRouteType, _from, next) => {
}
});
router.afterEach(() => {
router.afterEach(to => {
loadedPaths.add(to.path);
NProgress.done();
});

View File

@@ -16,7 +16,7 @@ export default {
name: "403",
component: () => import("@/views/error/403.vue"),
meta: {
title: $t("menus.pureFourZeroOne")
title: $t("menus.pureAccessDenied")
}
},
{
@@ -24,7 +24,7 @@ export default {
name: "404",
component: () => import("@/views/error/404.vue"),
meta: {
title: $t("menus.pureFourZeroFour")
title: $t("menus.purePageNotFound")
}
},
{
@@ -32,7 +32,7 @@ export default {
name: "500",
component: () => import("@/views/error/500.vue"),
meta: {
title: $t("menus.pureFive")
title: $t("menus.pureServerError")
}
}
]

View File

@@ -8,8 +8,27 @@ export default [
component: () => import("@/views/login/index.vue"),
meta: {
title: $t("menus.pureLogin"),
showLink: false,
rank: 101
showLink: false
}
},
// 全屏403无权访问页面
{
path: "/access-denied",
name: "AccessDenied",
component: () => import("@/views/error/403.vue"),
meta: {
title: $t("menus.pureAccessDenied"),
showLink: false
}
},
// 全屏500服务器出错页面
{
path: "/server-error",
name: "ServerError",
component: () => import("@/views/error/500.vue"),
meta: {
title: $t("menus.pureServerError"),
showLink: false
}
},
{
@@ -17,8 +36,7 @@ export default [
component: Layout,
meta: {
title: $t("status.pureLoad"),
showLink: false,
rank: 102
showLink: false
},
children: [
{
@@ -28,6 +46,15 @@ export default [
}
]
},
{
path: "/account-settings",
name: "AccountSettings",
component: () => import("@/views/account-settings/index.vue"),
meta: {
title: $t("buttons.pureAccountSettings"),
showLink: false
}
},
// 下面是一个无layout菜单的例子一个全屏空白页面因为这种情况极少发生所以只需要在前端配置即可配置路径src/router/modules/remaining.ts
{
path: "/empty",
@@ -35,18 +62,7 @@ export default [
component: () => import("@/views/empty/index.vue"),
meta: {
title: $t("menus.pureEmpty"),
showLink: false,
rank: 103
}
},
{
path: "/account-settings",
name: "AccountSettings",
component: () => import("@/views/account-settings/index.vue"),
meta: {
title: $t("buttons.pureAccountSettings"),
showLink: false,
rank: 104
showLink: false
}
}
] satisfies Array<RouteConfigsTable>;

View File

@@ -139,12 +139,17 @@ function findRouteByPath(path: string, routes: RouteRecordRaw[]) {
}
}
/** 动态路由注册完成后再添加全屏404页面不存在页面避免刷新动态路由页面时误跳转到404页面 */
function addPathMatch() {
if (!router.hasRoute("pathMatch")) {
router.addRoute({
path: "/:pathMatch(.*)",
name: "pathMatch",
redirect: "/error/404"
path: "/:pathMatch(.*)*",
name: "PageNotFound",
component: () => import("@/views/error/404.vue"),
meta: {
title: "menus.purePageNotFound",
showLink: false
}
});
}
}
@@ -172,6 +177,8 @@ function handleAsyncRoutes(routeList) {
const flattenRouters: any = router
.getRoutes()
.find(n => n.path === "/");
// 保持router.options.routes[0].children与path为"/"的children一致防止数据不一致导致异常
flattenRouters.children = router.options.routes[0].children;
router.addRoute(flattenRouters);
}
}

View File

@@ -80,22 +80,15 @@ export const useMultiTagsStore = defineStore("pure-multiTags", {
if (isBoolean(tagVal?.meta?.showLink) && !tagVal?.meta?.showLink)
return;
const tagPath = tagVal.path;
// 判断tag是否已存在
const tagHasExits = this.multiTags.some(tag => {
return tag.path === tagPath;
return (
tag.path === tagPath &&
isEqual(tag?.query, tagVal?.query) &&
isEqual(tag?.params, tagVal?.params)
);
});
// 判断tag中的query键值是否相等
const tagQueryHasExits = this.multiTags.some(tag => {
return isEqual(tag?.query, tagVal?.query);
});
// 判断tag中的params键值是否相等
const tagParamsHasExits = this.multiTags.some(tag => {
return isEqual(tag?.params, tagVal?.params);
});
if (tagHasExits && tagQueryHasExits && tagParamsHasExits) return;
if (tagHasExits) return;
// 动态路由可打开的最大数量
const dynamicLevel = tagVal?.meta?.dynamicLevel ?? -1;

View File

@@ -2,7 +2,6 @@ import { defineStore } from "pinia";
import {
type cacheType,
store,
debounce,
ascending,
getKeyList,
filterTree,
@@ -33,21 +32,8 @@ export const usePermissionStore = defineStore("pure-permission", {
this.constantMenus.concat(routes) as any
);
},
cacheOperate({ mode, name }: cacheType) {
const delIndex = this.cachePageList.findIndex(v => v === name);
switch (mode) {
case "refresh":
this.cachePageList = this.cachePageList.filter(v => v !== name);
break;
case "add":
this.cachePageList.push(name);
break;
case "delete":
delIndex !== -1 && this.cachePageList.splice(delIndex, 1);
break;
}
/** 监听缓存页面是否存在于标签页,不存在则删除 */
debounce(() => {
clearCache() {
let cacheLength = this.cachePageList.length;
const nameList = getKeyList(useMultiTagsStoreHook().multiTags, "name");
while (cacheLength > 0) {
@@ -59,7 +45,22 @@ export const usePermissionStore = defineStore("pure-permission", {
);
cacheLength--;
}
})();
},
cacheOperate({ mode, name }: cacheType) {
const delIndex = this.cachePageList.findIndex(v => v === name);
switch (mode) {
case "refresh":
this.cachePageList = this.cachePageList.filter(v => v !== name);
this.clearCache();
break;
case "add":
this.cachePageList.push(name);
break;
case "delete":
delIndex !== -1 && this.cachePageList.splice(delIndex, 1);
this.clearCache();
break;
}
},
/** 清空缓存页面 */
clearAllCachePage() {

View File

@@ -1,12 +1,3 @@
*,
::before,
::after {
box-sizing: border-box;
border-color: currentColor;
border-style: solid;
border-width: 0;
}
#app {
width: 100%;
height: 100%;

View File

@@ -172,10 +172,6 @@
.is-active > .el-sub-menu__title,
.is-active.submenu-title-noDropdown {
color: var(--pure-theme-sub-menu-active-text) !important;
i {
color: var(--pure-theme-sub-menu-active-text) !important;
}
}
.is-active {
@@ -235,6 +231,7 @@
.is-active.submenu-title-noDropdown.outer-most > * {
z-index: 1;
color: #fff;
background: transparent !important;
}
.is-active.submenu-title-noDropdown.outer-most::before {
@@ -270,10 +267,6 @@
.is-active > .el-sub-menu__title,
.is-active.submenu-title-noDropdown {
color: var(--pure-theme-sub-menu-active-text) !important;
i {
color: var(--pure-theme-sub-menu-active-text) !important;
}
}
/* 子菜单中还有子菜单 */
@@ -374,10 +367,6 @@
.is-active > .el-sub-menu__title,
.is-active.submenu-title-noDropdown {
color: var(--pure-theme-sub-menu-active-text) !important;
i {
color: var(--pure-theme-sub-menu-active-text) !important;
}
}
.nest-menu .el-sub-menu > .el-sub-menu__title,
@@ -541,10 +530,6 @@
.is-active > .el-sub-menu__title,
.is-active.submenu-title-noDropdown {
color: var(--pure-theme-sub-menu-active-text) !important;
i {
color: var(--pure-theme-sub-menu-active-text) !important;
}
}
.is-active {
@@ -666,6 +651,10 @@ body[layout="horizontal"] {
@include merge-style($sideBarWidth);
.el-menu {
--el-menu-hover-text-color: var(--pure-theme-menu-text) !important;
}
.fixed-header,
.main-container {
transition: none !important;
@@ -687,6 +676,7 @@ body[layout="mix"] {
.el-menu {
--el-menu-hover-bg-color: transparent !important;
--el-menu-hover-text-color: var(--pure-theme-menu-text) !important;
}
.hideSidebar {

View File

@@ -1,21 +1,46 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer theme, base, components, utilities;
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/utilities.css" layer(utilities);
@layer components {
.flex-c {
@custom-variant dark (&:is(.dark *));
@theme {
--color-bg_color: var(--el-bg-color);
--color-primary: var(--el-color-primary);
--color-text_color_primary: var(--el-text-color-primary);
--color-text_color_regular: var(--el-text-color-regular);
}
/*
The default border color has changed to `currentColor` in Tailwind CSS v4,
so we've added these compatibility styles to make sure everything still
looks the same as it did with Tailwind CSS v3.
If we ever want to remove these styles, we need to add an explicit border
color utility to any element that depends on these defaults.
*/
@layer base {
*,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-gray-200, currentColor);
}
}
@utility flex-c {
@apply flex justify-center items-center;
}
.flex-ac {
@utility flex-ac {
@apply flex justify-around items-center;
}
.flex-bc {
@utility flex-bc {
@apply flex justify-between items-center;
}
.navbar-bg-hover {
@apply dark:text-white dark:hover:!bg-[#242424];
}
@utility navbar-bg-hover {
@apply dark:text-white dark:hover:bg-[#242424]!;
}

View File

@@ -10,7 +10,6 @@ import type {
PureHttpRequestConfig
} from "./types.d";
import { stringify } from "qs";
import NProgress from "../progress";
import { getToken, formatToken } from "@/utils/auth";
import { useUserStoreHook } from "@/store/modules/user";
@@ -61,8 +60,6 @@ class PureHttp {
private httpInterceptorsRequest(): void {
PureHttp.axiosInstance.interceptors.request.use(
async (config: PureHttpRequestConfig): Promise<any> => {
// 开启进度条动画
NProgress.start();
// 优先判断post/get等方法是否传入回调否则执行初始化设置等回调
if (typeof config.beforeRequestCallback === "function") {
config.beforeRequestCallback(config);
@@ -121,8 +118,6 @@ class PureHttp {
instance.interceptors.response.use(
(response: PureHttpResponse) => {
const $config = response.config;
// 关闭进度条动画
NProgress.done();
// 优先判断post/get等方法是否传入回调否则执行初始化设置等回调
if (typeof $config.beforeResponseCallback === "function") {
$config.beforeResponseCallback(response);
@@ -137,8 +132,6 @@ class PureHttp {
(error: PureHttpError) => {
const $error = error;
$error.isCancelRequest = Axios.isCancel($error);
// 关闭进度条动画
NProgress.done();
// 所有的响应异常 区分来源为取消请求/非取消请求
return Promise.reject($error);
}

View File

@@ -8,6 +8,8 @@ type messageTypes = "info" | "success" | "warning" | "error";
interface MessageParams {
/** 消息类型,可选 `info` 、`success` 、`warning` 、`error` ,默认 `info` */
type?: messageTypes;
/** 是否纯色,默认 `false` */
plain?: boolean;
/** 自定义图标,该属性会覆盖 `type` 的图标 */
icon?: any;
/** 是否将 `message` 属性作为 `HTML` 片段处理,默认 `false` */
@@ -18,14 +20,14 @@ interface MessageParams {
duration?: number;
/** 是否显示关闭按钮,默认值 `false` */
showClose?: boolean;
/** 文字是否居中,默认 `false` */
center?: boolean;
/** `Message` 距离窗口顶部的偏移量,默认 `20` */
/** `Message` 距离窗口顶部的偏移量,默认 `16` */
offset?: number;
/** 设置组件的根元素,默认 `document.body` */
appendTo?: string | HTMLElement;
/** 合并内容相同的消息,不支持 `VNode` 类型的消息,默认值 `false` */
grouping?: boolean;
/** 重复次数,类似于 `Badge` 。当和 `grouping` 属性一起使用时作为初始数量使用,默认值 `1` */
repeatNum?: number;
/** 关闭时的回调函数, 参数为被关闭的 `message` 实例 */
onClose?: Function | null;
}
@@ -48,28 +50,30 @@ const message = (
const {
icon,
type = "info",
plain = false,
dangerouslyUseHTMLString = false,
customClass = "antd",
duration = 2000,
showClose = false,
center = false,
offset = 20,
offset = 16,
appendTo = document.body,
grouping = false,
repeatNum = 1,
onClose
} = params;
return ElMessage({
message,
type,
icon,
type,
plain,
dangerouslyUseHTMLString,
duration,
showClose,
center,
offset,
appendTo,
grouping,
repeatNum,
// 全局搜 pure-message 即可知道该类的样式位置
customClass: customClass === "antd" ? "pure-message" : "",
onClose: () => (isFunction(onClose) ? onClose() : null)

View File

@@ -76,7 +76,7 @@ function onReset() {
immediate: true,
timeout: 1000
}"
class="!w-[200px]"
class="w-[200px]!"
clearable
@clear="onInput"
/>
@@ -86,7 +86,7 @@ function onReset() {
<el-input
v-model="searchTwo"
v-optimize="{ event: 'input', fn: onInputTwo, timeout: 400 }"
class="!w-[200px]"
class="w-[200px]!"
clearable
/>
</div>
@@ -100,7 +100,7 @@ function onReset() {
timeout: 400,
params: { name: '小明', sex: '男' }
}"
class="!w-[200px]"
class="w-[200px]!"
clearable
/>
</div>
@@ -112,7 +112,7 @@ function onReset() {
<el-input
v-model="searchFour"
v-optimize:throttle="{ event: 'input', fn: onInputFour, timeout: 1000 }"
class="!w-[200px]"
class="w-[200px]!"
clearable
/>
</div>
@@ -125,7 +125,7 @@ function onReset() {
fn: onInputFive,
params: { name: '小明', sex: '男' }
}"
class="!w-[200px]"
class="w-[200px]!"
clearable
/>
</div>
@@ -134,7 +134,7 @@ function onReset() {
<div class="mb-2">
文本复制指令(双击输入框内容即可复制)
<el-input v-model="searchSix" v-copy="searchSix" class="!w-[200px]" />
<el-input v-model="searchSix" v-copy="searchSix" class="w-[200px]!" />
</div>
<div>
文本复制指令(自定义触发事件,单击复制)

View File

@@ -51,7 +51,9 @@ const load = () => {
代码位置 src/views/able/infinite-scroll.vue
</el-link>
</template>
<p class="mb-2">{{ isBottom ? "已加载全部页" : `加载到第 ${page}` }}</p>
<div class="mb-2">
{{ isBottom ? "已加载全部页" : `加载到第 ${page}` }}
</div>
<el-table
v-el-table-infinite-scroll="load"
border

View File

@@ -194,7 +194,7 @@ onUnmounted(() => {
基于
<el-link
type="primary"
:underline="false"
underline="never"
href="https://github.com/mqttjs/MQTT.js"
target="_blank"
>
@@ -203,7 +203,7 @@ onUnmounted(() => {
免费的公共MQTT代理
<el-link
type="primary"
:underline="false"
underline="never"
href="broker.emqx.io"
target="_blank"
>

View File

@@ -21,8 +21,8 @@ defineOptions({
</div>
</template>
<p v-html="html('带 音 调')" />
<p class="mt-2" v-html="html('不 带 音 调', { toneType: 'none' })" />
<p class="mt-2 custom" v-html="html('自 定 义 样 式')" />
<p class="mt-2!" v-html="html('不 带 音 调', { toneType: 'none' })" />
<p class="mt-2! custom" v-html="html('自 定 义 样 式')" />
</el-card>
</template>

View File

@@ -83,7 +83,7 @@ const tableData: User[] = [
<span class="font-medium">打印功能报表图表图片</span>
<el-select
v-model="value"
class="!w-[100px] mr-2"
class="w-[100px]! mr-2"
placeholder="Select"
size="small"
>

View File

@@ -45,6 +45,6 @@ function onInput() {
</el-tag>
</div>
<el-input v-model="modelValue" @input="onInput" />
<p class="mt-2">{{ modelValue }}</p>
<p class="mt-2!">{{ modelValue }}</p>
</el-card>
</template>

View File

@@ -53,7 +53,7 @@ onBeforeUnmount(() => {
代码位置 src/views/able/watermark.vue
</el-link>
</template>
<el-space wrap class="!mb-2">
<el-space wrap class="mb-2!">
<span> 请输入要创建水印的值</span>
<el-input v-model="value" class="mr-4" style="width: 200px" clearable />
<span>请选择要创建水印的颜色</span>

View File

@@ -103,13 +103,13 @@ onBeforeUnmount(() => {
</template>
<div
v-loading="loading"
class="w-8/12 !m-auto !mt-[20px]"
class="w-8/12 m-auto! mt-[20px]!"
element-loading-background="transparent"
>
<div ref="wavesurferRef" />
<div v-show="totalTime" class="flex justify-between">
<span class="text-[#81888f]">00:00</span>
<h1 class="text-4xl mt-2">{{ curTime }}</h1>
<h1 class="text-4xl mt-2!">{{ curTime }}</h1>
<span class="text-[#81888f]">{{ totalTime }}</span>
</div>
<div v-show="totalTime" class="flex mt-2 w-[180px] justify-around m-auto">

View File

@@ -7,7 +7,7 @@ export function useColumns() {
minWidth: 100,
cellRenderer: () => {
return (
<el-tag size="large" class="!text-base">
<el-tag size="large" class="text-base!">
{version}
</el-tag>
);
@@ -18,7 +18,7 @@ export function useColumns() {
minWidth: 120,
cellRenderer: () => {
return (
<el-tag size="large" class="!text-base">
<el-tag size="large" class="text-base!">
{lastBuildTime}
</el-tag>
);
@@ -29,7 +29,7 @@ export function useColumns() {
minWidth: 140,
cellRenderer: () => {
return (
<el-tag size="large" class="!text-base">
<el-tag size="large" class="text-base!">
{engines.node}
</el-tag>
);
@@ -40,7 +40,7 @@ export function useColumns() {
minWidth: 140,
cellRenderer: () => {
return (
<el-tag size="large" class="!text-base">
<el-tag size="large" class="text-base!">
{engines.pnpm}
</el-tag>
);

View File

@@ -43,7 +43,7 @@ function onClick(item) {
deviceDetection() ? 'max-w-[100%]' : 'max-w-[70%]'
]"
>
<h3 class="my-8">账户管理</h3>
<h3 class="my-8!">账户管理</h3>
<div v-for="(item, index) in list" :key="index">
<div class="flex items-center">
<div class="flex-1">

View File

@@ -38,7 +38,7 @@ function onChange(val, item) {
deviceDetection() ? 'max-w-[100%]' : 'max-w-[70%]'
]"
>
<h3 class="my-8">偏好设置</h3>
<h3 class="my-8!">偏好设置</h3>
<div v-for="(item, index) in list" :key="index">
<div class="flex items-center">
<div class="flex-1">

View File

@@ -110,7 +110,7 @@ getMine().then(res => {
deviceDetection() ? 'max-w-[100%]' : 'max-w-[70%]'
]"
>
<h3 class="my-8">个人信息</h3>
<h3 class="my-8!">个人信息</h3>
<el-form
ref="userInfoFormRef"
label-position="top"
@@ -128,7 +128,7 @@ getMine().then(res => {
:show-file-list="false"
:on-change="onChange"
>
<el-button plain class="ml-4">
<el-button plain class="ml-4!">
<IconifyIconOffline :icon="uploadLine" />
<span class="ml-2">更新头像</span>
</el-button>

View File

@@ -78,7 +78,7 @@ onMounted(() => {
deviceDetection() ? 'max-w-[100%]' : 'max-w-[70%]'
]"
>
<h3 class="my-8">安全日志</h3>
<h3 class="my-8!">安全日志</h3>
<pure-table
row-key="id"
table-layout="auto"

View File

@@ -70,26 +70,28 @@ getMine().then(res => {
<el-container class="h-full">
<el-aside
v-if="isOpen"
class="pure-account-settings overflow-hidden px-2 dark:!bg-[var(--el-bg-color)] border-r-[1px] border-[var(--pure-border-color)]"
class="pure-account-settings overflow-hidden px-2 dark:bg-(--el-bg-color)! border-r-[1px] border-[var(--pure-border-color)]"
:width="deviceDetection() ? '180px' : '240px'"
>
<el-menu :default-active="witchPane" class="pure-account-settings-menu">
<el-menu-item
class="hover:!transition-all hover:!duration-200 hover:!text-base !h-[50px]"
<div
class="h-[50px]! text-[var(--pure-theme-menu-text)] cursor-pointer text-sm transition-all duration-300 ease-in-out hover:scale-105 will-change-transform transform-gpu origin-center hover:text-base! hover:text-[var(--pure-theme-menu-title-hover)]!"
@click="router.go(-1)"
>
<div class="flex items-center">
<div
class="h-full flex items-center px-[var(--el-menu-base-level-padding)]"
>
<IconifyIconOffline :icon="leftLine" />
<span class="ml-2">返回</span>
</div>
</el-menu-item>
</div>
<div class="flex items-center ml-8 mt-4 mb-4">
<el-avatar :size="48" :src="userInfo.avatar" />
<div class="ml-4 flex flex-col max-w-[130px]">
<ReText class="font-bold !self-baseline">
<ReText class="font-bold self-baseline!">
{{ userInfo.nickname }}
</ReText>
<ReText class="!self-baseline" type="info">
<ReText class="self-baseline!" type="info">
{{ userInfo.username }}
</ReText>
</div>

View File

@@ -36,6 +36,6 @@ watch(animate, () => {
代码位置 src/views/components/animatecss.vue
</el-link>
</template>
<ReAnimateSelector v-model="animate" class="!w-[200px]" />
<ReAnimateSelector v-model="animate" class="w-[200px]!" />
</el-card>
</template>

View File

@@ -109,7 +109,7 @@ watch(size, val =>
代码位置 src/views/components/check-button.vue
</el-link>
</template>
<p class="mb-2">单选紧凑风格的按钮样式</p>
<div class="mb-2">单选紧凑风格的按钮样式</div>
<el-radio-group
v-model="radio"
:size="dynamicSize"
@@ -121,7 +121,7 @@ watch(size, val =>
</el-radio-group>
<el-divider />
<p class="mb-2">单选带有边框</p>
<div class="mb-2">单选带有边框</div>
<el-radio-group
v-model="radioBox"
:size="dynamicSize"
@@ -133,7 +133,7 @@ watch(size, val =>
</el-radio-group>
<el-divider />
<p class="mb-2">单选自定义内容</p>
<div class="mb-2">单选自定义内容</div>
<el-radio-group
v-model="radioCustom"
:size="dynamicSize"
@@ -160,7 +160,7 @@ watch(size, val =>
</el-radio-group>
<el-divider />
<p class="mb-2">多选紧凑风格的按钮样式</p>
<div class="mb-2">多选紧凑风格的按钮样式</div>
<el-checkbox-group
v-model="checkboxGroup"
:size="dynamicSize"
@@ -172,7 +172,7 @@ watch(size, val =>
</el-checkbox-group>
<el-divider />
<p class="mb-2">多选带有边框</p>
<div class="mb-2">多选带有边框</div>
<el-checkbox-group
v-model="checkboxGroupBox"
:size="dynamicSize"
@@ -184,7 +184,7 @@ watch(size, val =>
</el-checkbox-group>
<el-divider />
<p class="mb-2">多选来点不一样的体验</p>
<div class="mb-2">多选来点不一样的体验</div>
<el-checkbox-group
v-model="checkboxGroupCustom"
class="pure-checkbox"
@@ -218,14 +218,14 @@ watch(size, val =>
</el-checkbox-group>
<el-divider />
<p>可控制间距的按钮样式</p>
<div>可控制间距的按钮样式</div>
<el-slider
v-model="spaceSize"
class="mb-2 !w-[300px]"
class="mb-2 w-[300px]!"
:show-tooltip="false"
:disabled="size === 'disabled'"
/>
<p class="mb-2">单选</p>
<div class="mb-2">单选</div>
<el-space wrap :size="spaceSize">
<el-check-tag
v-for="(tag, index) in checkTag"
@@ -241,7 +241,7 @@ watch(size, val =>
{{ tag.title }}
</el-check-tag>
</el-space>
<p class="mb-2 mt-4">
<div class="mb-2 mt-4">
多选
{{
getKeyList(
@@ -249,7 +249,7 @@ watch(size, val =>
"title"
)
}}
</p>
</div>
<el-space wrap :size="spaceSize">
<el-check-tag
v-for="(tag, index) in checkGroupTag"
@@ -267,7 +267,7 @@ watch(size, val =>
</el-space>
<el-divider />
<p class="mb-2">单个可选按钮</p>
<div class="mb-2">单个可选按钮</div>
<el-check-tag
:class="[
'select-none',

View File

@@ -69,7 +69,7 @@ watch(size, val =>
</el-link>
</template>
<p class="mb-2 mt-4">单选</p>
<div class="mb-2 mt-4">单选</div>
<PlusCheckCardGroup
v-model="list"
:options="options"
@@ -77,7 +77,7 @@ watch(size, val =>
:disabled="size === 'disabled'"
/>
<p class="mb-2 mt-4">多选</p>
<div class="mb-2 mt-4">多选</div>
<PlusCheckCardGroup
v-model="list1"
:options="options"

View File

@@ -50,12 +50,12 @@ const handleChange = (val: string[]) => {
</el-link>
</template>
<p class="mb-2">基础用法</p>
<div class="mb-2">基础用法</div>
<el-radio-group v-model="radio" class="mb-3">
<el-radio value="">可同时展开多个面板</el-radio>
<el-radio value="accordion">每次只能展开一个面板</el-radio>
</el-radio-group>
<el-button size="small" text bg class="ml-8 mb-1" @click="onClick">
<el-button size="small" text bg class="ml-8! mb-1!" @click="onClick">
外部触发打开、关闭
</el-button>
<el-collapse

View File

@@ -73,7 +73,7 @@ function onClick() {
</el-link>
</template>
<p class="mb-2">不同尺寸、选择透明度、预定义颜色</p>
<div class="mb-2">不同尺寸、选择透明度、预定义颜色</div>
<el-color-picker
v-model="color"
show-alpha
@@ -83,7 +83,7 @@ function onClick() {
/>
<el-divider />
<p class="mb-2">外部触发器</p>
<div class="mb-2">外部触发器</div>
<el-space wrap>
<el-color-picker
ref="colorPickerRef"

View File

@@ -1,6 +1,6 @@
<template>
<div>
<p class="mb-2">基础用法</p>
<div class="mb-2">基础用法</div>
<div v-contextmenu:contextmenu class="wrapper">
<code>右键点击此区域</code>
</div>

View File

@@ -1,6 +1,6 @@
<template>
<div>
<p class="mb-2">动态菜单</p>
<div class="mb-2">动态菜单</div>
<div v-contextmenu:contextmenu class="wrapper">
<code>右键点击此区域</code>
</div>

View File

@@ -1,6 +1,6 @@
<template>
<div>
<p class="mb-2">按钮组</p>
<div class="mb-2">按钮组</div>
<div v-contextmenu:contextmenu class="wrapper">
<code>右键点击此区域</code>
</div>

View File

@@ -160,11 +160,11 @@ watch(size, val =>
</el-link>
</template>
<p class="mb-2">选择某一天</p>
<div class="mb-2">选择某一天</div>
<el-date-picker
v-model="value"
type="date"
class="!w-[160px]"
class="w-[160px]!"
placeholder="请选择"
:disabled-date="disabledDate"
:shortcuts="shortcuts"
@@ -175,12 +175,12 @@ watch(size, val =>
:disabled="size === 'disabled'"
/>
<p class="mb-2 mt-4">选择周、月、年或多个日期</p>
<div class="mb-2 mt-4">选择周、月、年或多个日期</div>
<el-space wrap>
<el-date-picker
v-model="value1"
type="week"
class="!w-[160px]"
class="w-[160px]!"
format="YYYY年第ww周"
placeholder="选择某年中的某周"
:size="dynamicSize"
@@ -189,7 +189,7 @@ watch(size, val =>
<el-date-picker
v-model="value2"
type="month"
class="!w-[160px]"
class="w-[160px]!"
placeholder="选择某月"
:size="dynamicSize"
:disabled="size === 'disabled'"
@@ -197,7 +197,7 @@ watch(size, val =>
<el-date-picker
v-model="value3"
type="year"
class="!w-[160px]"
class="w-[160px]!"
placeholder="选择某年"
:size="dynamicSize"
:disabled="size === 'disabled'"
@@ -205,18 +205,18 @@ watch(size, val =>
<el-date-picker
v-model="value4"
type="dates"
class="!w-[160px]"
class="w-[160px]!"
placeholder="选择多个日期"
:size="dynamicSize"
:disabled="size === 'disabled'"
/>
</el-space>
<p class="mb-2 mt-4">选择一段时间</p>
<div class="mb-2 mt-4">选择一段时间</div>
<el-date-picker
v-model="value5"
type="daterange"
class="!w-[240px]"
class="w-[240px]!"
unlink-panels
range-separator="至"
start-placeholder="开始时间"
@@ -229,7 +229,7 @@ watch(size, val =>
:disabled="size === 'disabled'"
/>
<p class="mb-2 mt-4">选择月份范围</p>
<div class="mb-2 mt-4">选择月份范围</div>
<el-date-picker
v-model="value6"
type="monthrange"
@@ -245,7 +245,7 @@ watch(size, val =>
:disabled="size === 'disabled'"
/>
<p class="mb-2 mt-4">日期格式</p>
<div class="mb-2 mt-4">日期格式</div>
<el-radio-group
v-model="dateFormat"
class="mb-2"
@@ -261,7 +261,7 @@ watch(size, val =>
<el-date-picker
v-model="value7"
type="date"
class="!w-[160px]"
class="w-[160px]!"
placeholder="请选择日期"
format="YYYY/MM/DD"
:value-format="dateFormat"
@@ -271,18 +271,18 @@ watch(size, val =>
<span class="ml-2">{{ value7 }}</span>
</el-space>
<p class="mb-2 mt-4">自定义前缀</p>
<div class="mb-2 mt-4">自定义前缀</div>
<el-date-picker
v-model="value8"
type="date"
class="!w-[160px]"
class="w-[160px]!"
placeholder="请选择日期"
:prefix-icon="useRenderIcon('twemoji:spiral-calendar')"
:size="dynamicSize"
:disabled="size === 'disabled'"
/>
<p class="mb-2 mt-4">自定义内容</p>
<div class="mb-2 mt-4">自定义内容</div>
<el-date-picker
v-model="value9"
type="date"

View File

@@ -186,18 +186,18 @@ watch(size, val =>
</el-link>
</template>
<p class="mb-2">日期和时间点</p>
<div class="mb-2">日期和时间点</div>
<el-date-picker
v-model="value"
type="datetime"
class="!w-[200px]"
class="w-[200px]!"
placeholder="请选择日期时间"
:shortcuts="shortcuts"
:size="dynamicSize"
:disabled="size === 'disabled'"
/>
<p class="mb-2 mt-4">日期时间格式</p>
<div class="mb-2 mt-4">日期时间格式</div>
<el-radio-group
v-model="datetimeFormat"
class="mb-2"
@@ -213,7 +213,7 @@ watch(size, val =>
<el-date-picker
v-model="value1"
type="datetime"
class="!w-[200px]"
class="w-[200px]!"
placeholder="请选择日期时间"
format="YYYY/MM/DD hh:mm:ss"
:value-format="datetimeFormat"
@@ -223,7 +223,7 @@ watch(size, val =>
<span class="ml-2">{{ value1 }}</span>
</el-space>
<p class="mb-2 mt-4">日期和时间范围</p>
<div class="mb-2 mt-4">日期和时间范围</div>
<el-date-picker
v-model="value2"
type="datetimerange"
@@ -238,9 +238,9 @@ watch(size, val =>
:disabled="size === 'disabled'"
/>
<p class="mb-2 mt-4">
<div class="mb-2 mt-4">
弹出面板位置可控(如果弹出位置不足以完整展示面板会自动调整位置)
</p>
</div>
<el-space wrap class="w-[400px]">
<el-check-tag
v-for="(tag, index) in checkTag"

View File

@@ -28,14 +28,14 @@ const newFormInline = ref(props.formInline);
<el-form-item label="姓名">
<el-input
v-model="newFormInline.user"
class="!w-[220px]"
class="w-[220px]!"
placeholder="请输入姓名"
/>
</el-form-item>
<el-form-item label="城市">
<el-select
v-model="newFormInline.region"
class="!w-[220px]"
class="w-[220px]!"
placeholder="请选择城市"
>
<el-option label="上海" value="上海" />

View File

@@ -18,5 +18,5 @@ const data = useVModel(props, "data", emit);
</script>
<template>
<el-input v-model="data" class="!w-[220px]" placeholder="请输入内容" />
<el-input v-model="data" class="w-[220px]!" placeholder="请输入内容" />
</template>

View File

@@ -463,6 +463,16 @@ function onSureBtnLoading() {
}
});
}
// 自定义动画
function onTransitionClick(title, transition) {
addDialog({
width: "30%",
title,
transition,
contentRenderer: () => <p>{JSON.stringify(transition)}</p>
});
}
</script>
<template>
@@ -551,5 +561,112 @@ function onSureBtnLoading() {
点击底部确定按钮可开启按钮动画
</el-button>
</el-space>
<el-divider />
<el-space wrap>
<el-button
@click="onTransitionClick('淡入淡出动画(默认)', 'dialog-fade')"
>
淡入淡出动画默认
</el-button>
<el-button @click="onTransitionClick('缩放动画', 'dialog-scale')">
缩放动画
</el-button>
<el-button @click="onTransitionClick('滑动动画', 'dialog-slide')">
滑动动画
</el-button>
<el-button @click="onTransitionClick('弹跳动画', 'dialog-bounce')">
弹跳动画
</el-button>
<el-button
@click="
onTransitionClick('自定义动画事件处理器(可配置对象)', {
name: 'dialog-custom-object',
appear: true,
mode: 'out-in',
duration: 500
})
"
>
自定义动画事件处理器可配置对象
</el-button>
</el-space>
</el-card>
</template>
<style>
/* Scale Animation */
.dialog-scale-enter-active,
.dialog-scale-leave-active,
.dialog-scale-enter-active .el-dialog,
.dialog-scale-leave-active .el-dialog {
transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.dialog-scale-enter-from,
.dialog-scale-leave-to {
opacity: 0;
}
.dialog-scale-enter-from .el-dialog,
.dialog-scale-leave-to .el-dialog {
opacity: 0;
transform: scale(0.5);
}
/* Slide Animation */
.dialog-slide-enter-active,
.dialog-slide-leave-active,
.dialog-slide-enter-active .el-dialog,
.dialog-slide-leave-active .el-dialog {
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.dialog-slide-enter-from,
.dialog-slide-leave-to {
opacity: 0;
}
.dialog-slide-enter-from .el-dialog,
.dialog-slide-leave-to .el-dialog {
opacity: 0;
transform: translateY(-100px);
}
/* Bounce Animation */
.dialog-bounce-enter-active,
.dialog-bounce-leave-active,
.dialog-bounce-enter-active .el-dialog,
.dialog-bounce-leave-active .el-dialog {
transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.dialog-bounce-enter-from,
.dialog-bounce-leave-to {
opacity: 0;
}
.dialog-bounce-enter-from .el-dialog,
.dialog-bounce-leave-to .el-dialog {
opacity: 0;
transform: scale(0.3) translateY(-50px);
}
/* Object Configuration Animation */
.dialog-custom-object-enter-active,
.dialog-custom-object-leave-active,
.dialog-custom-object-enter-active .el-dialog,
.dialog-custom-object-leave-active .el-dialog {
transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.dialog-custom-object-enter-from,
.dialog-custom-object-leave-to {
opacity: 0;
}
.dialog-custom-object-enter-from .el-dialog,
.dialog-custom-object-leave-to .el-dialog {
opacity: 0;
transform: rotate(180deg) scale(0.5);
}
</style>

View File

@@ -28,14 +28,14 @@ const newFormInline = ref(props.formInline);
<el-form-item label="姓名">
<el-input
v-model="newFormInline.user"
class="!w-[220px]"
class="w-[220px]!"
placeholder="请输入姓名"
/>
</el-form-item>
<el-form-item label="城市">
<el-select
v-model="newFormInline.region"
class="!w-[220px]"
class="w-[220px]!"
placeholder="请选择城市"
>
<el-option label="上海" value="上海" />

View File

@@ -18,5 +18,5 @@ const data = useVModel(props, "data", emit);
</script>
<template>
<el-input v-model="data" class="!w-[220px]" placeholder="请输入内容" />
<el-input v-model="data" class="w-[220px]!" placeholder="请输入内容" />
</template>

View File

@@ -422,6 +422,17 @@ function onSureBtnLoading() {
}
});
}
function onResizableClick(title, content, direction) {
addDrawer({
title,
direction,
resizable: true, // 启用可调整大小的功能
contentRenderer: () => (
<p class="text-[var(--el-color-primary)]">{content}</p> // jsx 语法 (注意在.vue文件启用jsx语法需要在script开启lang="tsx"
)
});
}
</script>
<template>
@@ -498,5 +509,28 @@ function onSureBtnLoading() {
点击底部确定按钮可开启按钮动画
</el-button>
</el-space>
<el-divider />
<el-space wrap>
<el-button
@click="onResizableClick('从左侧打开', '拖动抽屉右侧边缘', 'ltr')"
>
拖拽调整大小从左侧打开
</el-button>
<el-button
@click="onResizableClick('从右侧打开', '拖动抽屉左侧边缘', 'rtl')"
>
拖拽调整大小从右侧打开
</el-button>
<el-button
@click="onResizableClick('从顶部打开', '拖动抽屉底部边缘', 'ttb')"
>
拖拽调整大小从顶部打开
</el-button>
<el-button
@click="onResizableClick('从底部打开', '拖动抽屉顶部边缘', 'btt')"
>
拖拽调整大小从底部打开
</el-button>
</el-space>
</el-card>
</template>

View File

@@ -84,7 +84,7 @@ watch(size, val =>
</el-link>
</template>
<p class="mb-2">基础按钮</p>
<div class="mb-2">基础按钮</div>
<el-radio-group v-model="baseRadio" class="mb-3">
<el-radio label="default" value="default" />
<el-radio label="plain" value="plain" />
@@ -117,7 +117,7 @@ watch(size, val =>
</el-space>
<el-divider />
<p class="mb-4">加载状态按钮</p>
<div class="mb-4">加载状态按钮</div>
<el-button
text
bg
@@ -166,7 +166,7 @@ watch(size, val =>
</el-button>
<el-divider />
<p class="mb-4">自定义元素标签。例如按钮、div、链接</p>
<div class="mb-4">自定义元素标签。例如按钮、div、链接</div>
<el-button :size="dynamicSize" :disabled="size === 'disabled'">
button 标签
</el-button>
@@ -196,7 +196,7 @@ watch(size, val =>
</el-button>
<el-divider />
<p class="mb-4">自定义颜色</p>
<div class="mb-4">自定义颜色</div>
<el-space wrap>
<el-button
color="#626aef"

View File

@@ -25,7 +25,7 @@ defineOptions({
</el-link>
</template>
<h4 class="mb-4">Element Plus 的消息提示点击弹出提示信息</h4>
<h4 class="mb-4!">Element Plus 的消息提示点击弹出提示信息</h4>
<el-space wrap>
<el-button
@@ -121,7 +121,7 @@ defineOptions({
<el-divider />
<h4 class="mb-4">
<h4 class="mb-4!">
类似 Ant Design 风格的消息提示点击弹出提示信息基于 ElMessage
样式改版不会影响 ElMessage
原本样式使用和打包大小成本极低并适配整体暗色风格

View File

@@ -32,7 +32,7 @@ const format = percentage => (percentage === 100 ? "Full" : `${percentage}%`);
</el-link>
</template>
<p class="mb-4">直线进度条动画</p>
<div class="mb-4">直线进度条动画</div>
<div class="w-1/4">
<el-progress indeterminate :percentage="50" class="mb-4" />
<el-progress
@@ -61,7 +61,7 @@ const format = percentage => (percentage === 100 ? "Full" : `${percentage}%`);
/>
</div>
<p class="mb-4">进度条内显示百分比标识</p>
<div class="mb-4">进度条内显示百分比标识</div>
<div class="w-1/4">
<el-progress
:text-inside="true"
@@ -97,7 +97,7 @@ const format = percentage => (percentage === 100 ? "Full" : `${percentage}%`);
/>
</div>
<p class="mb-4">自定义内容</p>
<div class="mb-4">自定义内容</div>
<div class="w-1/4 demo-progress">
<el-progress :percentage="50">
<el-button text>自定义内容</el-button>

View File

@@ -220,39 +220,39 @@ watch(size, val => (dynamicSize.value = size.value));
</el-link>
</template>
<el-scrollbar>
<p class="mb-2">
<div class="mb-2">
基础用法v-model<span class="text-primary">
{{ optionsBasis[value].label }}
</span>
</p>
</div>
<Segmented v-model="value" :options="optionsBasis" :size="dynamicSize" />
<el-divider />
<p class="mb-2">tooltip 提示</p>
<div class="mb-2">tooltip 提示</div>
<Segmented :options="optionsTooltip" :size="dynamicSize" />
<el-divider />
<p class="mb-2">change 事件</p>
<div class="mb-2">change 事件</div>
<Segmented
:options="optionsChange"
:size="dynamicSize"
@change="onChange"
/>
<el-divider />
<p class="mb-2">禁用</p>
<div class="mb-2">禁用</div>
<Segmented :options="optionsDisabled" :size="dynamicSize" />
<el-divider />
<p class="mb-2">全局禁用</p>
<div class="mb-2">全局禁用</div>
<Segmented :options="optionsBasis" :size="dynamicSize" disabled />
<el-divider />
<p class="mb-2">block 属性(将宽度调整为父元素宽度)</p>
<div class="mb-2">block 属性(将宽度调整为父元素宽度)</div>
<Segmented :options="optionsBlock" block :size="dynamicSize" />
<el-divider />
<p class="mb-2">可设置图标</p>
<div class="mb-2">可设置图标</div>
<Segmented :options="optionsIcon" :size="dynamicSize" />
<el-divider />
<p class="mb-2">只设置图标</p>
<div class="mb-2">只设置图标</div>
<Segmented :options="optionsOnlyIcon" :size="dynamicSize" />
<el-divider />
<p class="mb-2">自定义渲染</p>
<div class="mb-2">自定义渲染</div>
<Segmented :options="optionsLabel" :size="dynamicSize" />
</el-scrollbar>
</el-card>

View File

@@ -49,7 +49,7 @@ const selectedVal = ({ left, right }): void => {
:disabled="item.disabled"
@selectedVal="selectedVal"
/>
<h4 v-if="!item.disabled" class="mt-3">选中范围{{ selectRange }}</h4>
<h4 v-if="!item.disabled" class="mt-3!">选中范围{{ selectRange }}</h4>
</el-card>
</div>
</template>

View File

@@ -29,28 +29,28 @@ defineOptions({
</el-link>
</div>
</template>
<p class="mb-2">基础用法</p>
<div class="mb-2">基础用法</div>
<Base />
<el-divider />
<p class="mb-2">离散值</p>
<div class="mb-2">离散值</div>
<Step />
<el-divider />
<p class="mb-2">带有输入框的滑块</p>
<div class="mb-2">带有输入框的滑块</div>
<Input />
<el-divider />
<p class="mb-2">不同尺寸</p>
<div class="mb-2">不同尺寸</div>
<Size />
<el-divider />
<p class="mb-2">位置</p>
<div class="mb-2">位置</div>
<Placement />
<el-divider />
<p class="mb-2">范围选择</p>
<div class="mb-2">范围选择</div>
<Range />
<el-divider />
<p class="mb-2">垂直模式</p>
<div class="mb-2">垂直模式</div>
<Vertical />
<el-divider />
<p class="mb-2">显示标记</p>
<div class="mb-2">显示标记</div>
<Marks class="mb-6" />
</el-card>
</template>

Some files were not shown because too many files have changed in this diff Show More