@sdata/web-vue 1.11.1 → 1.13.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 (408) hide show
  1. package/dist/sd.css +177 -6
  2. package/dist/sd.min.css +1 -1
  3. package/es/_components/icon-hover.vue.d.ts +1 -1
  4. package/es/_components/picker/input-range.vue.d.ts +1 -1
  5. package/es/_components/picker/input.vue.d.ts +1 -1
  6. package/es/_components/select-view/style/index.css +13 -6
  7. package/es/_components/virtual-list/virtual-list.vue.d.ts +6 -6
  8. package/es/_components/virtual-list/virtual-list.vue_vue_type_script_lang.js +2 -2
  9. package/es/_hooks/use-allow-search.d.ts +10 -0
  10. package/es/_hooks/use-allow-search.js +31 -0
  11. package/es/_hooks/use-component-ref.d.ts +1 -1
  12. package/es/_hooks/use-dropdown-virtual-list-props.d.ts +5 -0
  13. package/es/_hooks/use-dropdown-virtual-list-props.js +21 -0
  14. package/es/_hooks/use-form-item.d.ts +1 -1
  15. package/es/_hooks/use-scrollbar.js +1 -1
  16. package/es/_hooks/use-size.d.ts +1 -1
  17. package/es/_hooks/use-trigger.d.ts +1 -1
  18. package/es/_utils/color.js +1 -1
  19. package/es/_utils/date.js +7 -1
  20. package/es/_utils/dom.js +1 -1
  21. package/es/_utils/global-config.js +1 -1
  22. package/es/_utils/omit.js +1 -1
  23. package/es/_utils/responsive-observe.js +1 -1
  24. package/es/_utils/virtual-dropdown.js +1 -1
  25. package/es/_utils/vue-utils.js +4 -18
  26. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/asyncToGenerator.js +1 -1
  27. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/defineProperty.js +1 -1
  28. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/extends.js +1 -1
  29. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectDestructuringEmpty.js +1 -1
  30. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectSpread2.js +1 -1
  31. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectWithoutProperties.js +1 -1
  32. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectWithoutPropertiesLoose.js +1 -1
  33. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/toPrimitive.js +1 -1
  34. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/toPropertyKey.js +1 -1
  35. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/typeof.js +1 -1
  36. package/es/affix/affix.vue_vue_type_script_lang.js +31 -3
  37. package/es/alert/alert.vue.d.ts +2 -2
  38. package/es/alert/alert.vue_vue_type_script_lang.js +55 -0
  39. package/es/alert/index.d.ts +5 -5
  40. package/es/anchor/anchor-link.vue_vue_type_script_lang.js +8 -0
  41. package/es/anchor/anchor.vue_vue_type_script_lang.js +32 -0
  42. package/es/auto-complete/auto-complete.d.ts +1 -1
  43. package/es/auto-complete/auto-complete.js +107 -3
  44. package/es/auto-complete/index.d.ts +3 -3
  45. package/es/avatar/avatar-group.js +31 -0
  46. package/es/avatar/avatar.vue_vue_type_script_lang.js +51 -1
  47. package/es/back-top/back-top.vue_vue_type_script_lang.js +16 -0
  48. package/es/badge/badge.js +34 -1
  49. package/es/breadcrumb/breadcrumb-item.js +27 -0
  50. package/es/breadcrumb/breadcrumb.js +39 -0
  51. package/es/button/button-group.vue_vue_type_script_lang.js +22 -0
  52. package/es/button/button.vue_vue_type_script_lang.js +58 -1
  53. package/es/calendar/calendar.js +47 -0
  54. package/es/calendar/month.js +1 -1
  55. package/es/calendar/year.js +1 -1
  56. package/es/card/card-grid.vue_vue_type_script_lang.js +6 -1
  57. package/es/card/card-meta.js +23 -0
  58. package/es/card/card.js +54 -0
  59. package/es/carousel/carousel.js +68 -1
  60. package/es/cascader/cascader-panel.js +2 -28
  61. package/es/cascader/cascader-panel.vue.d.ts +24 -306
  62. package/es/cascader/{cascader-panel.vue_vue_type_script_lang.js → cascader-panel.vue_vue_type_script_setup_true_lang.js} +92 -101
  63. package/es/cascader/cascader.js +2 -145
  64. package/es/cascader/cascader.vue.d.ts +54 -1290
  65. package/es/cascader/{cascader.vue_vue_type_script_lang.js → cascader.vue_vue_type_script_setup_true_lang.js} +257 -177
  66. package/es/cascader/index.d.ts +4 -2986
  67. package/es/cascader/types.d.ts +79 -0
  68. package/es/checkbox/checkbox-group.js +48 -0
  69. package/es/checkbox/checkbox.d.ts +1 -1
  70. package/es/checkbox/checkbox.js +35 -0
  71. package/es/checkbox/index.d.ts +2 -2
  72. package/es/collapse/collapse-item.d.ts +1 -1
  73. package/es/collapse/collapse-item.js +36 -0
  74. package/es/collapse/collapse.vue_vue_type_script_lang.js +47 -0
  75. package/es/collapse/index.d.ts +1 -1
  76. package/es/color-picker/color-picker.d.ts +1 -1
  77. package/es/color-picker/color-picker.js +90 -1
  78. package/es/color-picker/index.d.ts +3 -3
  79. package/es/color-picker/panel.js +5 -2
  80. package/es/color-picker/utils.js +1 -1
  81. package/es/comment/comment.js +47 -1
  82. package/es/comment/comment.vue.d.ts +2 -2
  83. package/es/comment/index.d.ts +3 -3
  84. package/es/components.d.ts +132 -127
  85. package/es/config-provider/config-provider.vue.d.ts +16 -0
  86. package/es/config-provider/config-provider.vue_vue_type_script_lang.js +78 -1
  87. package/es/config-provider/context.d.ts +3 -0
  88. package/es/config-provider/index.d.ts +24 -0
  89. package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +1 -1
  90. package/es/config-provider/theme.js +1 -1
  91. package/es/copy/copy.js +5 -0
  92. package/es/copy/copy.vue.d.ts +15 -0
  93. package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +95 -0
  94. package/es/copy/index.d.ts +15 -0
  95. package/es/copy/index.js +10 -0
  96. package/es/copy/style/css.js +2 -0
  97. package/es/copy/style/index.css +25 -0
  98. package/es/copy/style/index.d.ts +2 -0
  99. package/es/copy/style/index.js +2 -0
  100. package/es/copy/style/index.scss +15 -0
  101. package/es/copy/style/token.scss +3 -0
  102. package/es/copy/types.d.ts +21 -0
  103. package/es/cropper/cropper.js +5 -0
  104. package/es/cropper/cropper.vue.d.ts +45 -0
  105. package/es/cropper/cropper.vue_vue_type_script_setup_true_lang.js +266 -0
  106. package/es/cropper/index.d.ts +130 -0
  107. package/es/cropper/index.js +10 -0
  108. package/es/cropper/interface.d.ts +59 -0
  109. package/es/cropper/style/css.js +2 -0
  110. package/es/cropper/style/index.css +51 -0
  111. package/es/cropper/style/index.d.ts +2 -0
  112. package/es/cropper/style/index.js +2 -0
  113. package/es/cropper/style/index.scss +43 -0
  114. package/es/cropper/style/token.scss +8 -0
  115. package/es/date-picker/hooks/use-range-time-picker-value.js +1 -1
  116. package/es/date-picker/index.d.ts +187 -709
  117. package/es/date-picker/panels/date/index.js +1 -1
  118. package/es/date-picker/panels/date/index.vue.d.ts +1 -1
  119. package/es/date-picker/panels/date/index.vue_vue_type_script_lang.js +1 -1
  120. package/es/date-picker/panels/footer.vue.d.ts +55 -577
  121. package/es/date-picker/panels/footer.vue_vue_type_script_lang.js +1 -1
  122. package/es/date-picker/panels/month/index.js +1 -1
  123. package/es/date-picker/panels/quarter/index.js +1 -1
  124. package/es/date-picker/panels/week/index.vue.d.ts +1 -1
  125. package/es/date-picker/panels/year/index.js +1 -1
  126. package/es/date-picker/picker-panel.vue.d.ts +264 -786
  127. package/es/date-picker/picker.js +1 -1
  128. package/es/date-picker/picker.vue.d.ts +174 -696
  129. package/es/date-picker/picker.vue_vue_type_script_lang.js +193 -1
  130. package/es/date-picker/pickers/date-picker.js +42 -0
  131. package/es/date-picker/pickers/month-picker.js +12 -0
  132. package/es/date-picker/pickers/quarter-picker.js +17 -0
  133. package/es/date-picker/pickers/week-picker.js +23 -0
  134. package/es/date-picker/pickers/year-picker.js +12 -0
  135. package/es/date-picker/range-picker-panel.vue.d.ts +263 -785
  136. package/es/date-picker/range-picker-panel.vue_vue_type_script_lang.js +1 -1
  137. package/es/date-picker/range-picker.js +1 -1
  138. package/es/date-picker/range-picker.vue.d.ts +187 -709
  139. package/es/date-picker/range-picker.vue_vue_type_script_lang.js +120 -1
  140. package/es/descriptions/descriptions-item.vue_vue_type_script_lang.js +16 -0
  141. package/es/descriptions/descriptions.d.ts +1 -1
  142. package/es/descriptions/descriptions.js +65 -1
  143. package/es/descriptions/index.d.ts +3 -3
  144. package/es/divider/divider.js +24 -0
  145. package/es/drawer/drawer.vue.d.ts +2 -2
  146. package/es/drawer/drawer.vue_vue_type_script_lang.js +161 -2
  147. package/es/drawer/index.d.ts +5 -5
  148. package/es/drawer/index.js +2 -2
  149. package/es/dropdown/dropdown-button.vue.d.ts +18 -18
  150. package/es/dropdown/dropdown-button.vue_vue_type_script_lang.js +70 -0
  151. package/es/dropdown/dropdown-group.vue_vue_type_script_lang.js +12 -1
  152. package/es/dropdown/dropdown-option.vue.d.ts +2 -2
  153. package/es/dropdown/dropdown-option.vue_vue_type_script_lang.js +20 -1
  154. package/es/dropdown/dropdown-panel.vue.d.ts +6 -6
  155. package/es/dropdown/dropdown-submenu.vue.d.ts +20 -20
  156. package/es/dropdown/dropdown-submenu.vue_vue_type_script_lang.js +57 -0
  157. package/es/dropdown/dropdown.vue.d.ts +18 -18
  158. package/es/dropdown/dropdown.vue_vue_type_script_lang.js +55 -0
  159. package/es/dropdown/index.d.ts +76 -76
  160. package/es/ellipsis/ellipsis.vue.d.ts +24 -24
  161. package/es/ellipsis/ellipsis.vue_vue_type_script_lang.js +25 -2
  162. package/es/ellipsis/index.d.ts +96 -96
  163. package/es/ellipsis/performant-ellipsis.vue.d.ts +24 -24
  164. package/es/ellipsis/performant-ellipsis.vue_vue_type_script_lang.js +24 -1
  165. package/es/empty/empty.js +18 -0
  166. package/es/form/form-item-label.vue.d.ts +24 -24
  167. package/es/form/form-item.vue.d.ts +28 -28
  168. package/es/form/form-item.vue_vue_type_script_lang.js +146 -3
  169. package/es/form/form.vue_vue_type_script_lang.js +108 -0
  170. package/es/form/index.d.ts +28 -28
  171. package/es/grid/grid-col.vue_vue_type_script_lang.js +42 -1
  172. package/es/grid/grid-item.vue_vue_type_script_lang.js +13 -1
  173. package/es/grid/grid-row.vue_vue_type_script_lang.js +21 -0
  174. package/es/grid/grid.vue_vue_type_script_lang.js +20 -0
  175. package/es/icon.js +5 -5
  176. package/es/image/image.js +1 -1
  177. package/es/image/image.vue.d.ts +26 -26
  178. package/es/image/image.vue_vue_type_script_lang.js +82 -0
  179. package/es/image/preview-action.d.ts +24 -24
  180. package/es/image/preview-action.js +8 -0
  181. package/es/image/preview-group.js +1 -1
  182. package/es/image/preview-group.vue.d.ts +24 -24
  183. package/es/image/preview-group.vue_vue_type_script_lang.js +48 -0
  184. package/es/image/preview-toolbar.vue.d.ts +24 -24
  185. package/es/image/preview-toolbar.vue_vue_type_script_lang.js +1 -0
  186. package/es/image/preview.vue.d.ts +24 -24
  187. package/es/image/preview.vue_vue_type_script_lang.js +56 -1
  188. package/es/index.css +177 -6
  189. package/es/index.d.ts +9 -1
  190. package/es/index.js +6 -2
  191. package/es/index.scss +4 -0
  192. package/es/input/index.d.ts +5 -5
  193. package/es/input/input-password.vue.d.ts +2 -2
  194. package/es/input/input-password.vue_vue_type_script_lang.js +13 -0
  195. package/es/input/input-search.js +35 -1
  196. package/es/input/input.d.ts +1 -1
  197. package/es/input/input.js +129 -1
  198. package/es/input-number/index.d.ts +38 -26
  199. package/es/input-number/input-number.d.ts +20 -11
  200. package/es/input-number/input-number.js +205 -23
  201. package/es/input-tag/input-tag.js +137 -1
  202. package/es/input-tag/style/index.css +13 -6
  203. package/es/input-tag/utils.js +1 -1
  204. package/es/layout/content.js +5 -0
  205. package/es/layout/footer.js +5 -0
  206. package/es/layout/header.js +5 -0
  207. package/es/layout/layout.vue_vue_type_script_lang.js +6 -1
  208. package/es/layout/sider.vue_vue_type_script_lang.js +46 -0
  209. package/es/link/index.d.ts +44 -564
  210. package/es/link/interface.d.ts +15 -0
  211. package/es/link/link.js +2 -17
  212. package/es/link/link.vue.d.ts +31 -286
  213. package/es/link/link.vue_vue_type_script_setup_true_lang.js +112 -0
  214. package/es/link/style/index.css +6 -0
  215. package/es/link/style/index.scss +10 -0
  216. package/es/list/index.d.ts +3 -3
  217. package/es/list/list-item-meta.vue_vue_type_script_lang.js +23 -0
  218. package/es/list/list-item.js +21 -1
  219. package/es/list/list.d.ts +1 -1
  220. package/es/list/list.js +104 -2
  221. package/es/mention/index.d.ts +6 -6
  222. package/es/mention/mention.d.ts +2 -2
  223. package/es/mention/mention.js +87 -1
  224. package/es/menu/base-menu.vue.d.ts +1 -1
  225. package/es/menu/base-menu.vue_vue_type_script_lang.js +102 -0
  226. package/es/menu/item-group.vue_vue_type_script_lang.js +11 -1
  227. package/es/menu/item.d.ts +1 -1
  228. package/es/menu/item.js +13 -2
  229. package/es/menu/menu.d.ts +2 -2
  230. package/es/menu/menu.js +2 -1
  231. package/es/menu/sub-menu-pop.vue.d.ts +14 -14
  232. package/es/menu/sub-menu.js +40 -1
  233. package/es/message/index.js +1 -1
  234. package/es/message/message.vue.d.ts +1 -1
  235. package/es/modal/index.d.ts +5 -5
  236. package/es/modal/index.js +2 -2
  237. package/es/modal/modal.vue.d.ts +2 -2
  238. package/es/modal/modal.vue_vue_type_script_lang.js +193 -2
  239. package/es/notification/index.js +1 -1
  240. package/es/notification/notification.vue.d.ts +1 -1
  241. package/es/overflow-list/index.d.ts +3 -3
  242. package/es/overflow-list/overflow-list.d.ts +1 -1
  243. package/es/overflow-list/overflow-list.js +25 -1
  244. package/es/page-header/index.d.ts +2 -2
  245. package/es/page-header/page-header.vue.d.ts +1 -1
  246. package/es/page-header/page-header.vue_vue_type_script_lang.js +38 -0
  247. package/es/pagination/page-jumper.vue.d.ts +38 -25
  248. package/es/pagination/page-options.vue.d.ts +34 -34
  249. package/es/pagination/pagination.js +122 -0
  250. package/es/popconfirm/index.d.ts +24 -24
  251. package/es/popconfirm/popconfirm.vue.d.ts +12 -12
  252. package/es/popconfirm/popconfirm.vue_vue_type_script_lang.js +95 -1
  253. package/es/popover/index.d.ts +24 -24
  254. package/es/popover/popover.vue.d.ts +12 -12
  255. package/es/popover/popover.vue_vue_type_script_lang.js +62 -0
  256. package/es/progress/circle.vue.d.ts +3 -3
  257. package/es/progress/index.d.ts +23 -23
  258. package/es/progress/line.vue.d.ts +2 -2
  259. package/es/progress/line.vue_vue_type_script_lang.js +1 -1
  260. package/es/progress/progress.vue.d.ts +12 -12
  261. package/es/progress/progress.vue_vue_type_script_lang.js +48 -0
  262. package/es/progress/steps.vue.d.ts +2 -2
  263. package/es/radio/index.d.ts +2 -2
  264. package/es/radio/radio-group.js +53 -0
  265. package/es/radio/radio.d.ts +1 -1
  266. package/es/radio/radio.js +36 -0
  267. package/es/rate/rate.js +54 -0
  268. package/es/resize-box/resize-box.vue_vue_type_script_lang.js +47 -1
  269. package/es/result/result.vue_vue_type_script_lang.js +40 -0
  270. package/es/scrollbar/index.d.ts +6 -6
  271. package/es/scrollbar/scrollbar.vue.d.ts +3 -3
  272. package/es/scrollbar/scrollbar.vue_vue_type_script_lang.js +108 -2
  273. package/es/sd-vue.js +10 -2
  274. package/es/secret/index.d.ts +48 -0
  275. package/es/secret/index.js +10 -0
  276. package/es/secret/secret.js +5 -0
  277. package/es/secret/secret.vue.d.ts +17 -0
  278. package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +64 -0
  279. package/es/secret/style/css.js +2 -0
  280. package/es/secret/style/index.css +54 -0
  281. package/es/secret/style/index.d.ts +2 -0
  282. package/es/secret/style/index.js +2 -0
  283. package/es/secret/style/index.scss +48 -0
  284. package/es/secret/style/token.scss +9 -0
  285. package/es/select/hooks/use-options.js +1 -1
  286. package/es/select/index.d.ts +34 -34
  287. package/es/select/optgroup.vue_vue_type_script_lang.js +12 -1
  288. package/es/select/option.vue.d.ts +4 -4
  289. package/es/select/option.vue_vue_type_script_lang.js +27 -0
  290. package/es/select/select-dropdown.vue.d.ts +7 -7
  291. package/es/select/select.d.ts +14 -14
  292. package/es/select/select.js +13 -9
  293. package/es/select/utils.js +1 -1
  294. package/es/skeleton/line.vue_vue_type_script_lang.js +16 -0
  295. package/es/skeleton/shape.vue_vue_type_script_lang.js +10 -0
  296. package/es/skeleton/skeleton.vue_vue_type_script_lang.js +8 -0
  297. package/es/slider/index.d.ts +120 -96
  298. package/es/slider/slider-button.vue.d.ts +24 -24
  299. package/es/slider/slider-input.vue.d.ts +36 -24
  300. package/es/slider/slider.vue.d.ts +60 -48
  301. package/es/slider/slider.vue_vue_type_script_lang.js +55 -0
  302. package/es/space/index.d.ts +6 -6
  303. package/es/space/space.d.ts +1 -1
  304. package/es/space/space.js +27 -0
  305. package/es/spin/spin.js +35 -0
  306. package/es/split/split.vue_vue_type_script_lang.js +62 -1
  307. package/es/statistic/countdown.vue_vue_type_script_lang.js +36 -1
  308. package/es/statistic/statistic.vue_vue_type_script_lang.js +74 -0
  309. package/es/steps/index.d.ts +3 -3
  310. package/es/steps/step.vue_vue_type_script_lang.js +36 -0
  311. package/es/steps/steps.vue.d.ts +1 -1
  312. package/es/steps/steps.vue_vue_type_script_lang.js +47 -0
  313. package/es/switch/switch.vue_vue_type_script_lang.js +98 -1
  314. package/es/table/index.d.ts +14 -14
  315. package/es/table/table-column.d.ts +2 -2
  316. package/es/table/table-column.js +115 -0
  317. package/es/table/table-operation-td.d.ts +4 -4
  318. package/es/table/table-operation-td.js +1 -1
  319. package/es/table/table-operation-th.js +1 -1
  320. package/es/table/table-td.js +1 -1
  321. package/es/table/table-th.js +1 -1
  322. package/es/table/table.d.ts +7 -7
  323. package/es/table/table.js +442 -3
  324. package/es/table/utils.js +1 -1
  325. package/es/tabs/tab-pane.vue_vue_type_script_lang.js +23 -1
  326. package/es/tabs/tabs-tab.vue.d.ts +1 -1
  327. package/es/tabs/tabs.js +104 -0
  328. package/es/tag/index.d.ts +29238 -75
  329. package/es/tag/interface.d.ts +9 -1
  330. package/es/tag/style/index.css +13 -6
  331. package/es/tag/style/index.scss +16 -4
  332. package/es/tag/tag.js +26 -5
  333. package/es/tag/tag.vue.d.ts +11690 -9
  334. package/es/tag/tag.vue_vue_type_script_lang.js +139 -3
  335. package/es/tag-group/index.d.ts +64 -0
  336. package/es/tag-group/index.js +10 -0
  337. package/es/tag-group/interface.d.ts +18 -0
  338. package/es/tag-group/style/css.js +2 -0
  339. package/es/tag-group/style/index.css +92 -0
  340. package/es/tag-group/style/index.d.ts +2 -0
  341. package/es/tag-group/style/index.js +2 -0
  342. package/es/tag-group/style/index.scss +108 -0
  343. package/es/tag-group/style/token.scss +6 -0
  344. package/es/tag-group/tag-group.js +5 -0
  345. package/es/tag-group/tag-group.vue.d.ts +46 -0
  346. package/es/tag-group/tag-group.vue_vue_type_script_setup_true_lang.js +360 -0
  347. package/es/textarea/index.d.ts +2 -2
  348. package/es/textarea/textarea.vue.d.ts +1 -1
  349. package/es/textarea/textarea.vue_vue_type_script_lang.js +90 -1
  350. package/es/time-picker/index.d.ts +35 -35
  351. package/es/time-picker/panel.vue.d.ts +1 -1
  352. package/es/time-picker/range-panel.d.ts +1 -1
  353. package/es/time-picker/range-panel.js +1 -1
  354. package/es/time-picker/time-picker.js +1 -1
  355. package/es/time-picker/time-picker.vue.d.ts +17 -17
  356. package/es/time-picker/time-picker.vue_vue_type_script_lang.js +132 -0
  357. package/es/timeline/item.vue_vue_type_script_lang.js +38 -1
  358. package/es/timeline/timeline.js +28 -0
  359. package/es/tooltip/index.d.ts +24 -24
  360. package/es/tooltip/tooltip.vue.d.ts +12 -12
  361. package/es/tooltip/tooltip.vue_vue_type_script_lang.js +61 -1
  362. package/es/transfer/index.d.ts +27 -27
  363. package/es/transfer/transfer-view.vue.d.ts +12 -12
  364. package/es/transfer/transfer.vue.d.ts +13 -13
  365. package/es/transfer/transfer.vue_vue_type_script_lang.js +136 -0
  366. package/es/tree/base-node.vue.d.ts +2 -2
  367. package/es/tree/base-node.vue_vue_type_script_lang.js +7 -0
  368. package/es/tree/node.js +1 -1
  369. package/es/tree/transition-node-list.vue.d.ts +2 -2
  370. package/es/tree/tree.vue.d.ts +8 -8
  371. package/es/tree/tree.vue_vue_type_script_lang.js +287 -2
  372. package/es/tree/utils/tree-data.js +1 -1
  373. package/es/tree-select/hooks/use-selected-state.js +1 -1
  374. package/es/tree-select/panel.js +1 -1
  375. package/es/tree-select/tree-select.js +1 -1
  376. package/es/tree-select/tree-select.vue.d.ts +17 -17
  377. package/es/tree-select/tree-select.vue_vue_type_script_lang.js +287 -10
  378. package/es/trigger/index.d.ts +12 -12
  379. package/es/trigger/trigger.d.ts +7 -7
  380. package/es/trigger/trigger.js +161 -1
  381. package/es/trigger/utils.js +1 -1
  382. package/es/typography/base.d.ts +8 -1
  383. package/es/typography/base.js +127 -3
  384. package/es/typography/edit-content.vue.d.ts +15 -15
  385. package/es/typography/index.d.ts +1 -1
  386. package/es/typography/interface.d.ts +2 -0
  387. package/es/typography/operations.js +30 -0
  388. package/es/typography/operations.vue.d.ts +24 -24
  389. package/es/typography/paragraph.js +8 -0
  390. package/es/typography/title.d.ts +1 -1
  391. package/es/typography/title.js +6 -1
  392. package/es/upload/upload-button.d.ts +1 -1
  393. package/es/upload/upload.js +279 -2
  394. package/es/verification-code/index.d.ts +3 -3
  395. package/es/verification-code/verification-code.d.ts +1 -1
  396. package/es/verification-code/verification-code.js +59 -0
  397. package/es/watermark/hooks/use-mutation-observer.js +1 -1
  398. package/es/watermark/index.d.ts +3 -3
  399. package/es/watermark/watermark.d.ts +1 -1
  400. package/es/watermark/watermark.js +58 -1
  401. package/es/web-vue.css +24 -24
  402. package/json/vetur-attributes.json +137 -218
  403. package/json/vetur-tags.json +59 -67
  404. package/json/web-types.json +312 -493
  405. package/package.json +9 -7
  406. package/es/_utils/clipboard.d.ts +0 -1
  407. package/es/_utils/clipboard.js +0 -35
  408. package/es/link/link.vue_vue_type_script_lang.js +0 -56
