@sdata/web-vue 1.11.0 → 1.12.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 (292) hide show
  1. package/dist/sd.css +177 -6
  2. package/dist/sd.min.css +1 -1
  3. package/es/_components/select-view/style/index.css +13 -6
  4. package/es/_components/virtual-list/virtual-list.vue_vue_type_script_lang.js +2 -2
  5. package/es/_hooks/use-allow-search.d.ts +10 -0
  6. package/es/_hooks/use-allow-search.js +31 -0
  7. package/es/_hooks/use-scrollbar.js +1 -1
  8. package/es/_utils/color.js +1 -1
  9. package/es/_utils/date.js +7 -1
  10. package/es/_utils/dom.js +1 -1
  11. package/es/_utils/global-config.js +1 -1
  12. package/es/_utils/omit.js +1 -1
  13. package/es/_utils/responsive-observe.js +1 -1
  14. package/es/_utils/virtual-dropdown.js +1 -1
  15. package/es/_utils/vue-utils.js +4 -18
  16. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/asyncToGenerator.js +1 -1
  17. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/defineProperty.js +1 -1
  18. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/extends.js +1 -1
  19. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectDestructuringEmpty.js +1 -1
  20. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectSpread2.js +1 -1
  21. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectWithoutProperties.js +1 -1
  22. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectWithoutPropertiesLoose.js +1 -1
  23. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/toPrimitive.js +1 -1
  24. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/toPropertyKey.js +1 -1
  25. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/typeof.js +1 -1
  26. package/es/affix/affix.vue_vue_type_script_lang.js +31 -3
  27. package/es/alert/alert.vue_vue_type_script_lang.js +55 -0
  28. package/es/anchor/anchor-link.vue_vue_type_script_lang.js +8 -0
  29. package/es/anchor/anchor.vue_vue_type_script_lang.js +32 -0
  30. package/es/auto-complete/auto-complete.js +102 -0
  31. package/es/avatar/avatar-group.js +31 -0
  32. package/es/avatar/avatar.vue_vue_type_script_lang.js +51 -1
  33. package/es/back-top/back-top.vue_vue_type_script_lang.js +16 -0
  34. package/es/badge/badge.js +34 -1
  35. package/es/breadcrumb/breadcrumb-item.js +27 -0
  36. package/es/breadcrumb/breadcrumb.js +39 -0
  37. package/es/button/button-group.vue_vue_type_script_lang.js +22 -0
  38. package/es/button/button.vue_vue_type_script_lang.js +58 -1
  39. package/es/calendar/calendar.js +47 -0
  40. package/es/calendar/month.js +1 -1
  41. package/es/calendar/year.js +1 -1
  42. package/es/card/card-grid.vue_vue_type_script_lang.js +6 -1
  43. package/es/card/card-meta.js +23 -0
  44. package/es/card/card.js +54 -0
  45. package/es/carousel/carousel.js +68 -1
  46. package/es/cascader/cascader-panel.js +2 -28
  47. package/es/cascader/cascader-panel.vue.d.ts +24 -306
  48. package/es/cascader/{cascader-panel.vue_vue_type_script_lang.js → cascader-panel.vue_vue_type_script_setup_true_lang.js} +92 -101
  49. package/es/cascader/cascader.js +2 -145
  50. package/es/cascader/cascader.vue.d.ts +53 -1289
  51. package/es/cascader/{cascader.vue_vue_type_script_lang.js → cascader.vue_vue_type_script_setup_true_lang.js} +236 -172
  52. package/es/cascader/index.d.ts +4 -2986
  53. package/es/cascader/types.d.ts +79 -0
  54. package/es/checkbox/checkbox-group.js +48 -0
  55. package/es/checkbox/checkbox.js +35 -0
  56. package/es/collapse/collapse-item.js +36 -0
  57. package/es/collapse/collapse.vue_vue_type_script_lang.js +47 -0
  58. package/es/color-picker/color-picker.js +90 -1
  59. package/es/color-picker/panel.js +5 -2
  60. package/es/color-picker/utils.js +1 -1
  61. package/es/comment/comment.js +47 -1
  62. package/es/components.d.ts +132 -127
  63. package/es/config-provider/config-provider.vue.d.ts +9 -0
  64. package/es/config-provider/config-provider.vue_vue_type_script_lang.js +72 -1
  65. package/es/config-provider/context.d.ts +1 -0
  66. package/es/config-provider/index.d.ts +15 -0
  67. package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +1 -1
  68. package/es/config-provider/theme.js +1 -1
  69. package/es/copy/copy.js +5 -0
  70. package/es/copy/copy.vue.d.ts +15 -0
  71. package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +95 -0
  72. package/es/copy/index.d.ts +15 -0
  73. package/es/copy/index.js +10 -0
  74. package/es/copy/style/css.js +2 -0
  75. package/es/copy/style/index.css +25 -0
  76. package/es/copy/style/index.d.ts +2 -0
  77. package/es/copy/style/index.js +2 -0
  78. package/es/copy/style/index.scss +15 -0
  79. package/es/copy/style/token.scss +3 -0
  80. package/es/copy/types.d.ts +21 -0
  81. package/es/cropper/cropper.js +5 -0
  82. package/es/cropper/cropper.vue.d.ts +45 -0
  83. package/es/cropper/cropper.vue_vue_type_script_setup_true_lang.js +266 -0
  84. package/es/cropper/index.d.ts +130 -0
  85. package/es/cropper/index.js +10 -0
  86. package/es/cropper/interface.d.ts +59 -0
  87. package/es/cropper/style/css.js +2 -0
  88. package/es/cropper/style/index.css +51 -0
  89. package/es/cropper/style/index.d.ts +2 -0
  90. package/es/cropper/style/index.js +2 -0
  91. package/es/cropper/style/index.scss +43 -0
  92. package/es/cropper/style/token.scss +8 -0
  93. package/es/date-picker/hooks/use-range-time-picker-value.js +1 -1
  94. package/es/date-picker/index.d.ts +54 -576
  95. package/es/date-picker/panels/date/index.js +1 -1
  96. package/es/date-picker/panels/date/index.vue_vue_type_script_lang.js +1 -1
  97. package/es/date-picker/panels/footer.vue.d.ts +55 -577
  98. package/es/date-picker/panels/footer.vue_vue_type_script_lang.js +1 -1
  99. package/es/date-picker/panels/month/index.js +1 -1
  100. package/es/date-picker/panels/quarter/index.js +1 -1
  101. package/es/date-picker/panels/year/index.js +1 -1
  102. package/es/date-picker/picker-panel.vue.d.ts +54 -576
  103. package/es/date-picker/picker.js +1 -1
  104. package/es/date-picker/picker.vue.d.ts +54 -576
  105. package/es/date-picker/picker.vue_vue_type_script_lang.js +193 -1
  106. package/es/date-picker/pickers/date-picker.js +42 -0
  107. package/es/date-picker/pickers/month-picker.js +12 -0
  108. package/es/date-picker/pickers/quarter-picker.js +17 -0
  109. package/es/date-picker/pickers/week-picker.js +23 -0
  110. package/es/date-picker/pickers/year-picker.js +12 -0
  111. package/es/date-picker/range-picker-panel.vue.d.ts +54 -576
  112. package/es/date-picker/range-picker-panel.vue_vue_type_script_lang.js +1 -1
  113. package/es/date-picker/range-picker.js +1 -1
  114. package/es/date-picker/range-picker.vue.d.ts +54 -576
  115. package/es/date-picker/range-picker.vue_vue_type_script_lang.js +120 -1
  116. package/es/descriptions/descriptions-item.vue_vue_type_script_lang.js +16 -0
  117. package/es/descriptions/descriptions.js +65 -1
  118. package/es/divider/divider.js +24 -0
  119. package/es/drawer/drawer.vue_vue_type_script_lang.js +161 -2
  120. package/es/drawer/index.js +2 -2
  121. package/es/dropdown/dropdown-button.vue_vue_type_script_lang.js +70 -0
  122. package/es/dropdown/dropdown-group.vue_vue_type_script_lang.js +12 -1
  123. package/es/dropdown/dropdown-option.vue_vue_type_script_lang.js +20 -1
  124. package/es/dropdown/dropdown-submenu.vue_vue_type_script_lang.js +57 -0
  125. package/es/dropdown/dropdown.vue_vue_type_script_lang.js +55 -0
  126. package/es/ellipsis/ellipsis.vue_vue_type_script_lang.js +25 -2
  127. package/es/ellipsis/performant-ellipsis.vue_vue_type_script_lang.js +24 -1
  128. package/es/empty/empty.js +18 -0
  129. package/es/form/form-item.vue_vue_type_script_lang.js +146 -3
  130. package/es/form/form.vue_vue_type_script_lang.js +108 -0
  131. package/es/grid/grid-col.vue_vue_type_script_lang.js +42 -1
  132. package/es/grid/grid-item.vue_vue_type_script_lang.js +13 -1
  133. package/es/grid/grid-row.vue_vue_type_script_lang.js +21 -0
  134. package/es/grid/grid.vue_vue_type_script_lang.js +20 -0
  135. package/es/icon.js +5 -5
  136. package/es/image/image.js +1 -1
  137. package/es/image/image.vue_vue_type_script_lang.js +82 -0
  138. package/es/image/preview-action.js +8 -0
  139. package/es/image/preview-group.js +1 -1
  140. package/es/image/preview-group.vue_vue_type_script_lang.js +48 -0
  141. package/es/image/preview-toolbar.vue_vue_type_script_lang.js +1 -0
  142. package/es/image/preview.vue_vue_type_script_lang.js +56 -1
  143. package/es/index.css +177 -6
  144. package/es/index.d.ts +9 -1
  145. package/es/index.js +6 -2
  146. package/es/index.scss +4 -0
  147. package/es/input/input-password.vue_vue_type_script_lang.js +13 -0
  148. package/es/input/input-search.js +35 -1
  149. package/es/input/input.js +129 -1
  150. package/es/input-number/index.d.ts +35 -23
  151. package/es/input-number/input-number.d.ts +19 -10
  152. package/es/input-number/input-number.js +205 -23
  153. package/es/input-tag/input-tag.js +137 -1
  154. package/es/input-tag/style/index.css +13 -6
  155. package/es/input-tag/utils.js +1 -1
  156. package/es/layout/content.js +5 -0
  157. package/es/layout/footer.js +5 -0
  158. package/es/layout/header.js +5 -0
  159. package/es/layout/layout.vue_vue_type_script_lang.js +6 -1
  160. package/es/layout/sider.vue_vue_type_script_lang.js +46 -0
  161. package/es/link/index.d.ts +44 -564
  162. package/es/link/interface.d.ts +15 -0
  163. package/es/link/link.js +2 -17
  164. package/es/link/link.vue.d.ts +31 -286
  165. package/es/link/link.vue_vue_type_script_setup_true_lang.js +112 -0
  166. package/es/link/style/index.css +6 -0
  167. package/es/link/style/index.scss +10 -0
  168. package/es/list/list-item-meta.vue_vue_type_script_lang.js +23 -0
  169. package/es/list/list-item.js +21 -1
  170. package/es/list/list.js +104 -2
  171. package/es/mention/mention.js +87 -1
  172. package/es/menu/base-menu.vue_vue_type_script_lang.js +102 -0
  173. package/es/menu/item-group.vue_vue_type_script_lang.js +11 -1
  174. package/es/menu/item.d.ts +1 -1
  175. package/es/menu/item.js +13 -2
  176. package/es/menu/menu.js +2 -1
  177. package/es/menu/sub-menu-pop.vue.d.ts +1 -1
  178. package/es/menu/sub-menu.js +40 -1
  179. package/es/message/index.js +1 -1
  180. package/es/modal/index.js +2 -2
  181. package/es/modal/modal.vue_vue_type_script_lang.js +193 -2
  182. package/es/notification/index.js +1 -1
  183. package/es/overflow-list/overflow-list.js +25 -1
  184. package/es/page-header/page-header.vue_vue_type_script_lang.js +38 -0
  185. package/es/pagination/page-jumper.vue.d.ts +35 -22
  186. package/es/pagination/pagination.js +122 -0
  187. package/es/popconfirm/popconfirm.vue_vue_type_script_lang.js +95 -1
  188. package/es/popover/popover.vue_vue_type_script_lang.js +62 -0
  189. package/es/progress/line.vue_vue_type_script_lang.js +1 -1
  190. package/es/progress/progress.vue_vue_type_script_lang.js +48 -0
  191. package/es/radio/radio-group.js +53 -0
  192. package/es/radio/radio.js +36 -0
  193. package/es/rate/rate.js +54 -0
  194. package/es/resize-box/resize-box.vue_vue_type_script_lang.js +47 -1
  195. package/es/result/result.vue_vue_type_script_lang.js +40 -0
  196. package/es/scrollbar/scrollbar.vue_vue_type_script_lang.js +108 -2
  197. package/es/sd-vue.js +10 -2
  198. package/es/secret/index.d.ts +48 -0
  199. package/es/secret/index.js +10 -0
  200. package/es/secret/secret.js +5 -0
  201. package/es/secret/secret.vue.d.ts +17 -0
  202. package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +64 -0
  203. package/es/secret/style/css.js +2 -0
  204. package/es/secret/style/index.css +54 -0
  205. package/es/secret/style/index.d.ts +2 -0
  206. package/es/secret/style/index.js +2 -0
  207. package/es/secret/style/index.scss +48 -0
  208. package/es/secret/style/token.scss +9 -0
  209. package/es/select/hooks/use-options.js +1 -1
  210. package/es/select/optgroup.vue_vue_type_script_lang.js +12 -1
  211. package/es/select/option.vue_vue_type_script_lang.js +27 -0
  212. package/es/select/select.js +8 -6
  213. package/es/select/utils.js +1 -1
  214. package/es/skeleton/line.vue_vue_type_script_lang.js +16 -0
  215. package/es/skeleton/shape.vue_vue_type_script_lang.js +10 -0
  216. package/es/skeleton/skeleton.vue_vue_type_script_lang.js +8 -0
  217. package/es/slider/index.d.ts +66 -42
  218. package/es/slider/slider-input.vue.d.ts +33 -21
  219. package/es/slider/slider.vue.d.ts +33 -21
  220. package/es/slider/slider.vue_vue_type_script_lang.js +55 -0
  221. package/es/space/space.js +27 -0
  222. package/es/spin/spin.js +35 -0
  223. package/es/split/split.vue_vue_type_script_lang.js +62 -1
  224. package/es/statistic/countdown.vue_vue_type_script_lang.js +36 -1
  225. package/es/statistic/statistic.vue_vue_type_script_lang.js +74 -0
  226. package/es/steps/step.vue_vue_type_script_lang.js +36 -0
  227. package/es/steps/steps.vue_vue_type_script_lang.js +47 -0
  228. package/es/switch/switch.vue_vue_type_script_lang.js +98 -1
  229. package/es/table/table-column.js +115 -0
  230. package/es/table/table-operation-td.js +1 -1
  231. package/es/table/table-operation-th.js +1 -1
  232. package/es/table/table-td.js +1 -1
  233. package/es/table/table-th.js +1 -1
  234. package/es/table/table.js +442 -3
  235. package/es/table/utils.js +1 -1
  236. package/es/tabs/tab-pane.vue_vue_type_script_lang.js +23 -1
  237. package/es/tabs/tabs.js +104 -0
  238. package/es/tag/index.d.ts +29237 -74
  239. package/es/tag/interface.d.ts +9 -1
  240. package/es/tag/style/index.css +13 -6
  241. package/es/tag/style/index.scss +16 -4
  242. package/es/tag/tag.js +26 -5
  243. package/es/tag/tag.vue.d.ts +11688 -7
  244. package/es/tag/tag.vue_vue_type_script_lang.js +139 -3
  245. package/es/tag-group/index.d.ts +64 -0
  246. package/es/tag-group/index.js +10 -0
  247. package/es/tag-group/interface.d.ts +18 -0
  248. package/es/tag-group/style/css.js +2 -0
  249. package/es/tag-group/style/index.css +92 -0
  250. package/es/tag-group/style/index.d.ts +2 -0
  251. package/es/tag-group/style/index.js +2 -0
  252. package/es/tag-group/style/index.scss +108 -0
  253. package/es/tag-group/style/token.scss +6 -0
  254. package/es/tag-group/tag-group.js +5 -0
  255. package/es/tag-group/tag-group.vue.d.ts +46 -0
  256. package/es/tag-group/tag-group.vue_vue_type_script_setup_true_lang.js +360 -0
  257. package/es/textarea/textarea.vue_vue_type_script_lang.js +90 -1
  258. package/es/time-picker/range-panel.js +1 -1
  259. package/es/time-picker/time-picker.js +1 -1
  260. package/es/time-picker/time-picker.vue_vue_type_script_lang.js +132 -0
  261. package/es/timeline/item.vue_vue_type_script_lang.js +38 -1
  262. package/es/timeline/timeline.js +28 -0
  263. package/es/tooltip/tooltip.vue_vue_type_script_lang.js +61 -1
  264. package/es/transfer/transfer.vue_vue_type_script_lang.js +136 -0
  265. package/es/tree/base-node.vue_vue_type_script_lang.js +7 -0
  266. package/es/tree/node.js +1 -1
  267. package/es/tree/tree.vue_vue_type_script_lang.js +287 -2
  268. package/es/tree/utils/tree-data.js +1 -1
  269. package/es/tree-select/hooks/use-selected-state.js +1 -1
  270. package/es/tree-select/panel.js +1 -1
  271. package/es/tree-select/tree-select.js +1 -1
  272. package/es/tree-select/tree-select.vue_vue_type_script_lang.js +281 -8
  273. package/es/trigger/trigger.js +161 -1
  274. package/es/trigger/utils.js +1 -1
  275. package/es/typography/base.d.ts +7 -0
  276. package/es/typography/base.js +127 -3
  277. package/es/typography/interface.d.ts +2 -0
  278. package/es/typography/operations.js +30 -0
  279. package/es/typography/paragraph.js +8 -0
  280. package/es/typography/title.js +6 -1
  281. package/es/upload/upload.js +279 -2
  282. package/es/verification-code/verification-code.js +59 -0
  283. package/es/watermark/hooks/use-mutation-observer.js +1 -1
  284. package/es/watermark/watermark.js +58 -1
  285. package/es/web-vue.css +24 -24
  286. package/json/vetur-attributes.json +134 -218
  287. package/json/vetur-tags.json +58 -67
  288. package/json/web-types.json +304 -493
  289. package/package.json +9 -7
  290. package/es/_utils/clipboard.d.ts +0 -1
  291. package/es/_utils/clipboard.js +0 -35
  292. package/es/link/link.vue_vue_type_script_lang.js +0 -56
