antdv-next 1.6.0 → 1.7.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 (240) hide show
  1. package/dist/_util/ContextIsolator.js +12 -3
  2. package/dist/_util/hooks/useAllowClear.d.ts +22 -6
  3. package/dist/_util/hooks/useAllowClear.js +24 -6
  4. package/dist/_util/hooks/useClosable.js +1 -1
  5. package/dist/_util/statusUtils.d.ts +1 -1
  6. package/dist/_util/tools.d.ts +3 -1
  7. package/dist/_util/tools.js +6 -1
  8. package/dist/_util/vueNode.d.ts +6 -2
  9. package/dist/alert/Alert.js +4 -1
  10. package/dist/alert/style/index.d.ts +3 -3
  11. package/dist/alert/style/index.js +3 -3
  12. package/dist/antd-with-locales.esm.js +16773 -15780
  13. package/dist/antd-with-locales.js +78 -78
  14. package/dist/antd.css +1 -1
  15. package/dist/antd.esm.js +14353 -14003
  16. package/dist/antd.js +80 -80
  17. package/dist/auto-complete/index.js +1 -0
  18. package/dist/avatar/Avatar.js +2 -4
  19. package/dist/avatar/AvatarContext.d.ts +2 -2
  20. package/dist/border-beam/BorderBeam.d.ts +8 -1
  21. package/dist/border-beam/BorderBeam.js +28 -14
  22. package/dist/border-beam/index.d.ts +2 -2
  23. package/dist/breadcrumb/BreadcrumbItem.js +1 -1
  24. package/dist/card/style/index.js +2 -2
  25. package/dist/cascader/Panel.js +3 -3
  26. package/dist/cascader/index.js +12 -5
  27. package/dist/checkbox/Checkbox.js +6 -4
  28. package/dist/checkbox/Group.d.ts +19 -1
  29. package/dist/checkbox/Group.js +34 -5
  30. package/dist/checkbox/GroupContext.d.ts +3 -0
  31. package/dist/checkbox/index.d.ts +2 -2
  32. package/dist/color-picker/ColorPicker.js +1 -1
  33. package/dist/color-picker/style/input.js +1 -1
  34. package/dist/components.d.ts +1 -1
  35. package/dist/date-picker/generatePicker/generateRangePicker.js +20 -2
  36. package/dist/date-picker/generatePicker/generateSinglePicker.js +20 -2
  37. package/dist/date-picker/generatePicker/interface.d.ts +4 -0
  38. package/dist/date-picker/style/panel.js +1 -1
  39. package/dist/date-picker/style/util.js +1 -1
  40. package/dist/date-picker/util.d.ts +2 -0
  41. package/dist/descriptions/hooks/useItems.d.ts +6 -6
  42. package/dist/descriptions/style/index.js +11 -13
  43. package/dist/divider/style/index.js +1 -1
  44. package/dist/drawer/DrawerPanel.js +1 -1
  45. package/dist/dropdown/dropdown.d.ts +2 -0
  46. package/dist/dropdown/dropdown.js +9 -2
  47. package/dist/dropdown/style/index.js +1 -1
  48. package/dist/form/ErrorList.js +1 -1
  49. package/dist/form/Form.js +1 -1
  50. package/dist/form/FormItem/ItemHolder.js +1 -1
  51. package/dist/form/FormItem/index.js +2 -2
  52. package/dist/form/FormItemInput.js +1 -1
  53. package/dist/form/FormItemLabel.js +1 -1
  54. package/dist/form/hooks/useVariant.js +1 -1
  55. package/dist/image/hooks/useMergedPreviewConfig.d.ts +1 -0
  56. package/dist/image/hooks/useMergedPreviewConfig.js +2 -1
  57. package/dist/index.d.ts +1 -1
  58. package/dist/input/Group.js +1 -1
  59. package/dist/input/Input.d.ts +2 -1
  60. package/dist/input/Input.js +8 -5
  61. package/dist/input/OTP/OTPInput.d.ts +2 -1
  62. package/dist/input/OTP/OTPInput.js +12 -3
  63. package/dist/input/OTP/index.d.ts +3 -1
  64. package/dist/input/OTP/index.js +15 -6
  65. package/dist/input/Password.js +7 -5
  66. package/dist/input/Search.js +4 -2
  67. package/dist/input/TextArea.d.ts +3 -1
  68. package/dist/input/TextArea.js +13 -8
  69. package/dist/input/style/index.js +1 -1
  70. package/dist/input-number/index.d.ts +3 -6
  71. package/dist/input-number/index.js +8 -3
  72. package/dist/input-number/style/index.js +1 -5
  73. package/dist/listy/index.d.ts +1 -1
  74. package/dist/listy/index.js +9 -7
  75. package/dist/listy/interface.d.ts +6 -1
  76. package/dist/listy/style/index.js +4 -2
  77. package/dist/locale/ar_EG.js +9 -0
  78. package/dist/locale/az_AZ.js +9 -0
  79. package/dist/locale/bg_BG.js +9 -0
  80. package/dist/locale/bn_BD.js +9 -0
  81. package/dist/locale/by_BY.js +9 -0
  82. package/dist/locale/ca_ES.js +9 -0
  83. package/dist/locale/cs_CZ.js +9 -0
  84. package/dist/locale/da_DK.js +9 -0
  85. package/dist/locale/de_DE.js +9 -0
  86. package/dist/locale/el_GR.js +9 -0
  87. package/dist/locale/en_GB.js +11 -1
  88. package/dist/locale/en_US.js +11 -1
  89. package/dist/locale/es_ES.js +9 -0
  90. package/dist/locale/et_EE.js +9 -0
  91. package/dist/locale/eu_ES.js +9 -0
  92. package/dist/locale/fa_IR.js +9 -0
  93. package/dist/locale/fi_FI.js +10 -1
  94. package/dist/locale/fr_BE.js +9 -0
  95. package/dist/locale/fr_CA.js +9 -0
  96. package/dist/locale/fr_FR.js +9 -0
  97. package/dist/locale/ga_IE.js +9 -0
  98. package/dist/locale/gl_ES.js +9 -0
  99. package/dist/locale/he_IL.js +9 -0
  100. package/dist/locale/hi_IN.js +9 -0
  101. package/dist/locale/hr_HR.js +9 -0
  102. package/dist/locale/hu_HU.js +9 -0
  103. package/dist/locale/hy_AM.js +9 -0
  104. package/dist/locale/id_ID.js +9 -0
  105. package/dist/locale/index.d.ts +3 -0
  106. package/dist/locale/is_IS.js +9 -0
  107. package/dist/locale/it_IT.js +9 -0
  108. package/dist/locale/ja_JP.js +9 -0
  109. package/dist/locale/ka_GE.js +9 -0
  110. package/dist/locale/kk_KZ.js +9 -0
  111. package/dist/locale/km_KH.js +9 -0
  112. package/dist/locale/kmr_IQ.js +9 -0
  113. package/dist/locale/kn_IN.js +9 -0
  114. package/dist/locale/ko_KR.js +9 -0
  115. package/dist/locale/ku_IQ.js +9 -0
  116. package/dist/locale/lt_LT.js +9 -0
  117. package/dist/locale/lv_LV.js +9 -0
  118. package/dist/locale/mk_MK.js +9 -0
  119. package/dist/locale/ml_IN.js +9 -0
  120. package/dist/locale/mn_MN.js +9 -0
  121. package/dist/locale/mr_IN.js +9 -0
  122. package/dist/locale/ms_MY.js +9 -0
  123. package/dist/locale/my_MM.js +9 -0
  124. package/dist/locale/nb_NO.js +9 -0
  125. package/dist/locale/ne_NP.js +9 -0
  126. package/dist/locale/nl_BE.js +9 -0
  127. package/dist/locale/nl_NL.js +9 -0
  128. package/dist/locale/pl_PL.js +9 -0
  129. package/dist/locale/pt_BR.js +9 -0
  130. package/dist/locale/pt_PT.js +9 -0
  131. package/dist/locale/ro_RO.js +19 -10
  132. package/dist/locale/ru_RU.js +9 -0
  133. package/dist/locale/si_LK.js +9 -0
  134. package/dist/locale/sk_SK.js +9 -0
  135. package/dist/locale/sl_SI.js +9 -0
  136. package/dist/locale/sq_AL.js +9 -0
  137. package/dist/locale/sr_RS.js +9 -0
  138. package/dist/locale/sv_SE.js +9 -0
  139. package/dist/locale/ta_IN.js +10 -1
  140. package/dist/locale/th_TH.js +9 -0
  141. package/dist/locale/tk_TK.js +9 -0
  142. package/dist/locale/tr_TR.js +9 -0
  143. package/dist/locale/uk_UA.js +9 -0
  144. package/dist/locale/ur_PK.js +9 -0
  145. package/dist/locale/useLocale.d.ts +6 -1
  146. package/dist/locale/useLocale.js +12 -1
  147. package/dist/locale/uz_UZ.js +9 -0
  148. package/dist/locale/vi_VN.js +9 -0
  149. package/dist/locale/zh_CN.js +13 -3
  150. package/dist/locale/zh_HK.js +11 -1
  151. package/dist/locale/zh_TW.js +11 -1
  152. package/dist/masonry/Masonry.js +1 -1
  153. package/dist/mentions/index.d.ts +2 -3
  154. package/dist/mentions/index.js +9 -4
  155. package/dist/mentions/style/index.js +1 -1
  156. package/dist/menu/MenuContext.d.ts +2 -0
  157. package/dist/menu/MenuItem.js +23 -6
  158. package/dist/menu/index.js +5 -0
  159. package/dist/menu/menu.d.ts +3 -0
  160. package/dist/menu/menu.js +7 -0
  161. package/dist/modal/ConfirmDialog.js +14 -7
  162. package/dist/notification/PurePanel.js +7 -12
  163. package/dist/notification/interface.d.ts +8 -0
  164. package/dist/notification/style/index.js +1 -1
  165. package/dist/notification/style/placement.js +10 -7
  166. package/dist/notification/useNotification.js +5 -15
  167. package/dist/package.js +1 -1
  168. package/dist/pagination/Pagination.js +2 -2
  169. package/dist/pagination/useShowSizeChanger.d.ts +3 -0
  170. package/dist/pagination/useShowSizeChanger.js +1 -1
  171. package/dist/popconfirm/index.js +5 -5
  172. package/dist/popconfirm/style/index.js +1 -1
  173. package/dist/popover/index.js +1 -1
  174. package/dist/popover/style/index.js +2 -2
  175. package/dist/progress/Circle.js +0 -8
  176. package/dist/progress/Line.js +1 -9
  177. package/dist/progress/Steps.js +0 -8
  178. package/dist/progress/progress.js +2 -14
  179. package/dist/qrcode/index.js +4 -4
  180. package/dist/radio/group.js +40 -7
  181. package/dist/radio/index.d.ts +2 -2
  182. package/dist/radio/interface.d.ts +19 -1
  183. package/dist/radio/radio.js +5 -3
  184. package/dist/result/index.js +3 -3
  185. package/dist/result/noFound.js +120 -140
  186. package/dist/result/serverError.js +132 -147
  187. package/dist/result/unauthorized.js +115 -129
  188. package/dist/segmented/index.js +1 -1
  189. package/dist/select/index.js +10 -3
  190. package/dist/select/style/dropdown.js +1 -1
  191. package/dist/select/style/index.js +2 -2
  192. package/dist/select/style/select-input-multiple.js +1 -1
  193. package/dist/select/usePopupRender.js +4 -1
  194. package/dist/slider/index.d.ts +0 -3
  195. package/dist/slider/index.js +2 -2
  196. package/dist/splitter/SplitBar.js +9 -3
  197. package/dist/splitter/interface.d.ts +5 -1
  198. package/dist/steps/style/index.js +1 -1
  199. package/dist/steps/style/inline.js +1 -1
  200. package/dist/style/motion/collapse.js +4 -10
  201. package/dist/table/ExpandIcon.d.ts +9 -4
  202. package/dist/table/ExpandIcon.js +42 -20
  203. package/dist/table/InternalTable.js +21 -15
  204. package/dist/table/hooks/useLazyKVMap.js +1 -1
  205. package/dist/table/hooks/useSelection.js +54 -9
  206. package/dist/table/interface.d.ts +8 -0
  207. package/dist/table/style/index.js +1 -1
  208. package/dist/table/style/sorter.js +2 -2
  209. package/dist/tabs/index.js +9 -2
  210. package/dist/tabs/style/index.js +1 -1
  211. package/dist/time-picker/index.js +34 -0
  212. package/dist/timeline/Timeline.js +1 -1
  213. package/dist/tooltip/style/index.js +1 -1
  214. package/dist/tour/panelRender.js +3 -2
  215. package/dist/transfer/Section.js +2 -1
  216. package/dist/transfer/Transfer.js +1 -1
  217. package/dist/tree/style/index.js +1 -1
  218. package/dist/tree-select/index.js +14 -8
  219. package/dist/typography/Base/index.js +23 -2
  220. package/dist/typography/Link.js +5 -0
  221. package/dist/typography/Paragraph.js +5 -0
  222. package/dist/typography/Text.js +5 -0
  223. package/dist/typography/Title.js +5 -0
  224. package/dist/typography/hooks/useMergedConfig.js +1 -1
  225. package/dist/typography/interface.d.ts +8 -1
  226. package/dist/typography/style/index.js +2 -1
  227. package/dist/typography/style/mixins.d.ts +2 -1
  228. package/dist/typography/style/mixins.js +26 -3
  229. package/dist/upload/Upload.d.ts +1 -0
  230. package/dist/upload/Upload.js +10 -3
  231. package/dist/upload/UploadList/ListItem.js +8 -3
  232. package/dist/upload/interface.d.ts +1 -0
  233. package/dist/version/token-meta.json +1 -1
  234. package/dist/version/token.json +1 -1
  235. package/dist/watermark/index.js +1 -1
  236. package/package.json +9 -9
  237. package/web-tags.json +74 -14
  238. package/web-types.json +186 -22
  239. package/dist/_util/getAllowClear.d.ts +0 -6
  240. package/dist/_util/getAllowClear.js +0 -11
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "antdv-next",
4
- "version": "1.6.0",
4
+ "version": "1.7.0",
5
5
  "js-types-syntax": "typescript",
