kui-vue 6.0.0 → 6.2.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 (265) hide show
  1. package/AI.en-US.md +21 -1
  2. package/AI.md +37 -1
  3. package/ai/behaviors.json +82 -0
  4. package/ai/evals/README.md +59 -0
  5. package/ai/evals/cases.json +91 -24
  6. package/ai/evals/config.json +4 -0
  7. package/ai/evals/evaluate.mjs +267 -0
  8. package/ai/evals/run.mjs +118 -0
  9. package/ai/kui-components.json +7894 -955
  10. package/ai/kui-components.schema.json +67 -0
  11. package/ai/mcp.mjs +210 -166
  12. package/ai/skills/kui-vue/SKILL.md +2 -1
  13. package/ai/skills/kui-vue/references/mcp.md +12 -12
  14. package/ai/templates/form.vue +49 -0
  15. package/ai/templates/index.json +23 -0
  16. package/ai/templates/modal-editor.vue +59 -0
  17. package/ai/templates/table.vue +63 -0
  18. package/ai/validate.mjs +225 -0
  19. package/dist/index.js +2 -2
  20. package/es/index.js +2180 -2179
  21. package/es/locale/de.js +1 -1
  22. package/es/locale/el.js +1 -1
  23. package/es/locale/en.js +1 -1
  24. package/es/locale/fr.js +1 -1
  25. package/es/locale/it.js +1 -1
  26. package/es/locale/ja.js +1 -1
  27. package/es/locale/ko.js +1 -1
  28. package/es/locale/ru.js +1 -1
  29. package/es/locale/th.js +1 -1
  30. package/es/locale/uk.js +1 -1
  31. package/es/locale/vi.js +1 -1
  32. package/es/locale/zh-CN.js +1 -1
  33. package/es/locale/zh-TW.js +1 -1
  34. package/lib/index.cjs +2 -2
  35. package/lib/locale/de.cjs +1 -1
  36. package/lib/locale/el.cjs +1 -1
  37. package/lib/locale/en.cjs +1 -1
  38. package/lib/locale/fr.cjs +1 -1
  39. package/lib/locale/it.cjs +1 -1
  40. package/lib/locale/ja.cjs +1 -1
  41. package/lib/locale/ko.cjs +1 -1
  42. package/lib/locale/ru.cjs +1 -1
  43. package/lib/locale/th.cjs +1 -1
  44. package/lib/locale/uk.cjs +1 -1
  45. package/lib/locale/vi.cjs +1 -1
  46. package/lib/locale/zh-CN.cjs +1 -1
  47. package/lib/locale/zh-TW.cjs +1 -1
  48. package/package.json +37 -31
  49. package/style/base.css +1 -1
  50. package/style/components.css +2 -2
  51. package/style/index.css +2 -2
  52. package/style/motion.css +1 -1
  53. package/style/theme.css +2 -2
  54. package/types/affix/index.d.ts +5 -5
  55. package/types/alert/index.d.ts +9 -7
  56. package/types/anchor/anchor-link.d.ts +4 -4
  57. package/types/anchor/anchor.d.ts +6 -6
  58. package/types/anchor/context.d.ts +1 -1
  59. package/types/anchor/index.d.ts +4 -4
  60. package/types/auto-complete/index.d.ts +7 -11
  61. package/types/avatar/avatar-group.d.ts +5 -5
  62. package/types/avatar/avatar.d.ts +6 -6
  63. package/types/avatar/context.d.ts +1 -1
  64. package/types/avatar/index.d.ts +4 -4
  65. package/types/back-top/index.d.ts +5 -5
  66. package/types/badge/index.d.ts +6 -6
  67. package/types/base/transition.d.ts +1 -1
  68. package/types/breadcrumb/breadcrumb-item.d.ts +6 -6
  69. package/types/breadcrumb/breadcrumb.d.ts +4 -4
  70. package/types/breadcrumb/index.d.ts +4 -4
  71. package/types/button/button-group.d.ts +5 -5
  72. package/types/button/button.d.ts +4 -4
  73. package/types/button/index.d.ts +4 -4
  74. package/types/calendar/index.d.ts +8 -5
  75. package/types/card/card-meta.d.ts +4 -4
  76. package/types/card/index.d.ts +8 -8
  77. package/types/carousel/carousel-item.d.ts +1 -1
  78. package/types/carousel/carousel.d.ts +20 -7
  79. package/types/carousel/index.d.ts +3 -3
  80. package/types/cascader/index.d.ts +41 -32
  81. package/types/cascader/types.d.ts +7 -3
  82. package/types/check-card/check-card-group.d.ts +10 -7
  83. package/types/check-card/check-card.d.ts +21 -8
  84. package/types/check-card/context.d.ts +3 -3
  85. package/types/check-card/index.d.ts +5 -5
  86. package/types/check-card/types.d.ts +2 -2
  87. package/types/checkbox/checkbox-group.d.ts +20 -7
  88. package/types/checkbox/checkbox.d.ts +4 -3
  89. package/types/checkbox/index.d.ts +5 -5
  90. package/types/collapse/collapse-panel.d.ts +6 -6
  91. package/types/collapse/collapse.d.ts +7 -7
  92. package/types/collapse/context.d.ts +1 -1
  93. package/types/collapse/index.d.ts +4 -4
  94. package/types/color-picker/alpha.d.ts +10 -6
  95. package/types/color-picker/hue.d.ts +7 -4
  96. package/types/color-picker/index.d.ts +34 -20
  97. package/types/color-picker/mode.d.ts +9 -9
  98. package/types/color-picker/paint.d.ts +9 -6
  99. package/types/color-picker/presets.d.ts +7 -7
  100. package/types/color-picker/types.d.ts +1 -0
  101. package/types/components.d.ts +166 -161
  102. package/types/config/context.d.ts +2 -2
  103. package/types/config/index.d.ts +7 -7
  104. package/types/config/popup.d.ts +1 -1
  105. package/types/const/types.d.ts +2 -2
  106. package/types/date-picker/index.d.ts +49 -19
  107. package/types/descriptions/descriptions-item.d.ts +5 -5
  108. package/types/descriptions/descriptions.d.ts +5 -5
  109. package/types/descriptions/index.d.ts +4 -2
  110. package/types/directives/outsiteclick.d.ts +1 -1
  111. package/types/directives/resize.d.ts +1 -1
  112. package/types/directives/scroll.d.ts +1 -1
  113. package/types/divider/index.d.ts +5 -5
  114. package/types/drawer/index.d.ts +24 -11
  115. package/types/dropdown/dropdown-button.d.ts +7 -7
  116. package/types/dropdown/dropdown.d.ts +12 -16
  117. package/types/dropdown/index.d.ts +4 -2
  118. package/types/dropdown/trigger.d.ts +6 -6
  119. package/types/empty/index.d.ts +1 -1
  120. package/types/feature-card/index.d.ts +7 -7
  121. package/types/feedback-panel/feedback-panel.d.ts +7 -7
  122. package/types/feedback-panel/index.d.ts +3 -3
  123. package/types/flame-wrap/index.d.ts +9 -9
  124. package/types/flex/index.d.ts +7 -7
  125. package/types/flex/types.d.ts +1 -1
  126. package/types/form/context.d.ts +3 -3
  127. package/types/form/form-item.d.ts +6 -6
  128. package/types/form/form.d.ts +9 -13
  129. package/types/form/index.d.ts +6 -6
  130. package/types/global.d.ts +2 -0
  131. package/types/grid/grid-item.d.ts +2 -2
  132. package/types/grid/grid.d.ts +3 -3
  133. package/types/grid/index.d.ts +5 -5
  134. package/types/grid/useBreakpoint.d.ts +1 -1
  135. package/types/icon/index.d.ts +8 -8
  136. package/types/image/context.d.ts +2 -2
  137. package/types/image/group.d.ts +4 -4
  138. package/types/image/image.d.ts +7 -7
  139. package/types/image/index.d.ts +5 -5
  140. package/types/image/instance.d.ts +11 -4
  141. package/types/image/preview.d.ts +6 -6
  142. package/types/index.d.cts +2 -2
  143. package/types/index.d.ts +2 -2
  144. package/types/input/index.d.ts +6 -6
  145. package/types/input/input-box.d.ts +6 -6
  146. package/types/input/input-group.d.ts +5 -5
  147. package/types/input/input.d.ts +27 -10
  148. package/types/input/textarea.d.ts +17 -8
  149. package/types/input-number/index.d.ts +10 -7
  150. package/types/input-otp/index.d.ts +3 -3
  151. package/types/input-otp/input-otp.d.ts +21 -8
  152. package/types/input-tag/index.d.ts +6 -6
  153. package/types/kanban/index.d.ts +5 -5
  154. package/types/layout/index.d.ts +17 -17
  155. package/types/list-panel/index.d.ts +7 -7
  156. package/types/mentions/index.d.ts +7 -7
  157. package/types/menu/index.d.ts +6 -6
  158. package/types/menu/menu-context.d.ts +4 -2
  159. package/types/menu/menu-divider.d.ts +1 -1
  160. package/types/menu/menu-group.d.ts +4 -4
  161. package/types/menu/menu-item.d.ts +10 -6
  162. package/types/menu/menu.d.ts +24 -17
  163. package/types/menu/recursive-menu.d.ts +5 -5
  164. package/types/menu/sub-menu.d.ts +6 -6
  165. package/types/menu/types.d.ts +2 -2
  166. package/types/message/index.d.ts +3 -3
  167. package/types/modal/index.d.ts +15 -10
  168. package/types/modal/modal.d.ts +25 -97
  169. package/types/modal/toast.d.ts +11 -10
  170. package/types/notice/container.d.ts +3 -3
  171. package/types/notice/content.d.ts +10 -77
  172. package/types/notice/index.d.ts +3 -3
  173. package/types/notice/instance.d.ts +2 -2
  174. package/types/page/index.d.ts +6 -6
  175. package/types/page-header/index.d.ts +4 -4
  176. package/types/popconfirm/index.d.ts +8 -45
  177. package/types/poptip/index.d.ts +9 -47
  178. package/types/popup/index.d.ts +251 -0
  179. package/types/popup/layers.d.ts +9 -0
  180. package/types/popup/types.d.ts +15 -0
  181. package/types/progress/index.d.ts +6 -6
  182. package/types/qrcode/index.d.ts +7 -7
  183. package/types/radio/index.d.ts +8 -7
  184. package/types/radio/radio-button.d.ts +8 -8
  185. package/types/radio/radio-group.d.ts +4 -3
  186. package/types/radio/radio.d.ts +7 -7
  187. package/types/radio/types.d.ts +1 -1
  188. package/types/rate/index.d.ts +7 -7
  189. package/types/rate/star.d.ts +7 -7
  190. package/types/result/index.d.ts +3 -3
  191. package/types/result/result.d.ts +7 -7
  192. package/types/ripple/index.d.ts +6 -6
  193. package/types/row-col/col.d.ts +4 -4
  194. package/types/row-col/index.d.ts +4 -4
  195. package/types/row-col/row.d.ts +4 -4
  196. package/types/segmented/index.d.ts +6 -4
  197. package/types/select/index.d.ts +5 -5
  198. package/types/select/option.d.ts +13 -14
  199. package/types/select/select.d.ts +10 -6
  200. package/types/select/types.d.ts +1 -1
  201. package/types/skeleton/index.d.ts +10 -10
  202. package/types/skeleton/skeleton-avatar.d.ts +13 -13
  203. package/types/skeleton/skeleton-button.d.ts +15 -15
  204. package/types/skeleton/skeleton-image.d.ts +11 -11
  205. package/types/skeleton/skeleton-text.d.ts +11 -11
  206. package/types/skeleton/skeleton.d.ts +15 -15
  207. package/types/skeleton/types.d.ts +2 -2
  208. package/types/skeleton/use-skeleton-loading.d.ts +1 -1
  209. package/types/slider/index.d.ts +8 -3
  210. package/types/slider/thumb.d.ts +7 -7
  211. package/types/space/index.d.ts +4 -4
  212. package/types/spin/index.d.ts +18 -5
  213. package/types/splitter/index.d.ts +2 -2
  214. package/types/splitter/splitter-panel.d.ts +4 -4
  215. package/types/splitter/splitter.d.ts +6 -6
  216. package/types/stat-card/countup.d.ts +4 -4
  217. package/types/stat-card/index.d.ts +5 -5
  218. package/types/stat-card/rollup.d.ts +6 -4
  219. package/types/stat-card/stat-card.d.ts +7 -7
  220. package/types/stat-card/stat-number.d.ts +19 -6
  221. package/types/stat-card/types.d.ts +1 -1
  222. package/types/stat-card/utils/countup.d.ts +1 -1
  223. package/types/stat-card/utils/odometer.d.ts +8 -5
  224. package/types/steps/index.d.ts +8 -8
  225. package/types/switch/index.d.ts +3 -2
  226. package/types/table/column-setting.d.ts +7 -7
  227. package/types/table/index.d.ts +13 -26
  228. package/types/table/types.d.ts +2 -2
  229. package/types/table/utils.d.ts +1 -1
  230. package/types/tabs/index.d.ts +5 -4
  231. package/types/tabs/tab-panel.d.ts +6 -6
  232. package/types/tabs/tabs.d.ts +6 -6
  233. package/types/tabs/types.d.ts +1 -1
  234. package/types/tag/index.d.ts +9 -7
  235. package/types/time-line/index.d.ts +5 -5
  236. package/types/time-line/timeline-item.d.ts +5 -5
  237. package/types/time-line/timeline.d.ts +6 -6
  238. package/types/tooltip/index.d.ts +21 -35
  239. package/types/tour/index.d.ts +34 -23
  240. package/types/transfer/index.d.ts +18 -5
  241. package/types/tree/context.d.ts +1 -1
  242. package/types/tree/index.d.ts +13 -10
  243. package/types/tree/types.d.ts +1 -1
  244. package/types/tree/utils.d.ts +1 -1
  245. package/types/tree-select/index.d.ts +14 -7
  246. package/types/typography/index.d.ts +26 -17
  247. package/types/upload/file-list.d.ts +8 -8
  248. package/types/upload/index.d.ts +9 -22
  249. package/types/upload/picture-sort.d.ts +2 -0
  250. package/types/upload/selector.d.ts +9 -9
  251. package/types/upload/types.d.ts +1 -1
  252. package/types/utils/checked.d.ts +1 -1
  253. package/types/utils/model-value.d.ts +10 -0
  254. package/types/utils/number.d.ts +1 -1
  255. package/types/utils/placement.d.ts +1 -1
  256. package/types/utils/popup.d.ts +11 -0
  257. package/types/utils/selection-tags.d.ts +18 -0
  258. package/types/utils/vnode.d.ts +3 -3
  259. package/types/utils/vue.d.ts +7 -1
  260. package/types/virtual-list/index.d.ts +6 -6
  261. package/types/watermark/index.d.ts +8 -8
  262. package/vetur/attributes.json +1717 -781
  263. package/vetur/tags.json +359 -159
  264. package/vetur/web-types.json +7563 -6197
  265. package/types/directives/transfer.d.ts +0 -2
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes, PropType, VNodeChild } from 'vue';
1
+ import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
2
2
  export interface TourStep {
3
3
  target?: HTMLElement | null | (() => HTMLElement | null);
4
4
  title?: VNodeChild;
@@ -11,12 +11,15 @@ declare const propsDef: {
11
11
  type: BooleanConstructor;
12
12
  default: undefined;
13
13
  };
14
- defaultOpen: BooleanConstructor;
15
- current: NumberConstructor;
16
- defaultCurrent: {
17
- type: NumberConstructor;
18
- default: number;
14
+ value: {
15
+ type: BooleanConstructor;
16
+ default: undefined;
17
+ };
18
+ open: {
19
+ type: BooleanConstructor;
20
+ default: undefined;
19
21
  };
22
+ current: NumberConstructor;
20
23
  steps: {
21
24
  type: PropType<TourStep[]>;
22
25
  default: () => never[];
@@ -35,17 +38,20 @@ declare const propsDef: {
35
38
  };
36
39
  };
37
40
  export type TourProps = ExtractPropTypes<typeof propsDef>;
38
- declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
41
+ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
39
42
  modelValue: {
40
43
  type: BooleanConstructor;
41
44
  default: undefined;
42
45
  };
43
- defaultOpen: BooleanConstructor;
44
- current: NumberConstructor;
45
- defaultCurrent: {
46
- type: NumberConstructor;
47
- default: number;
46
+ value: {
47
+ type: BooleanConstructor;
48
+ default: undefined;
48
49
  };
50
+ open: {
51
+ type: BooleanConstructor;
52
+ default: undefined;
53
+ };
54
+ current: NumberConstructor;
49
55
  steps: {
50
56
  type: PropType<TourStep[]>;
51
57
  default: () => never[];
@@ -62,22 +68,26 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
62
68
  type: BooleanConstructor;
63
69
  default: boolean;
64
70
  };
65
- }>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
71
+ }>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
72
+ "update:open": (open: boolean) => boolean;
66
73
  "update:modelValue": (open: boolean) => boolean;
67
74
  change: (current: number) => boolean;
68
75
  openChange: (open: boolean) => boolean;
69
76
  finish: () => true;
70
- }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
77
+ }, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
71
78
  modelValue: {
72
79
  type: BooleanConstructor;
73
80
  default: undefined;
74
81
  };
