@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
@@ -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
  }
@@ -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 { isNumber, isObject, isString } from "../_utils/is.js";
4
4
  import pick from "../_utils/pick.js";
@@ -19,18 +19,59 @@ function getAllowableFlexValue(flexValue) {
19
19
  var grid_col_vue_vue_type_script_lang_default = defineComponent({
20
20
  name: "Col",
21
21
  props: {
22
+ /**
23
+ * @zh 栅格占位格数
24
+ * @en Number of grid space
25
+ */
22
26
  span: {
23
27
  type: Number,
24
28
  default: 24
25
29
  },
30
+ /**
31
+ * @zh 栅格左侧的间隔格数,间隔内不可以有栅格
32
+ * @en The number of grids on the left side of the grid. There can be no grids in the grid.
33
+ */
26
34
  offset: { type: Number },
35
+ /**
36
+ * @zh 对元素进行排序
37
+ * @en Sort elements
38
+ */
27
39
  order: { type: Number },
40
+ /**
41
+ * @zh < 576px 响应式栅格
42
+ * @en <576px responsive grid
43
+ */
28
44
  xs: { type: [Number, Object] },
45
+ /**
46
+ * @zh >= 576px 响应式栅格
47
+ * @en >= 576px responsive grid
48
+ */
29
49
  sm: { type: [Number, Object] },
50
+ /**
51
+ * @zh >= 768px 响应式栅格
52
+ * @en >= 768px responsive grid
53
+ */
30
54
  md: { type: [Number, Object] },
55
+ /**
56
+ * @zh >= 992px 响应式栅格
57
+ * @en >= 992px responsive grid
58
+ */
31
59
  lg: { type: [Number, Object] },
60
+ /**
61
+ * @zh >= 1200px 响应式栅格
62
+ * @en >= 1200px responsive grid
63
+ */
32
64
  xl: { type: [Number, Object] },
65
+ /**
66
+ * @zh >= 1600px 响应式栅格
67
+ * @en >= 1600px responsive grid
68
+ */
33
69
  xxl: { type: [Number, Object] },
70
+ /**
71
+ * @zh 设置 flex 布局属性
72
+ * @en Set flex layout properties
73
+ * @version 2.10.0
74
+ */
34
75
  flex: { type: [Number, String] }
35
76
  },
36
77
  setup(props) {
@@ -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 { useIndex } from "../_hooks/use-index.js";
4
4
  import { useResponsiveState } from "./hook/use-responsive-state.js";
@@ -14,14 +14,26 @@ import { computed, defineComponent, inject, onUnmounted, ref, toRefs, watchEffec
14
14
  var grid_item_vue_vue_type_script_lang_default = defineComponent({
15
15
  name: "GridItem",
16
16
  props: {
17
+ /**
18
+ * @zh 跨越的格数
19
+ * @en Number of grids spanned
20
+ */
17
21
  span: {
18
22
  type: [Number, Object],
19
23
  default: 1
20
24
  },
25
+ /**
26
+ * @zh 左侧的间隔格数
27
+ * @en Number of grids on the left
28
+ */
21
29
  offset: {
22
30
  type: [Number, Object],
23
31
  default: 0
24
32
  },
33
+ /**
34
+ * @zh 是否是后缀元素
35
+ * @en Is it a suffix element
36
+ */
25
37
  suffix: {
26
38
  type: Boolean,
27
39
  default: false
@@ -6,6 +6,10 @@ import { computed, defineComponent, provide, reactive, toRefs } from "vue";
6
6
  var grid_row_vue_vue_type_script_lang_default = defineComponent({
7
7
  name: "Row",
8
8
  props: {
9
+ /**
10
+ * @zh 栅格间隔,单位是`px` 栅格间隔。可传入响应式对象写法 { xs: 4, sm: 6, md: 12},传入数组 [ 水平间距, 垂直间距 ] 来设置两个方向。
11
+ * @en Grid interval in `px`. Pass in the responsive object like {xs: 4, sm: 6, md: 12}. Pass in the array [horizontal spacing, vertical spacing] to set two directions.
12
+ */
9
13
  gutter: {
10
14
  type: [
11
15
  Number,
@@ -14,15 +18,32 @@ var grid_row_vue_vue_type_script_lang_default = defineComponent({
14
18
  ],
15
19
  default: 0
16
20
  },
21
+ /**
22
+ * @zh 水平对齐方式 (`justify-content`)
23
+ * @en Horizontal alignment (`justify-content`)
24
+ */
17
25
  justify: {
18
26
  type: String,
19
27
  default: "start"
20
28
  },
29
+ /**
30
+ * @zh 竖直对齐方式 ( `align-items` )
31
+ * @en Vertical alignment (`align-items`)
32
+ */
21
33
  align: {
22
34
  type: String,
23
35
  default: "start"
24
36
  },
37
+ /**
38
+ * @zh 开启这个选项`Row`和`Col`都会被当作div而不会附带任何Grid相关的类和样式
39
+ * @en Enabling this option `Row` and `Col` will be treated as divs without any Grid-related classes and styles
40
+ */
25
41
  div: { type: Boolean },
42
+ /**
43
+ * @zh `Col` 是否支持换行
44
+ * @en Whether `Col` can wrap onto multiple lines
45
+ * @version 2.13.0
46
+ */
26
47
  wrap: {
27
48
  type: Boolean,
28
49
  default: true
@@ -12,22 +12,42 @@ import { computed, defineComponent, provide, reactive, toRefs, watchEffect } fro
12
12
  var grid_vue_vue_type_script_lang_default = defineComponent({
13
13
  name: "Grid",
14
14
  props: {
15
+ /**
16
+ * @zh 每一行展示的列数
17
+ * @en Number of columns displayed in each row
18
+ */
15
19
  cols: {
16
20
  type: [Number, Object],
17
21
  default: 24
18
22
  },
23
+ /**
24
+ * @zh 行与行之间的间距
25
+ * @en The space in row-to-row
26
+ */
19
27
  rowGap: {
20
28
  type: [Number, Object],
21
29
  default: 0
22
30
  },
31
+ /**
32
+ * @zh 列与列之间的间距
33
+ * @en The space in column-to-column
34
+ */
23
35
  colGap: {
24
36
  type: [Number, Object],
25
37
  default: 0
26
38
  },
39
+ /**
40
+ * @zh 是否折叠
41
+ * @en Whether to collapsed
42
+ */
27
43
  collapsed: {
28
44
  type: Boolean,
29
45
  default: false
30
46
  },
47
+ /**
48
+ * @zh 折叠时显示的行数
49
+ * @en Number of rows displayed when collapsed
50
+ */
31
51
  collapsedRows: {
32
52
  type: Number,
33
53
  default: 1
package/es/icon.js CHANGED
@@ -2,7 +2,7 @@ import { computed, createElementBlock, createElementVNode, createStaticVNode, de
2
2
  //#region components/config-provider/context.ts
3
3
  var configProviderInjectionKey = Symbol("SDConfigProvider");
4
4
  //#endregion
5
- //#region \0@oxc-project+runtime@0.124.0/helpers/typeof.js
5
+ //#region \0@oxc-project+runtime@0.130.0/helpers/typeof.js
6
6
  function _typeof(o) {
7
7
  "@babel/helpers - typeof";
8
8
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -12,7 +12,7 @@ function _typeof(o) {
12
12
  }, _typeof(o);
13
13
  }
14
14
  //#endregion
15
- //#region \0@oxc-project+runtime@0.124.0/helpers/toPrimitive.js
15
+ //#region \0@oxc-project+runtime@0.130.0/helpers/toPrimitive.js
16
16
  function toPrimitive(t, r) {
17
17
  if ("object" != _typeof(t) || !t) return t;
18
18
  var e = t[Symbol.toPrimitive];
@@ -24,13 +24,13 @@ function toPrimitive(t, r) {
24
24
  return ("string" === r ? String : Number)(t);
25
25
  }
26
26
  //#endregion
27
- //#region \0@oxc-project+runtime@0.124.0/helpers/toPropertyKey.js
27
+ //#region \0@oxc-project+runtime@0.130.0/helpers/toPropertyKey.js
28
28
  function toPropertyKey(t) {
29
29
  var i = toPrimitive(t, "string");
30
30
  return "symbol" == _typeof(i) ? i : i + "";
31
31
  }
32
32
  //#endregion
33
- //#region \0@oxc-project+runtime@0.124.0/helpers/defineProperty.js
33
+ //#region \0@oxc-project+runtime@0.130.0/helpers/defineProperty.js
34
34
  function _defineProperty(e, r, t) {
35
35
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
36
36
  value: t,
@@ -40,7 +40,7 @@ function _defineProperty(e, r, t) {
40
40
  }) : e[r] = t, e;
41
41
  }
42
42
  //#endregion
43
- //#region \0@oxc-project+runtime@0.124.0/helpers/objectSpread2.js
43
+ //#region \0@oxc-project+runtime@0.130.0/helpers/objectSpread2.js
44
44
  function ownKeys(e, r) {
45
45
  var t = Object.keys(e);
46
46
  if (Object.getOwnPropertySymbols) {
package/es/image/image.js CHANGED
@@ -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 _plugin_vue_export_helper_default from "../_virtual/_plugin-vue_export-helper.js";
3
3
  import image_vue_vue_type_script_lang_default from "./image.vue_vue_type_script_lang.js";
4
4
  import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, mergeProps, normalizeClass, normalizeStyle, openBlock, renderSlot, resolveComponent, toDisplayString, withCtx } from "vue";