6
6
  "description-markup": "markdown",
7
7
  "framework": "vue",
@@ -1701,7 +1701,7 @@
1701
1701
  },
1702
1702
  {
1703
1703
  "name": "count",
1704
- "description": "(ZH) 流光数量\n\n(EN) Number of beams",
1704
+ "description": "(ZH) 均匀分布的流光数量,应为正整数\n\n(EN) Number of evenly distributed beams. It should be a positive integer",
1705
1705
  "default": "1",
1706
1706
  "value": {
1707
1707
  "kind": "expression",
@@ -1717,6 +1717,14 @@
1717
1717
  "type": "number"
1718
1718
  }
1719
1719
  },
1720
+ {
1721
+ "name": "items",
1722
+ "description": "(ZH) 每条流光的配置。数组长度决定流光数量,并且优先于 count。数组项未设置的属性会继承顶层的 color、lineWidth、outset 和 size\n\n(EN) Per-beam configurations. The array length determines the number of beams and takes precedence over count. Omitted item properties inherit the top-level color, lineWidth, outset, and size",
1723
+ "value": {
1724
+ "kind": "expression",
1725
+ "type": "BorderBeamItem[]"
1726
+ }
1727
+ },
1720
1728
  {
1721
1729
  "name": "line-width",
1722
1730
  "description": "(ZH) 流光线宽,数字类型按像素处理\n\n(EN) Width of the beam line. Numbers are treated as pixels",
@@ -2145,6 +2153,15 @@
2145
2153
  "type": "T[]"
2146
2154
  }