@@ -56,8 +56,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
56
56
  labelColStyle: ObjectConstructor;
57
57
  wrapperColStyle: ObjectConstructor;
58
58
  rowProps: ObjectConstructor;
59
- rowClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
60
- contentClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
59
+ rowClass: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
60
+ contentClass: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
61
61
  contentFlex: {
62
62
  type: BooleanConstructor;
63
63
  default: boolean;
@@ -150,8 +150,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
150
150
  labelColStyle: ObjectConstructor;
151
151
  wrapperColStyle: ObjectConstructor;
152
152
  rowProps: ObjectConstructor;
153
- rowClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
154
- contentClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
153
+ rowClass: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
154
+ contentClass: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
155
155
  contentFlex: {
156
156
  type: BooleanConstructor;
157
157
  default: boolean;
@@ -530,13 +530,13 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
530
530
  default: boolean;
531
531
  };
532
532
  contentClass: {
533
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
533
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
534
534
  };
535
535
  contentStyle: {
536
536
  type: PropType<import("vue").CSSProperties>;
537
537
  };
538
538
  arrowClass: {
539
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
539
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
540
540
  };
541
541
  arrowStyle: {
542
542
  type: PropType<import("vue").CSSProperties>;
@@ -594,7 +594,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
594
594
  default: boolean;
595
595
  };
596
596
  openedClass: {
597
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
597
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
598
598
  };
599
599
  autoFitPosition: {
600
600
  type: BooleanConstructor;
@@ -617,8 +617,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
617
617
  default: number;
618
618
  };
619
619
  }>> & Readonly<{
620
- onResize?: (() => any) | undefined;
621
620
  onHide?: (() => any) | undefined;
621
+ onResize?: (() => any) | undefined;
622
622
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
623
623
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
624
624
  onShow?: (() => any) | undefined;
@@ -721,13 +721,13 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
721
721
  default: boolean;
722
722
  };