75
- defaultOpen: BooleanConstructor;
76
- current: NumberConstructor;
77
- defaultCurrent: {
78
- type: NumberConstructor;
79
- default: number;
82
+ value: {
83
+ type: BooleanConstructor;
84
+ default: undefined;
80
85
  };
86
+ open: {
87
+ type: BooleanConstructor;
88
+ default: undefined;
89
+ };
90
+ current: NumberConstructor;
81
91
  steps: {
82
92
  type: PropType<TourStep[]>;
83
93
  default: () => never[];
@@ -96,16 +106,17 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
96
106
  };
97
107
  }>> & Readonly<{
98
108
  onChange?: ((current: number) => any) | undefined;
99
- "onUpdate:modelValue"?: ((open: boolean) => any) | undefined;
109
+ "onUpdate:open"?: ((open: boolean) => any) | undefined;
100
110
  onOpenChange?: ((open: boolean) => any) | undefined;
111
+ "onUpdate:modelValue"?: ((open: boolean) => any) | undefined;
101
112
  onFinish?: (() => any) | undefined;
102
113
  }>, {
103
114
  mask: boolean;
115
+ open: boolean;
116
+ value: boolean;
104
117
  closable: boolean;
105
118
  modelValue: boolean;
106
- defaultOpen: boolean;
107
119
  escKey: boolean;
108
- defaultCurrent: number;
109
120
  steps: TourStep[];
110
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
121
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
111
122
  export default _default;
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes, PropType, VNodeChild } from 'vue';
1
+ import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
2
2
  export type TransferKey = string | number;