2147
2155
  },
2156
+ {
2157
+ "name": "row-hoverable",
2158
+ "description": "(ZH) 列表行是否开启 hover 交互\n\n(EN) Whether rows are hoverable",
2159
+ "default": "true",
2160
+ "value": {
2161
+ "kind": "expression",
2162
+ "type": "boolean"
2163
+ }
2164
+ },
2148
2165
  {
2149
2166
  "name": "row-key",
2150
2167
  "description": "(ZH) 每一项的唯一键,字段名或取值函数\n\n(EN) Unique key of an item, a field name or a getter",
@@ -3151,7 +3168,7 @@
3151
3168
  },
3152
3169
  {
3153
3170
  "name": "column",
3154
- "description": "(ZH) 一行的 DescriptionItems 数量,可以写成像素值或支持响应式的对象写法 { xs: 8, sm: 16, md: 24}\n\n(EN) The number of DescriptionItems in a row, could be a number or a responsive object like { xs: 8, sm: 16, md: 24}",
3171
+ "description": "(ZH) 一行的 DescriptionItems 数量,可以写成数字或支持响应式的对象写法 { xs: 8, sm: 16, md: 24}\n\n(EN) The number of DescriptionItems in a row, could be a number or a responsive object like { xs: 8, sm: 16, md: 24}",
3155
3172
  "default": "{xxxl: 4,xxl: 3,xl: 3,lg: 3,md: 3,sm: 2,xs: 1}",
3156
3173
  "value": {
3157
3174
  "kind": "expression",
@@ -5507,6 +5524,14 @@
5507
5524
  "type": "number"
5508
5525
  }
5509
5526
  },
