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
@@ -5,11 +5,12 @@ import { unit } from "@antdv-next/cssinjs";
5
5
  //#region src/descriptions/style/index.ts
6
6
  const genBorderedStyle = (token) => {
7
7
  const { componentCls, labelBg } = token;
8
+ const rowSelector = `> ${componentCls}-view > table > tbody > ${componentCls}-row`;
8
9
  return { [`&${componentCls}-bordered`]: {
9
10
  [`> ${componentCls}-view`]: {
10
11
  border: `${unit(token.lineWidth)} ${token.lineType} ${token.colorSplit}`,
11
12
  "> table": { tableLayout: "auto" },
12
- [`${componentCls}-row`]: {
13
+ [`> table > tbody > ${componentCls}-row`]: {
13
14
  borderBottom: `${unit(token.lineWidth)} ${token.lineType} ${token.colorSplit}`,
14
15
  "&:first-child": { "> th:first-child, > td:first-child": { borderStartStartRadius: token.borderRadiusLG } },
15
16
  "&:last-child": {
@@ -28,12 +29,13 @@ const genBorderedStyle = (token) => {
28
29
  }
29
30
  }
30
31
  },
31
- [`&${componentCls}-medium`]: { [`${componentCls}-row`]: { [`> ${componentCls}-item-label, > ${componentCls}-item-content`]: { padding: `${unit(token.paddingSM)} ${unit(token.paddingLG)}` } } },
32
- [`&${componentCls}-small`]: { [`${componentCls}-row`]: { [`> ${componentCls}-item-label, > ${componentCls}-item-content`]: { padding: `${unit(token.paddingXS)} ${unit(token.padding)}` } } }
32
+ [`&${componentCls}-medium`]: { [rowSelector]: { [`> ${componentCls}-item-label, > ${componentCls}-item-content`]: { padding: `${unit(token.paddingSM)} ${unit(token.paddingLG)}` } } },
33
+ [`&${componentCls}-small`]: { [rowSelector]: { [`> ${componentCls}-item-label, > ${componentCls}-item-content`]: { padding: `${unit(token.paddingXS)} ${unit(token.padding)}` } } }
33
34
  } };
34
35
  };
35
36
  const genDescriptionStyles = (token) => {
36
37
  const { componentCls, extraColor, itemPaddingBottom, itemPaddingEnd, colonMarginRight, colonMarginLeft, titleMarginBottom } = token;
38
+ const rowSelector = `> ${componentCls}-view > table > tbody > ${componentCls}-row`;
37
39
  return { [componentCls]: {
38
40
  ...resetComponent(token),
39
41
  ...genBorderedStyle(token),
@@ -65,7 +67,7 @@ const genDescriptionStyles = (token) => {
65
67
  borderCollapse: "collapse"
66
68
  }
67
69
  },
68
- [`${componentCls}-row`]: {
70
+ [rowSelector]: {
69
71
  "> th, > td": {
70
72
  paddingBottom: itemPaddingBottom,
71
73
  paddingInlineEnd: itemPaddingEnd
@@ -78,7 +80,7 @@ const genDescriptionStyles = (token) => {
78
80
  },
79
81
  [`${componentCls}-item-label`]: {
80
82
  color: token.labelColor,
81
- fontWeight: "normal",
83
+ fontWeight: 400,
82
84
  fontSize: token.fontSize,
83
85
  lineHeight: token.lineHeight,
84
86
  textAlign: "start",
@@ -90,10 +92,6 @@ const genDescriptionStyles = (token) => {
90
92
  },
91
93
  [`&${componentCls}-item-no-colon::after`]: { content: "\"\"" }
92
94
  },
93
- [`${componentCls}-item-no-label`]: { "&::after": {
94
- margin: 0,
95
- content: "\"\""
96
- } },
97
95
  [`${componentCls}-item-content`]: {
98
96
  display: "table-cell",
99
97
  flex: 1,
@@ -108,19 +106,19 @@ const genDescriptionStyles = (token) => {
108
106
  verticalAlign: "top",
109
107
  "&-container": {
110
108
  display: "flex",
111
- [`${componentCls}-item-label`]: {
109
+ [`> ${componentCls}-item-label`]: {
112
110
  display: "inline-flex",
113
111
  alignItems: "baseline"
114
112
  },
115
- [`${componentCls}-item-content`]: {
113
+ [`> ${componentCls}-item-content`]: {
116
114
  display: "inline-flex",
117
115
  alignItems: "baseline",
118
116
  minWidth: "1em"
119
117
  }
120
118
  }
121
119
  },
122
- "&-medium": { [`${componentCls}-row`]: { "> th, > td": { paddingBottom: token.paddingSM } } },
123
- "&-small": { [`${componentCls}-row`]: { "> th, > td": { paddingBottom: token.paddingXS } } }
120
+ "&-medium": { [rowSelector]: { "> th, > td": { paddingBottom: token.paddingSM } } },
121
+ "&-small": { [rowSelector]: { "> th, > td": { paddingBottom: token.paddingXS } } }
124
122
  } };
125
123
  };
126
124
  const prepareComponentToken = (token) => ({
@@ -95,7 +95,7 @@ const genSharedDividerStyle = (token) => {
95
95
  },
96
96
  [`&-plain${componentCls}-with-text`]: {
97
97
  color: token.colorText,
98
- fontWeight: "normal",
98
+ fontWeight: 400,
99
99
  fontSize: token.fontSize
100
100
  },
101
101
  [`&-horizontal${componentCls}-with-text-start${componentCls}-no-default-orientation-margin-start`]: {
@@ -81,7 +81,7 @@ const DrawerPanel = /* @__PURE__ */ defineComponent((props, { slots }) => {
81
81
  ]);
82
82
  };
83
83
  const renderFooter = () => {
84
- if (!footer) return null;
84
+ if (!isRenderable(footer)) return null;
85
85
  return createVNode("div", {
86
86
  "class": clsx(`${prefixCls}-footer`, mergedClassNames.value.footer),
87
87
  "style": [mergedStyles.value.footer, footerStyle]
@@ -16,6 +16,7 @@ interface DropdownArrowOptions {
16
16
  type DropdownSemanticName = keyof DropdownSemanticClassNames & keyof DropdownSemanticStyles;
17
17
  interface DropdownSemanticClassNames {
18
18
  root?: string;
19
+ menu?: string;
19
20
  item?: string;
20
21
  itemTitle?: string;
21
22
  itemIcon?: string;
@@ -23,6 +24,7 @@ interface DropdownSemanticClassNames {
23
24
  }
24
25
  interface DropdownSemanticStyles {
25
26
  root?: CSSProperties;
27
+ menu?: CSSProperties;
26
28
  item?: CSSProperties;
27
29
  itemTitle?: CSSProperties;
28
30
  itemIcon?: CSSProperties;
@@ -95,8 +95,13 @@ const Dropdown = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs })
95
95
  disabled: child?.props?.disabled ?? props?.disabled
96
96
  });
97
97
  const renderOverlay = () => {
98
- const menuClassNames = omit(mergedClassNames.value, ["root"]);
99
- const menuStyles = omit(mergedStyles.value, ["root"]);
98
+ const menuClassNames = omit(mergedClassNames.value, ["root", "menu"]);
99
+ const menuStyles = omit(mergedStyles.value, ["root", "menu"]);
100
+ const menuRootClassName = clsx(menu?.classes?.root, mergedClassNames.value.menu) || void 0;
101
+ const menuRootStyle = mergedStyles.value.menu ? {
102
+ ...menu?.styles?.root,
103
+ ...mergedStyles.value.menu
104
+ } : menu?.styles?.root;
100
105
  let overlayNode;
101
106
  if (menu?.items) overlayNode = createVNode(Menu, mergeProps(omit(menu, [
102
107
  "classes",
@@ -109,11 +114,13 @@ const Dropdown = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs })
109
114
  "rootClass": clsx(menu?.rootClass),
110
115
  "classes": {
111
116
  ...menu?.classes,
117
+ root: menuRootClassName,
112
118
  ...menuClassNames,
113
119
  subMenu: { ...menuClassNames }
114
120
  },
115
121
  "styles": {
116
122
  ...menu?.styles,
123
+ root: menuRootStyle,
117
124
  ...menuStyles,
118
125
  subMenu: { ...menuStyles }
119
126
  }
@@ -33,12 +33,6 @@ const genBaseStyle = (token) => {
33
33
  overflowY: "auto"
34
34
  },
35
35
  [`&-trigger${antCls}-btn`]: { [`& > ${iconCls}-down, & > ${antCls}-btn-icon > ${iconCls}-down`]: { fontSize: fontSizeIcon } },
36
- [`${componentCls}-wrap`]: {
37
- position: "relative",
38
- [`${antCls}-btn > ${iconCls}-down`]: { fontSize: fontSizeIcon },
39
- [`${iconCls}-down::before`]: { transition: `transform ${motionDurationMid}` }
40
- },
41
- [`${componentCls}-wrap-open`]: { [`${iconCls}-down::before`]: { transform: `rotate(180deg)` } },
42
36
  [`
43
37
  &-hidden,
44
38
  &-menu-hidden,
@@ -157,7 +151,7 @@ const genBaseStyle = (token) => {
157
151
  margin: 0,
158
152
  padding: `${unit(paddingBlock)} ${unit(controlPaddingHorizontal)}`,
159
153
  color: token.colorText,
160
- fontWeight: "normal",
154
+ fontWeight: 400,
161
155
  fontSize,
162
156
  lineHeight: token.lineHeight,
163
157
  cursor: "pointer",
@@ -3,6 +3,7 @@ import { pureAttrs, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps
3
3
  import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
4
4
  import { isRenderable } from "../_util/is.js";
5
5
  import useLocale from "../locale/useLocale.js";
6
+ import { cloneIfVNode } from "../_util/vueNode.js";
6
7
  import Empty$1 from "./empty.js";
7
8
  import Simple from "./simple.js";
8
9
  import style_default from "./style/index.js";
@@ -32,7 +33,7 @@ const Empty = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose })
32
33
  "alt": alt,
33
34
  "src": mergedImage
34
35
  }, null);
35
- else imageNode = mergedImage;
36
+ else imageNode = cloneIfVNode(mergedImage);
36
37
  const children = filterEmpty(slots?.default?.() ?? []);
37
38
  return createVNode("div", mergeProps({
38
39
  "ref": nativeElementRef,
@@ -3,6 +3,7 @@ import { genCssVar } from "../theme/util/genStyleUtils.js";
3
3
  import { getAttrStyleAndClass, pureAttrs } from "../_util/hooks/useMergeSemantic.js";
4
4
  import { toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
5
5
  import scrollTo from "../_util/scrollTo.js";
6
+ import { cloneIfVNode } from "../_util/vueNode.js";
6
7
  import { useGroupContext } from "./context.js";
7
8
  import FloatButton, { floatButtonPrefixCls } from "./FloatButton.js";
8
9
  import useScroll from "./hooks/useScroll.js";
@@ -34,7 +35,7 @@ const BackTopWithInstall = /* @__PURE__ */ defineComponent((props, { attrs, slot
34
35
  const mergedIcon = computed(() => {
35
36
  const slotIcon = slots.icon ? filterEmpty(slots.icon()) : [];
36
37
  if (slotIcon.length) return slotIcon;
37
- return props.icon ?? backTopIcon?.value ?? defaultIcon;
38
+ return cloneIfVNode(props.icon ?? backTopIcon?.value ?? defaultIcon);
38
39
  });
39
40
  const rootPrefixCls = computed(() => globalConfig.value?.getPrefixCls?.());
40
41
  const transitionProps = computed(() => getTransitionProps(`${rootPrefixCls.value}-fade`));
@@ -1,9 +1,9 @@
1
+ import { useFormItemPrefixContext } from "./context.js";
1
2
  import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
2
3
  import { getSlotPropsFnRun } from "../_util/tools.js";
3
4
  import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
4
5
  import initCollapseMotion from "../_util/motion.js";
5
6
  import isNonNullable from "../_util/isNonNullable.js";
6
- import { useFormItemPrefixContext } from "./context.js";
7
7
  import style_default from "./style/index.js";
8
8
  import { Transition, TransitionGroup, computed, createVNode, defineComponent, isVNode, mergeProps } from "vue";
9
9
  import { clsx } from "@v-c/util";
package/dist/form/Form.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import warning from "../_util/warning.js";
2
+ import { NoFormStyle, useFormContextProvider, useVariantContextProvider } from "./context.js";
2
3
  import { useComponentBaseConfig } from "../config-provider/context.js";
3
4
  import { useSizeProvider } from "../config-provider/SizeContext.js";
4
5
  import { useSize } from "../config-provider/hooks/useSize.js";
@@ -7,7 +8,6 @@ import { toPropsRefs } from "../_util/tools.js";
7
8
  import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
8
9
  import { useDisabledContext, useDisabledContextProvider } from "../config-provider/DisabledContext.js";
9
10
  import useLocale from "../locale/useLocale.js";
10
- import { NoFormStyle, useFormContextProvider, useVariantContextProvider } from "./context.js";
11
11
  import { getFieldId, toArray, toNamePathStr } from "./util.js";
12
12
  import { FormHookRegistryKey, FormInstanceContextKey } from "./hooks/useForm.js";
13
13
  import style_default from "./style/index.js";
@@ -74,13 +74,14 @@ const InternalForm = /* @__PURE__ */ defineComponent((props, { slots, expose, em
74
74
  });
75
75
  const contextStyleRoot = useSemanticRootStyle(contextStyle);
76
76
  const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, contextStyleRoot, styles), useToProps(mergedProps));
77
- const fields = shallowRef({});
77
+ const fields = {};
78
78
  const lastValidatePromise = shallowRef();
79
79
  const addField = (eventKey, field) => {
80
- fields.value[eventKey] = field;
80
+ fields[eventKey] = field;
81
81
  };
82
- const removeField = (eventKey) => {
83
- delete fields.value[eventKey];
82
+ const removeField = (eventKey, field) => {
83
+ if (field && fields[eventKey] !== field) return;
84
+ delete fields[eventKey];
84
85
  };
85
86
  const items = /* @__PURE__ */ new Map();
86
87
  const addItem = (namePathStr, instance) => {
@@ -94,7 +95,7 @@ const InternalForm = /* @__PURE__ */ defineComponent((props, { slots, expose, em
94
95
  };
95
96
  const getFieldsByNameList = (namePathList, partialMatch = false) => {
96
97
  const mergedNamePathList = namePathList?.length ? namePathList : void 0;
97
- const fieldList = Object.values(fields.value);
98
+ const fieldList = Object.values(fields);
98
99
  if (!mergedNamePathList) return fieldList;
99
100
  return fieldList.filter((field) => containsNamePath(mergedNamePathList, field.namePath(), partialMatch));
100
101
  };
@@ -103,7 +104,7 @@ const InternalForm = /* @__PURE__ */ defineComponent((props, { slots, expose, em
103
104
  };
104
105
  const getFieldsValue = (nameList = true) => {
105
106
  if (nameList === true) {
106
- const allNameList = Object.values(fields.value).map((field) => field.namePath());
107
+ const allNameList = Object.values(fields).map((field) => field.namePath());
107
108
  return cloneByNamePathList(model.value ?? {}, allNameList);
108
109
  }
109
110
  return cloneByNamePathList(model.value ?? {}, nameList);
@@ -303,7 +304,7 @@ const InternalForm = /* @__PURE__ */ defineComponent((props, { slots, expose, em
303
304
  const setFields = (data) => {
304
305
  data.forEach((item) => {
305
306
  const namePath = getNamePath(item.name);
306
- const target = Object.values(fields.value).find((field) => containsNamePath([field.namePath()], namePath));
307
+ const target = Object.values(fields).find((field) => containsNamePath([field.namePath()], namePath));
307
308
  if (target?.setFieldState) target.setFieldState({
308
309
  errors: item.errors || [],
309
310
  warnings: item.warnings || [],
@@ -1,6 +1,6 @@
1
+ import { NoStyleItemContextProvider, useFormContext } from "../context.js";
1
2
  import { getAttrStyleAndClass } from "../../_util/hooks/useMergeSemantic.js";
2
3
  import isNonNullable from "../../_util/isNonNullable.js";
3
- import { NoStyleItemContextProvider, useFormContext } from "../context.js";
4
4
  import { getStatus } from "../util.js";
5
5
  import Row from "../../grid/row.js";
6
6
  import FormItemInput from "../FormItemInput.js";
@@ -1,8 +1,8 @@
1
+ import { useFormContext, useFormItemProvider, useNoStyleItemContext } from "../context.js";
1
2
  import { useComponentBaseConfig } from "../../config-provider/context.js";
2
3
  import { getSlotPropsFnRun } from "../../_util/tools.js";
3
4
  import useCSSVarCls from "../../config-provider/hooks/useCSSVarCls.js";
4
5
  import { isRenderable } from "../../_util/is.js";
5
- import { useFormContext, useFormItemProvider, useNoStyleItemContext } from "../context.js";
6
6
  import { getFieldId, initialValueFormat, toArray, toNamePathStr } from "../util.js";
7
7
  import { useFormInstance } from "../hooks/useForm.js";
8
8
  import style_default from "../style/index.js";
@@ -273,9 +273,11 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
273
273
  }
274
274
  if (itemInstance) setItemInstance(itemInstance);
275
275
  }, { flush: "post" });
276
- watch(hasName, (val, _, onCleanup) => {
277
- if (val && formContext.value?.addField) {
278
- formContext.value.addField(eventKey.value, {
276
+ watch([hasName, eventKey], ([val], _, onCleanup) => {
277
+ const fieldKey = eventKey.value;
278
+ const formCtx = formContext.value;
279
+ if (val && formCtx?.addField) {
280
+ const field = {
279
281
  onFieldBlur,
280
282
  namePath: () => namePath.value,
281
283
  getValue: () => fieldValue.value,
@@ -295,11 +297,12 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
295
297
  warnings: state.warnings ?? meta.value.warnings
296
298
  });
297
299
  }
298
- });
300
+ };
301
+ formCtx.addField(fieldKey, field);
299
302
  onCleanup(() => {
300
- formContext.value?.removeField?.(eventKey.value);
303
+ formCtx.removeField?.(fieldKey, field);
301
304
  });
302
- } else formContext.value?.removeField?.(eventKey.value);
305
+ }
303
306
  }, { immediate: true });
304
307
  onBeforeUnmount(() => {
305
308
  validateId++;
@@ -308,7 +311,6 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
308
311
  ...meta.value,
309
312
  destroy: true
310
313
  }, meta.value.name);
311
- formContext.value?.removeField?.(eventKey.value);
312
314
  if (itemInstanceKey) {
313
315
  formContext.value?.removeItem?.(itemInstanceKey);
314
316
  itemInstanceKey = void 0;
@@ -355,7 +357,7 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
355
357
  const { errors: itemErrors, warnings: itemWarnings } = mergedErrorList.value;
356
358
  if (currentFieldId && (helpNode || itemErrors.length > 0 || itemWarnings.length > 0 || hasExtra)) {
357
359
  const describedbyArr = [];
358
- if (helpNode || itemErrors.length > 0) describedbyArr.push(`${currentFieldId}_help`);
360
+ if (helpNode || itemErrors.length > 0 || itemWarnings.length > 0) describedbyArr.push(`${currentFieldId}_help`);
359
361
  if (hasExtra) describedbyArr.push(`${currentFieldId}_extra`);
360
362
  newChildProps["aria-describedby"] = describedbyArr.join(" ");
361
363
  }
@@ -1,6 +1,6 @@
1
+ import { FormItemPrefixContextProvider, useFormContext, useFormContextProvider } from "./context.js";
1
2
  import { getSlotPropsFnRun } from "../_util/tools.js";
2
3
  import { isRenderable } from "../_util/is.js";
3
- import { FormItemPrefixContextProvider, useFormContext, useFormContextProvider } from "./context.js";
4
4
  import { responsiveArrayReversed } from "../_util/responsiveObserver.js";
5
5
  import Col from "../grid/col.js";
6
6
  import ErrorList from "./ErrorList.js";
@@ -1,9 +1,9 @@
1
+ import { useFormContext } from "./context.js";
1
2
  import { getSlotPropsFnRun } from "../_util/tools.js";
2
3
  import InternalTooltip from "../tooltip/index.js";
3
4
  import { isRenderable } from "../_util/is.js";
4
5
  import localeValues from "../locale/en_US.js";
5
6
  import useLocale from "../locale/useLocale.js";
6
- import { useFormContext } from "./context.js";
7
7
  import Col from "../grid/col.js";
8
8
  import convertToTooltipProps from "../_util/convertToTooltipProps.js";
9
9
  import { Fragment, createVNode, defineComponent, mergeProps } from "vue";
@@ -25,7 +25,7 @@ const FormItemLabel = /* @__PURE__ */ defineComponent((props, { slots }) => {
25
25
  const labelColClassName = clsx(labelClsBasic, mergedLabelAlign === "left" && `${labelClsBasic}-left`, mergedLabelCol.class, { [`${labelClsBasic}-wrap`]: !!labelWrap });
26
26
  let labelChildren = label;
27
27
  const computedColon = colon === true || contextColon !== false && colon !== false;
28
- if (computedColon && !vertical && typeof label === "string" && label.trim()) labelChildren = label.replace(/[:|:]\s*$/, "");
28
+ if (computedColon && !vertical && typeof label === "string" && label.trim()) labelChildren = label.replace(/[::]\s*$/, "");
29
29
  const tooltipProps = convertToTooltipProps(tooltip, contextTooltip);
30
30
  if (tooltipProps) {
31
31
  const { ...restTooltipProps } = tooltipProps;
@@ -44,7 +44,7 @@ interface FormContextProps {
44
44
  preserve?: boolean;
45
45
  clearOnDestroy?: boolean;
46
46
  addField?: (eventKey: string, field: FormFieldRegister) => void;
47
- removeField?: (eventKey: string) => void;
47
+ removeField?: (eventKey: string, field?: FormFieldRegister) => void;
48
48
  addItem?: (namePathStr: string, instance: any) => void;
49
49
  removeItem?: (namePathStr: string) => void;
50
50
  onValidate?: (name: InternalNamePath, status: boolean, errors: any[] | null) => void;
@@ -71,7 +71,7 @@ declare function useFormItemPrefixContext(): Ref<{
71
71
  prefixCls: string;
72
72
  }>;
73
73
  declare function useVariantContextProvider(variant: Ref<Variant | undefined>): void;
74
- declare function useVariantContext(): Ref<"outlined" | "filled" | "borderless" | "underlined" | undefined, "outlined" | "filled" | "borderless" | "underlined" | undefined>;
74
+ declare function useVariantContext(): Ref<"filled" | "outlined" | "borderless" | "underlined" | undefined, "filled" | "outlined" | "borderless" | "underlined" | undefined>;
75
75
  interface FormItemStatusContextProps {
76
76
  isFormItemInput?: boolean;
77
77
  status?: ValidateStatus;
@@ -3,7 +3,7 @@ import { Variant } from "../../config-provider/context.js";
3
3
  import { Ref } from "vue";
4
4
  //#region src/form/hooks/useVariant.d.ts
5
5
  type VariantComponents = keyof Pick<ConfigProviderProps, 'input' | 'inputPassword' | 'inputSearch' | 'otp' | 'inputNumber' | 'textArea' | 'mentions' | 'select' | 'cascader' | 'treeSelect' | 'datePicker' | 'timePicker' | 'rangePicker' | 'card'>;
6
- declare function useVariant(component: VariantComponents, variant?: Ref<Variant | undefined>, legacyBordered?: Ref<boolean | undefined> | boolean, fallbackComponent?: VariantComponents): readonly [import("vue").ComputedRef<"outlined" | "filled" | "borderless" | "underlined">, import("vue").ComputedRef<boolean>, import("vue").ComputedRef<boolean>];
6
+ declare function useVariant(component: VariantComponents, variant?: Ref<Variant | undefined>, legacyBordered?: Ref<boolean | undefined> | boolean, fallbackComponent?: VariantComponents): readonly [import("vue").ComputedRef<"filled" | "outlined" | "borderless" | "underlined">, import("vue").ComputedRef<boolean>, import("vue").ComputedRef<boolean>];
7
7
  declare const useVariants: typeof useVariant;
8
8
  //#endregion
9
9
  export { useVariant as default, useVariants };
@@ -1,5 +1,5 @@
1
- import { Variants, useConfig } from "../../config-provider/context.js";
2
1
  import { useVariantContext } from "../context.js";
2
+ import { Variants, useConfig } from "../../config-provider/context.js";
3
3
  import { computed } from "vue";
4
4
  //#region src/form/hooks/useVariant.ts
5
5
  function useVariant(component, variant, legacyBordered, fallbackComponent) {
@@ -5,15 +5,21 @@ import canUseDom from "@v-c/util/dist/Dom/canUseDom";
5
5
  function useBreakpoint(refreshOnChange = true, defaultScreens = {}) {
6
6
  const screensRef = ref(unref(defaultScreens));
7
7
  const responsiveObserver = useResponsiveObserver();
8
- watchEffect(async (onCleanup) => {
8
+ watchEffect((onCleanup) => {
9
9
  if (!canUseDom()) return;
10
- await nextTick();
11
- const token = responsiveObserver.value?.subscribe((supportScreens) => {
12
- screensRef.value = unref(supportScreens);
13
- if (unref(refreshOnChange)) {}
10
+ const observer = responsiveObserver.value;
11
+ let token;
12
+ let cancelled = false;
13
+ nextTick(() => {
14
+ if (cancelled) return;
15
+ token = observer.subscribe((supportScreens) => {
16
+ screensRef.value = unref(supportScreens);
17
+ if (unref(refreshOnChange)) {}
18
+ });
14
19
  });
15
20
  onCleanup(() => {
16
- responsiveObserver.value.unsubscribe(token);
21
+ cancelled = true;
22
+ if (token !== void 0) observer.unsubscribe(token);
17
23
  });
18
24
  });
19
25
  return screensRef;
@@ -1,6 +1,8 @@
1
1
  import { MaskType } from "../_util/hooks/useMergedMask.js";
2
+ import { EmptyEmit } from "../_util/type.js";
2
3
  import "../_util/hooks/index.js";
3
4
  import { DeprecatedPreviewConfig, ImageClassNamesType, ImageStylesType } from "./index.js";
5
+ import { SlotsType } from "vue";
4
6
  import { PreviewGroupProps as PreviewGroupProps$1 } from "@v-c/image";
5
7
  //#region src/image/PreviewGroup.d.ts
6
8
  declare const icons: {
@@ -25,6 +27,11 @@ interface PreviewGroupProps extends Omit<PreviewGroupProps$1, 'preview' | 'style
25
27
  classes?: ImageClassNamesType;
26
28
  styles?: ImageStylesType;
27
29
  }
28
- declare const InternalPreviewGroup: import("vue").DefineSetupFnComponent<PreviewGroupProps, {}, {}, PreviewGroupProps & {}, import("vue").PublicProps>;
30
+ interface PreviewGroupSlots {
31
+ default?: () => any;
32
+ countRender?: (...args: Parameters<NonNullable<OriginPreviewConfig['countRender']>>) => any;
33
+ actionsRender?: (...args: Parameters<NonNullable<OriginPreviewConfig['actionsRender']>>) => any;
34
+ }
35
+ declare const InternalPreviewGroup: import("vue").DefineSetupFnComponent<PreviewGroupProps, EmptyEmit, SlotsType<PreviewGroupSlots>, PreviewGroupProps, import("vue").PublicProps>;
29
36
  //#endregion
30
- export { GroupPreviewConfig, PreviewGroupProps, InternalPreviewGroup as default, icons };
37
+ export { GroupPreviewConfig, PreviewGroupProps, PreviewGroupSlots, InternalPreviewGroup as default, icons };
@@ -11,6 +11,7 @@ declare function useMergedPreviewConfig<T extends PreviewConfig | GroupPreviewCo
11
11
  closeIcon: import("@v-c/util").VueNode;
12
12
  rootClassName: string;
13
13
  mask: boolean;
14
+ maskClosable: boolean;
14
15
  blurClassName: string | undefined;
15
16
  cover?: any;
16
17
  }>;
@@ -6,7 +6,7 @@ import { getTransitionName } from "@v-c/util/dist/utils/transition";
6
6
  //#region src/image/hooks/useMergedPreviewConfig.ts
7
7
  function useMergedPreviewConfig(previewConfig, contextPreviewConfig, prefixCls, mergedRootClassName, getContextPopupContainer, icons, defaultCover) {
8
8
  const [zIndex] = useZIndex("ImagePreview", computed(() => previewConfig.value?.zIndex));
9
- const [mergedPreviewMask, blurClassName] = useMergedMask(computed(() => previewConfig.value?.mask), computed(() => contextPreviewConfig.value?.mask), computed(() => `${prefixCls.value}-preview`));
9
+ const [mergedPreviewMask, blurClassName, mergedMaskClosable] = useMergedMask(computed(() => previewConfig.value?.mask), computed(() => contextPreviewConfig.value?.mask), computed(() => `${prefixCls.value}-preview`));
10
10
  return computed(() => {
11
11
  if (!previewConfig.value) return previewConfig.value;
12
12
  const { cover, getContainer, closeIcon, rootClassName: previewRootClassName } = previewConfig.value;
@@ -21,6 +21,7 @@ function useMergedPreviewConfig(previewConfig, contextPreviewConfig, prefixCls,
21
21
  closeIcon: closeIcon ?? contextCloseIcon,
22
22
  rootClassName: clsx(mergedRootClassName.value, previewRootClassName),
23
23
  mask: mergedPreviewMask.value,
24
+ maskClosable: mergedMaskClosable.value,
24
25
  blurClassName: blurClassName.value?.mask
25
26
  };
26
27
  });
@@ -7,14 +7,14 @@ declare function usePreviewConfig<T extends PreviewConfig | GroupPreviewConfig>(
7
7
  readonly onOpenChange: ((value: boolean, info: {
8
8
  current: number;
9
9
  }) => void) | undefined;
10
- readonly cover: string | number | boolean | import("vue").ComponentOptions<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions> | import("vue").FunctionalComponent<any, {}, any, {}> | {
10
+ readonly cover: string | number | boolean | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
11
+ [key: string]: any;
12
+ }> | import("vue").ComponentOptions<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions> | import("vue").FunctionalComponent<any, {}, any, {}> | {
11
13
  new (...args: any[]): any;
12
14
  __isFragment?: never;
13
15
  __isTeleport?: never;
14
16
  __isSuspense?: never;
15
- } | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
16
- [key: string]: any;
17
- }> | (string | number | boolean | void | import("vue").Component | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
17
+ } | (string | number | boolean | void | import("vue").Component | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
18
18
  [key: string]: any;
19
19
  }> | null | undefined)[] | import("@v-c/image").CoverConfig | {
20
20
  enabled?: boolean;
@@ -36,22 +36,22 @@ declare function usePreviewConfig<T extends PreviewConfig | GroupPreviewConfig>(
36
36
  image: import("@v-c/image").ImgInfo;
37
37
  }) => import("@v-c/util").VueNode;
38
38
  readonly onChange?: (current: number, prevCurrent: number) => void;
39
- readonly wheel?: boolean;
40
39
  readonly focusTrap?: boolean;
41
40
  readonly afterOpenChange?: (open: boolean) => void;
42
41
  readonly maskClosable?: boolean;
43
42
  readonly zIndex?: number;
44
43
  readonly getContainer?: import("@v-c/portal/dist/Portal.js").PortalProps["getContainer"];
45
44
  readonly closeIcon?: import("@v-c/util").VueNode | boolean | null;
46
- readonly motionName?: string;
45
+ readonly wheel?: boolean;
47
46
  readonly src?: string;
48
47
  readonly alt?: string;
49
- readonly icons?: import("@v-c/image/dist/Preview/index.js").OperationIcons;
50
48
  readonly countRender?: (current: number, total: number) => import("@v-c/util").VueNode;
51
49
  readonly scaleStep?: number;
52
50
  readonly minScale?: number;
53
51
  readonly maxScale?: number;
52
+ readonly motionName?: string;
54
53
  readonly movable?: boolean;
54
+ readonly icons?: import("@v-c/image/dist/Preview/index.js").OperationIcons;
55
55
  readonly onTransform?: (info: {
56
56
  transform: import("@v-c/image/dist/hooks/useImageTransform.js").TransformType;
57
57
  action: import("@v-c/image/dist/hooks/useImageTransform.js").TransformAction;
@@ -1,8 +1,8 @@
1
1
  import { MaskType } from "../_util/hooks/useMergedMask.js";
2
- import { VueNode } from "../_util/type.js";
2
+ import { EmptyEmit, VueNode } from "../_util/type.js";
3
3
  import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
4
4
  import "../_util/hooks/index.js";
5
- import InternalPreviewGroup, { PreviewGroupProps as PreviewGroupProps$1 } from "./PreviewGroup.js";
5
+ import InternalPreviewGroup, { PreviewGroupProps as PreviewGroupProps$1, PreviewGroupSlots } from "./PreviewGroup.js";
6
6
  import { CSSProperties, SlotsType } from "vue";
7
7
  import { ImageProps as ImageProps$1 } from "@v-c/image";
8
8
  //#region src/image/index.d.ts
@@ -98,7 +98,7 @@ declare const Image: import("vue").DefineSetupFnComponent<ImageProps, ImageEmits
98
98
  declare const _default_1: typeof Image & {
99
99
  PreviewGroup: typeof InternalPreviewGroup;
100
100
  };
101
- declare const ImagePreviewGroup: import("vue").DefineSetupFnComponent<PreviewGroupProps$1, {}, {}, PreviewGroupProps$1 & {}, import("vue").PublicProps>;
101
+ declare const ImagePreviewGroup: import("vue").DefineSetupFnComponent<PreviewGroupProps$1, EmptyEmit, SlotsType<PreviewGroupSlots>, PreviewGroupProps$1, import("vue").PublicProps>;
102
102
  type ImagePreviewGroupProps = PreviewGroupProps$1;
103
103
  //#endregion
104
104
  export { DeprecatedPreviewConfig, ImageClassNamesType, ImageEmits, ImageEmitsProps, ImagePopupSemanticClassNames, ImagePopupSemanticName, ImagePopupSemanticStyles, ImagePreviewGroup, ImagePreviewGroupProps, ImageProps, ImageSemanticClassNames, ImageSemanticName, ImageSemanticStyles, ImageSlots, ImageStylesType, PreviewConfig, _default_1 as default };