3
3
  export interface TransferItem {
4
4
  key: TransferKey;
@@ -8,6 +8,10 @@ export interface TransferItem {
8
8
  }
9
9
  declare const transferProps: {
10
10
  modelValue: {
11
+ type: PropType<TransferKey[]>;
12
+ default: undefined;
13
+ };
14
+ value: {
11
15
  type: PropType<TransferKey[]>;
12
16
  default: () => never[];
13
17
  };
@@ -36,8 +40,12 @@ declare const transferProps: {
36
40
  render: PropType<(item: TransferItem) => VNodeChild>;
37
41
  };
38
42
  export type TransferProps = ExtractPropTypes<typeof transferProps>;
39
- declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
43
+ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
40
44
  modelValue: {
45
+ type: PropType<TransferKey[]>;
46
+ default: undefined;
47
+ };
48
+ value: {
41
49
  type: PropType<TransferKey[]>;
42
50
  default: () => never[];
43
51
  };
@@ -64,13 +72,17 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
64
72
  };
65
73
  filterOption: PropType<(keyword: string, item: TransferItem) => boolean>;
66
74
  render: PropType<(item: TransferItem) => VNodeChild>;
67
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
75
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
68
76
  "update:modelValue": (keys: TransferKey[]) => boolean;
69
77
  change: (targetKeys: TransferKey[], direction: "left" | "right", movedKeys: TransferKey[]) => boolean;
70
78
  search: (direction: "left" | "right", value: string) => boolean;
71
79
  selectChange: (sourceKeys: TransferKey[], targetKeys: TransferKey[]) => boolean;
72
- }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
80
+ }, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
73
81
  modelValue: {
82
+ type: PropType<TransferKey[]>;
83
+ default: undefined;
84
+ };
85
+ value: {
74
86
  type: PropType<TransferKey[]>;
75
87
  default: () => never[];
76
88
  };