5527
+ {
5528
+ "name": "tooltip",
5529
+ "description": "(ZH) 配置 inline 折叠时的 MenuItem 悬浮提示,设为 false 可关闭\n\n(EN) Config tooltip props for menu items in inline collapsed mode. Set to false to disable.",
5530
+ "value": {
5531
+ "kind": "expression",
5532
+ "type": "false | TooltipProps"
5533
+ }
5534
+ },
5510
5535
  {
5511
5536
  "name": "theme",
5512
5537
  "description": "(ZH) 主题颜色\n\n(EN) Color theme of the menu",
@@ -7363,6 +7388,22 @@
7363
7388
  "kind": "expression",
7364
7389
  "type": "(params: { item: CheckboxOptionType, index: number }) => any"
7365
7390
  }
7391
+ },
7392
+ {
7393
+ "name": "classes",
7394
+ "description": "(ZH) 用于自定义组件内部各语义化结构的 class,支持对象或函数\n\n(EN) Customize class for each semantic structure inside the component. Supports object or function.",
7395
+ "value": {
7396
+ "kind": "expression",
7397
+ "type": "Record<SemanticDOM, string> | (info: { props })=> Record<SemanticDOM, string>"
7398
+ }
7399
+ },
7400
+ {
7401
+ "name": "styles",
7402
+ "description": "(ZH) 用于自定义组件内部各语义化结构的行内 style,支持对象或函数\n\n(EN) Customize inline style for each semantic structure inside the component. Supports object or function.",
7403
+ "value": {
7404
+ "kind": "expression",
7405
+ "type": "Record<SemanticDOM, CSSProperties> | (info: { props })=> Record<SemanticDOM, CSSProperties>"
7406
+ }
7366
7407
  }
