savor-ui 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/CHANGELOG.md +158 -137
  2. package/dist/es/components/index.d.ts +2 -0
  3. package/dist/es/components/index.mjs +3 -0
  4. package/dist/es/components/src/button/button.vue_vue_type_script_setup_true_vapor_true_lang.mjs +3 -0
  5. package/dist/es/components/src/button/types.d.ts +4 -2
  6. package/dist/es/components/src/carousel/types.d.ts +1 -1
  7. package/dist/es/components/src/datetime-picker/types.d.ts +2 -2
  8. package/dist/es/components/src/form/types.d.ts +9 -9
  9. package/dist/es/components/src/galleria/types.d.ts +1 -1
  10. package/dist/es/components/src/grid/grid-item.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -2
  11. package/dist/es/components/src/input-number/types.d.ts +2 -2
  12. package/dist/es/components/src/input-tag/types.d.ts +2 -2
  13. package/dist/es/components/src/list/index.d.ts +13 -11
  14. package/dist/es/components/src/list/list.d.ts +9 -8
  15. package/dist/es/components/src/list/list.vue_vue_type_script_setup_true_vapor_true_lang.mjs +33 -28
  16. package/dist/es/components/src/list/types.d.ts +13 -13
  17. package/dist/es/components/src/menu/index.d.ts +0 -1
  18. package/dist/es/components/src/menu/menu.vue_vue_type_script_setup_true_vapor_true_lang.mjs +37 -43
  19. package/dist/es/components/src/menu/sub-menu.vue_vue_type_script_setup_true_vapor_true_lang.mjs +93 -112
  20. package/dist/es/components/src/menu/types.d.ts +0 -11
  21. package/dist/es/components/src/message/types.d.ts +1 -2
  22. package/dist/es/components/src/modal/index.d.ts +2 -2
  23. package/dist/es/components/src/modal/modal.vue_vue_type_script_setup_true_vapor_true_lang.mjs +14 -14
  24. package/dist/es/components/src/modal/types.d.ts +4 -4
  25. package/dist/es/components/src/pagination/types.d.ts +1 -1
  26. package/dist/es/components/src/slider-verify/index.d.ts +37 -0
  27. package/dist/es/components/src/slider-verify/index.mjs +7 -0
  28. package/dist/es/components/src/slider-verify/slider-verify.d.ts +16 -0
  29. package/dist/es/components/src/slider-verify/slider-verify.vue.mjs +5 -0
  30. package/dist/es/components/src/slider-verify/slider-verify.vue_vue_type_script_setup_true_lang.mjs +104 -0
  31. package/dist/es/components/src/slider-verify/types.d.ts +26 -0
  32. package/dist/es/components/src/split/index.d.ts +51 -0
  33. package/dist/es/components/src/split/index.mjs +9 -0
  34. package/dist/es/components/src/split/split-bar.d.ts +26 -0
  35. package/dist/es/components/src/split/split-bar.vue.mjs +5 -0
  36. package/dist/es/components/src/split/split-bar.vue_vue_type_script_setup_true_vapor_true_lang.mjs +57 -0
  37. package/dist/es/components/src/split/split-pane.d.ts +25 -0
  38. package/dist/es/components/src/split/split-pane.vue.mjs +5 -0
  39. package/dist/es/components/src/split/split-pane.vue_vue_type_script_setup_true_vapor_true_lang.mjs +88 -0
  40. package/dist/es/components/src/split/split.d.ts +27 -0
  41. package/dist/es/components/src/split/split.vue.mjs +5 -0
  42. package/dist/es/components/src/split/split.vue_vue_type_script_setup_true_vapor_true_lang.mjs +262 -0
  43. package/dist/es/components/src/split/types.d.ts +111 -0
  44. package/dist/es/components/src/split/types.mjs +4 -0
  45. package/dist/es/components/src/tag/index.d.ts +1 -3
  46. package/dist/es/components/src/tag/tag.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -9
  47. package/dist/es/components/src/tag/types.d.ts +4 -6
  48. package/dist/es/components/src/textarea/types.d.ts +1 -1
  49. package/dist/es/components/src/timeline/types.d.ts +5 -5
  50. package/dist/es/components/src/virtual-list/index.d.ts +3 -3
  51. package/dist/es/components/src/virtual-list/types.d.ts +6 -5
  52. package/dist/es/components/src/virtual-list/virtual-list.d.ts +2 -2
  53. package/dist/es/core/components.mjs +29 -24
  54. package/dist/es/core/global.d.ts +3 -0
  55. package/dist/es/core/index.mjs +25 -22
  56. package/dist/es/theme/components/button.scss +19 -3
  57. package/dist/es/theme/components/grid.scss +3 -0
  58. package/dist/es/theme/components/index.scss +2 -0
  59. package/dist/es/theme/components/list.scss +10 -16
  60. package/dist/es/theme/components/menu.scss +6 -42
  61. package/dist/es/theme/components/modal.scss +1 -1
  62. package/dist/es/theme/components/slider-verify.scss +105 -0
  63. package/dist/es/theme/components/split.scss +197 -0
  64. package/dist/es/theme/components/tag.scss +10 -4
  65. package/dist/json/vetur-attributes.json +65 -50
  66. package/dist/json/vetur-tags.json +29 -18
  67. package/dist/json/web-types.json +177 -134
  68. package/package.json +63 -63
package/CHANGELOG.md CHANGED
@@ -2,175 +2,196 @@
2
2
 
3
3
 
4
4
 
5
- # [0.7.0](https://gitee.com/mach552/savor-ui/compare/v0.6.1...v0.7.0) (2026-06-30)
5
+ # [0.9.0](https://gitee.com/mach552/savor-ui/compare/v0.8.0...v0.9.0) (2026-07-07)
6
6
 
7
7
 
8
8
  ### Bug Fixes
9
9
 
