antdv-next 1.6.0 → 1.7.1

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 (287) 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/tools.d.ts +3 -1
  6. package/dist/_util/tools.js +6 -1
  7. package/dist/_util/vueNode.d.ts +17 -3
  8. package/dist/_util/vueNode.js +17 -1
  9. package/dist/affix/index.js +12 -9
  10. package/dist/alert/Alert.js +4 -1
  11. package/dist/alert/style/index.d.ts +3 -3
  12. package/dist/alert/style/index.js +3 -3
  13. package/dist/anchor/Anchor.js +11 -6
  14. package/dist/anchor/style/index.js +2 -3
  15. package/dist/antd-with-locales.esm.js +16276 -17343
  16. package/dist/antd-with-locales.js +81 -88
  17. package/dist/antd.css +1 -1
  18. package/dist/antd.esm.js +14015 -15728
  19. package/dist/antd.js +82 -89
  20. package/dist/auto-complete/index.js +1 -0
  21. package/dist/avatar/Avatar.js +3 -5
  22. package/dist/avatar/AvatarGroup.js +3 -5
  23. package/dist/border-beam/BorderBeam.d.ts +8 -1
  24. package/dist/border-beam/BorderBeam.js +28 -14
  25. package/dist/border-beam/index.d.ts +2 -2
  26. package/dist/breadcrumb/BreadcrumbItem.js +1 -1
  27. package/dist/breadcrumb/index.d.ts +8 -1
  28. package/dist/calendar/generateCalendar.d.ts +10 -10
  29. package/dist/calendar/index.d.ts +1 -1
  30. package/dist/card/index.d.ts +8 -1
  31. package/dist/card/style/index.js +5 -9
  32. package/dist/cascader/Panel.js +3 -3
  33. package/dist/cascader/hooks/useIcons.js +3 -2
  34. package/dist/cascader/index.d.ts +2 -0
  35. package/dist/cascader/index.js +12 -5
  36. package/dist/checkbox/Checkbox.js +6 -4
  37. package/dist/checkbox/Group.d.ts +19 -1
  38. package/dist/checkbox/Group.js +38 -9
  39. package/dist/checkbox/GroupContext.d.ts +3 -0
  40. package/dist/checkbox/index.d.ts +2 -2
  41. package/dist/color-picker/ColorPicker.js +1 -1
  42. package/dist/color-picker/style/input.js +7 -12
  43. package/dist/components.d.ts +24 -24
  44. package/dist/components.js +1 -2
  45. package/dist/config-provider/context.d.ts +3 -2
  46. package/dist/date-picker/generatePicker/generateRangePicker.js +24 -6
  47. package/dist/date-picker/generatePicker/generateSinglePicker.js +24 -6
  48. package/dist/date-picker/generatePicker/interface.d.ts +21 -5
  49. package/dist/date-picker/generatePicker/useComponents.d.ts +1 -14
  50. package/dist/date-picker/style/panel.js +1 -1
  51. package/dist/date-picker/style/util.js +1 -1
  52. package/dist/date-picker/util.d.ts +8 -2
  53. package/dist/descriptions/hooks/useItems.d.ts +6 -6
  54. package/dist/descriptions/style/index.js +11 -13
  55. package/dist/divider/style/index.js +1 -1
  56. package/dist/drawer/DrawerPanel.js +1 -1
  57. package/dist/dropdown/dropdown.d.ts +2 -0
  58. package/dist/dropdown/dropdown.js +9 -2
  59. package/dist/dropdown/style/index.js +1 -7
  60. package/dist/empty/index.js +2 -1
  61. package/dist/float-button/BackTop.js +2 -1
  62. package/dist/form/ErrorList.js +1 -1
  63. package/dist/form/Form.js +9 -8
  64. package/dist/form/FormItem/ItemHolder.js +1 -1
  65. package/dist/form/FormItem/index.js +11 -9
  66. package/dist/form/FormItemInput.js +1 -1
  67. package/dist/form/FormItemLabel.js +2 -2
  68. package/dist/form/context.d.ts +2 -2
  69. package/dist/form/hooks/useVariant.d.ts +1 -1
  70. package/dist/form/hooks/useVariant.js +1 -1
  71. package/dist/grid/hooks/useBreakpoint.js +12 -6
  72. package/dist/image/PreviewGroup.d.ts +9 -2
  73. package/dist/image/hooks/useMergedPreviewConfig.d.ts +1 -0
  74. package/dist/image/hooks/useMergedPreviewConfig.js +2 -1
  75. package/dist/image/hooks/usePreviewConfig.d.ts +7 -7
  76. package/dist/image/index.d.ts +3 -3
  77. package/dist/index.d.ts +26 -24
  78. package/dist/index.js +1 -2
  79. package/dist/input/Group.js +1 -1
  80. package/dist/input/Input.d.ts +2 -1
  81. package/dist/input/Input.js +8 -5
  82. package/dist/input/OTP/OTPInput.d.ts +2 -1
  83. package/dist/input/OTP/OTPInput.js +12 -3
  84. package/dist/input/OTP/index.d.ts +3 -1
  85. package/dist/input/OTP/index.js +15 -6
  86. package/dist/input/Password.js +7 -5
  87. package/dist/input/Search.js +4 -2
  88. package/dist/input/TextArea.d.ts +3 -1
  89. package/dist/input/TextArea.js +13 -8
  90. package/dist/input/style/index.js +3 -16
  91. package/dist/input-number/index.d.ts +3 -6
  92. package/dist/input-number/index.js +8 -3
  93. package/dist/input-number/style/index.js +1 -5
  94. package/dist/listy/index.d.ts +1 -1
  95. package/dist/listy/index.js +9 -7
  96. package/dist/listy/interface.d.ts +29 -5
  97. package/dist/listy/style/index.js +5 -2
  98. package/dist/locale/ar_EG.js +9 -0
  99. package/dist/locale/az_AZ.js +9 -0
  100. package/dist/locale/bg_BG.js +9 -0
  101. package/dist/locale/bn_BD.js +9 -0
  102. package/dist/locale/by_BY.js +9 -0
  103. package/dist/locale/ca_ES.js +9 -0
  104. package/dist/locale/cs_CZ.js +9 -0
  105. package/dist/locale/da_DK.js +9 -0
  106. package/dist/locale/de_DE.js +9 -0
  107. package/dist/locale/el_GR.js +9 -0
  108. package/dist/locale/en_GB.js +11 -1
  109. package/dist/locale/en_US.js +11 -1
  110. package/dist/locale/es_ES.js +9 -0
  111. package/dist/locale/et_EE.js +9 -0
  112. package/dist/locale/eu_ES.js +9 -0
  113. package/dist/locale/fa_IR.js +9 -0
  114. package/dist/locale/fi_FI.js +10 -1
  115. package/dist/locale/fr_BE.js +9 -0
  116. package/dist/locale/fr_CA.js +9 -0
  117. package/dist/locale/fr_FR.js +9 -0
  118. package/dist/locale/ga_IE.js +9 -0
  119. package/dist/locale/gl_ES.js +9 -0
  120. package/dist/locale/he_IL.js +9 -0
  121. package/dist/locale/hi_IN.js +9 -0
  122. package/dist/locale/hr_HR.js +9 -0
  123. package/dist/locale/hu_HU.js +9 -0
  124. package/dist/locale/hy_AM.js +9 -0
  125. package/dist/locale/id_ID.js +9 -0
  126. package/dist/locale/index.d.ts +3 -0
  127. package/dist/locale/is_IS.js +9 -0
  128. package/dist/locale/it_IT.js +9 -0
  129. package/dist/locale/ja_JP.js +9 -0
  130. package/dist/locale/ka_GE.js +9 -0
  131. package/dist/locale/kk_KZ.js +9 -0
  132. package/dist/locale/km_KH.js +9 -0
  133. package/dist/locale/kmr_IQ.js +9 -0
  134. package/dist/locale/kn_IN.js +9 -0
  135. package/dist/locale/ko_KR.js +9 -0
  136. package/dist/locale/ku_IQ.js +9 -0
  137. package/dist/locale/lt_LT.js +9 -0
  138. package/dist/locale/lv_LV.js +9 -0
  139. package/dist/locale/mk_MK.js +9 -0
  140. package/dist/locale/ml_IN.js +9 -0
  141. package/dist/locale/mn_MN.js +9 -0
  142. package/dist/locale/mr_IN.js +9 -0
  143. package/dist/locale/ms_MY.js +9 -0
  144. package/dist/locale/my_MM.js +9 -0
  145. package/dist/locale/nb_NO.js +9 -0
  146. package/dist/locale/ne_NP.js +9 -0
  147. package/dist/locale/nl_BE.js +9 -0
  148. package/dist/locale/nl_NL.js +9 -0
  149. package/dist/locale/pl_PL.js +9 -0
  150. package/dist/locale/pt_BR.js +9 -0
  151. package/dist/locale/pt_PT.js +9 -0
  152. package/dist/locale/ro_RO.js +19 -10
  153. package/dist/locale/ru_RU.js +9 -0
  154. package/dist/locale/si_LK.js +9 -0
  155. package/dist/locale/sk_SK.js +9 -0
  156. package/dist/locale/sl_SI.js +9 -0
  157. package/dist/locale/sq_AL.js +9 -0
  158. package/dist/locale/sr_RS.js +9 -0
  159. package/dist/locale/sv_SE.js +9 -0
  160. package/dist/locale/ta_IN.js +10 -1
  161. package/dist/locale/th_TH.js +9 -0
  162. package/dist/locale/tk_TK.js +9 -0
  163. package/dist/locale/tr_TR.js +9 -0
  164. package/dist/locale/uk_UA.js +9 -0
  165. package/dist/locale/ur_PK.js +9 -0
  166. package/dist/locale/useLocale.d.ts +6 -1
  167. package/dist/locale/useLocale.js +12 -1
  168. package/dist/locale/uz_UZ.js +9 -0
  169. package/dist/locale/vi_VN.js +9 -0
  170. package/dist/locale/zh_CN.js +13 -3
  171. package/dist/locale/zh_HK.js +11 -1
  172. package/dist/locale/zh_TW.js +11 -1
  173. package/dist/masonry/Masonry.js +1 -1
  174. package/dist/mentions/index.d.ts +2 -3
  175. package/dist/mentions/index.js +9 -4
  176. package/dist/mentions/style/index.js +1 -1
  177. package/dist/menu/MenuContext.d.ts +2 -0
  178. package/dist/menu/MenuItem.js +23 -6
  179. package/dist/menu/index.js +5 -0
  180. package/dist/menu/menu.d.ts +3 -0
  181. package/dist/menu/menu.js +7 -0
  182. package/dist/message/style/index.js +2 -1
  183. package/dist/modal/ConfirmDialog.js +14 -7
  184. package/dist/modal/PurePanel.js +2 -2
  185. package/dist/modal/style/confirm.js +1 -1
  186. package/dist/notification/PurePanel.js +7 -12
  187. package/dist/notification/interface.d.ts +8 -0
  188. package/dist/notification/style/index.d.ts +3 -0
  189. package/dist/notification/style/index.js +4 -5
  190. package/dist/notification/style/placement.js +10 -7
  191. package/dist/notification/useNotification.js +5 -15
  192. package/dist/package.js +1 -1
  193. package/dist/pagination/Pagination.js +2 -2
  194. package/dist/pagination/style/index.js +12 -4
  195. package/dist/pagination/useShowSizeChanger.d.ts +3 -0
  196. package/dist/pagination/useShowSizeChanger.js +1 -1
  197. package/dist/popconfirm/index.js +6 -5
  198. package/dist/popconfirm/style/index.js +1 -1
  199. package/dist/popover/index.js +1 -1
  200. package/dist/popover/style/index.js +2 -2
  201. package/dist/progress/Circle.js +0 -8
  202. package/dist/progress/Line.js +3 -10
  203. package/dist/progress/Steps.js +0 -8
  204. package/dist/progress/progress.js +3 -15
  205. package/dist/qrcode/QrcodeStatus.js +2 -1
  206. package/dist/qrcode/index.js +4 -4
  207. package/dist/radio/group.js +40 -7
  208. package/dist/radio/index.d.ts +2 -2
  209. package/dist/radio/interface.d.ts +19 -1
  210. package/dist/radio/radio.js +5 -3
  211. package/dist/result/index.js +3 -3
  212. package/dist/result/noFound.js +120 -140
  213. package/dist/result/serverError.js +132 -147
  214. package/dist/result/unauthorized.js +115 -129
  215. package/dist/segmented/index.js +1 -1
  216. package/dist/select/index.js +10 -3
  217. package/dist/select/style/dropdown.js +1 -1
  218. package/dist/select/style/index.js +2 -2
  219. package/dist/select/style/select-input-multiple.js +1 -1
  220. package/dist/select/useIcons.d.ts +6 -2
  221. package/dist/select/usePopupRender.js +4 -1
  222. package/dist/slider/index.d.ts +6 -4
  223. package/dist/slider/index.js +7 -5
  224. package/dist/space/Compact.d.ts +1 -1
  225. package/dist/space/Item.d.ts +1 -0
  226. package/dist/space/Item.js +6 -2
  227. package/dist/space/index.js +1 -0
  228. package/dist/spin/Indicator/index.js +5 -1
  229. package/dist/splitter/SplitBar.js +9 -3
  230. package/dist/splitter/Splitter.js +8 -2
  231. package/dist/splitter/interface.d.ts +6 -1
  232. package/dist/statistic/Statistic.d.ts +3 -0
  233. package/dist/statistic/Statistic.js +2 -1
  234. package/dist/steps/index.js +9 -7
  235. package/dist/steps/style/index.js +1 -1
  236. package/dist/steps/style/inline.js +1 -1
  237. package/dist/style/motion/collapse.js +4 -10
  238. package/dist/switch/index.js +8 -2
  239. package/dist/table/ExpandIcon.d.ts +9 -4
  240. package/dist/table/ExpandIcon.js +42 -20
  241. package/dist/table/InternalTable.js +41 -20
  242. package/dist/table/hooks/useLazyKVMap.js +1 -1
  243. package/dist/table/hooks/useSelection.js +54 -9
  244. package/dist/table/index.d.ts +2 -2
  245. package/dist/table/interface.d.ts +8 -0
  246. package/dist/table/style/index.js +1 -1
  247. package/dist/table/style/sorter.js +2 -2
  248. package/dist/table/util.d.ts +1 -1
  249. package/dist/tabs/index.js +9 -2
  250. package/dist/tabs/style/index.js +3 -7
  251. package/dist/tag/hooks/useColor.d.ts +1 -1
  252. package/dist/time-picker/index.d.ts +10 -9
  253. package/dist/time-picker/index.js +54 -83
  254. package/dist/timeline/Timeline.js +1 -1
  255. package/dist/tooltip/style/index.js +1 -2
  256. package/dist/tour/panelRender.js +3 -2
  257. package/dist/transfer/Section.js +2 -1
  258. package/dist/transfer/Transfer.js +1 -1
  259. package/dist/tree/DirectoryTree.d.ts +19 -7
  260. package/dist/tree/Tree.d.ts +73 -58
  261. package/dist/tree/index.d.ts +8 -5
  262. package/dist/tree/index.js +4 -3
  263. package/dist/tree/style/index.js +1 -1
  264. package/dist/tree-select/index.js +14 -8
  265. package/dist/typography/Base/index.js +23 -2
  266. package/dist/typography/Link.js +5 -0
  267. package/dist/typography/Paragraph.js +5 -0
  268. package/dist/typography/Text.js +5 -0
  269. package/dist/typography/Title.js +5 -0
  270. package/dist/typography/hooks/useMergedConfig.js +1 -1
  271. package/dist/typography/interface.d.ts +8 -1
  272. package/dist/typography/style/index.js +2 -1
  273. package/dist/typography/style/mixins.d.ts +2 -1
  274. package/dist/typography/style/mixins.js +26 -3
  275. package/dist/upload/Upload.d.ts +1 -0
  276. package/dist/upload/Upload.js +10 -3
  277. package/dist/upload/UploadList/ListItem.js +8 -3
  278. package/dist/upload/interface.d.ts +1 -0
  279. package/dist/upload/utils.js +8 -3
  280. package/dist/version/token-meta.json +1 -1
  281. package/dist/version/token.json +1 -1
  282. package/dist/watermark/index.js +1 -1
  283. package/package.json +24 -24
  284. package/web-tags.json +79 -15
  285. package/web-types.json +196 -24
  286. package/dist/_util/getAllowClear.d.ts +0 -6
  287. 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.1",
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 } }"
@@ -11488,6 +11596,15 @@
11488
11596
  "type": "{ start?: VueNode; end?: VueNode }"