7367
7408
  ],
7368
7409
  "js": {
@@ -8308,11 +8349,11 @@
8308
8349
  },
8309
8350
  {
8310
8351
  "name": "allow-clear",
8311
- "description": "(ZH) 可以点击清除图标删除内容\n\n(EN) If allow to remove input content with clear icon",
8352
+ "description": "(ZH) 是否显示清除按钮\n\n(EN) Whether to show a clear button",
8312
8353
  "default": "false",
8313
8354
  "value": {
8314
8355
  "kind": "expression",
8315
- "type": "boolean | { clearIcon: VueNode }"
8356
+ "type": "boolean | AllowClearConfig"
8316
8357
  }
8317
8358
  },
8318
8359
  {
@@ -8551,6 +8592,14 @@
8551
8592
  "type": "boolean"
8552
8593
  }
8553
8594
  },
8595
+ {
8596
+ "name": "search-icon",
8597
+ "description": "(ZH) 自定义搜索图标\n\n(EN) Customize the search icon",
8598
+ "value": {
8599
+ "kind": "expression",
8600
+ "type": "VueNode"
8601
+ }
8602
+ },
8554
8603
  {
8555
8604
  "name": "styles",
8556
8605
  "description": "(ZH) 用于自定义组件内部各语义化结构的行内 style,支持对象或函数\n\n(EN) Customize inline style for each semantic structure inside the component. Supports object or function.",
@@ -8588,11 +8637,11 @@
8588
8637
  },
8589
8638
  {
8590
8639
  "name": "allow-clear",
8591
- "description": "(ZH) 可以点击清除图标删除内容\n\n(EN) If allow to remove input content with clear icon",
8640
+ "description": "(ZH) 是否显示清除按钮\n\n(EN) Whether to show a clear button",
8592
8641
  "default": "false",
8593
8642
  "value": {
8594
8643
  "kind": "expression",
8595
- "type": "boolean | { clearIcon: VueNode }"
8644
+ "type": "boolean | AllowClearConfig"
8596
8645
  }
8597
8646
  },
8598
8647
  {
@@ -8767,6 +8816,10 @@
8767
8816
  ]
8768
8817
  },
8769
8818
  "slots": [
8819
+ {
8820
+ "name": "searchIcon",
8821
+ "description": "(ZH) 自定义搜索图标,enterButton 为 boolean 时生效,优先级高于 searchIcon 属性\n\n(EN) Customize the search icon, effective when enterButton is a boolean, takes priority over the searchIcon prop"
8822
+ },
8770
8823
  {
8771
8824
  "name": "prefix",
8772
8825
  "description": "(ZH) 自定义前缀图标\n\n(EN) Customize prefix icon"
@@ -8807,6 +8860,15 @@
8807
8860
  "type": "(visible) => VueNode"
8808
8861
  }
8809
8862
  },
8863
+ {
8864
+ "name": "icon-visible",
8865
+ "description": "(ZH) 密码是否可见,支持 v-model:icon-visible\n\n(EN) Whether the password is visible, support v-model:icon-visible",
8866
+ "default": "false",
8867
+ "value": {
8868
+ "kind": "expression",
8869
+ "type": "boolean"
8870
+ }
8871
+ },
8810
8872
  {
8811
8873
  "name": "styles",
8812
8874
  "description": "(ZH) 语义化结构 style\n\n(EN) Semantic DOM style",
@@ -8853,11 +8915,11 @@
8853
8915
  },
8854
8916
  {
8855
8917
  "name": "allow-clear",
8856
- "description": "(ZH) 可以点击清除图标删除内容\n\n(EN) If allow to remove input content with clear icon",
8918
+ "description": "(ZH) 是否显示清除按钮\n\n(EN) Whether to show a clear button",
8857
8919
  "default": "false",
8858
8920
  "value": {
8859
8921
  "kind": "expression",
8860
- "type": "boolean | { clearIcon: VueNode }"
8922
+ "type": "boolean | AllowClearConfig"
8861
8923
  }
8862
8924
  },
8863
8925
  {
@@ -9150,6 +9212,16 @@
9150
9212
  }
9151
9213
  ]
9152
9214
  },
9215
+ {
9216
+ "name": "focus",
9217
+ "description": "(ZH) 输入框聚焦时触发的回调\n\n(EN) Trigger when an input gets focus",
9218
+ "arguments": [
9219
+ {
9220
+ "name": "payload",
9221
+ "type": "(event: FocusEvent) => void"
9222
+ }
9223
+ ]
9224
+ },
9153
9225
  {
9154
9226
  "name": "input",
9155
9227
  "description": "(ZH) 输入值变化时触发的回调\n\n(EN) Trigger when the input value changes",
@@ -9237,11 +9309,11 @@
9237
9309
  },