10
- * **card:** 调整样式 ([45b7155](https://gitee.com/mach552/savor-ui/commits/45b71559882ce9afcb64df0a5add0f34378d2da2))
11
- * **descriptions:** 修复content没有内容时高度与label不一致问题 ([708f974](https://gitee.com/mach552/savor-ui/commits/708f9745c295ca66421c4954692e02f22d9e3f86))
12
- * **menu:** 调整样式 ([2817e6a](https://gitee.com/mach552/savor-ui/commits/2817e6a361b0aa9cd90a46d936300871b45bdced))
13
- * **scrollbar:** 调整样式 ([054eb92](https://gitee.com/mach552/savor-ui/commits/054eb929aca527c2d7db95718ceed59d2baa5e19))
14
- * **tree:** 修复高度无法异步更新的问题 ([5884a9a](https://gitee.com/mach552/savor-ui/commits/5884a9aac150429ce6913433d0ff588736f5d132))
10
+ * **grid:** 修复item内部高度虚高的问题 ([47221fc](https://gitee.com/mach552/savor-ui/commits/47221fcc9db115831e011ea43f386704e57c08ef))
15
11
 
16
12
 
17
13
  ### Features
18
14
 
19
- * **button:** 新增轮廓和次要按钮 ([5d48f25](https://gitee.com/mach552/savor-ui/commits/5d48f2594010079e9b5d67af9356580bcef085ee))
20
- * **highlight:** 新增高亮文本组件 ([8a53e5e](https://gitee.com/mach552/savor-ui/commits/8a53e5eaf8a74a2fa5ce1d624e60a7c70a7d87c4))
21
- * **steps:** 新增步骤条组件 ([790465f](https://gitee.com/mach552/savor-ui/commits/790465f686ed5dc8ff30c8574f888d11f74af51b))
22
- * **tag:** 新增多种类型 ([a448e67](https://gitee.com/mach552/savor-ui/commits/a448e678c48abf159f2c41256a0cd7c702df727d))
23
- * **virtual-list:** 新增虚拟列表组件 ([bdf0dda](https://gitee.com/mach552/savor-ui/commits/bdf0dda038f1e5052e1feb058279183d5aaac706))
15
+ * **list:** 新增选择事件 ([2d132d3](https://gitee.com/mach552/savor-ui/commits/2d132d3e37ddc4b201272fa6a708dd7ac778436e))
24
16
 
25
- ## [0.6.1](https://gitee.com/mach552/savor-ui/compare/v0.6.0...v0.6.1) (2026-06-26)
17
+ # [0.8.0](https://gitee.com/mach552/savor-ui/compare/v0.7.0...v0.8.0) (2026-07-03)
26
18
 
27
19
 
28
- ### Bug Fixes
20
+ ### Features
29
21
 
22
+ * **button:** 新增右侧图标插槽 ([741f921](https://gitee.com/mach552/savor-ui/commits/741f92165d634c3a377910a094adf4671ecc2339))
23
+ * **slider-verify:** 新增滑块验证组件 ([6c4e3a0](https://gitee.com/mach552/savor-ui/commits/6c4e3a089801bed651a85d23b8b00a3f66522b37))
24
+ * **split:** 新增分隔面板组件 ([63e51bf](https://gitee.com/mach552/savor-ui/commits/63e51bf2e0a0d4616984a781fc373c3f909b7b54))
25
+
26
+ # [0.7.0](https://gitee.com/mach552/savor-ui/compare/v0.6.1...v0.7.0) (2026-06-30)
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * **card:** 调整样式 ([45b7155](https://gitee.com/mach552/savor-ui/commits/45b71559882ce9afcb64df0a5add0f34378d2da2))
32
+ * **descriptions:** 修复content没有内容时高度与label不一致问题 ([708f974](https://gitee.com/mach552/savor-ui/commits/708f9745c295ca66421c4954692e02f22d9e3f86))
33
+ * **menu:** 调整样式 ([2817e6a](https://gitee.com/mach552/savor-ui/commits/2817e6a361b0aa9cd90a46d936300871b45bdced))
34
+ * **scrollbar:** 调整样式 ([054eb92](https://gitee.com/mach552/savor-ui/commits/054eb929aca527c2d7db95718ceed59d2baa5e19))
35
+ * **tree:** 修复高度无法异步更新的问题 ([5884a9a](https://gitee.com/mach552/savor-ui/commits/5884a9aac150429ce6913433d0ff588736f5d132))
36
+
37
+
38
+ ### Features
39
+
40
+ * **button:** 新增轮廓和次要按钮 ([5d48f25](https://gitee.com/mach552/savor-ui/commits/5d48f2594010079e9b5d67af9356580bcef085ee))
41
+ * **highlight:** 新增高亮文本组件 ([8a53e5e](https://gitee.com/mach552/savor-ui/commits/8a53e5eaf8a74a2fa5ce1d624e60a7c70a7d87c4))
42
+ * **steps:** 新增步骤条组件 ([790465f](https://gitee.com/mach552/savor-ui/commits/790465f686ed5dc8ff30c8574f888d11f74af51b))
43
+ * **tag:** 新增多种类型 ([a448e67](https://gitee.com/mach552/savor-ui/commits/a448e678c48abf159f2c41256a0cd7c702df727d))
44
+ * **virtual-list:** 新增虚拟列表组件 ([bdf0dda](https://gitee.com/mach552/savor-ui/commits/bdf0dda038f1e5052e1feb058279183d5aaac706))
45
+
46
+ ## [0.6.1](https://gitee.com/mach552/savor-ui/compare/v0.6.0...v0.6.1) (2026-06-26)
47
+
48
+
49
+ ### Bug Fixes
50
+
30
51
  * 修复打包路径问题 ([67d1faf](https://gitee.com/mach552/savor-ui/commits/67d1fafb089f939ca89068b29d8e562f9f795e0c))
31
52
 
32
- # [0.6.0](https://gitee.com/mach552/savor-ui/compare/v0.5.0...v0.6.0) (2026-06-26)
33
-
34
-
35
- ### Bug Fixes
36
-
37
- * **checkbox:** 修复文字不垂直居中问题 ([8a365ac](https://gitee.com/mach552/savor-ui/commits/8a365ac0360951954e1ac1ffb3835080850747e6))
38
- * **input-number:** 修复一些样式表现问题 ([4e39701](https://gitee.com/mach552/savor-ui/commits/4e39701d60b371ae62c1306a4c0ada5e323be003))
39
- * **input:** 修复禁用状态下依然显示清除按钮的问题 ([a5239c9](https://gitee.com/mach552/savor-ui/commits/a5239c957dad1f3dcf42384f462e96ac00c5048f))
40
- * **menu:** 修复弹层鼠标移开后不关闭问题 ([0be99e1](https://gitee.com/mach552/savor-ui/commits/0be99e1e525388518b0e9776ca74c960e8319219))
41
- * **scrollbar:** 修复滚动条偶发无效显示的问题 ([be0dd8e](https://gitee.com/mach552/savor-ui/commits/be0dd8e656e9958651a5519e2a80f0ecf4e5a762))
42
- * **segmented:** 修复默认值激活条在某些情况下尺寸不一致的问题 ([7d4c3b2](https://gitee.com/mach552/savor-ui/commits/7d4c3b210ce2b5d6074c29419a032d450c4bc864))
43
- * **table:** 修复最后一行无下边框问题 ([11847f3](https://gitee.com/mach552/savor-ui/commits/11847f387c74f86d07783f51438a7a1583251e0c))
44
- * **table:** 修复fixed列样式偶发失效问题 ([6c8518b](https://gitee.com/mach552/savor-ui/commits/6c8518b11cd25acd2a14eab101321f15d3ed92be))
45
-
46
-
47
- ### Features
48
-
53
+ # [0.6.0](https://gitee.com/mach552/savor-ui/compare/v0.5.0...v0.6.0) (2026-06-26)
54
+
55
+
56
+ ### Bug Fixes
57
+
58
+ * **checkbox:** 修复文字不垂直居中问题 ([8a365ac](https://gitee.com/mach552/savor-ui/commits/8a365ac0360951954e1ac1ffb3835080850747e6))
59
+ * **input-number:** 修复一些样式表现问题 ([4e39701](https://gitee.com/mach552/savor-ui/commits/4e39701d60b371ae62c1306a4c0ada5e323be003))
60
+ * **input:** 修复禁用状态下依然显示清除按钮的问题 ([a5239c9](https://gitee.com/mach552/savor-ui/commits/a5239c957dad1f3dcf42384f462e96ac00c5048f))
61
+ * **menu:** 修复弹层鼠标移开后不关闭问题 ([0be99e1](https://gitee.com/mach552/savor-ui/commits/0be99e1e525388518b0e9776ca74c960e8319219))
62
+ * **scrollbar:** 修复滚动条偶发无效显示的问题 ([be0dd8e](https://gitee.com/mach552/savor-ui/commits/be0dd8e656e9958651a5519e2a80f0ecf4e5a762))
63
+ * **segmented:** 修复默认值激活条在某些情况下尺寸不一致的问题 ([7d4c3b2](https://gitee.com/mach552/savor-ui/commits/7d4c3b210ce2b5d6074c29419a032d450c4bc864))
64
+ * **table:** 修复最后一行无下边框问题 ([11847f3](https://gitee.com/mach552/savor-ui/commits/11847f387c74f86d07783f51438a7a1583251e0c))
65
+ * **table:** 修复fixed列样式偶发失效问题 ([6c8518b](https://gitee.com/mach552/savor-ui/commits/6c8518b11cd25acd2a14eab101321f15d3ed92be))
66
+
67
+
68
+ ### Features
69
+
49
70
  * **cascader:** 新增非叶子节点可选择和值可为叶子节点 ([7f7e833](https://gitee.com/mach552/savor-ui/commits/7f7e83303d3cf283393c526708979d25c08c327f))
50
71
 
51
- # [0.5.0](https://gitee.com/mach552/savor-ui/compare/v0.4.1...v0.5.0) (2026-06-19)
52
-
53
-
54
- ### Bug Fixes
55
-
56
- * **tree:** 修复容器高度计算错误问题 ([a769600](https://gitee.com/mach552/savor-ui/commits/a769600d9771ccfe5e75ff1cd6ea15559ab733bd))
57
-
58
-
59
- ### Features
60
-
61
- * **expand-card:** 新增展开卡片组件 ([2bf0bda](https://gitee.com/mach552/savor-ui/commits/2bf0bdaa7d21f550089c83c62c549acbc2762d90))
62
- * **icon:** 新增动画和加载效果 ([6cab674](https://gitee.com/mach552/savor-ui/commits/6cab674844a32cf45d01b6a19a6f463d4bcd89ca))
72
+ # [0.5.0](https://gitee.com/mach552/savor-ui/compare/v0.4.1...v0.5.0) (2026-06-19)
73
+
74
+
75
+ ### Bug Fixes
76
+
77
+ * **tree:** 修复容器高度计算错误问题 ([a769600](https://gitee.com/mach552/savor-ui/commits/a769600d9771ccfe5e75ff1cd6ea15559ab733bd))
78
+
79
+
80
+ ### Features
81
+
82
+ * **expand-card:** 新增展开卡片组件 ([2bf0bda](https://gitee.com/mach552/savor-ui/commits/2bf0bdaa7d21f550089c83c62c549acbc2762d90))
83
+ * **icon:** 新增动画和加载效果 ([6cab674](https://gitee.com/mach552/savor-ui/commits/6cab674844a32cf45d01b6a19a6f463d4bcd89ca))
63
84
  * **menu:** 新增`circle`激活样式 ([30ca3ed](https://gitee.com/mach552/savor-ui/commits/30ca3ede06a2d3b93094179643a90d7215c9eef5))
64
85
 
65
- ## [0.4.1](https://gitee.com/mach552/savor-ui/compare/v0.4.0...v0.4.1) (2026-06-17)
66
-
67
-
68
- ### Bug Fixes
69
-
70
- * **input:** 调整一些样式问题 ([be7305f](https://gitee.com/mach552/savor-ui/commits/be7305ffc837a94f32bd8e971a0cf89e68d63cea))
71
- * **table:** 修复空状态下整体滚动问题 ([df4c6c8](https://gitee.com/mach552/savor-ui/commits/df4c6c8cc409ee6d9d7159dd523f0ea385ff2f06))
72
- * **table:** 修复宽高属性无效问题 ([834917b](https://gitee.com/mach552/savor-ui/commits/834917bb908eaf70b1293afdae0cb4779520e4c6))
73
- * **table:** 修复fixed列没有选中样式问题 ([7cd3def](https://gitee.com/mach552/savor-ui/commits/7cd3defe6eeb77426e8d59e8796b25e73ecc40f1))
86
+ ## [0.4.1](https://gitee.com/mach552/savor-ui/compare/v0.4.0...v0.4.1) (2026-06-17)
87
+
88
+
89
+ ### Bug Fixes
90
+
91
+ * **input:** 调整一些样式问题 ([be7305f](https://gitee.com/mach552/savor-ui/commits/be7305ffc837a94f32bd8e971a0cf89e68d63cea))
92
+ * **table:** 修复空状态下整体滚动问题 ([df4c6c8](https://gitee.com/mach552/savor-ui/commits/df4c6c8cc409ee6d9d7159dd523f0ea385ff2f06))
93
+ * **table:** 修复宽高属性无效问题 ([834917b](https://gitee.com/mach552/savor-ui/commits/834917bb908eaf70b1293afdae0cb4779520e4c6))
94
+ * **table:** 修复fixed列没有选中样式问题 ([7cd3def](https://gitee.com/mach552/savor-ui/commits/7cd3defe6eeb77426e8d59e8796b25e73ecc40f1))
74
95
  * **transition:** 修复传递无效属性问题 ([b06508c](https://gitee.com/mach552/savor-ui/commits/b06508c06085d183d1e515cf4365a4406e6045bf))
75
96
 
76
- # [0.4.0](https://gitee.com/mach552/savor-ui/compare/v0.3.3...v0.4.0) (2026-06-17)
77
-
78
-
79
- ### Bug Fixes
80
-
81
- * **cascader:** 修复清空值后没有清空激活状态的问题 ([0e7b7c8](https://gitee.com/mach552/savor-ui/commits/0e7b7c8c50f2b4c8bdf9b2c7f368db7babf2fa62))
82
- * **grid:** 修复动态计算span无效的问题 ([23c5e60](https://gitee.com/mach552/savor-ui/commits/23c5e606aa8a1f030ff7ddfc5a1f1aa17748fe32))
83
- * **menu:** 修复子菜单展开动画卡顿问题 ([e245006](https://gitee.com/mach552/savor-ui/commits/e245006281ad47719e10190fb052811bc5695e7b))
84
- * **popover:** 修复快速打开关闭时没有定位样式的问题 ([5190f75](https://gitee.com/mach552/savor-ui/commits/5190f75a3cb2e733e2dba5634de4c5e6f39d8686))
85
- * **scrollbar:** 修复容器和滚动条位置不一致问题 ([5fa85dd](https://gitee.com/mach552/savor-ui/commits/5fa85dd2b5abffff502f0b06ecdddebf4fa2035e))
86
- * **segmented:** 修复激活块偶发宽度不足的问题 ([a50c4c4](https://gitee.com/mach552/savor-ui/commits/a50c4c461b12919714662d1ce46e31e6bf01231e))
87
- * **table:** 修复从有数据变成数据为空时报错问题 ([ff7dfa0](https://gitee.com/mach552/savor-ui/commits/ff7dfa0295fb5cc82ed83bfeb3451e7c10b11ad0))
88
- * **table:** 修复单独设置`minWidth`无效的问题 ([a645d10](https://gitee.com/mach552/savor-ui/commits/a645d108cf615cee1b4d0e7551f830cb1804ebe6))
89
- * **table:** 修复复选框没有垂直居中的问题 ([923fe9b](https://gitee.com/mach552/savor-ui/commits/923fe9be0bed99e4e5c0109255c9ac8d09a21cfd))
90
- * **table:** 修复高度不足时空状态导致的表格整体滚动问题 ([9dc78c9](https://gitee.com/mach552/savor-ui/commits/9dc78c9a6de12a73a64836ca6b7b962db3b965fa))
91
- * **table:** 修复列宽无法固定的问题 ([02a8e36](https://gitee.com/mach552/savor-ui/commits/02a8e361a6c0a56869f1d5083a6be31bd563a822))
92
- * **table:** 修复fiexd列的阴影样式显示异常问题 ([41d8adf](https://gitee.com/mach552/savor-ui/commits/41d8adf817919136f198af57f435b14927b1a6d3))
93
- * **tree:** 修复容器高度计算错误的问题 ([7208476](https://gitee.com/mach552/savor-ui/commits/720847683d04664a8b0e91c34d88a907b64d5340))
94
-
95
-
96
- ### Features
97
-
98
- * **alert:** 新增警告提示组件 ([aae1dce](https://gitee.com/mach552/savor-ui/commits/aae1dce10f29f9aa2999ed11b5cfaf4cc4d510c0))
99
- * **chat-list:** 新增对话列表组件 ([7a28c84](https://gitee.com/mach552/savor-ui/commits/7a28c8420cd105d48b08ec618fa2cc7f9191c23f))
100
- * **scrollbar:** 新增滚动到结束方法 ([c41e4fc](https://gitee.com/mach552/savor-ui/commits/c41e4fcafb2a48c0c6bdb7ab818491a4bba8857d))
101
- * **scrollbar:** 新增原生滚动属性和触底事件 ([92b3474](https://gitee.com/mach552/savor-ui/commits/92b3474bcf19d4208e473ecaafb074d7ac5906aa))
102
- * **sender:** 新增AI对话输入组件 ([3ad13b0](https://gitee.com/mach552/savor-ui/commits/3ad13b0fd9bfc3faddfd629514cb5c202398aac7))
97
+ # [0.4.0](https://gitee.com/mach552/savor-ui/compare/v0.3.3...v0.4.0) (2026-06-17)
98
+
99
+
100
+ ### Bug Fixes
101
+
102
+ * **cascader:** 修复清空值后没有清空激活状态的问题 ([0e7b7c8](https://gitee.com/mach552/savor-ui/commits/0e7b7c8c50f2b4c8bdf9b2c7f368db7babf2fa62))
103
+ * **grid:** 修复动态计算span无效的问题 ([23c5e60](https://gitee.com/mach552/savor-ui/commits/23c5e606aa8a1f030ff7ddfc5a1f1aa17748fe32))
104
+ * **menu:** 修复子菜单展开动画卡顿问题 ([e245006](https://gitee.com/mach552/savor-ui/commits/e245006281ad47719e10190fb052811bc5695e7b))
105
+ * **popover:** 修复快速打开关闭时没有定位样式的问题 ([5190f75](https://gitee.com/mach552/savor-ui/commits/5190f75a3cb2e733e2dba5634de4c5e6f39d8686))
106
+ * **scrollbar:** 修复容器和滚动条位置不一致问题 ([5fa85dd](https://gitee.com/mach552/savor-ui/commits/5fa85dd2b5abffff502f0b06ecdddebf4fa2035e))
107
+ * **segmented:** 修复激活块偶发宽度不足的问题 ([a50c4c4](https://gitee.com/mach552/savor-ui/commits/a50c4c461b12919714662d1ce46e31e6bf01231e))
108
+ * **table:** 修复从有数据变成数据为空时报错问题 ([ff7dfa0](https://gitee.com/mach552/savor-ui/commits/ff7dfa0295fb5cc82ed83bfeb3451e7c10b11ad0))
109
+ * **table:** 修复单独设置`minWidth`无效的问题 ([a645d10](https://gitee.com/mach552/savor-ui/commits/a645d108cf615cee1b4d0e7551f830cb1804ebe6))
110
+ * **table:** 修复复选框没有垂直居中的问题 ([923fe9b](https://gitee.com/mach552/savor-ui/commits/923fe9be0bed99e4e5c0109255c9ac8d09a21cfd))
111
+ * **table:** 修复高度不足时空状态导致的表格整体滚动问题 ([9dc78c9](https://gitee.com/mach552/savor-ui/commits/9dc78c9a6de12a73a64836ca6b7b962db3b965fa))
112
+ * **table:** 修复列宽无法固定的问题 ([02a8e36](https://gitee.com/mach552/savor-ui/commits/02a8e361a6c0a56869f1d5083a6be31bd563a822))
113
+ * **table:** 修复fiexd列的阴影样式显示异常问题 ([41d8adf](https://gitee.com/mach552/savor-ui/commits/41d8adf817919136f198af57f435b14927b1a6d3))
114
+ * **tree:** 修复容器高度计算错误的问题 ([7208476](https://gitee.com/mach552/savor-ui/commits/720847683d04664a8b0e91c34d88a907b64d5340))
115
+
116
+
117
+ ### Features
118
+
119
+ * **alert:** 新增警告提示组件 ([aae1dce](https://gitee.com/mach552/savor-ui/commits/aae1dce10f29f9aa2999ed11b5cfaf4cc4d510c0))
120
+ * **chat-list:** 新增对话列表组件 ([7a28c84](https://gitee.com/mach552/savor-ui/commits/7a28c8420cd105d48b08ec618fa2cc7f9191c23f))
121
+ * **scrollbar:** 新增滚动到结束方法 ([c41e4fc](https://gitee.com/mach552/savor-ui/commits/c41e4fcafb2a48c0c6bdb7ab818491a4bba8857d))
122
+ * **scrollbar:** 新增原生滚动属性和触底事件 ([92b3474](https://gitee.com/mach552/savor-ui/commits/92b3474bcf19d4208e473ecaafb074d7ac5906aa))
123
+ * **sender:** 新增AI对话输入组件 ([3ad13b0](https://gitee.com/mach552/savor-ui/commits/3ad13b0fd9bfc3faddfd629514cb5c202398aac7))
103
124
  * **transition:** 新增过渡组件 ([d2cbf62](https://gitee.com/mach552/savor-ui/commits/d2cbf623b64fd9300888f0c5448f4090c3e203f1))
104
125
 
105
- ## [0.3.3](https://gitee.com/mach552/savor-ui/compare/v0.3.2...v0.3.3) (2026-06-09)
106
-
107
-
108
- ### Bug Fixes
109
-
110
- * **button:** 修复禁用状态样式无效问题 ([604ca42](https://gitee.com/mach552/savor-ui/commits/604ca427631e89bceaada29a04baf75371c77c60))
111
- * **cascader:** 修复不显示下拉箭头图标问题 ([c2eb385](https://gitee.com/mach552/savor-ui/commits/c2eb38597b79bda04e98c94a0a61bf32b1c6af59))
112
- * **cascader:** 修复空状态显示样式问题 ([25d0db3](https://gitee.com/mach552/savor-ui/commits/25d0db39d24b889de90ab15d8ccc663dcb04c424))
113
- * **cascader:** 修复清除图标不显示问题 ([0f6fda6](https://gitee.com/mach552/savor-ui/commits/0f6fda6a85611dce909f72bdc6062a77f348abc0))
114
- * **grid:** 修复动态增减item时不动态计算位置的问题 ([67785f2](https://gitee.com/mach552/savor-ui/commits/67785f208652f0fd5a66f0e593790461789283ee))
115
- * **input:** 修复禁用状态hover样式 ([cede93e](https://gitee.com/mach552/savor-ui/commits/cede93e6c8b72e6c608a37f59a6b395f4be4719f))
116
- * **menu:** 修复折叠时的样式问题 ([9633091](https://gitee.com/mach552/savor-ui/commits/9633091ba4a04f4ce8e18cca24332268b21e7401))
117
- * **table:** 修复横向滚动条在最右边反复横跳问题 ([a5e1902](https://gitee.com/mach552/savor-ui/commits/a5e19026cfe255fd0e303d7018a6eb69b62d4427))
118
- * **table:** 修复树形展开时图标不旋转问题 ([6813adb](https://gitee.com/mach552/savor-ui/commits/6813adb8387a3a64ced2f045a9d12d82023aa692))
126
+ ## [0.3.3](https://gitee.com/mach552/savor-ui/compare/v0.3.2...v0.3.3) (2026-06-09)
127
+
128
+
129
+ ### Bug Fixes
130
+
131
+ * **button:** 修复禁用状态样式无效问题 ([604ca42](https://gitee.com/mach552/savor-ui/commits/604ca427631e89bceaada29a04baf75371c77c60))
132
+ * **cascader:** 修复不显示下拉箭头图标问题 ([c2eb385](https://gitee.com/mach552/savor-ui/commits/c2eb38597b79bda04e98c94a0a61bf32b1c6af59))
133
+ * **cascader:** 修复空状态显示样式问题 ([25d0db3](https://gitee.com/mach552/savor-ui/commits/25d0db39d24b889de90ab15d8ccc663dcb04c424))
134
+ * **cascader:** 修复清除图标不显示问题 ([0f6fda6](https://gitee.com/mach552/savor-ui/commits/0f6fda6a85611dce909f72bdc6062a77f348abc0))
135
+ * **grid:** 修复动态增减item时不动态计算位置的问题 ([67785f2](https://gitee.com/mach552/savor-ui/commits/67785f208652f0fd5a66f0e593790461789283ee))
136
+ * **input:** 修复禁用状态hover样式 ([cede93e](https://gitee.com/mach552/savor-ui/commits/cede93e6c8b72e6c608a37f59a6b395f4be4719f))
137
+ * **menu:** 修复折叠时的样式问题 ([9633091](https://gitee.com/mach552/savor-ui/commits/9633091ba4a04f4ce8e18cca24332268b21e7401))
138
+ * **table:** 修复横向滚动条在最右边反复横跳问题 ([a5e1902](https://gitee.com/mach552/savor-ui/commits/a5e19026cfe255fd0e303d7018a6eb69b62d4427))
139
+ * **table:** 修复树形展开时图标不旋转问题 ([6813adb](https://gitee.com/mach552/savor-ui/commits/6813adb8387a3a64ced2f045a9d12d82023aa692))
119
140
  * **tree:** 修复各种事件无效问题 ([007a8ae](https://gitee.com/mach552/savor-ui/commits/007a8aecc76a257e61f5985c3e3a8803eb7d2f1e))
120
141
 
121
- ## [0.3.2](https://gitee.com/mach552/savor-ui/compare/v0.3.1...v0.3.2) (2026-06-08)
122
-
123
-
124
- ### Bug Fixes
125
-
142
+ ## [0.3.2](https://gitee.com/mach552/savor-ui/compare/v0.3.1...v0.3.2) (2026-06-08)
143
+
144
+
145
+ ### Bug Fixes
146
+
126
147
  * **tabs:** 修复切换动画失效问题 ([d1ae02c](https://gitee.com/mach552/savor-ui/commits/d1ae02cda637c471752a73a61b81d80ae34f3f95))
127
148
 
128
- ## [0.3.1](https://gitee.com/mach552/savor-ui/compare/v0.3.0...v0.3.1) (2026-06-07)
129
-
130
-
131
- ### Bug Fixes
132
-
149
+ ## [0.3.1](https://gitee.com/mach552/savor-ui/compare/v0.3.0...v0.3.1) (2026-06-07)
150
+
151
+
152
+ ### Bug Fixes
153
+
133
154
  * **config-provider:** 删除不兼容的非`vapor`组件 ([e4aaaaf](https://gitee.com/mach552/savor-ui/commits/e4aaaaf2eb1b2076923809fe3b284293721fd1a8))
134
155
 
135
- # [0.3.0](https://gitee.com/mach552/savor-ui/compare/v0.2.0...v0.3.0) (2026-06-07)
136
-
137
-
138
- ### Bug Fixes
139
-
140
- * **anchor:** 修复激活状态失效问题 ([b9033d6](https://gitee.com/mach552/savor-ui/commits/b9033d6f851785006999cde93465c9411a107a79))
141
- * **anchor:** 修复路由报历史警告问题 ([195493b](https://gitee.com/mach552/savor-ui/commits/195493b8859b2c0e114a30bc9f987471f3ad911a))
142
- * **collapse:** 修复禁用样式无效问题 ([0d45085](https://gitee.com/mach552/savor-ui/commits/0d450857cd03fca4b4d255e817eb2f03c71a85d7))
143
- * **pagination:** 修复页码处于边界时翻页按钮的禁用状态失效问题 ([a184a2f](https://gitee.com/mach552/savor-ui/commits/a184a2f22d2dec82909a9eb7a5b1d1c7944c88b3))
144
- * **table:** 修复列宽自适应失效问题 ([d334c8f](https://gitee.com/mach552/savor-ui/commits/d334c8f6d3c5623117783121516f459ed17f5ece))
145
-
146
-
147
- ### Features
148
-
149
- * **config-provider:** 新增`config-provider-vapor`组件 ([72be61f](https://gitee.com/mach552/savor-ui/commits/72be61fab0a8713c93886d8610548a01e92e3ee7))
150
- * **layout:** 新增`bgColor`背景颜色属性 ([3a11757](https://gitee.com/mach552/savor-ui/commits/3a11757f1eb472e84d00e6cf3ff7f775e2bff49d))
151
- * **scrollbar:** 新增`backtop`返回顶部属性和插槽 ([37ce9aa](https://gitee.com/mach552/savor-ui/commits/37ce9aa92a9b6d756ce5085fda0fd2552191a9c6))
152
- * **select:** 新增多选模式 ([325a62c](https://gitee.com/mach552/savor-ui/commits/325a62c3e0a54e9fdbba00fbf0177ecdfc00f6a5))
156
+ # [0.3.0](https://gitee.com/mach552/savor-ui/compare/v0.2.0...v0.3.0) (2026-06-07)
157
+
158
+
159
+ ### Bug Fixes
160
+
161
+ * **anchor:** 修复激活状态失效问题 ([b9033d6](https://gitee.com/mach552/savor-ui/commits/b9033d6f851785006999cde93465c9411a107a79))
162
+ * **anchor:** 修复路由报历史警告问题 ([195493b](https://gitee.com/mach552/savor-ui/commits/195493b8859b2c0e114a30bc9f987471f3ad911a))
163
+ * **collapse:** 修复禁用样式无效问题 ([0d45085](https://gitee.com/mach552/savor-ui/commits/0d450857cd03fca4b4d255e817eb2f03c71a85d7))
164
+ * **pagination:** 修复页码处于边界时翻页按钮的禁用状态失效问题 ([a184a2f](https://gitee.com/mach552/savor-ui/commits/a184a2f22d2dec82909a9eb7a5b1d1c7944c88b3))
165
+ * **table:** 修复列宽自适应失效问题 ([d334c8f](https://gitee.com/mach552/savor-ui/commits/d334c8f6d3c5623117783121516f459ed17f5ece))
166
+
167
+
168
+ ### Features
169
+
170
+ * **config-provider:** 新增`config-provider-vapor`组件 ([72be61f](https://gitee.com/mach552/savor-ui/commits/72be61fab0a8713c93886d8610548a01e92e3ee7))
171
+ * **layout:** 新增`bgColor`背景颜色属性 ([3a11757](https://gitee.com/mach552/savor-ui/commits/3a11757f1eb472e84d00e6cf3ff7f775e2bff49d))
172
+ * **scrollbar:** 新增`backtop`返回顶部属性和插槽 ([37ce9aa](https://gitee.com/mach552/savor-ui/commits/37ce9aa92a9b6d756ce5085fda0fd2552191a9c6))
173
+ * **select:** 新增多选模式 ([325a62c](https://gitee.com/mach552/savor-ui/commits/325a62c3e0a54e9fdbba00fbf0177ecdfc00f6a5))
153
174
  * **space:** 新增`wrap`换行属性 ([b046416](https://gitee.com/mach552/savor-ui/commits/b0464167d9db73ede45f1fa59e26b723107d1620))
154
175
 
155
- # [0.2.0](https://gitee.com/mach552/savor-ui/compare/v0.1.0...v0.2.0) (2026-05-22)
156
-
157
-
158
- ### Bug Fixes
159
-
160
- * **image:** 修复图片组预览图片不展示的问题 ([d485580](https://gitee.com/mach552/savor-ui/commits/d485580c89acd0483cd71cb885175a294b3db1d3))
161
- * **message:** 修复容器不销毁的问题 ([6c34e24](https://gitee.com/mach552/savor-ui/commits/6c34e24fcc1b0aadab4c49c385470cb79f88d1b5))
162
-
163
-
164
- ### Features
165
-
166
- * **radio:** 新增按钮类型的单选框组 ([4b7e12a](https://gitee.com/mach552/savor-ui/commits/4b7e12aef25fc0504e3bdb8d52a85d899acefd00))
176
+ # [0.2.0](https://gitee.com/mach552/savor-ui/compare/v0.1.0...v0.2.0) (2026-05-22)
177
+
178
+
179
+ ### Bug Fixes
180
+
181
+ * **image:** 修复图片组预览图片不展示的问题 ([d485580](https://gitee.com/mach552/savor-ui/commits/d485580c89acd0483cd71cb885175a294b3db1d3))
182
+ * **message:** 修复容器不销毁的问题 ([6c34e24](https://gitee.com/mach552/savor-ui/commits/6c34e24fcc1b0aadab4c49c385470cb79f88d1b5))
183
+
184
+
185
+ ### Features
186
+
187
+ * **radio:** 新增按钮类型的单选框组 ([4b7e12a](https://gitee.com/mach552/savor-ui/commits/4b7e12aef25fc0504e3bdb8d52a85d899acefd00))
167
188
  * **text:** 新增复制和编辑模式,新增气泡提示 ([39125c3](https://gitee.com/mach552/savor-ui/commits/39125c3877a14d9bcd9deda7736f7b2583e479b1))
168
189
 
169
- # 0.1.0 (2026-05-16)
170
-
171
-
172
- ### Features
173
-
190
+ # 0.1.0 (2026-05-16)
191
+
192
+
193
+ ### Features
194
+
174
195
  * 重构所有组件为Vapor。 ([a16e110](https://gitee.com/mach552/savor-ui/commits/a16e110a6d15810058f92b2a55ffce58b13957ab))
175
196
 
176
197
  ## [0.0.8](https://gitee.com/mach552/savor-ui/compare/v0.0.7...v0.0.8) (2026-05-11)
@@ -48,7 +48,9 @@ export * from './src/scrollbar';
48
48
  export * from './src/segmented';
49
49
  export * from './src/select';
50
50
  export * from './src/skeleton';
51
+ export * from './src/slider-verify';
51
52
  export * from './src/space';
53
+ export * from './src/split';
52
54
  export * from './src/statistic';
53
55
  export * from './src/steps';
54
56
  export * from './src/switch';
@@ -66,7 +66,10 @@ import "./src/radio/types.mjs";
66
66
  import "./src/radio/index.mjs";
67
67
  import "./src/segmented/index.mjs";
68
68
  import "./src/skeleton/index.mjs";
69
+ import "./src/slider-verify/index.mjs";
69
70
  import "./src/space/index.mjs";
71
+ import "./src/split/types.mjs";
72
+ import "./src/split/index.mjs";
70
73
  import "./src/statistic/index.mjs";
71
74
  import "./src/steps/index.mjs";
72
75
  import "./src/switch/index.mjs";
@@ -50,6 +50,9 @@ var y = g("<div>"), b = g(" "), x = g("<button>", 1), S = /*@__PURE__*/ c({
50
50
  }), 261), p(E, null, 1), s("default", null, () => {
51
51
  let e = b();
52
52
  return u(() => h(e, _(c.label))), e;
53
+ }), p(E, null, 2), o(() => g["icon-right"] && !c.loading, () => {
54
+ let e = y();
55
+ return u(() => f(e, [v(C).e("icon")])), p(e, null, 0), s("icon-right"), e;
53
56
  }), E;
54
57
  }
55
58
  });
@@ -35,9 +35,11 @@ export interface ButtonProps {
35
35
  }
36
36
  export interface ButtonSlots {
37
37
  /** 默认 */
38
- default: () => any;
38
+ default?: () => any;
39
39
  /** 图标 */
40
- icon: () => any;
40
+ icon?: () => any;
41
+ /** 右侧图标 */
42
+ "icon-right"?: () => any;
41
43
  }
42
44
  export interface ButtonGroupProps {
43
45
  /** 按钮组大小
@@ -22,5 +22,5 @@ export interface CarouselProps {
22
22
  /** 指示器位置
23
23
  * @default bottom
24
24
  */
25
- indicatorPosition?: 'top' | 'bottom' | 'left' | 'right' | 'outside';
25
+ indicatorPosition?: "top" | "bottom" | "left" | "right" | "outside";
26
26
  }
@@ -3,9 +3,9 @@ export interface DatetimePickerProps {
3
3
  /** 绑定值(v-model) */
4
4
  modelValue?: string | [string, string];
5
5
  /** 日期时间选择器类型 */
6
- type?: 'datetime' | 'datetime-range' | 'time';
6
+ type?: "datetime" | "datetime-range" | "time";
7
7
  /** 输入框大小 */
8
- size?: 'mini' | 'small' | 'medium' | 'large';
8
+ size?: "mini" | "small" | "medium" | "large";
9
9
  /** 是否禁用 */
10
10
  disabled?: boolean;
11
11
  /** 占位符 */
@@ -10,13 +10,13 @@ export interface FormProps {
10
10
  /** 表单校验规则 */
11
11
  rules?: Record<string, FormItemRule[]>;
12
12
  /** 表单尺寸 */
13
- size?: 'mini' | 'small' | 'medium' | 'large';
13
+ size?: "mini" | "small" | "medium" | "large";
14
14
  /** 表单项标签宽度 */
15
15
  labelWidth?: string | number;
16
16
  /** 表单项标签位置 */
17
- labelPosition?: 'left' | 'top';
17
+ labelPosition?: "left" | "top";
18
18
  /** 表单项标签对齐方式 */
19
- labelAlign?: 'left' | 'right';
19
+ labelAlign?: "left" | "right";
20
20
  }
21
21
  export interface FormEmits {
22
22
  /** 表单提交时触发 */
@@ -42,7 +42,7 @@ export interface FormItemProps {
42
42
  /** 表单项提示 */
43
43
  tooltip?: string;
44
44
  /** 表单项标签对齐方式 */
45
- labelAlign?: 'left' | 'right';
45
+ labelAlign?: "left" | "right";
46
46
  /** 是否显示必填标识 */
47
47
  showRequired?: boolean;
48
48
  }
@@ -56,17 +56,17 @@ export interface FormContext {
56
56
  /** 删除表单项 */
57
57
  removeField: (field: FormItemContext) => void;
58
58
  /** 表单尺寸 */
59
- size?: Ref<'mini' | 'small' | 'medium' | 'large'>;
59
+ size?: Ref<"mini" | "small" | "medium" | "large">;
60
60
  /** 表单项标签宽度 */
61
61
  labelWidth?: Ref<string | number>;
62
62
  /** 表单项标签位置 */
63
- labelPosition?: Ref<'left' | 'top'>;
63
+ labelPosition?: Ref<"left" | "top">;
64
64
  /** 表单项标签对齐方式 */
65
- labelAlign?: Ref<'left' | 'right' | undefined>;
65
+ labelAlign?: Ref<"left" | "right" | undefined>;
66
66
  }
67
67
  export declare const formContextKey: InjectionKey<FormContext>;
68
68
  export interface FormItemValidateStatus {
69
- state: 'success' | 'error' | 'init';
69
+ state: "success" | "error" | "init";
70
70
  errorMsg: string;
71
71
  loading: boolean;
72
72
  }
@@ -96,7 +96,7 @@ export interface FormValidateError {
96
96
  fields: ValidateFieldsError;
97
97
  }
98
98
  export interface FormItemStatusContext {
99
- size?: Ref<'mini' | 'small' | 'medium' | 'large'>;
99
+ size?: Ref<"mini" | "small" | "medium" | "large">;
100
100
  error?: Ref<boolean>;
101
101
  }
102
102
  export declare const formItemStatusContextKey: InjectionKey<FormItemStatusContext>;
@@ -4,7 +4,7 @@ export interface GalleriaProps {
4
4
  /** 缩略图位置
5
5
  * @default bottom
6
6
  */
7
- position?: 'top' | 'bottom' | 'left' | 'right';
7
+ position?: "top" | "bottom" | "left" | "right";
8
8
  /** 图片列表 */
9
9
  items: string[];
10
10
  }
@@ -11,7 +11,7 @@ var v = p("<div>", 1), y = /*@__PURE__*/ i({
11
11
  offset: { default: 0 }
12
12
  },
13
13
  setup(i) {
14
- let p = i, y = g("gridItemRef"), b = e("grid-item"), x = "grid-item-" + h(), S = a(t, {}), C = n(() => {
14
+ let p = i, y = g("gridItemRef"), b = e("grid"), x = "grid-item-" + h(), S = a(t, {}), C = n(() => {
15
15
  if (!S?.positionList) return {};
16
16
  let e = S?.positionList.value[x];
17
17
  return e ? { gridColumn: `${e.start} / ${e.end}` } : {};
@@ -40,7 +40,7 @@ var v = p("<div>", 1), y = /*@__PURE__*/ i({
40
40
  });
41
41
  let T = v();
42
42
  return c(() => {
43
- l(T, [m(b).b()]), f(T, C.value);
43
+ l(T, [m(b).e("item")]), f(T, C.value);
44
44
  }), u(T, null, 0), r(), d(T, y, null, "gridItemRef"), T;
45
45
  }
46
46
  });
@@ -1,6 +1,6 @@
1
1
  export interface InputNumberProps {
2
2
  /** 输入框大小 */
3
- size?: 'mini' | 'small' | 'medium' | 'large';
3
+ size?: "mini" | "small" | "medium" | "large";
4
4
  /** 最小值 */
5
5
  min?: number;
6
6
  /** 最大值 */
@@ -50,7 +50,7 @@ export interface InputNumberEmits {
50
50
  /** 输入框值变化时触发 */
51
51
  change: [value: number | null, evt: Event];
52
52
  /** 按下回车键时触发 */
53
- 'press-enter': [evt: KeyboardEvent];
53
+ "press-enter": [evt: KeyboardEvent];
54
54
  /** 点击清空按钮时触发 */
55
55
  clear: [evt: Event];
56
56
  /** 输入框获得焦点时触发 */
@@ -20,9 +20,9 @@ export interface InputTagProps {
20
20
  /** 后置标签 */
21
21
  append?: string;
22
22
  /** 触发方式 */
23
- trigger?: 'enter' | 'space';
23
+ trigger?: "enter" | "space";
24
24
  /** 尺寸 */
25
- size?: 'mini' | 'small' | 'medium' | 'large';
25
+ size?: "mini" | "small" | "medium" | "large";
26
26
  /** 是否折叠 */
27
27
  collapse?: boolean;
28
28
  /** 当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此功能,`collapse`的值必须为true */
@@ -1,27 +1,29 @@
1
1
  import { ListSlots } from './types';
2
2
  import { PublicProps, VNode, Plugin } from 'vue';
3
- export declare const SList: ((__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
3
+ export declare const SList: (<T extends {
4
+ id: number;
5
+ }>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
4
6
  attrs: any;
5
- slots: ListSlots;
6
- emit: (((evt: "dragStart", data: any) => void) & ((evt: "dragEnd", data: any) => void)) & ((event: "update:modelValue", value: any) => void);
7
+ slots: ListSlots<T>;
8
+ emit: ((evt: "select", item: T, index: number) => void) & ((event: "update:modelValue", value: T) => void);
7
9
  }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
8
10
  props: PublicProps & {
9
- modelValue?: any;
10
- data?: any[] | undefined;
11
+ modelValue?: T | undefined;
12
+ data?: T[] | undefined;
11
13
  hover?: boolean | undefined;
12
14
  selectable?: boolean | undefined;
13
- selectKey?: string | undefined;
14
15
  border?: boolean | undefined;
15
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
16
- onDragStart?: ((data: any) => any) | undefined;
17
- onDragEnd?: ((data: any) => any) | undefined;
16
+ gap?: number | undefined;
17
+ size?: "mini" | "small" | "medium" | "large" | undefined;
18
+ onSelect?: ((item: T, index: number) => any) | undefined;
19
+ "onUpdate:modelValue"?: ((value: T) => any) | undefined;
18
20
  } & (typeof globalThis extends {
19
21
  __VLS_PROPS_FALLBACK: infer P;
20
22
  } ? P : {});
21
23
  expose: (exposed: {}) => void;
22
24
  attrs: any;
23
- slots: ListSlots;
24
- emit: (((evt: "dragStart", data: any) => void) & ((evt: "dragEnd", data: any) => void)) & ((event: "update:modelValue", value: any) => void);
25
+ slots: ListSlots<T>;
26
+ emit: ((evt: "select", item: T, index: number) => void) & ((event: "update:modelValue", value: T) => void);
25
27
  }>) => VNode & {
26
28
  __ctx?: Awaited<typeof __VLS_setup>;
27
29
  }) & Plugin;
@@ -1,19 +1,20 @@
1
1
  import { ListProps, ListSlots } from './types';
2
2
  import { PublicProps, VNode } from 'vue';
3
- declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: PublicProps & __VLS_PrettifyLocal<(ListProps & {
5
- modelValue?: any;
3
+ declare const __VLS_export: <T extends {
4
+ id: number;
5
+ }>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
+ props: PublicProps & __VLS_PrettifyLocal<(ListProps<T> & {
7
+ modelValue?: T;
6
8
  }) & {
7
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
8
- onDragStart?: ((data: any) => any) | undefined;
9
- onDragEnd?: ((data: any) => any) | undefined;
9
+ onSelect?: ((item: T, index: number) => any) | undefined;
10
+ "onUpdate:modelValue"?: ((value: T) => any) | undefined;
10
11
  }> & (typeof globalThis extends {
11
12
  __VLS_PROPS_FALLBACK: infer P;
12
13
  } ? P : {});
13
14
  expose: (exposed: {}) => void;
14
15
  attrs: any;
15
- slots: ListSlots;
16
- emit: (((evt: "dragStart", data: any) => void) & ((evt: "dragEnd", data: any) => void)) & ((event: "update:modelValue", value: any) => void);
16
+ slots: ListSlots<T>;
17
+ emit: ((evt: "select", item: T, index: number) => void) & ((event: "update:modelValue", value: T) => void);
17
18
  }>) => VNode & {
18
19
  __ctx?: Awaited<typeof __VLS_setup>;
19
20
  };