723
723
  contentClass: {
724
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
724
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
725
725
  };
726
726
  contentStyle: {
727
727
  type: PropType<import("vue").CSSProperties>;
728
728
  };
729
729
  arrowClass: {
730
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
730
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
731
731
  };
732
732
  arrowStyle: {
733
733
  type: PropType<import("vue").CSSProperties>;
@@ -785,7 +785,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
785
785
  default: boolean;
786
786
  };
787
787
  openedClass: {
788
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
788
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
789
789
  };
790
790
  autoFitPosition: {
791
791
  type: BooleanConstructor;
@@ -808,8 +808,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
808
808
  default: number;
809
809
  };
810
810
  }>> & Readonly<{
811
- onResize?: (() => any) | undefined;
812
811
  onHide?: (() => any) | undefined;
812
+ onResize?: (() => any) | undefined;
813
813
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
814
814
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
815
815
  onShow?: (() => any) | undefined;
@@ -903,13 +903,13 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
903
903
  default: boolean;
904
904
  };
905
905
  contentClass: {
906
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
906
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
907
907
  };
908
908
  contentStyle: {
909
909
  type: PropType<import("vue").CSSProperties>;
910
910
  };
911
911
  arrowClass: {
912
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
912
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
913
913
  };
914
914
  arrowStyle: {
915
915
  type: PropType<import("vue").CSSProperties>;
@@ -967,7 +967,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
967
967
  default: boolean;
968
968
  };