9238
9310
  {
9239
9311
  "name": "allow-clear",
9240
- "description": "(ZH) 可以点击清除图标删除内容\n\n(EN) If allow to remove input content with clear icon",
9312
+ "description": "(ZH) 是否显示清除按钮,清空后的值为 null\n\n(EN) Whether to show a clear button (cleared value: null)",
9241
9313
  "default": "false",
9242
9314
  "value": {
9243
9315
  "kind": "expression",
9244
- "type": "boolean | { clearIcon?: VueNode, disabled?: boolean, label?: string }"
9316
+ "type": "boolean | AllowClearConfig"
9245
9317
  }
9246
9318
  },
9247
9319
  {
@@ -9616,11 +9688,11 @@
9616
9688
  },
9617
9689
  {
9618
9690
  "name": "allow-clear",
9619
- "description": "(ZH) 可以点击清除图标删除内容\n\n(EN) If allow to remove input content with clear icon",
9691
+ "description": "(ZH) 是否显示清除按钮\n\n(EN) Whether to show a clear button",
9620
9692
  "default": "false",
9621
9693
  "value": {
9622
9694
  "kind": "expression",
9623
- "type": "boolean | { clearIcon: VueNode }"
9695
+ "type": "boolean | AllowClearConfig"
9624
9696
  }
9625
9697
  },
9626
9698
  {
@@ -9891,6 +9963,15 @@
9891
9963
  "type": "boolean"
9892
9964
  }
9893
9965
  },
9966
+ {
9967
+ "name": "shimmer",
9968
+ "description": "(ZH) 展示闪烁文字效果,为对象时可进行配置\n\n(EN) Show a shimmer effect, customizable via an object",
9969
+ "default": "false",
9970
+ "value": {
9971
+ "kind": "expression",
9972
+ "type": "boolean | shimmer"
9973
+ }
9974
+ },
9894
9975
  {
9895
9976
  "name": "strong",
9896
9977
  "description": "(ZH) 是否加粗\n\n(EN) Bold style",
@@ -10040,6 +10121,15 @@
10040
10121
  "type": "boolean"
10041
10122
  }
10042
10123
  },
10124
+ {
10125
+ "name": "shimmer",
10126
+ "description": "(ZH) 展示闪烁文字效果,为对象时可进行配置\n\n(EN) Show a shimmer effect, customizable via an object",
10127
+ "default": "false",
10128
+ "value": {
10129
+ "kind": "expression",
10130
+ "type": "boolean | shimmer"
10131
+ }
10132
+ },
10043
10133
  {
10044
10134
  "name": "italic",
10045
10135
  "description": "(ZH) 是否斜体\n\n(EN) Italic style",
@@ -10171,6 +10261,15 @@
10171
10261
  "type": "boolean"
10172
10262
  }
10173
10263
  },
10264
+ {
10265
+ "name": "shimmer",
10266
+ "description": "(ZH) 展示闪烁文字效果,为对象时可进行配置\n\n(EN) Show a shimmer effect, customizable via an object",
10267
+ "default": "false",
10268
+ "value": {
10269
+ "kind": "expression",
10270
+ "type": "boolean | shimmer"
10271
+ }
10272
+ },
10174
10273
  {
10175
10274
  "name": "strong",
10176
10275
  "description": "(ZH) 是否加粗\n\n(EN) Bold style",
@@ -10354,6 +10453,15 @@
10354
10453
  "type": "boolean"
10355
10454
  }
10356
10455
  },
10456
+ {
10457
+ "name": "shimmer",
10458
+ "description": "(ZH) 展示闪烁文字效果,为对象时可进行配置\n\n(EN) Show a shimmer effect, customizable via an object",
10459
+ "default": "false",
10460
+ "value": {
10461
+ "kind": "expression",
10462
+ "type": "boolean | shimmer"
10463
+ }
10464
+ },
10357
10465
  {
10358
10466
  "name": "strong",
10359
10467
  "description": "(ZH) 是否加粗\n\n(EN) Bold style",
@@ -10817,7 +10925,7 @@
10817
10925
  "default": "false",
10818
10926
  "value": {
10819
10927
  "kind": "expression",
10820
- "type": "boolean | { clearIcon?: VueNode }"
10928
+ "type": "boolean | { clearIcon?: VueNode; label?: string }"
10821
10929
  }
10822
10930
  },
10823
10931
  {
@@ -11474,7 +11582,7 @@
11474
11582
  },
