antdv-next 1.5.4 → 1.5.6

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 (250) hide show
  1. package/dist/_util/PurePanel.js +2 -1
  2. package/dist/_util/hooks/useMergeSemantic.js +3 -2
  3. package/dist/_util/statusUtils.d.ts +1 -1
  4. package/dist/_util/styleUtils.d.ts +19 -1
  5. package/dist/_util/styleUtils.js +24 -1
  6. package/dist/_util/vnode/index.js +5 -5
  7. package/dist/_util/warning.d.ts +0 -1
  8. package/dist/affix/index.js +7 -18
  9. package/dist/alert/Alert.js +11 -12
  10. package/dist/anchor/Anchor.d.ts +1 -1
  11. package/dist/anchor/Anchor.js +16 -7
  12. package/dist/anchor/AnchorLink.js +3 -2
  13. package/dist/antd-with-locales.esm.js +17656 -16491
  14. package/dist/antd-with-locales.js +80 -80
  15. package/dist/antd.css +1 -1
  16. package/dist/antd.esm.js +15077 -14114
  17. package/dist/antd.js +81 -81
  18. package/dist/app/App.js +1 -1
  19. package/dist/app/index.js +0 -3
  20. package/dist/auto-complete/index.js +11 -4
  21. package/dist/avatar/Avatar.d.ts +4 -1
  22. package/dist/avatar/Avatar.js +21 -13
  23. package/dist/avatar/AvatarGroup.js +2 -2
  24. package/dist/avatar/index.d.ts +2 -2
  25. package/dist/badge/Ribbon.js +3 -4
  26. package/dist/badge/index.js +11 -9
  27. package/dist/breadcrumb/Breadcrumb.js +6 -3
  28. package/dist/breadcrumb/BreadcrumbItem.js +4 -3
  29. package/dist/breadcrumb/useItemRender.js +5 -8
  30. package/dist/button/Button.js +2 -0
  31. package/dist/card/Card.js +6 -7
  32. package/dist/carousel/index.d.ts +1 -1
  33. package/dist/carousel/index.js +7 -8
  34. package/dist/cascader/Panel.d.ts +1 -0
  35. package/dist/cascader/Panel.js +2 -1
  36. package/dist/cascader/index.d.ts +5 -4
  37. package/dist/cascader/index.js +8 -6
  38. package/dist/checkbox/Checkbox.js +14 -28
  39. package/dist/collapse/Collapse.d.ts +2 -3
  40. package/dist/collapse/Collapse.js +7 -4
  41. package/dist/color-picker/ColorPicker.js +2 -2
  42. package/dist/color-picker/components/ColorClear.d.ts +1 -0
  43. package/dist/color-picker/components/ColorClear.js +14 -4
  44. package/dist/color-picker/components/ColorPresets.js +4 -4
  45. package/dist/color-picker/components/ColorSlider.js +8 -2
  46. package/dist/color-picker/components/ColorTrigger.js +3 -2
  47. package/dist/color-picker/interface.d.ts +0 -2
  48. package/dist/color-picker/style/index.js +5 -6
  49. package/dist/components.d.ts +3 -3
  50. package/dist/config-provider/context.d.ts +2 -5
  51. package/dist/config-provider/index.d.ts +2 -2
  52. package/dist/date-picker/generatePicker/generateRangePicker.d.ts +4 -3
  53. package/dist/date-picker/generatePicker/generateRangePicker.js +3 -1
  54. package/dist/date-picker/generatePicker/generateSinglePicker.d.ts +1 -0
  55. package/dist/date-picker/generatePicker/generateSinglePicker.js +3 -1
  56. package/dist/date-picker/generatePicker/index.d.ts +1 -1
  57. package/dist/date-picker/generatePicker/interface.d.ts +0 -2
  58. package/dist/date-picker/generatePicker/useComponents.d.ts +3 -3
  59. package/dist/date-picker/index.d.ts +3 -2
  60. package/dist/date-picker/locale/bn_BD.js +1 -0
  61. package/dist/date-picker/locale/et_EE.js +8 -0
  62. package/dist/date-picker/locale/eu_ES.js +8 -0
  63. package/dist/date-picker/locale/ga_IE.js +1 -0
  64. package/dist/date-picker/locale/is_IS.js +8 -0
  65. package/dist/date-picker/locale/ka_GE.js +1 -0
  66. package/dist/date-picker/locale/kk_KZ.js +1 -0
  67. package/dist/date-picker/locale/km_KH.js +1 -0
  68. package/dist/date-picker/locale/kmr_IQ.js +8 -0
  69. package/dist/date-picker/locale/lv_LV.js +8 -0
  70. package/dist/date-picker/locale/mk_MK.js +8 -0
  71. package/dist/date-picker/locale/ml_IN.js +1 -0
  72. package/dist/date-picker/locale/mn_MN.js +8 -0
  73. package/dist/date-picker/locale/sl_SI.js +8 -0
  74. package/dist/date-picker/locale/ta_IN.js +1 -0
  75. package/dist/date-picker/locale/ur_PK.js +1 -0
  76. package/dist/date-picker/locale/uz_UZ.js +1 -0
  77. package/dist/date-picker/util.d.ts +2 -2
  78. package/dist/descriptions/Row.js +3 -2
  79. package/dist/descriptions/hooks/useItems.d.ts +8 -8
  80. package/dist/descriptions/index.js +6 -3
  81. package/dist/divider/index.d.ts +0 -1
  82. package/dist/drawer/DrawerPanel.js +4 -1
  83. package/dist/drawer/index.d.ts +0 -3
  84. package/dist/drawer/index.js +15 -3
  85. package/dist/dropdown/index.js +0 -3
  86. package/dist/float-button/BackTop.d.ts +4 -2
  87. package/dist/float-button/BackTop.js +12 -4
  88. package/dist/float-button/FloatButton.d.ts +2 -2
  89. package/dist/float-button/FloatButton.js +10 -3
  90. package/dist/float-button/FloatButtonGroup.d.ts +2 -2
  91. package/dist/float-button/FloatButtonGroup.js +10 -3
  92. package/dist/float-button/PurePanel.js +20 -8
  93. package/dist/form/FormItem/index.js +4 -3
  94. package/dist/form/FormItemInput.js +4 -2
  95. package/dist/grid/col.js +1 -1
  96. package/dist/grid/row.js +1 -1
  97. package/dist/image/PreviewGroup.js +7 -5
  98. package/dist/image/hooks/usePreviewConfig.d.ts +9 -9
  99. package/dist/image/hooks/usePreviewConfig.js +1 -1
  100. package/dist/image/index.js +3 -4
  101. package/dist/index.d.ts +3 -3
  102. package/dist/input/Input.d.ts +0 -1
  103. package/dist/input/Input.js +16 -4
  104. package/dist/input/OTP/OTPInput.js +16 -4
  105. package/dist/input/Password.js +12 -3
  106. package/dist/input/Search.js +16 -4
  107. package/dist/input/TextArea.d.ts +0 -1
  108. package/dist/input/TextArea.js +17 -2
  109. package/dist/input/style/index.d.ts +2 -1
  110. package/dist/input/style/index.js +12 -11
  111. package/dist/input/style/variants.js +1 -4
  112. package/dist/input-number/index.d.ts +0 -1
  113. package/dist/input-number/index.js +30 -9
  114. package/dist/input-number/style/index.js +13 -39
  115. package/dist/listy/index.js +13 -8
  116. package/dist/listy/interface.d.ts +2 -2
  117. package/dist/locale/az_AZ.js +4 -0
  118. package/dist/locale/bn_BD.js +4 -0
  119. package/dist/locale/by_BY.js +4 -0
  120. package/dist/locale/eu_ES.js +4 -0
  121. package/dist/locale/ga_IE.js +4 -0
  122. package/dist/locale/hy_AM.js +20 -2
  123. package/dist/locale/is_IS.js +4 -0
  124. package/dist/locale/ka_GE.js +4 -0
  125. package/dist/locale/kk_KZ.js +4 -0
  126. package/dist/locale/km_KH.js +4 -0
  127. package/dist/locale/kmr_IQ.js +4 -0
  128. package/dist/locale/kn_IN.js +4 -0
  129. package/dist/locale/ku_IQ.js +4 -0
  130. package/dist/locale/mk_MK.js +4 -0
  131. package/dist/locale/ml_IN.js +4 -0
  132. package/dist/locale/mn_MN.js +4 -0
  133. package/dist/locale/mr_IN.js +4 -0
  134. package/dist/locale/my_MM.js +4 -0
  135. package/dist/locale/ne_NP.js +4 -0
  136. package/dist/locale/si_LK.js +4 -0
  137. package/dist/locale/sq_AL.js +4 -0
  138. package/dist/locale/ta_IN.js +4 -0
  139. package/dist/locale/tk_TK.js +4 -0
  140. package/dist/locale/ur_PK.js +4 -0
  141. package/dist/locale/uz_UZ.js +4 -0
  142. package/dist/masonry/Masonry.js +9 -1
  143. package/dist/mentions/index.d.ts +1 -1
  144. package/dist/mentions/index.js +7 -3
  145. package/dist/menu/MenuContext.js +4 -1
  146. package/dist/menu/MenuItem.js +2 -2
  147. package/dist/menu/OverrideContext.js +4 -1
  148. package/dist/menu/index.d.ts +2 -2
  149. package/dist/message/PurePanel.js +2 -1
  150. package/dist/message/index.js +14 -9
  151. package/dist/message/interface.d.ts +8 -0
  152. package/dist/message/useMessage.d.ts +1 -1
  153. package/dist/message/useMessage.js +26 -32
  154. package/dist/modal/ConfirmDialog.js +1 -1
  155. package/dist/modal/Modal.js +3 -2
  156. package/dist/modal/PurePanel.js +2 -2
  157. package/dist/modal/interface.d.ts +0 -6
  158. package/dist/modal/shared.js +2 -1
  159. package/dist/notification/PurePanel.d.ts +1 -1
  160. package/dist/notification/PurePanel.js +12 -10
  161. package/dist/notification/index.js +4 -1
  162. package/dist/notification/interface.d.ts +4 -0
  163. package/dist/notification/useNotification.js +19 -21
  164. package/dist/package.js +1 -1
  165. package/dist/pagination/Pagination.js +3 -4
  166. package/dist/popconfirm/index.js +4 -1
  167. package/dist/popover/PurePanel.js +8 -2
  168. package/dist/popover/index.js +4 -1
  169. package/dist/qrcode/QrcodeStatus.js +4 -1
  170. package/dist/qrcode/index.js +2 -1
  171. package/dist/radio/group.js +2 -2
  172. package/dist/radio/radio.js +2 -2
  173. package/dist/rate/index.d.ts +1 -1
  174. package/dist/rate/index.js +1 -5
  175. package/dist/result/index.js +4 -3
  176. package/dist/segmented/index.js +8 -2
  177. package/dist/select/index.d.ts +2 -3
  178. package/dist/select/index.js +2 -2
  179. package/dist/skeleton/Element.js +2 -2
  180. package/dist/slider/SliderTooltip.js +4 -1
  181. package/dist/slider/index.d.ts +1 -0
  182. package/dist/slider/index.js +5 -3
  183. package/dist/space/Compact.d.ts +1 -1
  184. package/dist/spin/index.js +2 -2
  185. package/dist/splitter/Panel.js +12 -3
  186. package/dist/splitter/SplitBar.js +12 -1
  187. package/dist/splitter/Splitter.js +2 -1
  188. package/dist/splitter/hooks/sizeUtil.js +17 -1
  189. package/dist/splitter/interface.d.ts +3 -1
  190. package/dist/splitter/style/index.js +6 -1
  191. package/dist/statistic/Number.js +2 -1
  192. package/dist/statistic/Statistic.js +2 -2
  193. package/dist/steps/index.js +3 -4
  194. package/dist/switch/index.d.ts +0 -2
  195. package/dist/table/Column.d.ts +5 -1
  196. package/dist/table/Column.js +10 -1
  197. package/dist/table/ColumnGroup.js +5 -0
  198. package/dist/table/InternalTable.d.ts +4 -1
  199. package/dist/table/InternalTable.js +28 -18
  200. package/dist/table/Table.js +16 -5
  201. package/dist/table/hooks/useFilter/index.d.ts +3 -1
  202. package/dist/table/hooks/useFilter/index.js +2 -2
  203. package/dist/table/hooks/useSelection.js +7 -3
  204. package/dist/table/interface.d.ts +10 -3
  205. package/dist/table/style/index.js +30 -2
  206. package/dist/table/util.d.ts +1 -1
  207. package/dist/table/utils.js +20 -2
  208. package/dist/tabs/index.d.ts +2 -0
  209. package/dist/tabs/index.js +11 -6
  210. package/dist/tag/CheckableTag.d.ts +0 -3
  211. package/dist/tag/CheckableTagGroup.js +18 -2
  212. package/dist/tag/index.js +2 -1
  213. package/dist/theme/context.d.ts +0 -1
  214. package/dist/theme/util/alias.js +3 -0
  215. package/dist/theme/util/genStyleUtils.d.ts +4 -0
  216. package/dist/time-picker/index.d.ts +8 -3
  217. package/dist/time-picker/index.js +46 -8
  218. package/dist/timeline/TimelineItem.js +4 -1
  219. package/dist/timeline/useItems.js +2 -1
  220. package/dist/tooltip/PurePanel.js +4 -1
  221. package/dist/tooltip/index.d.ts +5 -2
  222. package/dist/tooltip/index.js +4 -1
  223. package/dist/tooltip/style/index.d.ts +0 -1
  224. package/dist/tour/index.js +2 -3
  225. package/dist/tour/interface.d.ts +7 -5
  226. package/dist/tour/panelRender.js +6 -6
  227. package/dist/transfer/ListBody.js +1 -1
  228. package/dist/transfer/Section.js +3 -2
  229. package/dist/transfer/Transfer.js +37 -13
  230. package/dist/transfer/hooks/useSelection.js +1 -1
  231. package/dist/transfer/interface.d.ts +1 -1
  232. package/dist/tree/DirectoryTree.js +2 -1
  233. package/dist/tree/Tree.js +6 -6
  234. package/dist/tree/utils/dictUtil.js +2 -2
  235. package/dist/tree-select/index.d.ts +2 -3
  236. package/dist/tree-select/index.js +16 -8
  237. package/dist/typography/Base/Ellipsis.js +2 -1
  238. package/dist/typography/Base/index.js +6 -3
  239. package/dist/typography/Editable.js +2 -1
  240. package/dist/upload/Dragger.js +2 -4
  241. package/dist/upload/Upload.d.ts +0 -1
  242. package/dist/upload/Upload.js +2 -2
  243. package/dist/upload/UploadList/ListItem.d.ts +1 -0
  244. package/dist/upload/UploadList/ListItem.js +15 -9
  245. package/dist/upload/UploadList/index.js +1 -0
  246. package/dist/upload/interface.d.ts +6 -7
  247. package/dist/version/token.json +1 -1
  248. package/package.json +26 -26
  249. package/web-tags.json +1383 -1377
  250. package/web-types.json +4046 -4165