11489
11597
  }
11490
11598
  },
11599
+ {
11600
+ "name": "destroy-on-hidden",
11601
+ "description": "(ZH) 折叠时(size 为 0)销毁面板内容,应用于所有面板,可在单个面板上覆盖\n\n(EN) Destroy panel content when collapsed (size is 0). Applies to all panels, can be overridden per panel",
11602
+ "default": "false",
11603
+ "value": {
11604
+ "kind": "expression",
11605
+ "type": "boolean"
11606
+ }
11607
+ },
11491
11608
  {
11492
11609
  "name": "dragger-icon",
11493
11610
  "description": "(ZH) 自定义拖拽图标\n\n(EN) Custom dragger icon",
@@ -11619,8 +11736,7 @@
11619
11736
  },
11620
11737
  {
11621
11738
  "name": "destroy-on-hidden",
11622
- "description": "(ZH) 折叠时(size 为 0)销毁面板内容\n\n(EN) Destroy panel content when collapsed (size is 0)",
11623
- "default": "false",
11739
+ "description": "(ZH) 折叠时(size 为 0)销毁面板内容,覆盖 Splitter 的 destroyOnHidden\n\n(EN) Destroy panel content when collapsed (size is 0). Overrides Splitter's destroyOnHidden",
11624
11740
  "value": {
11625
11741
  "kind": "expression",
11626
11742
  "type": "boolean"
@@ -14416,7 +14532,7 @@
14416
14532
  "default": "false",
14417
14533
  "value": {
14418
14534
  "kind": "expression",
14419
- "type": "boolean | { clearIcon?: VueNode }"
14535
+ "type": "boolean | { clearIcon?: VueNode; label?: string }"
14420
14536
  }
14421
14537
  },
14422
14538
  {
@@ -15149,6 +15265,16 @@
15149
15265
  }
15150
15266
  ]