11475
11583
  {
11476
11584
  "name": "collapsible",
11477
- "description": "(ZH) motion 是否开启折叠动画,icon 自定义折叠图标\n\n(EN) motion to enable collapse animation, icon to customize collapse icons",
11585
+ "description": "(ZH) motion 是否开启折叠动画,icon 自定义折叠图标。可在自定义图标上设置 aria-label 覆盖本地化的控件名称\n\n(EN) motion to enable collapse animation, icon to customize collapse icons. Set aria-label on a custom icon to override the localized control name",
11478
11586
  "value": {
11479
11587
  "kind": "expression",
11480
11588
  "type": "{ motion?: boolean; icon?: { start?: VueNode; end?: VueNode } }"
@@ -14416,7 +14524,7 @@
14416
14524
  "default": "false",
14417
14525
  "value": {
14418
14526
  "kind": "expression",
14419
- "type": "boolean | { clearIcon?: VueNode }"
14527
+ "type": "boolean | { clearIcon?: VueNode; label?: string }"
14420
14528
  }
14421
14529
  },
14422
14530
  {
@@ -15149,6 +15257,16 @@
15149
15257
  }
15150
15258
  ]
15151
15259
  },
15260
+ {
15261
+ "name": "focus",
15262
+ "description": "(ZH) 焦点进入 Upload 组件时的回调\n\n(EN) Called when focus enters the Upload component",
15263
+ "arguments": [
15264
+ {
15265
+ "name": "payload",
15266
+ "type": "(event: FocusEvent) => void"
15267
+ }
15268
+ ]
15269
+ },
15152
15270
  {
15153
15271
  "name": "download",
15154
15272
  "description": "(ZH) 点击下载文件时的回调,如果没有指定,则默认跳转到文件 url 对应的标签页\n\n(EN) Click the method to download the file, pass the method to perform the method logic, and do not pass the default jump to the new TAB",
@@ -15444,6 +15562,16 @@
15444
15562
  }
15445
15563
  ]
15446
15564
  },