969
969
  openedClass: {
970
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
970
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
971
971
  };
972
972
  autoFitPosition: {
973
973
  type: BooleanConstructor;
@@ -990,8 +990,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
990
990
  default: number;
991
991
  };
992
992
  }>> & Readonly<{
993
- onResize?: (() => any) | undefined;
994
993
  onHide?: (() => any) | undefined;
994
+ onResize?: (() => any) | undefined;
995
995
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
996
996
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
997
997
  onShow?: (() => any) | undefined;
@@ -1220,13 +1220,13 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
1220
1220
  default: boolean;
1221
1221
  };
1222
1222
  contentClass: {
1223
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
1223
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
1224
1224
  };
1225
1225
  contentStyle: {
1226
1226
  type: PropType<import("vue").CSSProperties>;
1227
1227
  };
1228
1228
  arrowClass: {
1229
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
1229
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
1230
1230
  };
1231
1231
  arrowStyle: {
1232
1232
  type: PropType<import("vue").CSSProperties>;
@@ -1284,7 +1284,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
1284
1284
  default: boolean;
1285
1285
  };
1286
1286
  openedClass: {
1287
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
1287
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
1288
1288
  };
1289
1289
  autoFitPosition: {
1290
1290
  type: BooleanConstructor;
@@ -1307,8 +1307,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
1307
1307
  default: number;
1308
1308
  };
