@sdata/web-vue 1.11.1 → 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,8 +1,8 @@
1
1
  import { useFormItem } from "../_hooks/use-form-item.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 { isBoolean, isFunction, isObject } from "../_utils/is.js";
5
- import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.124.0/helpers/asyncToGenerator.js";
5
+ import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/asyncToGenerator.js";
6
6
  import preview_group_default from "../image/preview-group.js";
7
7
  import { uploadInjectionKey } from "./context.js";
8
8
  import { isImage, uploadRequest } from "./utils.js";
@@ -13,105 +13,356 @@ import { computed, createVNode, defineComponent, provide, reactive, ref, toRefs,
13
13
  var upload_default = /* @__PURE__ */ defineComponent({
14
14
  name: "Upload",
15
15
  props: {
16
+ /**
17
+ * @zh 文件列表
18
+ * @en File List
19
+ * @vModel
20
+ */
16
21
  fileList: {
17
22
  type: Array,
18
23
  default: void 0
19
24
  },
25
+ /**
26
+ * @zh 默认的文件列表(非受控状态)
27
+ * @en Default file list (uncontrolled state)
28
+ */
20
29
  defaultFileList: {
21
30
  type: Array,
22
31
  default: () => []
23
32
  },
33
+ /**
34
+ * @zh 接收的上传文件类型,具体参考 [HTML标准](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#htmlattrdefaccept "_blank")
35
+ * @en For the received upload file type, please refer to [HTML standard](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#htmlattrdefaccept "_blank")
36
+ */
24
37
  accept: String,
38
+ /**
39
+ * @zh 上传的URL
40
+ * @en Uploaded URL
41
+ */
25
42
  action: String,
43
+ /**
44
+ * @zh 是否禁用
45
+ * @en Whether to disable
46
+ */
26
47
  disabled: {
27
48
  type: Boolean,
28
49
  default: false
29
50
  },
51
+ /**
52
+ * @zh 是否支持多文件上传
53
+ * @en Whether to support multiple file upload
54
+ */
30
55
  multiple: {
31
56
  type: Boolean,
32
57
  default: false
33
58
  },
59
+ /**
60
+ * @zh 是否支持文件夹上传(需要浏览器支持)
61
+ * @en Whether to support folder upload (requires browser support)
62
+ */
34
63
  directory: {
35
64
  type: Boolean,
36
65
  default: false
37
66
  },
67
+ /**
68
+ * @zh 是否支持拖拽上传
69
+ * @en Whether to support drag and drop upload
70
+ */
38
71
  draggable: {
39
72
  type: Boolean,
40
73
  default: false
41
74
  },
75
+ /**
76
+ * @zh 提示文字
77
+ * @en Prompt text
78
+ */
42
79
  tip: String,
80
+ /**
81
+ * @zh 上传请求附加的头信息
82
+ * @en Additional header information for upload request
83
+ */
43
84
  headers: { type: Object },
85
+ /**
86
+ * @zh 上传请求附加的数据
87
+ * @en Upload request additional data
88
+ */
44
89
  data: { type: [Object, Function] },
90
+ /**
91
+ * @zh 上传的文件名
92
+ * @en Uploaded file name
93
+ */
45
94
  name: { type: [String, Function] },
95
+ /**
96
+ * @zh 上传请求是否携带 cookie
97
+ * @en Whether the upload request carries cookies
98
+ */
46
99
  withCredentials: {
47
100
  type: Boolean,
48
101
  default: false
49
102
  },
103
+ /**
104
+ * @zh 自定义上传行为
105
+ * @en Custom upload behavior
106
+ */
50
107
  customRequest: { type: Function },
108
+ /**
109
+ * @zh 限制上传文件的数量。`0`表示不限制
110
+ * @en Limit the number of uploaded files. `0` means no limit
111
+ */
51
112
  limit: {
52
113
  type: Number,
53
114
  default: 0
54
115
  },
116
+ /**
117
+ * @zh 是否自动上传文件
118
+ * @en Whether to upload files automatically
119
+ */
55
120
  autoUpload: {
56
121
  type: Boolean,
57
122
  default: true
58
123
  },
124
+ /**
125
+ * @zh 是否显示文件列表
126
+ * @en Whether to display the file list
127
+ */
59
128
  showFileList: {
60
129
  type: Boolean,
61
130
  default: true
62
131
  },
132
+ /**
133
+ * @zh 是否显示删除按钮
134
+ * @en Whether to display the remove button
135
+ * @version 2.11.0
136
+ */
63
137
  showRemoveButton: {
64
138
  type: Boolean,
65
139
  default: true
66
140
  },
141
+ /**
142
+ * @zh 是否显示重试按钮
143
+ * @en Whether to display the retry button
144
+ * @version 2.11.0
145
+ */
67
146
  showRetryButton: {
68
147
  type: Boolean,
69
148
  default: true
70
149
  },
150
+ /**
151
+ * @zh 是否显示取消按钮
152
+ * @en Whether to display the cancel button
153
+ * @version 2.11.0
154
+ */
71
155
  showCancelButton: {
72
156
  type: Boolean,
73
157
  default: true
74
158
  },
159
+ /**
160
+ * @zh 是否显示上传按钮。2.14.0 版本新增 `showOnExceedLimit` 支持
161
+ * @en Whether to display the retry button. Added `showOnExceedLimit` support in version 2.14.0
162
+ * @version 2.11.0
163
+ */
75
164
  showUploadButton: {
76
165
  type: [Boolean, Object],
77
166
  default: true
78
167
  },
168
+ /**
169
+ * @zh 照片墙是否显示预览按钮
170
+ * @en Whether to display the preview button in picture-card
171
+ * @version 2.42.0
172
+ */
79
173
  showPreviewButton: {
80
174
  type: Boolean,
81
175
  default: true
82
176
  },
177
+ /**
178
+ * @zh 是否在 `<a>` 链接上添加 download 属性
179
+ * @en Whether to add download attribute to `<a>` link
180
+ * @version 2.11.0
181
+ */
83
182
  download: {
84
183
  type: Boolean,
85
184
  default: false
86
185
  },
186
+ /**
187
+ * @zh 在列表模式下,如果上传的文件存在 URL 则展示链接。如果关闭仅展示文字并且点击可以触发 `preview` 事件。
188
+ * @en In the list mode, if the uploaded file has a URL, the link will be displayed. If you turn off only display text and click to trigger the `preview` event.
189
+ * @version 2.13.0
190
+ */
87
191
  showLink: {
88
192
  type: Boolean,
89
193
  default: true
90
194
  },
195
+ /**
196
+ * @zh `<img>` 的原生 HTML 属性,需要浏览器支持
197
+ * @en Native HTML attributes of `<img>`, browser support is required
198
+ * @version 2.11.0
199
+ */
91
200
  imageLoading: { type: String },
201
+ /**
202
+ * @zh 图片列表类型
203
+ * @en Picture list type
204
+ * @values 'text','picture','picture-card'
205
+ */
92
206
  listType: {
93
207
  type: String,
94
208
  default: "text"
95
209
  },
210
+ /**
211
+ * @zh Response中获取图片URL的key,开启后会用上传的图片替换预加载的图片
212
+ * @en Get the key of the image URL in the Response. After opening, it will replace the pre-load image with the uploaded image
213
+ */
96
214
  responseUrlKey: { type: [String, Function] },
215
+ /**
216
+ * @zh 自定义图标
217
+ * @en Custom icon
218
+ */
97
219
  customIcon: { type: Object },
220
+ /**
221
+ * @zh 是否使用 ImagePreview 组件进行预览
222
+ * @version 2.14.0
223
+ */
98
224
  imagePreview: {
99
225
  type: Boolean,
100
226
  default: false
101
227
  },
228
+ /**
229
+ * @zh 上传文件前触发
230
+ * @en Trigger before uploading a file
231
+ */
102
232
  onBeforeUpload: { type: Function },
233
+ /**
234
+ * @zh 移除文件前触发
235
+ * @en Triggered before removing the file
236
+ */
103
237
  onBeforeRemove: { type: Function },
238
+ /**
239
+ * @zh 点击上传按钮触发(如果返回 Promise 则会关闭默认 input 上传)
240
+ * @en Click the upload button to trigger (if the Promise is returned, the default input upload will be closed)
241
+ */
104
242
  onButtonClick: { type: Function }
105
243
  },
106
244
  emits: {
107
245
  "update:fileList": (_fileList) => true,
246
+ /**
247
+ * @zh 上传的文件超出限制后触发
248
+ * @en Triggered when the uploaded file exceeds the limit
249
+ * @param {FileItem[]} fileList
250
+ * @param {File[]} files
251
+ */
108
252
  "exceedLimit": (_fileList, _files) => true,
253
+ /**
254
+ * @zh 上传的文件状态发生改变时触发
255
+ * @en Triggered when the status of the uploaded file changes
256
+ * @param {FileItem[]} fileList
257
+ * @param {fileItem} fileItem
258
+ */
109
259
  "change": (_fileList, _fileItem) => true,
260
+ /**
261
+ * @zh 上传中的文件进度改变时触发
262
+ * @en Triggered when the uploading file progress changes
263
+ * @param {fileItem} fileItem
264
+ * @param {ProgressEvent} ev
265
+ */
110
266
  "progress": (_fileItem, _ev) => true,
267
+ /**
268
+ * @zh 点击图片预览时的触发
269
+ * @en Trigger when the image preview is clicked
270
+ * @param {FileItem} fileItem
271
+ */
111
272
  "preview": (_fileItem) => true,
273
+ /**
274
+ * @zh 上传成功时触发
275
+ * @en Triggered when upload is successful
276
+ * @param {FileItem} fileItem
277
+ */
112
278
  "success": (_fileItem) => true,
279
+ /**
280
+ * @zh 上传失败时触发
281
+ * @en Triggered when upload fails
282
+ * @param {FileItem} fileItem
283
+ */
113
284
  "error": (_fileItem) => true
114
285
  },
286
+ /**
287
+ * @zh 上传列表的项目
288
+ * @en Upload list item
289
+ * @slot upload-item
290
+ * @binding {FileItem} fileItem
291
+ * @binding {number} index
292
+ */
293
+ /**
294
+ * @zh 上传按钮
295
+ * @en Upload button
296
+ * @slot upload-button
297
+ */
298
+ /**
299
+ * @zh 重试图标
300
+ * @en Retry icon
301
+ * @slot retry-icon
302
+ * @version 2.23.0
303
+ */
304
+ /**
305
+ * @zh 成功图标
306
+ * @en Success icon
307
+ * @slot success-icon
308
+ * @version 2.23.0
309
+ */
310
+ /**
311
+ * @zh 失败图标
312
+ * @en Error icon
313
+ * @slot error-icon
314
+ * @version 2.23.0
315
+ */
316
+ /**
317
+ * @zh 开始图标
318
+ * @en Start icon
319
+ * @slot start-icon
320
+ * @version 2.23.0
321
+ */
322
+ /**
323
+ * @zh 取消图标
324
+ * @en Cancel icon
325
+ * @slot cancel-icon
326
+ * @version 2.23.0
327
+ */
328
+ /**
329
+ * @zh 预览图标
330
+ * @en Preview icon
331
+ * @slot preview-icon
332
+ * @version 2.23.0
333
+ */
334
+ /**
335
+ * @zh 删除图标
336
+ * @en Remove icon
337
+ * @slot remove-icon
338
+ * @version 2.23.0
339
+ */
340
+ /**
341
+ * @zh 文件图标
342
+ * @en File icon
343
+ * @slot file-icon
344
+ * @version 2.23.0
345
+ */
346
+ /**
347
+ * @zh 文件名称
348
+ * @en File name
349
+ * @slot file-name
350
+ * @version 2.23.0
351
+ */
352
+ /**
353
+ * @zh 自定义图片
354
+ * @en Image
355
+ * @slot image
356
+ * @binding {FileItem} fileItem
357
+ * @version 2.23.0
358
+ */
359
+ /**
360
+ * @zh 上传列表额外按钮
361
+ * @en Extra button
362
+ * @slot extra-button
363
+ * @binding {FileItem} fileItem
364
+ * @version 2.43.0
365
+ */
115
366
  setup(props, { emit, slots }) {
116
367
  const { fileList, disabled, listType, customIcon, showRetryButton, showCancelButton, showRemoveButton, showPreviewButton, imageLoading, download, showLink } = toRefs(props);
117
368
  const prefixCls = getPrefixCls("upload");
@@ -367,15 +618,41 @@ var upload_default = /* @__PURE__ */ defineComponent({
367
618
  };
368
619
  },
369
620
  methods: {
621
+ /**
622
+ * @zh 上传文件(已经初始化完成的文件)
623
+ * @en Upload file (file that has been initialized)
624
+ * @public
625
+ * @param {FileItem} fileItem
626
+ */
370
627
  submit(fileItem) {
371
628
  return this.innerSubmit(fileItem);
372
629
  },
630
+ /**
631
+ * @zh 中止上传
632
+ * @en Abort upload
633
+ * @public
634
+ * @param {FileItem} fileItem
635
+ */
373
636
  abort(fileItem) {
374
637
  return this.innerAbort(fileItem);
375
638
  },
639
+ /**
640
+ * @zh 更新文件
641
+ * @en Update file
642
+ * @public
643
+ * @param {string} id
644
+ * @param {File} file
645
+ */
376
646
  updateFile(id, file) {
377
647
  return this.innerUpdateFile(id, file);
378
648
  },
649
+ /**
650
+ * @zh 上传文件
651
+ * @en Upload file
652
+ * @public
653
+ * @param {File[]} files
654
+ * @version 2.41.0
655
+ */
379
656
  upload(files) {
380
657
  return this.innerUpload(files);
381
658
  }
@@ -7,30 +7,89 @@ import { Fragment, computed, createVNode, defineComponent, ref, watch } from "vu
7
7
  var verification_code_default = /* @__PURE__ */ defineComponent({
8
8
  name: "VerificationCode",
9
9
  props: {
10
+ /**
11
+ * @zh 绑定值
12
+ * @en Value
13
+ */
10
14
  modelValue: String,
15
+ /**
16
+ * @zh 默认值(非受控状态)
17
+ * @en Default value (uncontrolled state)
18
+ */
11
19
  defaultValue: {
12
20
  type: String,
13
21
  default: ""
14
22
  },
23
+ /**
24
+ * @zh 验证码的长度,根据长度渲染对应个数的输入框
25
+ * @en The length of the verification code, rendering the corresponding number of input boxes according to the length.
26
+ */
15
27
  length: {
16
28
  type: Number,
17
29
  default: 6
18
30
  },
31
+ /**
32
+ * @zh 输入框大小
33
+ * @en Input size
34
+ * @values 'mini','small','medium','large'
35
+ * @defaultValue 'medium'
36
+ */
19
37
  size: { type: String },
38
+ /**
39
+ * @zh 是否禁用
40
+ * @en Whether to disable
41
+ */
20
42
  disabled: Boolean,
43
+ /**
44
+ * @zh 是否密码模式
45
+ * @en Password mode
46
+ */
21
47
  masked: Boolean,
48
+ /**
49
+ * @zh 只读
50
+ * @en Readonly
51
+ */
22
52
  readonly: Boolean,
53
+ /**
54
+ * @zh 是否为错误状态
55
+ * @en Whether it is an error state
56
+ */
23
57
  error: {
24
58
  type: Boolean,
25
59
  default: false
26
60
  },
61
+ /**
62
+ * @zh 分隔符。可在不同索引的输入框后自定义渲染分隔符
63
+ * @en Separator. Customizable rendering separators after input boxes with different indexes
64
+ */
27
65
  separator: { type: Function },
66
+ /**
67
+ * @zh 格式化函数,当用户输入值改变时触发
68
+ * @en Formatter function, triggered when the user input value changes
69
+ */
28
70
  formatter: { type: Function }
29
71
  },
30
72
  emits: {
31
73
  "update:modelValue": (_value) => true,
74
+ /**
75
+ * @zh 值发生改变时触发
76
+ * @en Triggered when the value changes
77
+ * @param { string } value
78
+ */
32
79
  "change": (_value) => true,
80
+ /**
81
+ * @zh 填充完成时触发
82
+ * @en Triggered when the filling is complete
83
+ * @param { string } value
84
+ */
33
85
  "finish": (_value) => true,
86
+ /**
87
+ * @zh 输入时触发
88
+ * @en Triggered on input
89
+ * @param { string } inputValue
90
+ * @param { number } index
91
+ * @param {Event} ev
92
+ */
34
93
  "input": (_inputValue, _index, _ev) => true
35
94
  },
36
95
  setup(props, { emit }) {
@@ -1,4 +1,4 @@
1
- import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectWithoutProperties.js";
1
+ import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectWithoutProperties.js";
2
2
  import { getCurrentScope, onScopeDispose, unref, watch } from "vue";
3
3
  //#region components/watermark/hooks/use-mutation-observer.ts
4
4
  var _excluded = ["window"];
@@ -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 { isArray } from "../_utils/is.js";
4
4
  import { useMutationObserver } from "./hooks/use-mutation-observer.js";
@@ -9,40 +9,97 @@ import { computed, createVNode, defineComponent, mergeProps, onMounted, ref, sha
9
9
  var watermark_default = /* @__PURE__ */ defineComponent({
10
10
  name: "Watermark",
11
11
  props: {
12
+ /**
13
+ * @zh 水印文字内容
14
+ * @en Watermark text content
15
+ */
12
16
  content: { type: [String, Array] },
17
+ /**
18
+ * @zh 图片源,建议使用 2 倍或 3 倍图
19
+ * @en Image watermark address
20
+ */
13
21
  image: { type: String },
22
+ /**
23
+ * @zh 水印宽度(默认为内容宽度)
24
+ * @en Watermark width
25
+ */
14
26
  width: { type: Number },
27
+ /**
28
+ * @zh 水印高度(默认为内容高度)
29
+ * @en Watermark height
30
+ */
15
31
  height: { type: Number },
32
+ /**
33
+ * @zh 水印间的间距
34
+ * @en Watermark spacing
35
+ */
16
36
  gap: {
17
37
  type: Array,
18
38
  default: () => [90, 90]
19
39
  },
40
+ /**
41
+ * @zh 距离容器左上角的偏移量,默认为水印间距的一半
42
+ * @en The offset from the upper left corner of the container, the default is half the watermark spacing
43
+ * @defaultValue [gap[0]/2, gap[1]/2]
44
+ */
20
45
  offset: { type: Array },
46
+ /**
47
+ * @zh 旋转角度
48
+ * @en Watermark rotation angle
49
+ */
21
50
  rotate: {
22
51
  type: Number,
23
52
  default: -22
24
53
  },
54
+ /**
55
+ * @zh 水印字体样式,具体参数配置看 [WatermarkFont](#WatermarkFont)
56
+ * @en Watermark font style, specific parameter configuration see [WatermarkFont](#WatermarkFont)
57
+ */
25
58
  font: { type: Object },
59
+ /**
60
+ * @zh 水印层级
61
+ * @en Watermark z-index
62
+ */
26
63
  zIndex: {
27
64
  type: Number,
28
65
  default: 6
29
66
  },
67
+ /**
68
+ * @zh 透明度
69
+ * @en Watermark opacity
70
+ */
30
71
  alpha: {
31
72
  type: Number,
32
73
  default: 1
33
74
  },
75
+ /**
76
+ * @zh 水印防篡改
77
+ * @en Watermark anti-tampering
78
+ */
34
79
  antiTamper: {
35
80
  type: Boolean,
36
81
  default: true
37
82
  },
83
+ /**
84
+ * @zh 灰阶水印
85
+ * @en Grayscale watermark
86
+ */
38
87
  grayscale: {
39
88
  type: Boolean,
40
89
  default: false
41
90
  },
91
+ /**
92
+ * @zh 是否重复水印
93
+ * @en Whether to repeat the watermark
94
+ */
42
95
  repeat: {
43
96
  type: Boolean,
44
97
  default: true
45
98
  },
99
+ /**
100
+ * @zh 是否错开排列
101
+ * @en Whether to stagger the arrangement layout
102
+ */
46
103
  staggered: {
47
104
  type: Boolean,
48
105
  default: true
package/es/web-vue.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OverlayScrollbars
3
- * Version: 2.15.1
3
+ * Version: 2.16.0
4
4
  *
5
5
  * Copyright (c) Rene Haas | KingSora.
6
6
  * https://github.com/KingSora
@@ -142,29 +142,6 @@
142
142
  * hide native scrollbars
143
143
  * changes to this styles need to be reflected in the environment styles to correctly detect scrollbar hiding
144
144
  */
145
- [data-overlayscrollbars-initialize]:not([data-overlayscrollbars-viewport]),
146
- [data-overlayscrollbars-viewport~=scrollbarHidden],
147
- html[data-overlayscrollbars-viewport~=scrollbarHidden] > body {
148
- scrollbar-width: none !important;
149
- }
150
-
151
- [data-overlayscrollbars-initialize]:not([data-overlayscrollbars-viewport])::-webkit-scrollbar,
152
- [data-overlayscrollbars-initialize]:not([data-overlayscrollbars-viewport])::-webkit-scrollbar-corner,
153
- [data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,
154
- [data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner,
155
- html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar,
156
- html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar-corner {
157
- -webkit-appearance: none !important;
158
- appearance: none !important;
159
- display: none !important;
160
- width: 0 !important;
161
- height: 0 !important;
162
- }
163
-
164
- [data-overlayscrollbars-initialize]:not([data-overlayscrollbars]):not(html):not(body) {
165
- overflow: auto;
166
- }
167
-
168
145
  /**
169
146
  * body element
170
147
  */
@@ -667,4 +644,27 @@ body > .os-scrollbar {
667
644
  --os-handle-bg: rgba(255, 255, 255, 0.44);
668
645
  --os-handle-bg-hover: rgba(255, 255, 255, 0.55);
669
646
  --os-handle-bg-active: rgba(255, 255, 255, 0.66);
647
+ }
648
+
649
+ [data-overlayscrollbars-initialize]:not([data-overlayscrollbars-viewport]),
650
+ [data-overlayscrollbars-viewport~=scrollbarHidden],
651
+ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body {
652
+ scrollbar-width: none !important;
653
+ }
654
+
655
+ [data-overlayscrollbars-initialize]:not([data-overlayscrollbars-viewport])::-webkit-scrollbar,
656
+ [data-overlayscrollbars-initialize]:not([data-overlayscrollbars-viewport])::-webkit-scrollbar-corner,
657
+ [data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,
658
+ [data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner,
659
+ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar,
660
+ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar-corner {
661
+ -webkit-appearance: none !important;
662
+ appearance: none !important;
663
+ display: none !important;
664
+ width: 0 !important;
665
+ height: 0 !important;
666
+ }
667
+
668
+ [data-overlayscrollbars-initialize]:not([data-overlayscrollbars]):not(html):not(body) {
669
+ overflow: auto;
670
670
  }/*$vite$:1*/