15565
+ {
15566
+ "name": "focus",
15567
+ "description": "(ZH) 焦点进入 Upload 组件时的回调\n\n(EN) Called when focus enters the Upload component",
15568
+ "arguments": [
15569
+ {
15570
+ "name": "payload",
15571
+ "type": "(event: FocusEvent) => void"
15572
+ }
15573
+ ]
15574
+ },
15447
15575
  {
15448
15576
  "name": "download",
15449
15577
  "description": "(ZH) 点击下载文件时的回调,如果没有指定,则默认跳转到文件 url 对应的标签页\n\n(EN) Click the method to download the file, pass the method to perform the method logic, and do not pass the default jump to the new TAB",
@@ -16069,6 +16197,7 @@
16069
16197
  {
16070
16198
  "name": "loading",
16071
16199
  "description": "(ZH) 加载中状态\n\n(EN) Indicate loading state",
16200
+ "default": "false",
16072
16201
  "value": {
16073
16202
  "kind": "expression",
16074
16203
  "type": "boolean"
@@ -16099,6 +16228,14 @@
16099
16228
  "type": "false | (input: string, option: OptionProps) => boolean"
16100
16229
  }
16101
16230
  },
16231
+ {
16232
+ "name": "validate-search",
16233
+ "description": "(ZH) 自定义搜索文本的校验逻辑,返回 false 时不显示建议列表\n\n(EN) Custom validation for search text. Return false to hide suggestions.",
16234
+ "value": {
16235
+ "kind": "expression",
16236
+ "type": "(text: string, split?: string) => boolean"
16237
+ }
16238
+ },
16102
16239
  {
16103
16240
  "name": "popup-class-name",
16104
16241
  "description": "(ZH) 下拉菜单的 className 属性\n\n(EN) The className of dropdown menu",
@@ -16158,11 +16295,11 @@
16158
16295
  },
16159
16296
  {
16160
16297
  "name": "allow-clear",
16161
- "description": "(ZH) 可以点击清除图标删除内容\n\n(EN) If allow to remove mentions content with clear icon",
16298
+ "description": "(ZH) 是否显示清除按钮\n\n(EN) Whether to show a clear button",
16162
16299
  "default": "false",
16163
16300
  "value": {
16164
16301
  "kind": "expression",
16165
- "type": "boolean | { clearIcon?: VueNode }"
16302
+ "type": "boolean | AllowClearConfig"
16166
16303
  }
16167
16304
  },
16168
16305
  {
@@ -16338,7 +16475,7 @@
16338
16475
  },
16339
16476
  {
16340
16477
  "name": "dot-position",
16341
- "description": "(ZH) 面板指示点位置,可选 top bottom left right start end,请使用 dotPlacement 替换\n\n(EN) The position of the dots, which can be one of top bottom left right start end, Please use dotPlacement instead",
16478
+ "description": "(ZH) 面板指示点位置,可选 top bottom left right start end,请使用 dotPlacement 替换\n\n(EN) The position of the dots, which can be one of top bottom left right start end, please use dotPlacement instead",
16342
16479
  "default": "bottom",
16343
16480
  "value": {
16344
16481
  "kind": "expression",
@@ -16488,7 +16625,7 @@
16488
16625
  "default": "true",
16489
16626
  "value": {
16490
16627
  "kind": "expression",
16491
- "type": "boolean | { clearIcon?: VueNode }"
16628
+ "type": "boolean | { clearIcon?: VueNode; label?: string }"
16492
16629
  }
16493
16630
  },
16494
16631
  {
@@ -16636,7 +16773,7 @@
16636
16773
  },
16637
16774
  {
16638
16775
  "name": "show-search",
16639
- "description": "(ZH) 在选择框中显示搜索框\n\n(EN) Whether show search input in single mode",
16776
+ "description": "(ZH) 在选择框中显示搜索框\n\n(EN) Whether show search input",
16640
16777
  "default": "false",
16641
16778
  "value": {
16642
16779
  "kind": "expression",
@@ -16797,7 +16934,7 @@
16797
16934
  },
16798
16935
  {
16799
16936
  "name": "components",
16800
- "description": "(ZH) 覆盖默认的 table 元素\n\n(EN) Override default table elements",
16937
+ "description": "(ZH) 覆盖默认的 table 元素,包括通过 ExpandIcon 自定义行展开和全部展开图标\n\n(EN) Override default table elements, including row and expand-all icons through ExpandIcon",
16801
16938
  "value": {
16802
16939
  "kind": "expression",
16803
16940
  "type": "components"
@@ -17937,6 +18074,15 @@
17937
18074
  "type": "function(trigger)"
17938
18075
  }
17939
18076
  },
18077
+ {
18078
+ "name": "auto-complete",
18079
+ "description": "(ZH) 输入框的原生 autocomplete 属性,模板中也可写作 autocomplete\n\n(EN) Native autocomplete attribute of the input, can also be written as autocomplete in templates",
18080
+ "default": "off",
18081
+ "value": {
18082
+ "kind": "expression",
18083
+ "type": "string"
18084
+ }
18085
+ },
17940
18086
  {
17941
18087
  "name": "input-read-only",
17942
18088
  "description": "(ZH) 设置输入框为只读(避免在移动设备上打开虚拟键盘)\n\n(EN) Set the readonly attribute of the input tag (avoids virtual keyboard on touch devices)",
@@ -18497,6 +18643,15 @@
18497
18643
  "type": "function(trigger)"
18498
18644
  }
18499
18645
  },
18646
+ {
18647
+ "name": "auto-complete",
18648
+ "description": "(ZH) 输入框的原生 autocomplete 属性,模板中也可写作 autocomplete\n\n(EN) Native autocomplete attribute of the input, can also be written as autocomplete in templates",
18649
+ "default": "off",
18650
+ "value": {
18651
+ "kind": "expression",
18652
+ "type": "string"
18653
+ }
18654
+ },
18500
18655
  {
18501
18656
  "name": "input-read-only",
18502
18657
  "description": "(ZH) 设置输入框为只读(避免在移动设备上打开虚拟键盘)\n\n(EN) Set the readonly attribute of the input tag (avoids virtual keyboard on touch devices)",
@@ -19497,6 +19652,15 @@
19497
19652
  "type": "function(trigger)"
19498
19653
  }
19499
19654
  },
19655
+ {
19656
+ "name": "auto-complete",
19657
+ "description": "(ZH) 输入框的原生 autocomplete 属性,模板中也可写作 autocomplete\n\n(EN) Native autocomplete attribute of the input, can also be written as autocomplete in templates",
19658
+ "default": "off",
19659
+ "value": {
19660
+ "kind": "expression",
19661
+ "type": "string"
19662
+ }
19663
+ },
19500
19664
  {
19501
19665
  "name": "input-read-only",
19502
19666
  "description": "(ZH) 设置输入框为只读(避免在移动设备上打开虚拟键盘)\n\n(EN) Set the readonly attribute of the input tag (avoids virtual keyboard on touch devices)",
@@ -1,6 +0,0 @@
1
- import { BaseInputProps } from "@v-c/input/dist/interface";
2
- //#region src/_util/getAllowClear.d.ts
3
- type AllowClear = BaseInputProps['allowClear'];
4
- declare function getAllowClear(allowClear: AllowClear): AllowClear;
5
- //#endregion
6
- export { AllowClear, getAllowClear as default };
@@ -1,11 +0,0 @@
1
- import { createVNode } from "vue";
2
- import { CloseCircleFilled } from "@antdv-next/icons";
3
- //#region src/_util/getAllowClear.tsx
4
- function getAllowClear(allowClear) {
5
- let mergedAllowClear;
6
- if (typeof allowClear === "object" && allowClear?.clearIcon) mergedAllowClear = allowClear;
7
- else if (allowClear) mergedAllowClear = { clearIcon: createVNode(CloseCircleFilled, null, null) };
8
- return mergedAllowClear;
9
- }
10
- //#endregion
11
- export { getAllowClear as default };