1309
1309
  }>> & Readonly<{
1310
- onResize?: (() => any) | undefined;
1311
1310
  onHide?: (() => any) | undefined;
1311
+ onResize?: (() => any) | undefined;
1312
1312
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
1313
1313
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
1314
1314
  onShow?: (() => any) | undefined;
@@ -1411,13 +1411,13 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
1411
1411
  default: boolean;
1412
1412
  };
1413
1413
  contentClass: {
1414
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
1414
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
1415
1415
  };
1416
1416
  contentStyle: {
1417
1417
  type: PropType<import("vue").CSSProperties>;
1418
1418
  };
1419
1419
  arrowClass: {
1420
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
1420
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
1421
1421
  };
1422
1422
  arrowStyle: {
1423
1423
  type: PropType<import("vue").CSSProperties>;
@@ -1475,7 +1475,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
1475
1475
  default: boolean;
1476
1476
  };
1477
1477
  openedClass: {
1478
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
1478
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
1479
1479
  };
1480
1480
  autoFitPosition: {
1481
1481
  type: BooleanConstructor;
@@ -1498,8 +1498,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
1498
1498
  default: number;
1499
1499
  };
1500
1500
  }>> & Readonly<{
1501
- onResize?: (() => any) | undefined;
1502
1501
  onHide?: (() => any) | undefined;
1502
+ onResize?: (() => any) | undefined;
1503
1503
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
1504
1504
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
1505
1505
  onShow?: (() => any) | undefined;
@@ -1593,13 +1593,13 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
1593
1593
  default: boolean;
1594
1594
  };