@@ -105,11 +117,12 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
105
117
  }>, {
106
118
  disabled: boolean;
107
119
  theme: "fill" | "outline";
120
+ value: TransferKey[];
108
121
  modelValue: TransferKey[];
109
122
  readonly: boolean;
110
123
  dataSource: TransferItem[];
111
124
  titles: [string, string];
112
125
  operations: [string, string];
113
126
  searchable: boolean;
114
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
127
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
115
128
  export default _default;
@@ -1,4 +1,4 @@
1
- import { InjectionKey, Ref } from 'vue';
1
+ import type { InjectionKey, Ref } from "vue";
2
2
  export interface TreeSelectContext {
3
3
  checkOnClick: Ref<boolean>;
4
4
  query: Ref<string>;
@@ -1,13 +1,14 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- import { BooleanType } from '../const/types';
3
- import { TreeDropEvent, TreeExpandEvent, TreeFieldNames } from './types';
4
- import { TreeNode, TreeNodeData } from './utils';
1
+ import { type ExtractPropTypes, type PropType } from "vue";
2
+ import type { BooleanType } from "../const/types";
3
+ import type { TreeDropEvent, TreeExpandEvent, TreeFieldNames } from "./types";
4
+ import { type TreeNode, type TreeNodeData } from "./utils";
5
5
  declare const treeProps: {
6
6
  data: PropType<TreeNodeData[]>;
7
7
  selectedKeys: PropType<string[]>;
8
8
  expandedKeys: PropType<string[]>;
9
9
  checkedKeys: PropType<string[]>;
10
10
  directory: BooleanType;
11
+ disabled: BooleanType;
11
12
  checkable: BooleanType;
12
13
  draggable: BooleanType;
13
14
  showLine: BooleanType;
@@ -44,13 +45,14 @@ declare const treeProps: {
44
45
  fieldNames: PropType<TreeFieldNames>;
45
46
  };
46
47
  export type TreeProps = ExtractPropTypes<typeof treeProps>;
47
- export type { BuildTreeOptions, TreeNode } from './utils';
48
- declare const Tree: import('vue').DefineComponent<ExtractPropTypes<{
48
+ export type { BuildTreeOptions, TreeNode } from "./utils";
49
+ declare const Tree: import("vue").DefineComponent<ExtractPropTypes<{
49
50
  data: PropType<TreeNodeData[]>;
50
51
  selectedKeys: PropType<string[]>;
51
52
  expandedKeys: PropType<string[]>;
52
53
  checkedKeys: PropType<string[]>;
53
54
  directory: BooleanType;
55
+ disabled: BooleanType;
54
56
  checkable: BooleanType;
55
57
  draggable: BooleanType;
56
58
  showLine: BooleanType;
@@ -85,7 +87,7 @@ declare const Tree: import('vue').DefineComponent<ExtractPropTypes<{
85
87
  };
86
88
  loading: BooleanType;
87
89
  fieldNames: PropType<TreeFieldNames>;
88
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
90
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
89
91
  "update:expandedKeys": (keys: string[]) => boolean;
90
92
  "update:checkedKeys": (keys: string[]) => boolean;
91
93
  "update:selectedKeys": (keys: string[]) => boolean;
@@ -98,12 +100,13 @@ declare const Tree: import('vue').DefineComponent<ExtractPropTypes<{
98
100
  drop: (nodes: TreeDropEvent, event: DragEvent) => boolean;
99
101
  loadError: (_error: unknown, node: TreeNode) => boolean;
100
102
  dragend: (node: TreeNode, event: DragEvent) => boolean;
101
- }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
103
+ }, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
102
104
  data: PropType<TreeNodeData[]>;
103
105
  selectedKeys: PropType<string[]>;
104
106
  expandedKeys: PropType<string[]>;
105
107
  checkedKeys: PropType<string[]>;
106
108
  directory: BooleanType;
109
+ disabled: BooleanType;
107
110
  checkable: BooleanType;
108
111
  draggable: BooleanType;
109
112
  showLine: BooleanType;
@@ -158,6 +161,6 @@ declare const Tree: import('vue').DefineComponent<ExtractPropTypes<{
158
161
  itemHeight: number;
159
162
  overscan: number;
160
163
  showExtra: boolean | undefined;
161
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
164
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
162
165
  export default Tree;
163
- export type { TreeDropEvent, TreeDropPosition, TreeExpandEvent, TreeExpose, TreeFieldNames, } from './types';
166
+ export type { TreeDropEvent, TreeDropPosition, TreeExpandEvent, TreeExpose, TreeFieldNames, } from "./types";
@@ -1,4 +1,4 @@
1
- import { TreeNode } from './utils';
1
+ import type { TreeNode } from "./utils";
2
2
  export interface TreeFieldNames {
3
3
  key?: string;
4
4
  title?: string;
@@ -1,4 +1,4 @@
1
- import { IconType } from '../icon';
1
+ import type { IconType } from "../icon";
2
2
  export interface TreeNode {
3
3
  key: string;
4
4
  title?: string;
@@ -1,9 +1,9 @@
1
- import { ExtractPropTypes, HTMLAttributes, PropType } from 'vue';
2
- import { BooleanType, DropPlacementsType, ShapeType, SizeType, ThemeType } from '../const/types';
3
- import { IconType } from '../icon';
4
- import { TreeExpandEvent } from '../tree';
5
- import { TreeNode } from '../tree/utils';
6
- type TreeSelectValue = string | string[] | null | undefined;
1
+ import { type ExtractPropTypes, type HTMLAttributes, type PropType, type VNodeChild } from "vue";
2
+ import type { BooleanType, DropPlacementsType, ShapeType, SizeType, ThemeType } from "../const/types";
3
+ import { type IconType } from "../icon";
4
+ import { type TreeExpandEvent } from "../tree";
5
+ import type { TreeNode } from "../tree/utils";
6
+ export type TreeSelectValue = string | string[] | null | undefined;
7
7
  declare const treeSelectProps: {
8
8
  placeholder: StringConstructor;
9
9
  size: {
@@ -16,6 +16,7 @@ declare const treeSelectProps: {
16
16
  width: NumberConstructor;
17
17
  maxTagCount: NumberConstructor;
18
18
  modelValue: PropType<TreeSelectValue>;
19
+ value: PropType<TreeSelectValue>;
19
20
  clearable: {
20
21
  type: BooleanType;
21
22
  default: boolean;
@@ -69,11 +70,17 @@ declare const treeSelectProps: {
69
70
  };
70
71
  };
71
72
  export type TreeSelectProps = ExtractPropTypes<typeof treeSelectProps>;
72
- type TreeSelectPublicProps<T extends TreeSelectValue> = Omit<Partial<TreeSelectProps>, "modelValue"> & Omit<HTMLAttributes, "onChange"> & {
73
+ type TreeSelectPublicProps<T extends TreeSelectValue> = Omit<Partial<TreeSelectProps>, "modelValue" | "value"> & Omit<HTMLAttributes, "onChange"> & {
73
74
  modelValue?: T;
75
+ value?: T;
74
76
  "onUpdate:modelValue"?: (value: T) => void;
75
77
  onChange?: (value: T) => void;
76
78
  onTreeExpand?: (event: TreeExpandEvent) => void;
79
+ "onUpdate:treeExpandedKeys"?: (keys: string[]) => void;
80
+ onTreeSelect?: (value: string, label: VNodeChild, selected: boolean) => void;
81
+ onSearch?: (event: InputEvent) => void;
82
+ onOpenChange?: (open: boolean) => void;
83
+ onClear?: () => void;
77
84
  };
78
85
  type TreeSelectComponent = {
79
86
  new <T extends TreeSelectValue = string>(props: TreeSelectPublicProps<T>): {
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
1
+ import { type ExtractPropTypes, type PropType } from "vue";
2
2
  export type TypographyType = "secondary" | "success" | "warning" | "danger";
3
3
  export type TypographyTag = "span" | "p" | "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
4
4
  export interface TypographyCopyableOptions {
@@ -17,6 +17,7 @@ export interface TypographyEllipsisOptions {
17
17
  }
18
18
  declare const typographyProps: {
19
19
  modelValue: StringConstructor;
20
+ value: StringConstructor;
20
21
  tag: PropType<TypographyTag>;
21
22
  type: PropType<TypographyType>;
22
23
  strong: BooleanConstructor;
@@ -40,8 +41,9 @@ declare const typographyProps: {
40
41
  };
41
42
  };
42
43
  export type TypographyProps = ExtractPropTypes<typeof typographyProps>;
43
- export declare const TypographyText: import('vue').DefineComponent<ExtractPropTypes<{
44
+ export declare const TypographyText: import("vue").DefineComponent<ExtractPropTypes<{
44
45
  modelValue: StringConstructor;
46
+ value: StringConstructor;
45
47
  tag: PropType<TypographyTag>;
46
48
  type: PropType<TypographyType>;
47
49
  strong: BooleanConstructor;
@@ -63,12 +65,13 @@ export declare const TypographyText: import('vue').DefineComponent<ExtractPropTy
63
65
  type: PropType<boolean | number | TypographyEllipsisOptions>;
64
66
  default: boolean;
65
67
  };
66
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
68
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
67
69
  "update:modelValue": (value: string) => boolean;
68
70
  change: (value: string) => boolean;
69
71
  copy: (value: string) => boolean;
70
- }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
72
+ }, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
71
73
  modelValue: StringConstructor;
74
+ value: StringConstructor;
72
75
  tag: PropType<TypographyTag>;
73
76
  type: PropType<TypographyType>;
74
77
  strong: BooleanConstructor;
@@ -105,9 +108,10 @@ export declare const TypographyText: import('vue').DefineComponent<ExtractPropTy
105
108
  delete: boolean;
106
109
  editable: boolean | TypographyEditableOptions;
107
110
  copyable: boolean | TypographyCopyableOptions;
108
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
109
- export declare const TypographyParagraph: import('vue').DefineComponent<ExtractPropTypes<{
111
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
112
+ export declare const TypographyParagraph: import("vue").DefineComponent<ExtractPropTypes<{
110
113
  modelValue: StringConstructor;
114
+ value: StringConstructor;
111
115
  tag: PropType<TypographyTag>;
112
116
  type: PropType<TypographyType>;
113
117
  strong: BooleanConstructor;
@@ -129,12 +133,13 @@ export declare const TypographyParagraph: import('vue').DefineComponent<ExtractP
129
133
  type: PropType<boolean | number | TypographyEllipsisOptions>;
130
134
  default: boolean;
131
135
  };
132
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
136
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
133
137
  "update:modelValue": (value: string) => boolean;
134
138
  change: (value: string) => boolean;
135
139
  copy: (value: string) => boolean;
136
- }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
140
+ }, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
137
141
  modelValue: StringConstructor;
142
+ value: StringConstructor;
138
143
  tag: PropType<TypographyTag>;
139
144
  type: PropType<TypographyType>;
140
145
  strong: BooleanConstructor;
@@ -171,9 +176,10 @@ export declare const TypographyParagraph: import('vue').DefineComponent<ExtractP
171
176
  delete: boolean;
172
177
  editable: boolean | TypographyEditableOptions;
173
178
  copyable: boolean | TypographyCopyableOptions;
174
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
175
- export declare const TypographyTitle: import('vue').DefineComponent<ExtractPropTypes<{
179
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
180
+ export declare const TypographyTitle: import("vue").DefineComponent<ExtractPropTypes<{
176
181
  modelValue: StringConstructor;
182
+ value: StringConstructor;
177
183
  tag: PropType<TypographyTag>;
178
184
  type: PropType<TypographyType>;
179
185
  strong: BooleanConstructor;
@@ -195,12 +201,13 @@ export declare const TypographyTitle: import('vue').DefineComponent<ExtractPropT
195
201
  type: PropType<boolean | number | TypographyEllipsisOptions>;
196
202
  default: boolean;
197
203
  };
198
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
204
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
199
205
  "update:modelValue": (value: string) => boolean;
200
206
  change: (value: string) => boolean;
201
207
  copy: (value: string) => boolean;
202
- }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
208
+ }, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
203
209
  modelValue: StringConstructor;
210
+ value: StringConstructor;
204
211
  tag: PropType<TypographyTag>;
205
212
  type: PropType<TypographyType>;
206
213
  strong: BooleanConstructor;
@@ -237,9 +244,10 @@ export declare const TypographyTitle: import('vue').DefineComponent<ExtractPropT
237
244
  delete: boolean;
238
245
  editable: boolean | TypographyEditableOptions;
239
246
  copyable: boolean | TypographyCopyableOptions;
240
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
241
- declare const Typography: import('vue').DefineComponent<ExtractPropTypes<{
247
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
248
+ declare const Typography: import("vue").DefineComponent<ExtractPropTypes<{
242
249
  modelValue: StringConstructor;
250
+ value: StringConstructor;
243
251
  tag: PropType<TypographyTag>;
244
252
  type: PropType<TypographyType>;
245
253
  strong: BooleanConstructor;
@@ -261,12 +269,13 @@ declare const Typography: import('vue').DefineComponent<ExtractPropTypes<{
261
269
  type: PropType<boolean | number | TypographyEllipsisOptions>;
262
270
  default: boolean;
263
271
  };
264
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
272
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
265
273
  "update:modelValue": (value: string) => boolean;
266
274
  change: (value: string) => boolean;
267
275
  copy: (value: string) => boolean;
268
- }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
276
+ }, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
269
277
  modelValue: StringConstructor;
278
+ value: StringConstructor;
270
279
  tag: PropType<TypographyTag>;
271
280
  type: PropType<TypographyType>;
272
281
  strong: BooleanConstructor;
@@ -303,5 +312,5 @@ declare const Typography: import('vue').DefineComponent<ExtractPropTypes<{
303
312
  delete: boolean;
304
313
  editable: boolean | TypographyEditableOptions;
305
314
  copyable: boolean | TypographyCopyableOptions;
306
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
315
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
307
316
  export default Typography;
@@ -1,7 +1,7 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- import { BooleanType } from '../const/types';
3
- import { UploadFile } from './types';
4
- import { default as zhCN } from '../locale/zh-CN';
1
+ import { type ExtractPropTypes, type PropType } from "vue";
2
+ import type { BooleanType } from "../const/types";
3
+ import type { UploadFile } from "./types";
4
+ import zhCN from "../locale/zh-CN";
5
5
  declare const uploadFileListProps: {
6
6
  showUploadList: {
7
7
  type: BooleanType;
@@ -26,7 +26,7 @@ declare const uploadFileListProps: {
26
26
  };
27
27
  };
28
28
  export type UploadFileListProps = ExtractPropTypes<typeof uploadFileListProps>;
29
- declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
29
+ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
30
30
  showUploadList: {
31
31
  type: BooleanType;
32
32
  default: boolean;
@@ -48,7 +48,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
48
48
  type: BooleanType;
49
49
  default: boolean;
50
50
  };
51
- }>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
51
+ }>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
52
52
  remove: (event: {
53
53
  index: number;
54
54
  file: UploadFile;
@@ -59,7 +59,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
59
59
  }) => boolean;
60
60
  abort: (file: UploadFile) => boolean;
61
61
  retry: (file: UploadFile) => boolean;
62
- }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
62
+ }, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
63
63
  showUploadList: {
64
64
  type: BooleanType;
65
65
  default: boolean;
@@ -97,5 +97,5 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
97
97
  showUploadList: boolean | undefined;
98
98
  fileList: UploadFile[];
99
99
  preview: boolean | undefined;
100
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
100
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
101
101
  export default _default;
@@ -1,7 +1,7 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- import { BooleanType } from '../const/types';
3
- import { IconType } from '../icon';
4
- import { UploadChangeEvent, UploadCustomRequest, UploadFile, UploadSortEvent } from './types';
1
+ import { type ExtractPropTypes, type PropType } from "vue";
2
+ import type { BooleanType } from "../const/types";
3
+ import { type IconType } from "../icon";
4
+ import type { UploadChangeEvent, UploadCustomRequest, UploadFile, UploadSortEvent } from "./types";
5
5
  declare const uploadProps: {
6
6
  method: {
7
7
  type: StringConstructor;
@@ -39,10 +39,6 @@ declare const uploadProps: {
39
39
  };
40
40
  transformFile: PropType<(file: File) => File | Blob | Promise<File | Blob>>;
41
41
  fileList: PropType<UploadFile[]>;
42
- defaultFileList: {
43
- type: PropType<UploadFile[]>;
44
- default: () => never[];
45
- };
46
42
  autoTrigger: {
47
43
  type: BooleanType;
48
44
  default: boolean;
@@ -75,7 +71,7 @@ export interface UploadContext extends UploadProps {
75
71
  abort: (file?: UploadFile) => void;
76
72
  retry: (file: UploadFile) => void;
77
73
  }
78
- declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
74
+ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
79
75
  method: {
80
76
  type: StringConstructor;
81
77
  default: string;
@@ -112,10 +108,6 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
112
108
  };
113
109
  transformFile: PropType<(file: File) => File | Blob | Promise<File | Blob>>;
114
110
  fileList: PropType<UploadFile[]>;
115
- defaultFileList: {
116
- type: PropType<UploadFile[]>;
117
- default: () => never[];
118
- };
119
111
  autoTrigger: {
120
112
  type: BooleanType;
121
113
  default: boolean;
@@ -141,7 +133,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
141
133
  default: number;
142
134
  };
143
135
  onBeforeUpload: PropType<(item: UploadFile, file: File) => boolean | File | Blob | void | Promise<boolean | File | Blob | void>>;
144
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
136
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
145
137
  "update:fileList": (files: UploadFile[]) => boolean;
146
138
  change: (event: UploadChangeEvent) => boolean;
147
139
  remove: (event: UploadChangeEvent) => boolean;
@@ -150,7 +142,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
150
142
  sizeError: (event: UploadChangeEvent) => boolean;
151
143
  typeError: (event: UploadChangeEvent) => boolean;
152
144
  sort: (event: UploadSortEvent) => boolean;
153
- }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
145
+ }, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
154
146
  method: {
155
147
  type: StringConstructor;
156
148
  default: string;
@@ -187,10 +179,6 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
187
179
  };
188
180
  transformFile: PropType<(file: File) => File | Blob | Promise<File | Blob>>;
189
181
  fileList: PropType<UploadFile[]>;
190
- defaultFileList: {
191
- type: PropType<UploadFile[]>;
192
- default: () => never[];
193
- };
194
182
  autoTrigger: {
195
183
  type: BooleanType;
196
184
  default: boolean;
@@ -233,10 +221,9 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
233
221
  preview: boolean | undefined;
234
222
  method: string;
235
223
  timeout: number;
236
- defaultFileList: UploadFile[];
237
224
  autoTrigger: boolean | undefined;
238
225
  validateAccept: boolean | undefined;
239
226
  maxConcurrent: number;
240
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
227
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
241
228
  export default _default;
242
- export type { UploadChangeEvent, UploadCustomRequest, UploadFile, UploadRequestHandle, UploadRequestOptions, UploadSortEvent, } from './types';
229
+ export type { UploadChangeEvent, UploadCustomRequest, UploadFile, UploadRequestHandle, UploadRequestOptions, UploadSortEvent, } from "./types";
@@ -0,0 +1,2 @@
1
+ /** Preview a reorder with transforms; commit data only after the card settles. */
2
+ export declare function startPictureSort(event: PointerEvent, card: HTMLElement, onSort: (oldIndex: number, newIndex: number) => void): () => void;
@@ -1,8 +1,8 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- import { BooleanType } from '../const/types';
3
- import { IconType } from '../icon';
4
- import { default as zhCN } from '../locale/zh-CN';
5
- import { UploadFile } from './types';
1
+ import { type ExtractPropTypes, type PropType } from "vue";
2
+ import type { BooleanType } from "../const/types";
3
+ import type { IconType } from "../icon";
4
+ import zhCN from "../locale/zh-CN";
5
+ import type { UploadFile } from "./types";
6
6
  declare const selectorProps: {
7
7
  disabled: BooleanType;
8
8
  readonly: BooleanType;
@@ -27,7 +27,7 @@ declare const selectorProps: {
27
27
  };
28
28
  };
29
29
  export type SelectorProps = ExtractPropTypes<typeof selectorProps>;
30
- declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
30
+ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
31
31
  disabled: BooleanType;
32
32
  readonly: BooleanType;
33
33
  name: {
@@ -49,9 +49,9 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
49
49
  default: string;
50
50
  validator: (val: string) => boolean;
51
51
  };
52
- }>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
52
+ }>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
53
53
  select: (files: File[]) => boolean;
54
- }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
54
+ }, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
55
55
  disabled: BooleanType;
56
56
  readonly: BooleanType;
57
57
  name: {
@@ -78,5 +78,5 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
78
78
  }>, {
79
79
  name: string;
80
80
  type: "picture" | "list";
81
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
81
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
82
82
  export default _default;
@@ -1,4 +1,4 @@
1
- import { UploadStatusType } from '../const/types';
1
+ import type { UploadStatusType } from "../const/types";
2
2
  export interface UploadFile {
3
3
  uid?: string;
4
4
  url?: string;
@@ -1,2 +1,2 @@
1
- import { ValueType } from '../const/types';
1
+ import type { ValueType } from "../const/types";
2
2
  export declare const getValueWithType: (checked: boolean, vType: ValueType) => string | number | boolean;
@@ -0,0 +1,10 @@
1
+ import { type WritableComputedRef } from "vue";
2
+ /** Capture value once; subsequent external updates belong to modelValue. */
3
+ export declare function useInitialValue<T>(props: {
4
+ modelValue?: T;
5
+ value: T;
6
+ }): WritableComputedRef<T>;
7
+ export declare function useInitialValue<T>(props: {
8
+ modelValue?: T;
9
+ value?: T;
10
+ }): WritableComputedRef<T | undefined>;
@@ -1,6 +1,6 @@
1
- import { SliderProps } from '../slider';
2
1
  export declare const isEmpty: (value: unknown) => boolean;
3
2
  export declare const isRealNum: (val: unknown) => boolean;
4
3
  export declare const normalize: (val: unknown, precision?: number) => string;
5
4
  export declare const isValidBig: (val: unknown) => boolean;
5
+ import type { SliderProps } from "../slider";
6
6
  export declare const getClosestStep: (val: number, { min, max, step, marks }: SliderProps) => number;