@@ -0,0 +1,79 @@
1
+ import type { VirtualListProps } from '../_components/virtual-list/interface';
2
+ import type { Size } from '../_utils/constant';
3
+ import type { TriggerProps } from '../trigger';
4
+ import type { CascaderFallback, CascaderFieldNames, CascaderFormatLabel, CascaderLoadMore, CascaderModelValue, CascaderOption } from './interface';
5
+ export type CascaderExpandTrigger = 'click' | 'hover';
6
+ export interface CascaderProps {
7
+ pathMode?: boolean;
8
+ multiple?: boolean;
9
+ modelValue?: CascaderModelValue;
10
+ value?: CascaderModelValue;
11
+ defaultValue?: CascaderModelValue;
12
+ options?: CascaderOption[];
13
+ disabled?: boolean;
14
+ error?: boolean;
15
+ size?: Size;
16
+ allowSearch?: boolean;
17
+ filterable?: boolean;
18
+ allowClear?: boolean;
19
+ clearable?: boolean;
20
+ inputValue?: string;
21
+ defaultInputValue?: string;
22
+ popupVisible?: boolean;
23
+ show?: boolean;
24
+ expandTrigger?: CascaderExpandTrigger;
25
+ defaultPopupVisible?: boolean;
26
+ defaultShow?: boolean;
27
+ placeholder?: string;
28
+ filterOption?: (inputValue: string, option: CascaderOption) => boolean;
29
+ popupContainer?: string | HTMLElement;
30
+ maxTagCount?: number | 'responsive';
31
+ showPath?: boolean;
32
+ separator?: string;
33
+ formatLabel?: CascaderFormatLabel;
34
+ triggerProps?: TriggerProps;
35
+ checkStrictly?: boolean;
36
+ loadMore?: CascaderLoadMore;
37
+ loading?: boolean;
38
+ searchOptionOnlyLabel?: boolean;
39
+ searchDelay?: number;
40
+ fieldNames?: CascaderFieldNames;
41
+ valueKey?: string;
42
+ fallback?: boolean | CascaderFallback;
43
+ expandChild?: boolean;
44
+ virtualListProps?: VirtualListProps;
45
+ tagNowrap?: boolean;
46
+ }
47
+ export type CascaderEmits = {
48
+ 'update:modelValue': [value: CascaderModelValue];
49
+ 'update:value': [value: CascaderModelValue];
50
+ 'update:popupVisible': [visible: boolean];
51
+ 'update:show': [visible: boolean];
52
+ 'change': [value: CascaderModelValue];
53
+ 'inputValueChange': [value: string];
54
+ 'clear': [];
55
+ 'search': [value: string];
56
+ 'popupVisibleChange': [visible: boolean];
57
+ 'showChange': [visible: boolean];
58
+ 'focus': [ev: FocusEvent];
59
+ 'blur': [ev: FocusEvent];
60
+ };
61
+ export interface CascaderPanelProps {
62
+ pathMode?: boolean;
63
+ multiple?: boolean;
64
+ modelValue?: CascaderModelValue;
65
+ value?: CascaderModelValue;
66
+ defaultValue?: CascaderModelValue;
67
+ options?: CascaderOption[];
68
+ expandTrigger?: CascaderExpandTrigger;
69
+ checkStrictly?: boolean;
70
+ loadMore?: CascaderLoadMore;
71
+ fieldNames?: CascaderFieldNames;
72
+ valueKey?: string;
73
+ expandChild?: boolean;
74
+ }
75
+ export type CascaderPanelEmits = {
76
+ 'update:modelValue': [value: CascaderModelValue];
77
+ 'update:value': [value: CascaderModelValue];
78
+ 'change': [value: CascaderModelValue];
79
+ };
@@ -8,20 +8,47 @@ import { computed, createVNode, defineComponent, provide, reactive, ref, toRefs,
8
8
  var checkbox_group_default = /* @__PURE__ */ defineComponent({
9
9
  name: "CheckboxGroup",
10
10
  props: {
11
+ /**
12
+ * @zh 绑定值
13
+ * @en Value
14
+ * @vModel
15
+ */
11
16
  modelValue: {
12
17
  type: Array,
13
18
  default: void 0
14
19
  },
20
+ /**
21
+ * @zh 默认值(非受控状态)
22
+ * @en Default value (uncontrolled state)
23
+ */
15
24
  defaultValue: {
16
25
  type: Array,
17
26
  default: () => []
18
27
  },
28
+ /**
29
+ * @zh 支持最多选中的数量
30
+ * @en Support the maximum number of selections
31
+ * @version 2.36.0
32
+ */
19
33
  max: { type: Number },
34
+ /**
35
+ * @zh 选项
36
+ * @en Options
37
+ * @version 2.27.0
38
+ */
20
39
  options: { type: Array },
40
+ /**
41
+ * @zh 复选框的排列方向
42
+ * @en Arrangement direction of checkboxes
43
+ */
21
44
  direction: {
22
45
  type: String,
23
46
  default: "horizontal"
24
47
  },
48
+ /**
49
+ * @zh 是否禁用
50
+ * @en Whether to disable
51
+ */
25
52
  disabled: {
26
53
  type: Boolean,
27
54
  default: false
@@ -29,8 +56,29 @@ var checkbox_group_default = /* @__PURE__ */ defineComponent({
29
56
  },
30
57
  emits: {
31
58
  "update:modelValue": (_value) => true,
59
+ /**
60
+ * @zh 值改变时触发
61
+ * @en Trigger when the value changes
62
+ * @param {(string | number | boolean)[]} value
63
+ * @param {Event} ev
64
+ */
32
65
  "change": (_value, _ev) => true
33
66
  },
67
+ /**
68
+ * @zh checkbox 文案内容
69
+ * @en checkbox label content
70
+ * @slot label
71
+ * @binding {CheckboxOption} data
72
+ * @version 2.27.0
73
+ */
74
+ /**
75
+ * @zh 自定义复选框
76
+ * @en Custom checkbox
77
+ * @slot checkbox
78
+ * @binding {boolean} checked
79
+ * @binding {boolean} disabled
80
+ * @version 2.27.0
81
+ */
34
82
  setup(props, { emit, slots }) {
35
83
  const { disabled } = toRefs(props);
36
84
  const prefixCls = getPrefixCls("checkbox-group");
@@ -13,23 +13,44 @@ var checkbox_default = /* @__PURE__ */ defineComponent({
13
13
  IconHover: icon_hover_default
14
14
  },
15
15
  props: {
16
+ /**
17
+ * @zh 绑定值
18
+ * @en Value
19
+ * @vModel
20
+ */
16
21
  modelValue: {
17
22
  type: [Boolean, Array],
18
23
  default: void 0
19
24
  },
25
+ /**
26
+ * @zh 默认是否选中(非受控状态)
27
+ * @en Whether checked by default (uncontrolled state)
28
+ */
20
29
  defaultChecked: {
21
30
  type: Boolean,
22
31
  default: false
23
32
  },
33
+ /**
34
+ * @zh 选项的 `value`
35
+ * @en The `value` of the option
36
+ */
24
37
  value: { type: [
25
38
  String,
26
39
  Number,
27
40
  Boolean
28
41
  ] },
42
+ /**
43
+ * @zh 是否禁用
44
+ * @en Whether to disable
45
+ */
29
46
  disabled: {
30
47
  type: Boolean,
31
48
  default: false
32
49
  },
50
+ /**
51
+ * @zh 是否为半选状态
52
+ * @en Whether it is half-selected
53
+ */
33
54
  indeterminate: {
34
55
  type: Boolean,
35
56
  default: false
@@ -41,8 +62,22 @@ var checkbox_default = /* @__PURE__ */ defineComponent({
41
62
  },
42
63
  emits: {
43
64
  "update:modelValue": (_value) => true,
65
+ /**
66
+ * @zh 值改变时触发
67
+ * @en Trigger when the value changes
68
+ * @param { boolean | (string | number | boolean)[] } value
69
+ * @param {Event} ev
70
+ */
44
71
  "change": (_value, _ev) => true
45
72
  },
73
+ /**
74
+ * @zh 自定义复选框
75
+ * @en Custom checkbox
76
+ * @slot checkbox
77
+ * @binding {boolean} checked
78
+ * @binding {boolean} disabled
79
+ * @version 2.18.0
80
+ */
46
81
  setup(props, { emit, slots }) {
47
82
  const { disabled, modelValue } = toRefs(props);
48
83
  const prefixCls = getPrefixCls("checkbox");
@@ -14,20 +14,56 @@ var collapse_item_default = /* @__PURE__ */ defineComponent({
14
14
  IconCaretLeft
15
15
  },
16
16
  props: {
17
+ /**
18
+ * @zh 面板的标题
19
+ * @en The title of the panel
20
+ */
17
21
  header: String,
22
+ /**
23
+ * @zh 是否禁用
24
+ * @en Whether to disable
25
+ */
18
26
  disabled: {
19
27
  type: Boolean,
20
28
  default: false
21
29
  },
30
+ /**
31
+ * @zh 是否显示展开图标
32
+ * @en Whether to show the expand icon
33
+ */
22
34
  showExpandIcon: {
23
35
  type: Boolean,
24
36
  default: true
25
37
  },
38
+ /**
39
+ * @zh 是否在隐藏时销毁内容
40
+ * @en Whether to destroy content when hidden
41
+ * @version 2.27.0
42
+ */
26
43
  destroyOnHide: {
27
44
  type: Boolean,
28
45
  default: false
29
46
  }
30
47
  },
48
+ /**
49
+ * @zh 面板的标题
50
+ * @en The title of the panel
51
+ * @slot header
52
+ */
53
+ /**
54
+ * @zh 展开图标
55
+ * @en Expand icon
56
+ * @slot expand-icon
57
+ * @binding {boolean} active
58
+ * @binding {boolean} disabled
59
+ * @binding {'left' | 'right'} position
60
+ * @version 2.33.0
61
+ */
62
+ /**
63
+ * @zh 额外内容
64
+ * @en Extra Content
65
+ * @slot extra
66
+ */
31
67
  setup(props, { slots }) {
32
68
  var _instance$vnode$key;
33
69
  const instance = getCurrentInstance();
@@ -6,37 +6,84 @@ import { computed, defineComponent, provide, reactive, ref, toRefs } from "vue";
6
6
  var collapse_vue_vue_type_script_lang_default = defineComponent({
7
7
  name: "Collapse",
8
8
  props: {
9
+ /**
10
+ * @zh 当前展开的面板的 `key`
11
+ * @en The `key` of the currently expanded panel
12
+ * @vModel
13
+ */
9
14
  activeKey: {
10
15
  type: Array,
11
16
  default: void 0
12
17
  },
18
+ /**
19
+ * @zh 默认展开的面板的 `key` (非受控模式)
20
+ * @en The `key` of the panel expanded by default (uncontrolled mode)
21
+ */
13
22
  defaultActiveKey: {
14
23
  type: Array,
15
24
  default: () => []
16
25
  },
26
+ /**
27
+ * @zh 是否开启手风琴模式
28
+ * @en Whether to enable accordion mode
29
+ */
17
30
  accordion: {
18
31
  type: Boolean,
19
32
  default: false
20
33
  },
34
+ /**
35
+ * @zh 是否显示展开图标
36
+ * @en Whether to show the expand icon
37
+ * @version 2.33.0
38
+ */
21
39
  showExpandIcon: {
22
40
  type: Boolean,
23
41
  default: void 0
24
42
  },
43
+ /**
44
+ * @zh 展开图标显示的位置
45
+ * @en The location where the expand icon is displayed
46
+ * @values 'left', 'right'
47
+ */
25
48
  expandIconPosition: {
26
49
  type: String,
27
50
  default: "left"
28
51
  },
52
+ /**
53
+ * @zh 是否显示边框
54
+ * @en Whether to show the border
55
+ */
29
56
  bordered: {
30
57
  type: Boolean,
31
58
  default: true
32
59
  },
60
+ /**
61
+ * @zh 是否在隐藏时销毁内容
62
+ * @en Whether to destroy content when hidden
63
+ * @version 2.27.0
64
+ */
33
65
  destroyOnHide: {
34
66
  type: Boolean,
35
67
  default: false
36
68
  }
37
69
  },
70
+ /**
71
+ * @zh 展开图标
72
+ * @en Expand icon
73
+ * @slot expand-icon
74
+ * @binding {boolean} active
75
+ * @binding {boolean} disabled
76
+ * @binding {'left' | 'right'} position
77
+ * @version 2.33.0
78
+ */
38
79
  emits: {
39
80
  "update:activeKey": (_activeKey) => true,
81
+ /**
82
+ * @zh 展开的面板发生改变时触发
83
+ * @en Emitted when the expanded panel changes
84
+ * @param {(string | number)[]} activeKey
85
+ * @param {Event} ev
86
+ */
40
87
  "change": (_activeKey, _ev) => true
41
88
  },
42
89
  setup(props, { emit, slots }) {
@@ -1,4 +1,4 @@
1
- import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectSpread2.js";
1
+ import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
2
2
  import { getPrefixCls } from "../_utils/global-config.js";
3
3
  import Input from "../input/index.js";
4
4
  import Trigger from "../trigger/index.js";
@@ -20,56 +20,145 @@ var color_picker_default = /* @__PURE__ */ defineComponent({
20
20
  type: Boolean,
21
21
  default: true
22
22
  },
23
+ /**
24
+ * @zh 色值
25
+ * @en Value
26
+ */
23
27
  value: String,
24
28
  modelValue: String,
29
+ /**
30
+ * @zh 默认色值
31
+ * @en Default value
32
+ */
25
33
  defaultValue: {
26
34
  type: String,
27
35
  default: ""
28
36
  },
37
+ /**
38
+ * @zh 格式化色值
39
+ * @en Value format
40
+ */
29
41
  format: {
30
42
  type: String,
31
43
  default: "RGB"
32
44
  },
45
+ /**
46
+ * @zh 尺寸
47
+ * @en Size
48
+ * @values 'mini','small','medium','large'
49
+ */
33
50
  size: {
34
51
  type: String,
35
52
  default: "medium"
36
53
  },
54
+ /**
55
+ * @zh 是否开启透明通道
56
+ * @en Whether alpha channel is enabled
57
+ */
37
58
  enableAlpha: Boolean,
59
+ /**
60
+ * @zh 是否展示颜色预览块
61
+ * @en Whether to show primary color preview
62
+ */
38
63
  showPrimaryColorPreview: {
39
64
  type: Boolean,
40
65
  default: true
41
66
  },
67
+ /**
68
+ * @zh 输入框透传属性
69
+ * @en Input props
70
+ */
42
71
  inputProps: { type: Object },
72
+ /**
73
+ * @zh 最近使用颜色
74
+ * @en Recent colors
75
+ */
43
76
  recentColors: {
44
77
  type: [Array, Boolean],
45
78
  default: void 0
46
79
  },
80
+ /**
81
+ * @zh 最近使用颜色,非受控
82
+ * @en Default recent colors
83
+ */
47
84
  defaultRecentColors: {
48
85
  type: [Array, Boolean],
49
86
  default: () => []
50
87
  },
88
+ /**
89
+ * @zh 系统色板
90
+ * @en Swatch colors
91
+ */
51
92
  swatchColors: {
52
93
  type: Array,
53
94
  default: void 0
54
95
  },
96
+ /**
97
+ * @zh 是否禁用
98
+ * @en Disabled
99
+ */
55
100
  disabled: {
56
101
  type: Boolean,
57
102
  default: false
58
103
  },
104
+ /**
105
+ * @zh 是否内联面板。兼容旧版 hideTrigger 语义
106
+ * @en Render panel inline
107
+ */
59
108
  hideTrigger: Boolean,
109
+ /**
110
+ * @zh 透传 Trigger 组件属性
111
+ * @en Trigger props
112
+ */
60
113
  triggerProps: { type: Object },
114
+ /**
115
+ * @zh 兼容旧版历史颜色
116
+ * @en Legacy history colors
117
+ */
61
118
  historyColors: { type: Array },
119
+ /**
120
+ * @zh 兼容旧版预设颜色
121
+ * @en Legacy preset colors
122
+ */
62
123
  presetColors: { type: Array },
124
+ /**
125
+ * @zh 兼容旧版显示文字
126
+ * @en Legacy show text
127
+ */
63
128
  showText: Boolean,
129
+ /**
130
+ * @zh 兼容旧版显示历史色
131
+ * @en Legacy show history
132
+ */
64
133
  showHistory: Boolean,
134
+ /**
135
+ * @zh 兼容旧版显示预设色
136
+ * @en Legacy show preset
137
+ */
65
138
  showPreset: Boolean,
139
+ /**
140
+ * @zh 兼容旧版禁用透明通道
141
+ * @en Legacy disable alpha
142
+ */
66
143
  disabledAlpha: Boolean,
144
+ /**
145
+ * @zh 兼容 tdesign 的选择输入框透传属性,当前版本未使用
146
+ * @en Select input props
147
+ */
67
148
  selectInputProps: { type: Object }
68
149
  },
69
150
  emits: {
70
151
  "update:modelValue": (_value) => true,
71
152
  "update:value": (_value) => true,
153
+ /**
154
+ * @zh 颜色值改变时触发
155
+ * @en Triggered when the color value changes
156
+ */
72
157
  "change": (_value, _context) => true,
158
+ /**
159
+ * @zh 颜色面板展开和收起时触发
160
+ * @en Triggered when the color panel is expanded and collapsed
161
+ */
73
162
  "popup-visible-change": (_visible, _value) => true,
74
163
  "clear": (_context) => true,
75
164
  "palette-bar-change": (_context) => true,
@@ -1,4 +1,4 @@
1
- import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectSpread2.js";
1
+ import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
2
2
  import { getPrefixCls } from "../_utils/global-config.js";
3
3
  import input_group_default from "../input/input-group.js";
4
4
  import Input from "../input/index.js";
@@ -386,7 +386,10 @@ var panel_default = /* @__PURE__ */ defineComponent({
386
386
  "hideButton": true,
387
387
  "disabled": props.disabled,
388
388
  "modelValue": colorState.value.gradientDegree,
389
- "onChange": (value = 0) => emitStateChange(setGradientDegree(colorState.value, value), "input")
389
+ "onChange": (value) => {
390
+ if (typeof value !== "number") return;
391
+ emitStateChange(setGradientDegree(colorState.value, value), "input");
392
+ }
390
393
  }, null)]),
391
394
  createVNode("div", {
392
395
  "class": `${prefixCls}-gradient-preview`,
@@ -1,4 +1,4 @@
1
- import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectSpread2.js";
1
+ import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
2
2
  import { formatInputToHSVA, hsvToRgb, rgbToHex, rgbToHsv, rgbaToHex } from "../_utils/color.js";
3
3
  //#region components/color-picker/utils.ts
4
4
  var DEFAULT_HSVA = {
@@ -1,4 +1,4 @@
1
- import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectSpread2.js";
1
+ import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
2
2
  import { getPrefixCls } from "../_utils/global-config.js";
3
3
  import { isString } from "../_utils/is.js";
4
4
  import _plugin_vue_export_helper_default from "../_virtual/_plugin-vue_export-helper.js";
@@ -8,15 +8,61 @@ import { computed, createCommentVNode, createElementBlock, createElementVNode, d
8
8
  var _sfc_main = defineComponent({
9
9
  name: "Comment",
10
10
  props: {
11
+ /**
12
+ * @zh 作者名
13
+ * @en Display as the comment author
14
+ */
11
15
  author: { type: String },
16
+ /**
17
+ * @zh 头像
18
+ * @en Display as the comment avatar
19
+ */
12
20
  avatar: { type: String },
21
+ /**
22
+ * @zh 评论内容
23
+ * @en The content of the comment
24
+ */
13
25
  content: { type: String },
26
+ /**
27
+ * @zh 时间描述
28
+ * @en Display as the comment datetime
29
+ */
14
30
  datetime: { type: String },
31
+ /**
32
+ * @zh 靠左/靠右 展示 datetime 和 actions
33
+ * @en Alignment of `datetime` and `actions`
34
+ * @values 'left', 'right', { datetime?: "left" | "right"; actions?: "left" | "right" }
35
+ * */
15
36
  align: {
16
37
  type: [String, Object],
17
38
  default: "left"
18
39
  }
19
40
  },
41
+ /**
42
+ * @zh 头像
43
+ * @en Avatar
44
+ * @slot avatar
45
+ */
46
+ /**
47
+ * @zh 作者
48
+ * @en Author name
49
+ * @slot author
50
+ */
51
+ /**
52
+ * @zh 时间描述
53
+ * @en Datetime info
54
+ * @slot datetime
55
+ */
56
+ /**
57
+ * @zh 评论内容
58
+ * @en Comment content
59
+ * @slot content
60
+ */
61
+ /**
62
+ * @zh 操作列表
63
+ * @en Action list
64
+ * @slot actions
65
+ */
20
66
  setup(props, { slots }) {
21
67
  const prefixCls = getPrefixCls("comment");
22
68
  const [hasAuthor, hasAvatar, hasContent, hasDatetime] = [