15151
15267
  },
15268
+ {
15269
+ "name": "focus",
15270
+ "description": "(ZH) 焦点进入 Upload 组件时的回调\n\n(EN) Called when focus enters the Upload component",
15271
+ "arguments": [
15272
+ {
15273
+ "name": "payload",
15274
+ "type": "(event: FocusEvent) => void"
15275
+ }
15276
+ ]
15277
+ },
15152
15278
  {
15153
15279
  "name": "download",
15154
15280
  "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 +15570,16 @@
15444
15570
  }
15445
15571
  ]
15446
15572
  },
15573
+ {
15574
+ "name": "focus",
15575
+ "description": "(ZH) 焦点进入 Upload 组件时的回调\n\n(EN) Called when focus enters the Upload component",
15576
+ "arguments": [
15577
+ {
15578
+ "name": "payload",
15579
+ "type": "(event: FocusEvent) => void"
15580
+ }
15581
+ ]
15582
+ },
15447
15583
  {
15448
15584
  "name": "download",
15449
15585
  "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 +16205,7 @@
16069
16205
  {
16070
16206
  "name": "loading",
16071
16207
  "description": "(ZH) 加载中状态\n\n(EN) Indicate loading state",
16208
+ "default": "false",
16072
16209
  "value": {
16073
16210
  "kind": "expression",
16074
16211
  "type": "boolean"
@@ -16099,6 +16236,14 @@
16099
16236
  "type": "false | (input: string, option: OptionProps) => boolean"
16100
16237
  }
16101
16238
  },
16239
+ {
16240
+ "name": "validate-search",
16241
+ "description": "(ZH) 自定义搜索文本的校验逻辑,返回 false 时不显示建议列表\n\n(EN) Custom validation for search text. Return false to hide suggestions.",
16242
+ "value": {
16243
+ "kind": "expression",
16244
+ "type": "(text: string, split?: string) => boolean"
16245
+ }
16246
+ },
16102
16247
  {
16103
16248
  "name": "popup-class-name",
16104
16249
  "description": "(ZH) 下拉菜单的 className 属性\n\n(EN) The className of dropdown menu",
@@ -16158,11 +16303,11 @@
16158
16303
  },
16159
16304
  {
16160
16305
  "name": "allow-clear",
16161
- "description": "(ZH) 可以点击清除图标删除内容\n\n(EN) If allow to remove mentions content with clear icon",
16306
+ "description": "(ZH) 是否显示清除按钮\n\n(EN) Whether to show a clear button",
16162
16307
  "default": "false",
16163
16308
  "value": {
16164
16309
  "kind": "expression",
16165
- "type": "boolean | { clearIcon?: VueNode }"
16310
+ "type": "boolean | AllowClearConfig"
16166
16311
  }
16167
16312
  },
16168
16313
  {
@@ -16338,7 +16483,7 @@
16338
16483
  },
16339
16484
  {
16340
16485
  "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",
16486
+ "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
16487
  "default": "bottom",
16343
16488
  "value": {
16344
16489
  "kind": "expression",
@@ -16488,7 +16633,7 @@
16488
16633
  "default": "true",
16489
16634
  "value": {
16490
16635
  "kind": "expression",
16491
- "type": "boolean | { clearIcon?: VueNode }"
16636
+ "type": "boolean | { clearIcon?: VueNode; label?: string }"
16492
16637
  }
16493
16638
  },
16494
16639
  {
@@ -16636,7 +16781,7 @@
16636
16781
  },
16637
16782
  {
16638
16783
  "name": "show-search",
16639
- "description": "(ZH) 在选择框中显示搜索框\n\n(EN) Whether show search input in single mode",
16784
+ "description": "(ZH) 在选择框中显示搜索框\n\n(EN) Whether show search input",
16640
16785
  "default": "false",
16641
16786
  "value": {
16642
16787
  "kind": "expression",
@@ -16797,7 +16942,7 @@
16797
16942
  },
16798
16943
  {
16799
16944
  "name": "components",
16800
- "description": "(ZH) 覆盖默认的 table 元素\n\n(EN) Override default table elements",
16945
+ "description": "(ZH) 覆盖默认的 table 元素,包括通过 ExpandIcon 自定义行展开和全部展开图标\n\n(EN) Override default table elements, including row and expand-all icons through ExpandIcon",
16801
16946
  "value": {
16802
16947
  "kind": "expression",
16803
16948
  "type": "components"
@@ -17937,6 +18082,15 @@
17937
18082
  "type": "function(trigger)"
17938
18083
  }
17939
18084
  },
18085
+ {
18086
+ "name": "auto-complete",
18087
+ "description": "(ZH) 输入框的原生 autocomplete 属性,模板中也可写作 autocomplete\n\n(EN) Native autocomplete attribute of the input, can also be written as autocomplete in templates",
18088
+ "default": "off",
18089
+ "value": {
18090
+ "kind": "expression",
18091
+ "type": "string"
18092
+ }
18093
+ },
17940
18094
  {
17941
18095
  "name": "input-read-only",
17942
18096
  "description": "(ZH) 设置输入框为只读(避免在移动设备上打开虚拟键盘)\n\n(EN) Set the readonly attribute of the input tag (avoids virtual keyboard on touch devices)",
@@ -18497,6 +18651,15 @@
18497
18651
  "type": "function(trigger)"
18498
18652
  }
18499
18653
  },
18654
+ {
18655
+ "name": "auto-complete",
18656
+ "description": "(ZH) 输入框的原生 autocomplete 属性,模板中也可写作 autocomplete\n\n(EN) Native autocomplete attribute of the input, can also be written as autocomplete in templates",
18657
+ "default": "off",
18658
+ "value": {
18659
+ "kind": "expression",
18660
+ "type": "string"
18661
+ }
18662
+ },
18500
18663
  {
18501
18664
  "name": "input-read-only",
18502
18665
  "description": "(ZH) 设置输入框为只读(避免在移动设备上打开虚拟键盘)\n\n(EN) Set the readonly attribute of the input tag (avoids virtual keyboard on touch devices)",
@@ -19497,6 +19660,15 @@
19497
19660
  "type": "function(trigger)"
19498
19661
  }
19499
19662
  },
19663
+ {
19664
+ "name": "auto-complete",
19665
+ "description": "(ZH) 输入框的原生 autocomplete 属性,模板中也可写作 autocomplete\n\n(EN) Native autocomplete attribute of the input, can also be written as autocomplete in templates",
19666
+ "default": "off",
19667
+ "value": {
19668
+ "kind": "expression",
19669
+ "type": "string"
19670
+ }
19671
+ },
19500
19672
  {
19501
19673
  "name": "input-read-only",
19502
19674
  "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 };