1595
1595
  contentClass: {
1596
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
1596
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
1597
1597
  };
1598
1598
  contentStyle: {
1599
1599
  type: PropType<import("vue").CSSProperties>;
1600
1600
  };
1601
1601
  arrowClass: {
1602
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
1602
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
1603
1603
  };
1604
1604
  arrowStyle: {
1605
1605
  type: PropType<import("vue").CSSProperties>;
@@ -1657,7 +1657,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
1657
1657
  default: boolean;
1658
1658
  };
1659
1659
  openedClass: {
1660
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
1660
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
1661
1661
  };
1662
1662
  autoFitPosition: {
1663
1663
  type: BooleanConstructor;
@@ -1680,8 +1680,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
1680
1680
  default: number;
1681
1681
  };
1682
1682
  }>> & Readonly<{
1683
- onResize?: (() => any) | undefined;
1684
1683
  onHide?: (() => any) | undefined;
1684
+ onResize?: (() => any) | undefined;
1685
1685
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
1686
1686
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
1687
1687
  onShow?: (() => any) | undefined;
@@ -1,5 +1,5 @@
1
1
  import { formInjectionKey, formItemInjectionKey } from "./context.js";
2
- import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectSpread2.js";
2
+ import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
3
3
  import { getPrefixCls } from "../_utils/global-config.js";
4
4
  import { useI18n } from "../locale/index.js";
5
5
  import { getValueByPath, setValueByPath } from "../_utils/get-value-by-path.js";
@@ -8,8 +8,8 @@ import grid_row_default from "../grid/grid-row.js";
8
8
  import form_item_label_default from "./form-item-label.js";
9
9
  import form_item_message_default from "./form-item-message.js";
10
10
  import { getFinalValidateMessage, getFinalValidateStatus, getFormElementId } from "./utils.js";
11
- import { _objectDestructuringEmpty } from "../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectDestructuringEmpty.js";
12
- import { _extends } from "../_virtual/_@oxc-project_runtime@0.124.0/helpers/extends.js";
11
+ import { _objectDestructuringEmpty } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectDestructuringEmpty.js";
12
+ import { _extends } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/extends.js";
13
13
  import { computed, defineComponent, inject, nextTick, onBeforeUnmount, onMounted, provide, reactive, ref, toRef, toRefs } from "vue";
14
14
  import { Schema } from "b-validate";
15
15
  //#region components/form/form-item.vue?vue&type=script&lang.ts
@@ -22,82 +22,225 @@ var form_item_vue_vue_type_script_lang_default = defineComponent({
22
22
  FormItemMessage: form_item_message_default
23
23
  },
24
24
  props: {
25
+ /**
26
+ * @zh 表单元素在数据对象中的path(数据项必填)
27
+ * @en The path of the form element in the data object (required for the data item)
28
+ */
25
29
  field: {
26
30
  type: String,
27
31
  default: ""
28
32
  },
33
+ /**
34
+ * @zh 标签的文本
35
+ * @en Label text
36
+ */
29
37
  label: String,
38
+ /**
39
+ * @zh 提示内容
40
+ * @en Tooltip text
41
+ * @version 2.41.0
42
+ */
30
43
  tooltip: { type: String },
44
+ /**
45
+ * @zh 是否显示冒号
46
+ * @en Whether to show a colon
47
+ */
31
48
  showColon: {
32
49
  type: Boolean,
33
50
  default: false
34
51
  },
52
+ /**
53
+ * @zh 是否去除样式
54
+ * @en Whether to remove the style
55
+ */
35
56
  noStyle: {
36
57
  type: Boolean,
37
58
  default: false
38
59
  },
60
+ /**
61
+ * @zh 是否禁用
62
+ * @en Whether to disable
63
+ */
39
64
  disabled: {
40
65
  type: Boolean,
41
66
  default: void 0
42
67
  },
68
+ /**
69
+ * @zh 帮助文案
70
+ * @en Help copywriting
71
+ */
43
72
  help: String,
73
+ /**
74
+ * @zh 额外显示的文案
75
+ * @en Additional display copy
76
+ */
44
77
  extra: String,
78
+ /**
79
+ * @zh 是否必须填写
80
+ * @en Is it required
81
+ */
45
82
  required: {
46
83
  type: Boolean,
47
84
  default: false
48
85
  },
86
+ /**
87
+ * @zh 可选择将星号置于 label 前/后
88
+ * @en Optionally place an asterisk before/after the label
89
+ * @values 'start', 'end'
90
+ * @version 2.41.0
91
+ */
49
92
  asteriskPosition: {
50
93
  type: String,
51
94
  default: "start"
52
95
  },
96
+ /**
97
+ * @zh 表单项校验规则(优先级高于 form 的 rules)
98
+ * @en Form item validation rules (The priority is higher than the rules of form)
99
+ */
53
100
  rules: { type: [Object, Array] },
101
+ /**
102
+ * @zh 校验状态
103
+ * @en Validate status
104
+ * @values 'success', 'warning', 'error', 'validating'
105
+ */
54
106
  validateStatus: { type: String },
107
+ /**
108
+ * @zh 触发校验的事件
109
+ * @en The event that triggers the verification
110
+ * @values 'change', 'input', 'focus', 'blur'
111
+ */
55
112
  validateTrigger: {
56
113
  type: [String, Array],
57
114
  default: "change"
58
115
  },
116
+ /**
117
+ * @zh 标签元素布局选项。参数同 `<col>` 组件一致
118
+ * @en Label element layout options. The parameters are the same as the `<col>` component
119
+ */
59
120
  labelColProps: Object,
121
+ /**
122
+ * @zh 表单控件布局选项。参数同 `<col>` 组件一致
123
+ * @en Form control layout options. The parameters are the same as the `<col>` component
124
+ */
60
125
  wrapperColProps: Object,
126
+ /**
127
+ * @zh 是否隐藏标签
128
+ * @en Whether to hide the label
129
+ */
61
130
  hideLabel: {
62
131
  type: Boolean,
63
132
  default: false
64
133
  },
134
+ /**
135
+ * @zh 是否隐藏星号
136
+ * @en Whether to hide the asterisk
137
+ */
65
138
  hideAsterisk: {
66
139
  type: Boolean,
67
140
  default: false
68
141
  },
142
+ /**
143
+ * @zh 标签元素布局组件的 style
144
+ * @en The style of the label element layout component
145
+ * @version 2.10.0
146
+ */
69
147
  labelColStyle: Object,
148
+ /**
149
+ * @zh 表单控件布局组件的 style
150
+ * @en The style of the form control layout component
151
+ * @version 2.10.0
152
+ */
70
153
  wrapperColStyle: Object,
154
+ /**
155
+ * @zh 表单项布局选项。参数同 `<row>` 组件一致
156
+ * @en Form item layout options. The parameters are the same as the `<row>` component
157
+ * @version 2.10.0
158
+ */
71
159
  rowProps: Object,
160
+ /**
161
+ * @zh 表单项布局组件的 class
162
+ * @en The class of the form item layout component
163
+ * @version 2.10.0
164
+ */
72
165
  rowClass: [
73
166
  String,
74
167
  Array,
75
168
  Object
76
169
  ],
170
+ /**
171
+ * @zh 表单控件包裹层的 class
172
+ * @en The class of the form control wrapping layer
173
+ * @version 2.10.0
174
+ */
77
175
  contentClass: [
78
176
  String,
79
177
  Array,
80
178
  Object
81
179
  ],
180
+ /**
181
+ * @zh 内容层是否开启 flex 布局
182
+ * @en Whether to enable flex layout in the content layer
183
+ * @version 2.13.0
184
+ */
82
185
  contentFlex: {
83
186
  type: Boolean,
84
187
  default: true
85
188
  },
189
+ /**
190
+ * @zh (已废除)控制传递到子元素上的 Props。默认包括 disabled、error、size、 events 和 FormItem 上的额外属性。2.18.0 版本废除
191
+ * @en (Repealed) Control the Props passed to the child element. The default includes disabled, error, size, events and additional attributes on FormItem. Version 2.18.0 deprecated
192
+ * @version 2.13.0
193
+ */
86
194
  mergeProps: {
87
195
  type: [Boolean, Function],
88
196
  default: true
89
197
  },
198
+ /**
199
+ * @zh 设置标签 `Col` 组件的 flex 属性。设置时表单 `Col` 组件的 flex 属性会被设置为 `auto`。
200
+ * @en Set the flex property of the label `Col` component. When set, the flex property of the form `Col` component will be set to `auto`.
201
+ * @version 2.13.0
202
+ */
90
203
  labelColFlex: { type: [Number, String] },
204
+ /**
205
+ * @zh 是否显示表单控件的反馈图标
206
+ * @en Whether to show the feedback icon for the form control
207
+ * @version 2.16.0
208
+ */
91
209
  feedback: {
92
210
  type: Boolean,
93
211
  default: false
94
212
  },
213
+ /**
214
+ * @zh 表单项标签渲染的元素
215
+ * @en The element that the form item label renders
216
+ * @version 2.22.0
217
+ */
95
218
  labelComponent: {
96
219
  type: String,
97
220
  default: "label"
98
221
  },
222
+ /**
223
+ * @zh 表单项元素的属性
224
+ * @en Attributes of the form item element
225
+ * @version 2.22.0
226
+ */
99
227
  labelAttrs: Object
100
228
  },
229
+ /**
230
+ * @zh 标签
231
+ * @en Label
232
+ * @slot label
233
+ */
234
+ /**
235
+ * @zh 帮助信息
236
+ * @en Help message
237
+ * @slot help
238
+ */
239
+ /**
240
+ * @zh 额外内容
241
+ * @en Extra content
242
+ * @slot extra
243
+ */
101
244
  setup(props) {
102
245
  const prefixCls = getPrefixCls("form-item");
103
246
  const { field } = toRefs(props);
@@ -8,15 +8,34 @@ import { computed, defineComponent, provide, reactive, ref, toRefs } from "vue";
8
8
  var form_vue_vue_type_script_lang_default = defineComponent({
9
9
  name: "Form",
10
10
  props: {
11
+ /**
12
+ * @zh 表单数据对象
13
+ * @en Form data object
14
+ */
11
15
  model: {
12
16
  type: Object,
13
17
  required: true
14
18
  },
19
+ /**
20
+ * @zh 表单的布局方式,包括水平、垂直、多列
21
+ * @en The layout of the form, including horizontal, vertical, and multi-column
22
+ * @values 'horizontal', 'vertical', 'inline'
23
+ */
15
24
  layout: {
16
25
  type: String,
17
26
  default: "horizontal"
18
27
  },
28
+ /**
29
+ * @zh 表单控件的尺寸
30
+ * @en The size of the form
31
+ * @values 'mini','small','medium','large'
32
+ * @defaultValue 'medium'
33
+ */
19
34
  size: { type: String },
35
+ /**
36
+ * @zh 标签元素布局选项。参数同 `<col>` 组件一致
37
+ * @en Label element layout options. The parameters are the same as the `<col>` component
38
+ */
20
39
  labelColProps: {
21
40
  type: Object,
22
41
  default: () => ({
@@ -24,6 +43,10 @@ var form_vue_vue_type_script_lang_default = defineComponent({
24
43
  offset: 0
25
44
  })
26
45
  },
46
+ /**
47
+ * @zh 表单控件布局选项。参数同 `<col>` 组件一致
48
+ * @en Form control layout options. The parameters are the same as the `<col>` component
49
+ */
27
50
  wrapperColProps: {
28
51
  type: Object,
29
52
  default: () => ({
@@ -33,28 +56,73 @@ var form_vue_vue_type_script_lang_default = defineComponent({
33
56
  },
34
57
  labelColStyle: Object,
35
58
  wrapperColStyle: Object,
59
+ /**
60
+ * @zh 标签的对齐方向
61
+ * @en Alignment direction of the label
62
+ * @values 'left', 'right'
63
+ */
36
64
  labelAlign: {
37
65
  type: String,
38
66
  default: "right"
39
67
  },
68
+ /**
69
+ * @zh 是否禁用表单
70
+ * @en Whether to disable the form
71
+ */
40
72
  disabled: {
41
73
  type: Boolean,
42
74
  default: void 0
43
75
  },
76
+ /**
77
+ * @zh 表单项校验规则
78
+ * @en Form item validation rules
79
+ */
44
80
  rules: { type: Object },
81
+ /**
82
+ * @zh 是否开启自动标签宽度,仅在 `layout="horizontal"` 下生效。
83
+ * @en Whether to enable automatic label width, it only takes effect under `layout="horizontal"`.
84
+ * @version 2.13.0
85
+ */
45
86
  autoLabelWidth: {
46
87
  type: Boolean,
47
88
  default: false
48
89
  },
90
+ /**
91
+ * @zh 表单 `id` 属性和表单控件 `id` 前缀
92
+ * @en Form `id` attribute and form control `id` prefix
93
+ */
49
94
  id: { type: String },
95
+ /**
96
+ * @zh 验证失败后滚动到第一个错误字段
97
+ * @en Scroll to the first error field after verification fails
98
+ * @version 2.51.0
99
+ */
50
100
  scrollToFirstError: {
51
101
  type: Boolean,
52
102
  default: false
53
103
  }
54
104
  },
55
105
  emits: {
106
+ /**
107
+ * @zh 表单提交时触发
108
+ * @en Triggered when the form is submitted
109
+ * @param {{values: Record<string, any>; errors: Record<string, ValidatedError> | undefined}} data
110
+ * @param {Event} ev
111
+ */
56
112
  submit: (_data, _ev) => true,
113
+ /**
114
+ * @zh 验证成功时触发
115
+ * @en Triggered when verification is successful
116
+ * @param {Record<string, any>} values
117
+ * @param {Event} ev
118
+ */
57
119
  submitSuccess: (_values, _ev) => true,
120
+ /**
121
+ * @zh 验证失败时触发
122
+ * @en Triggered when verification failed
123
+ * @param {{values: Record<string, any>; errors: Record<string, ValidatedError>}} data
124
+ * @param {Event} ev
125
+ */
58
126
  submitFailed: (_data, _ev) => true
59
127
  },
60
128
  setup(props, { emit }) {
@@ -209,21 +277,61 @@ var form_vue_vue_type_script_lang_default = defineComponent({
209
277
  };
210
278
  },
211
279
  methods: {
280
+ /**
281
+ * @zh 校验全部表单数据
282
+ * @en Verify all form data
283
+ * @public
284
+ * @param {(errors: undefined | Record<string, ValidatedError>) => void} callback
285
+ * @returns {Promise<undefined | Record<string, ValidatedError>>}
286
+ */
212
287
  validate(callback) {
213
288
  return this.innerValidate(callback);
214
289
  },
290
+ /**
291
+ * @zh 校验部分表单数据
292
+ * @en Validate part of the form data
293
+ * @public
294
+ * @param {string | string[]} field
295
+ * @param {(errors: undefined | Record<string, ValidatedError>) => void} callback
296
+ * @returns {Promise<undefined | Record<string, ValidatedError>>}
297
+ */
215
298
  validateField(field, callback) {
216
299
  return this.innerValidateField(field, callback);
217
300
  },
301
+ /**
302
+ * @zh 重置表单数据
303
+ * @en Reset form data
304
+ * @public
305
+ * @param {string | string[]} field
306
+ */
218
307
  resetFields(field) {
219
308
  return this.innerResetFields(field);
220
309
  },
310
+ /**
311
+ * @zh 清除校验状态
312
+ * @en Clear verification status
313
+ * @public
314
+ * @param {string | string[]} field
315
+ */
221
316
  clearValidate(field) {
222
317
  return this.innerClearValidate(field);
223
318
  },
319
+ /**
320
+ * @zh 设置表单项的值和状态
321
+ * @en Set the value and status of the form item
322
+ * @param {Record<string, FieldData>} data
323
+ * @public
324
+ */
224
325
  setFields(data) {
225
326
  return this.innerSetFields(data);
226
327
  },
328
+ /**
329
+ * @zh 滚动到指定表单项
330
+ * @en Scroll to the specified form item
331
+ * @param {string} field
332
+ * @public
333
+ * @version 2.51.0
334
+ */
227
335
  scrollToField(field) {
228
336
  return this.innerScrollToField(field);
229
337
  }