@@ -1,6 +1,6 @@
1
1
  import { devUseWarning, isDev } from "../_util/warning.js";
2
2
  import { useComponentBaseConfig } from "../config-provider/context.js";
3
- import { getAttrStyleAndClass as getAttrStyleAndClass$1, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
3
+ import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
4
4
  import { toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
5
5
  import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
6
6
  import { useDisabledContext } from "../config-provider/DisabledContext.js";
@@ -75,7 +75,7 @@ const InternalRadio = /* @__PURE__ */ defineComponent((props, { slots, expose, a
75
75
  });
76
76
  return () => {
77
77
  const { rootClass, title } = props;
78
- const { className, style, restAttrs } = getAttrStyleAndClass$1(attrs);
78
+ const { className, style, restAttrs } = getAttrStyleAndClass(attrs);
79
79
  const wrapperClassString = clsx(`${prefixCls.value}-wrapper`, {
80
80
  [`${prefixCls.value}-wrapper-checked`]: mergedChecked.value,
81
81
  [`${prefixCls.value}-wrapper-disabled`]: radioProps.value.disabled,
@@ -2,7 +2,7 @@ import { SizeType } from "../config-provider/SizeContext.js";
2
2
  import { TooltipProps } from "../tooltip/index.js";
3
3
  import { RateProps as RateProps$1 } from "@v-c/rate";
4
4
  //#region src/rate/index.d.ts
5
- interface RateProps extends Omit<RateProps$1, 'onChange' | 'onHoverChange' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'onMouseLeave' | 'onUpdate:value'>, RateEmitsProps {
5
+ interface RateProps extends Omit<RateProps$1, 'onChange' | 'onHoverChange' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'onMouseLeave' | 'onUpdate:value' | 'direction'>, RateEmitsProps {
6
6
  rootClass?: string;
7
7
  size?: SizeType;
8
8
  tooltips?: (TooltipProps | string)[];
@@ -47,7 +47,7 @@ const Rate = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose }) =>
47
47
  "character": character,
48
48
  "disabled": mergedDisabled,
49
49
  "characterRender": characterRender
50
- }, restAttrs, omit(restProps, ["characterRender"]), {
50
+ }, restAttrs, omit(restProps, ["characterRender", "size"]), {
51
51
  "class": clsx({
52
52
  [`${ratePrefixCls.value}-large`]: mergedSize.value === "large",
53
53
  [`${ratePrefixCls.value}-small`]: mergedSize.value === "small"
@@ -115,10 +115,6 @@ const Rate = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose }) =>
115
115
  required: false,
116
116
  default: void 0
117
117
  },
118
- direction: {
119
- type: String,
120
- required: false
121
- },
122
118
  tabIndex: {
123
119
  type: [Number, String],
124
120
  required: false
@@ -1,13 +1,14 @@
1
1
  import { useComponentBaseConfig } from "../config-provider/context.js";
2
- import { useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
2
+ import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
3
3
  import { clsx as clsx$1, getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
4
+ import { isRenderable } from "../_util/is.js";
4
5
  import NoFound from "./noFound.js";
5
6
  import ServerError from "./serverError.js";
6
7
  import style_default from "./style/index.js";
7
8
  import Unauthorized from "./unauthorized.js";
8
9
  import { computed, createVNode, defineComponent, mergeDefaults, mergeProps, shallowRef } from "vue";
9
10
  import { classNames } from "@v-c/util";
10
- import { filterEmpty, getAttrStyleAndClass } from "@v-c/util/dist/props-util";
11
+ import { filterEmpty } from "@v-c/util/dist/props-util";
11
12
  import { CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled, WarningFilled } from "@antdv-next/icons";
12
13
  import pickAttrs from "@v-c/util/dist/pickAttrs";
13
14
  //#region src/result/index.tsx
@@ -33,7 +34,7 @@ const Icon = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
33
34
  }
34
35
  const iconNode = createVNode(IconMap[status]);
35
36
  if (icon === null || icon === false) return null;
36
- return createVNode("div", attrs, [icon || iconNode]);
37
+ return createVNode("div", attrs, [isRenderable(icon) ? icon : iconNode]);
37
38
  };
38
39
  }, {
39
40
  props: /*@__PURE__*/ mergeDefaults({
@@ -89,8 +89,14 @@ const InternalSegmented = /* @__PURE__ */ defineComponent((props, { attrs, emit,
89
89
  };
90
90
  }, {
91
91
  props: /*@__PURE__*/ mergeDefaults({
92
- value: { required: false },
93
- defaultValue: { required: false },
92
+ value: {
93
+ type: [String, Number],
94
+ required: false
95
+ },
96
+ defaultValue: {
97
+ type: [String, Number],
98
+ required: false
99
+ },
94
100
  options: {
95
101
  type: Array,
96
102
  required: true
@@ -29,7 +29,6 @@ interface InternalSelectProps extends ComponentBaseProps, Omit<SelectProps$1, 'm
29
29
  */
30
30
  showArrow?: boolean;
31
31
  /**
32
- * @since 5.13.0
33
32
  * @default "outlined"
34
33
  */
35
34
  variant?: Variant;
@@ -82,9 +81,9 @@ interface SelectProps extends Omit<InternalSelectProps, 'mode' | 'getInputElemen
82
81
  placement?: SelectCommonPlacement;
83
82
  mode?: 'multiple' | 'tags';
84
83
  status?: InputStatus;
85
- /** @deprecated Please use `classNames.popup.root` instead */
84
+ /** @deprecated Please use `classes.popup.root` instead */
86
85
  popupClassName?: string;
87
- /** @deprecated Please use `classNames.popup.root` instead */
86
+ /** @deprecated Please use `classes.popup.root` instead */
88
87
  dropdownClassName?: string;
89
88
  /** @deprecated Please use `styles.popup` instead */
90
89
  dropdownStyle?: CSSProperties;
@@ -102,8 +102,8 @@ const Select = /* @__PURE__ */ defineComponent((props, { slots, emit, expose, at
102
102
  Object.entries({
103
103
  dropdownMatchSelectWidth: "popupMatchSelectWidth",
104
104
  dropdownStyle: "styles.popup.root",
105
- dropdownClassName: "classNames.popup.root",
106
- popupClassName: "classNames.popup.root",
105
+ dropdownClassName: "classes.popup.root",
106
+ popupClassName: "classes.popup.root",
107
107
  dropdownRender: "popupRender",
108
108
  onDropdownVisibleChange: "onOpenChange",
109
109
  bordered: "variant"
@@ -18,8 +18,8 @@ const Element = /* @__PURE__ */ defineComponent((props, { attrs }) => {
18
18
  [`${prefixCls}-round`]: shape === "round"
19
19
  });
20
20
  const sizeStyle = typeof size === "number" ? {
21
- width: size,
22
- height: size,
21
+ width: `${size}px`,
22
+ height: `${size}px`,
23
23
  lineHeight: `${size}px`
24
24
  } : {};
25
25
  return createVNode("span", {
@@ -153,7 +153,10 @@ const SliderTooltip = /* @__PURE__ */ defineComponent((props, { slots }) => {
153
153
  type: Function,
154
154
  required: false
155
155
  },
156
- motion: { required: false },
156
+ motion: {
157
+ type: Object,
158
+ required: false
159
+ },
157
160
  rootClass: {
158
161
  type: String,
159
162
  required: false
@@ -86,6 +86,7 @@ interface SliderInternalProps extends SliderBaseProps, SliderEmitsProps {
86
86
  }
87
87
  interface SliderEmits {
88
88
  'change': (value: any) => void;
89
+ /** @deprecated Please use `changeComplete` instead */
89
90
  'afterChange': (value: any) => void;
90
91
  'update:value': (value: any) => void;
91
92
  'changeComplete': (value: any) => void;
@@ -181,9 +181,8 @@ const Slider = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose })
181
181
  }, {
182
182
  props: {
183
183
  range: {
184
- type: Boolean,
184
+ type: [Boolean, Object],
185
185
  required: false,
186
- skipCheck: true,
187
186
  default: void 0
188
187
  },
189
188
  value: {
@@ -306,7 +305,10 @@ const Slider = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose })
306
305
  required: false,
307
306
  default: void 0
308
307
  },
309
- ariaValueTextFormatterForHandle: { required: false }
308
+ ariaValueTextFormatterForHandle: {
309
+ type: [Function, Array],
310
+ required: false
311
+ }
310
312
  },
311
313
  emits: [
312
314
  "change",
@@ -21,7 +21,7 @@ interface SpaceCompactItemContextType {
21
21
  declare function useSpaceCompactItemContext(): Ref<SpaceCompactItemContextType | null, SpaceCompactItemContextType | null>;
22
22
  declare function useCompactItemContext(prefixCls: Ref<string>, direction: Ref<DirectionType>): {
23
23
  compactSize: import("vue").ComputedRef<SizeType>;
24
- compactDirection: import("vue").ComputedRef<"vertical" | "horizontal" | undefined>;
24
+ compactDirection: import("vue").ComputedRef<"horizontal" | "vertical" | undefined>;
25
25
  compactItemClassnames: import("vue").ComputedRef<string>;
26
26
  };
27
27
  declare const NoCompactStyle: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import("vue").PublicProps>;
@@ -1,7 +1,7 @@
1
1
  import { devUseWarning, isDev } from "../_util/warning.js";
2
2
  import { useComponentBaseConfig, useComponentConfig } from "../config-provider/context.js";
3
3
  import { useSize } from "../config-provider/hooks/useSize.js";
4
- import { getAttrStyleAndClass as getAttrStyleAndClass$1, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
4
+ import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
5
5
  import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
6
6
  import Indicator from "./Indicator/index.js";
7
7
  import style_default from "./style/index.js";
@@ -60,7 +60,7 @@ const Spin = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose }) =
60
60
  const description = getSlotPropsFnRun(slots, props, "description");
61
61
  const tip = getSlotPropsFnRun(slots, props, "tip");
62
62
  const mergedDescription = description ?? tip;
63
- const { style, className, restAttrs } = getAttrStyleAndClass$1(attrs);
63
+ const { style, className, restAttrs } = getAttrStyleAndClass(attrs);
64
64
  if (isDev) {
65
65
  warning.deprecated(size !== "default", "size=\"default\"", "size=\"medium\"");
66
66
  warning.deprecated(!props.tip && !slots.tip, "tip", "description");
@@ -1,16 +1,20 @@
1
+ import { normalizeStyle as normalizeStyle$1 } from "../_util/styleUtils.js";
1
2
  import { createVNode, defineComponent, mergeProps } from "vue";
2
3
  import { clsx } from "@v-c/util";
3
4
  //#region src/splitter/Panel.tsx
4
5
  const InternalPanel = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
5
6
  return () => {
6
- const { prefixCls, class: className, size, style = {}, destroyOnHidden } = props;
7
+ const { prefixCls, class: className, size, style = {}, destroyOnHidden, supportMotion } = props;
7
8
  const isHidden = size === 0;
8
- const panelClassName = clsx(`${prefixCls}-panel`, { [`${prefixCls}-panel-hidden`]: isHidden }, className);
9
+ const panelClassName = clsx(`${prefixCls}-panel`, {
10
+ [`${prefixCls}-panel-hidden`]: isHidden,
11
+ [`${prefixCls}-panel-transition`]: supportMotion
12
+ }, className);
9
13
  const hasSize = size !== void 0;
10
14
  return createVNode("div", mergeProps(attrs, {
11
15
  "class": panelClassName,
12
16
  "style": {
13
- ...style,
17
+ ...normalizeStyle$1(style) || {},
14
18
  flexBasis: hasSize ? typeof size === "number" ? `${size}px` : size : "auto",
15
19
  flexGrow: hasSize ? 0 : 1
16
20
  }
@@ -26,6 +30,11 @@ const InternalPanel = /* @__PURE__ */ defineComponent((props, { slots, attrs })
26
30
  type: String,
27
31
  required: false
28
32
  },
33
+ supportMotion: {
34
+ type: Boolean,
35
+ required: false,
36
+ default: void 0
37
+ },
29
38
  style: {
30
39
  type: Object,
31
40
  required: false
@@ -215,7 +215,18 @@ const SplitBar = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
215
215
  type: Boolean,
216
216
  required: true
217
217
  },
218
- draggerIcon: { required: false },
218
+ draggerIcon: {
219
+ type: [
220
+ Function,
221
+ String,
222
+ Number,
223
+ null,
224
+ Object,
225
+ Boolean
226
+ ],
227
+ required: false,
228
+ default: void 0
229
+ },
219
230
  collapsibleIcon: {
220
231
  type: Object,
221
232
  required: false
@@ -109,7 +109,8 @@ const Splitter = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose
109
109
  }
110
110
  }, {
111
111
  "prefixCls": prefixCls.value,
112
- "size": panelSizes.value[idx]
112
+ "size": panelSizes.value[idx],
113
+ "supportMotion": collapsible?.motion && movingIndex.value === void 0
113
114
  }), { default: () => [item._$slots?.default?.()] });
114
115
  let splitBar = null;
115
116
  const resizableInfo = resizableInfos.value[idx];
@@ -1,4 +1,20 @@
1
1
  //#region src/splitter/hooks/sizeUtil.ts
2
+ function fitPtgSizes(sizes, minSizes, maxSizes) {
3
+ const mergedMinSizes = sizes.map((size, index) => size === 0 ? 0 : minSizes[index] ?? 0);
4
+ const mergedMaxSizes = sizes.map((size, index) => size === 0 ? 0 : maxSizes[index] ?? 1);
5
+ const invalidLimits = mergedMinSizes.some((min, index) => min > mergedMaxSizes[index]);
6
+ const totalMin = mergedMinSizes.reduce((sum, size) => sum + size, 0);
7
+ const totalMax = mergedMaxSizes.reduce((sum, size) => sum + size, 0);
8
+ if (invalidLimits || totalMin > 1 || totalMax < 1) return sizes;
9
+ const result = sizes.map((size, index) => Math.min(mergedMaxSizes[index], Math.max(mergedMinSizes[index], size)));
10
+ const total = result.reduce((sum, size) => sum + size, 0);
11
+ if (total === 1) return result;
12
+ const grow = total < 1;
13
+ const spaces = result.map((size, index) => grow ? mergedMaxSizes[index] - size : size - mergedMinSizes[index]);
14
+ const totalSpace = spaces.reduce((sum, space) => sum + space, 0);
15
+ const rest = 1 - total;
16
+ return result.map((size, index) => size + rest * (spaces[index] / totalSpace));
17
+ }
2
18
  function autoPtgSizes(ptgSizes, minPtgSizes, maxPtgSizes) {
3
19
  let currentTotalPtg = 0;
4
20
  const undefinedIndexes = [];
@@ -14,7 +30,7 @@ function autoPtgSizes(ptgSizes, minPtgSizes, maxPtgSizes) {
14
30
  return ptgSizes.map(() => avg);
15
31
  }
16
32
  const scale = 1 / currentTotalPtg;
17
- return ptgSizes.map((size) => size * scale);
33
+ return fitPtgSizes(ptgSizes.map((size) => size * scale), minPtgSizes, maxPtgSizes);
18
34
  }
19
35
  if (restPtg < 0) {
20
36
  const scale = 1 / currentTotalPtg;
@@ -46,9 +46,10 @@ interface SplitterProps extends ComponentBaseProps {
46
46
  vertical?: boolean;
47
47
  draggerIcon?: VueNode;
48
48
  /**
49
- * Collapse configuration. ant-design 6.4.0 PR #57044.
49
+ * Collapse configuration. Set `motion: true` to enable collapse animation.
50
50
  */
51
51
  collapsible?: {
52
+ motion?: boolean;
52
53
  icon?: {
53
54
  start?: VueNode;
54
55
  end?: VueNode;
@@ -98,6 +99,7 @@ interface PanelProps {
98
99
  interface InternalPanelProps extends PanelProps {
99
100
  class?: string;
100
101
  prefixCls?: string;
102
+ supportMotion?: boolean;
101
103
  }
102
104
  interface UseResizeProps {
103
105
  basicsState: number[];
@@ -1,5 +1,6 @@
1
1
  import { genFocusOutline, resetComponent } from "../../style/index.js";
2
2
  import { genCssVar, genStyleHooks } from "../../theme/util/genStyleUtils.js";
3
+ import { genNoMotionStyle } from "../../style/motion/util.js";
3
4
  //#region src/splitter/style/index.ts
4
5
  const centerStyle = {
5
6
  position: "absolute",
@@ -212,7 +213,11 @@ const genSplitterStyle = (token) => {
212
213
  padding: 0,
213
214
  overflow: "hidden"
214
215
  },
215
- [`&:has(${componentCls}:only-child)`]: { overflow: "hidden" }
216
+ [`&:has(${componentCls}:only-child)`]: { overflow: "hidden" },
217
+ "&-transition": {
218
+ transition: `flex-basis ${token.motionDurationSlow} ${token.motionEaseInOut}`,
219
+ ...genNoMotionStyle()
220
+ }
216
221
  }
217
222
  } };
218
223
  };
@@ -1,3 +1,4 @@
1
+ import { isNumber } from "../_util/is.js";
1
2
  import { createVNode, defineComponent } from "vue";
2
3
  //#region src/statistic/Number.tsx
3
4
  const StatisticNumber = /* @__PURE__ */ defineComponent((props) => {
@@ -14,7 +15,7 @@ const StatisticNumber = /* @__PURE__ */ defineComponent((props) => {
14
15
  let int = cells[2] || "0";
15
16
  let decimal = cells[4] || "";
16
17
  int = int.replace(/\B(?=(\d{3})+(?!\d))/g, groupSeparator);
17
- if (typeof precision === "number") decimal = decimal.padEnd(precision, "0").slice(0, precision > 0 ? precision : 0);
18
+ if (isNumber(precision)) decimal = decimal.padEnd(precision, "0").slice(0, precision > 0 ? precision : 0);
18
19
  if (decimal) decimal = `${decimalSeparator}${decimal}`;
19
20
  valueNode = [createVNode("span", {
20
21
  "key": "int",
@@ -1,7 +1,7 @@
1
1
  import { useComponentBaseConfig } from "../config-provider/context.js";
2
2
  import { useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
3
3
  import { clsx as clsx$1, getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
4
- import { isRenderable } from "../_util/is.js";
4
+ import { isFunction, isRenderable } from "../_util/is.js";
5
5
  import skeleton_default from "../skeleton/index.js";
6
6
  import StatisticNumber from "./Number.js";
7
7
  import style_default from "./style/index.js";
@@ -75,7 +75,7 @@ const Statistic = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit,
75
75
  "class": prefixClassNames,
76
76
  "style": mergedStyles.value.prefix
77
77
  }, [prefix]),
78
- valueRender ? valueRender(valueNode) : valueNode,
78
+ isFunction(valueRender) ? valueRender(valueNode) : valueNode,
79
79
  isRenderable(suffix) && createVNode("span", {
80
80
  "class": suffixClassNames,
81
81
  "style": mergedStyles.value.suffix
@@ -2,8 +2,8 @@ import { devUseWarning, isDev } from "../_util/warning.js";
2
2
  import { useComponentBaseConfig } from "../config-provider/context.js";
3
3
  import { useSize } from "../config-provider/hooks/useSize.js";
4
4
  import { genCssVar } from "../theme/util/genStyleUtils.js";
5
- import { useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
6
- import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
5
+ import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
6
+ import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
7
7
  import InternalTooltip from "../tooltip/index.js";
8
8
  import { TARGET_CLS } from "../_util/wave/interface.js";
9
9
  import wave_default from "../_util/wave/index.js";
@@ -15,7 +15,6 @@ import style_default from "./style/index.js";
15
15
  import useDisplaySteps from "./useDisplaySteps.js";
16
16
  import { Fragment, computed, createVNode, defineComponent, isVNode, mergeDefaults, mergeProps } from "vue";
17
17
  import { clsx } from "@v-c/util";
18
- import { getAttrStyleAndClass } from "@v-c/util/dist/props-util";
19
18
  import { CheckOutlined } from "@antdv-next/icons";
20
19
  import VcSteps from "@v-c/steps";
21
20
  //#region src/steps/index.tsx
@@ -26,7 +25,7 @@ const waveEffectClassNames = { itemIcon: TARGET_CLS };
26
25
  const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) => {
27
26
  const internalContent = useInternalContext();
28
27
  const { direction: rtlDirection, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, prefixCls, rootPrefixCls } = useComponentBaseConfig("steps", props);
29
- const { size, items, responsive, type, classes, styles } = toPropsRefs$1(props, "size", "items", "responsive", "type", "classes", "styles");
28
+ const { size, items, responsive, type, classes, styles } = toPropsRefs(props, "size", "items", "responsive", "type", "classes", "styles");
30
29
  const components = computed(() => {
31
30
  return {
32
31
  root: internalContent.value?.rootComponent,
@@ -27,12 +27,10 @@ interface SwitchProps extends ComponentBaseProps, SwitchEmitsProps {
27
27
  defaultChecked?: CheckedValueType;
28
28
  /**
29
29
  * Alias for `checked`.
30
- * @since 5.12.0
31
30
  */
32
31
  value?: CheckedValueType;
33
32
  /**
34
33
  * Alias for `defaultChecked`.
35
- * @since 5.12.0
36
34
  */
37
35
  defaultValue?: CheckedValueType;
38
36
  /**
@@ -9,7 +9,11 @@ interface ColumnSlots {
9
9
  default?: () => any;
10
10
  }
11
11
  /**
12
- * Syntactic sugar for `columns` prop. HOC will not work on this.
12
+ * Syntactic sugar for the `columns` prop.
13
+ *
14
+ * Kebab-case template attributes (`data-index`, `min-width`, ...) are
15
+ * remapped to the camelCase field names the table understands in
16
+ * `convertColumnsToColumnProps` (see `./utils.ts`).
13
17
  */
14
18
  declare const Column: import("vue").DefineSetupFnComponent<ColumnProps<AnyObject>, EmptyEmit, SlotsType<ColumnSlots>, ColumnProps<AnyObject>, import("vue").PublicProps>;
15
19
  //#endregion
@@ -1,7 +1,11 @@
1
1
  import { defineComponent } from "vue";
2
2
  //#region src/table/Column.tsx
3
3
  /**
4
- * Syntactic sugar for `columns` prop. HOC will not work on this.
4
+ * Syntactic sugar for the `columns` prop.
5
+ *
6
+ * Kebab-case template attributes (`data-index`, `min-width`, ...) are
7
+ * remapped to the camelCase field names the table understands in
8
+ * `convertColumnsToColumnProps` (see `./utils.ts`).
5
9
  */
6
10
  const Column = /* @__PURE__ */ defineComponent(() => {
7
11
  return () => null;
@@ -13,6 +17,11 @@ const Column = /* @__PURE__ */ defineComponent(() => {
13
17
  required: false,
14
18
  skipCheck: true
15
19
  },
20
+ resizable: {
21
+ type: Boolean,
22
+ required: false,
23
+ default: void 0
24
+ },
16
25
  sorter: {
17
26
  type: [
18
27
  Boolean,
@@ -16,6 +16,11 @@ const ColumnGroup = /* @__PURE__ */ defineComponent(() => {
16
16
  required: false,
17
17
  skipCheck: true
18
18
  },
19
+ resizable: {
20
+ type: Boolean,
21
+ required: false,
22
+ default: void 0
23
+ },
19
24
  sorter: {
20
25
  type: [
21
26
  Boolean,
@@ -52,7 +52,7 @@ type TableStylesType<RecordType = AnyObject> = SemanticStylesType<TableProps<Rec
52
52
  header?: ComponentsSemanticStyles;
53
53
  pagination?: PaginationSemanticStyles;
54
54
  }>;
55
- interface TableProps<RecordType = AnyObject> extends ComponentBaseProps, Omit<TableProps$1<RecordType>, 'transformColumns' | 'internalHooks' | 'internalRefs' | 'data' | 'columns' | 'scroll' | 'emptyText' | 'className' | 'style' | 'classNames' | 'styles' | 'getPopupContainer' | 'onUpdate:expandedRowKeys' | 'onScroll'> {
55
+ interface TableProps<RecordType = AnyObject> extends ComponentBaseProps, Omit<TableProps$1<RecordType>, 'transformColumns' | 'internalHooks' | 'internalRefs' | 'data' | 'columns' | 'scroll' | 'emptyText' | 'className' | 'style' | 'classNames' | 'styles' | 'getPopupContainer' | 'onUpdate:expandedRowKeys' | 'onScroll' | 'onResizeColumn'> {
56
56
  classes?: TableClassNamesType<RecordType>;
57
57
  styles?: TableStylesType<RecordType>;
58
58
  dropdownPrefixCls?: string;
@@ -80,12 +80,15 @@ interface TableEmits<RecordType = AnyObject> {
80
80
  'change': (pagination: TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult<RecordType> | SorterResult<RecordType>[], extra: TableCurrentDataSource<RecordType>) => void;
81
81
  'update:expandedRowKeys': (keys: readonly Key[]) => void;
82
82
  'scroll': NonNullable<TableProps$1['onScroll']>;
83
+ /** Fired once per drag on a `resizable` column. `columnKey` is the key the width is tracked by (the column `key`, or its position when unset). */
84
+ 'resizeColumn': (width: number, column: ColumnType$1<RecordType>, columnKey: Key) => void;
83
85
  }
84
86
  interface TableExpose extends Reference {}
85
87
  interface TableEmitsProps<RecordType = AnyObject> {
86
88
  onChange?: TableEmits<RecordType>['change'];
87
89
  'onUpdate:expandedRowKeys'?: TableEmits<RecordType>['update:expandedRowKeys'];
88
90
  onScroll?: TableEmits<RecordType>['scroll'];
91
+ onResizeColumn?: TableEmits<RecordType>['resizeColumn'];
89
92
  }
90
93
  interface TableSlots<RecordType = AnyObject> {
91
94
  default?: () => any;
@@ -2,8 +2,8 @@ import { devUseWarning, isDev } from "../_util/warning.js";
2
2
  import { useComponentBaseConfig, useConfig } from "../config-provider/context.js";
3
3
  import { useSize } from "../config-provider/hooks/useSize.js";
4
4
  import useToken from "../theme/useToken.js";
5
- import { useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
6
- import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
5
+ import { getAttrStyleAndClass, mergeClassNames, mergeStyles, resolveStyleOrClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
6
+ import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
7
7
  import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
8
8
  import { TableMeasureRowContextProvider } from "./TableMeasureRowContext.js";
9
9
  import ConfigProvider from "../config-provider/index.js";
@@ -30,7 +30,6 @@ import style_default from "./style/index.js";
30
30
  import { convertColumnsToColumnProps } from "./utils.js";
31
31
  import { computed, createVNode, defineComponent, h, inject, isVNode, mergeDefaults, mergeProps, provide, shallowRef, watch, watchEffect } from "vue";
32
32
  import { clsx } from "@v-c/util";
33
- import { getAttrStyleAndClass } from "@v-c/util/dist/props-util";
34
33
  import { omit } from "es-toolkit";
35
34
  import pickAttrs from "@v-c/util/dist/pickAttrs";
36
35
  import VcTable, { INTERNAL_HOOKS, VirtualTable } from "@v-c/table";
@@ -82,7 +81,7 @@ const InternalTable = /* @__PURE__ */ defineComponent((props, { slots, emit, att
82
81
  }
83
82
  };
84
83
  });
85
- const { classes, styles } = toPropsRefs$1(props, "classes", "styles");
84
+ const { classes, styles } = toPropsRefs(props, "classes", "styles");
86
85
  const mergedSize = useSize(computed(() => props.size));
87
86
  const mergedProps = computed(() => {
88
87
  return {
@@ -191,9 +190,9 @@ const InternalTable = /* @__PURE__ */ defineComponent((props, { slots, emit, att
191
190
  globalLocale
192
191
  });
193
192
  const sortedData = computed(() => getSortData(rawData.value, sortStates.value, childrenColumnName.value));
194
- const filterStates = shallowRef(collectFilterStates(mergedColumns.value, true));
193
+ const filterStates = shallowRef(collectFilterStates(baseColumns.value ?? mergedColumns.value, true));
195
194
  const filterStateWarning = isDev ? devUseWarning("Table") : void 0;
196
- const mergedFilterStates = computed(() => getMergedFilterStates(mergedColumns.value, filterStates.value, filterStateWarning));
195
+ const mergedFilterStates = computed(() => getMergedFilterStates(mergedColumns.value, filterStates.value, filterStateWarning, baseColumns.value));
197
196
  const filters = computed(() => generateFilterInfo(mergedFilterStates.value));
198
197
  const onFilterChange = (filters, filterStates) => {
199
198
  triggerOnChange({
@@ -340,12 +339,18 @@ const InternalTable = /* @__PURE__ */ defineComponent((props, { slots, emit, att
340
339
  if (typeof expandable.indentSize !== "number") expandable.indentSize = typeof props.indentSize === "number" ? props.indentSize : 15;
341
340
  return expandable;
342
341
  })();
343
- const renderPagination = (placement = "end") => createVNode(pagination_default, mergeProps(mergedPagination.value, {
344
- "classes": mergedClassNames.value.pagination,
345
- "styles": mergedStyles.value.pagination,
346
- "class": clsx(`${prefixCls.value}-pagination`, `${prefixCls.value}-pagination-${placement}`, mergedPagination.value.class, mergedPagination.value.className),
347
- "size": getPaginationSize(mergedPagination.value.size, mergedSize.value)
348
- }), null);
342
+ const renderPagination = (placement = "end") => {
343
+ const paginationProps = mergedPagination.value;
344
+ const paginationSize = getPaginationSize(paginationProps.size, mergedSize.value);
345
+ const paginationClasses = (info) => mergeClassNames({}, mergedClassNames.value.pagination, resolveStyleOrClass(paginationProps.classes, info));
346
+ const paginationStyles = (info) => mergeStyles(resolveStyleOrClass(paginationProps.styles, info), mergedStyles.value.pagination);
347
+ return createVNode(pagination_default, mergeProps(paginationProps, {
348
+ "classes": paginationClasses,
349
+ "styles": paginationStyles,
350
+ "class": clsx(`${prefixCls.value}-pagination`, `${prefixCls.value}-pagination-${placement}`),
351
+ "size": paginationSize
352
+ }), null);
353
+ };
349
354
  const paginationNodes = (() => {
350
355
  if (props.pagination === false || !mergedPagination.value.total) return {
351
356
  top: null,
@@ -406,7 +411,7 @@ const InternalTable = /* @__PURE__ */ defineComponent((props, { slots, emit, att
406
411
  "styles": mergedStyles.value,
407
412
  "expandable": mergedExpandableConfig,
408
413
  "prefixCls": prefixCls.value,
409
- "direction": props.direction ?? direction.value,
414
+ "direction": direction.value,
410
415
  "headerCell": slots.headerCell || contextHeaderCell.value || props.headerCell ? renderHeaderCell : void 0,
411
416
  "bodyCell": slots.bodyCell || props.bodyCell || contextBodyCell.value || configCtx.value?.transformCellText ? renderBodyCell : void 0,
412
417
  "className": tableClassName,
@@ -419,7 +424,8 @@ const InternalTable = /* @__PURE__ */ defineComponent((props, { slots, emit, att
419
424
  "title": title,
420
425
  "footer": footer,
421
426
  "summary": summary,
422
- "onUpdate:expandedRowKeys": (keys) => emit("update:expandedRowKeys", keys)
427
+ "onUpdate:expandedRowKeys": (keys) => emit("update:expandedRowKeys", keys),
428
+ "onResizeColumn": (width, column, columnKey) => emit("resizeColumn", width, column, columnKey)
423
429
  }), null),
424
430
  paginationNodes.bottom
425
431
  ] })]);
@@ -512,9 +518,12 @@ const InternalTable = /* @__PURE__ */ defineComponent((props, { slots, emit, att
512
518
  required: false
513
519
  },
514
520
  rowKey: {
515
- type: [String, Function],
516
- required: false,
517
- skipCheck: true
521
+ type: [
522
+ String,
523
+ Number,
524
+ Function
525
+ ],
526
+ required: false
518
527
  },
519
528
  tableLayout: {
520
529
  type: String,
@@ -651,7 +660,8 @@ const InternalTable = /* @__PURE__ */ defineComponent((props, { slots, emit, att
651
660
  emits: [
652
661
  "change",
653
662
  "update:expandedRowKeys",
654
- "scroll"
663
+ "scroll",
664
+ "resizeColumn"
655
665
  ],
656
666
  name: "AInternalTable",
657
667
  inheritAttrs: false