antdv-next 1.8.1 → 1.8.3

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 (198) hide show
  1. package/dist/_util/PurePanel.js +1 -1
  2. package/dist/_util/hooks/index.js +1 -1
  3. package/dist/_util/hooks/useClosable.d.ts +3 -3
  4. package/dist/_util/hooks/useClosable.js +9 -9
  5. package/dist/_util/hooks/useZIndex.js +14 -15
  6. package/dist/_util/vueNode.d.ts +6 -2
  7. package/dist/affix/index.js +27 -12
  8. package/dist/alert/Alert.d.ts +2 -2
  9. package/dist/alert/Alert.js +3 -3
  10. package/dist/alert/style/index.js +14 -8
  11. package/dist/anchor/Anchor.js +3 -1
  12. package/dist/antd-with-locales.esm.js +19634 -19203
  13. package/dist/antd-with-locales.js +112 -112
  14. package/dist/antd.css +1 -1
  15. package/dist/antd.esm.js +17697 -17268
  16. package/dist/antd.js +113 -113
  17. package/dist/app/App.js +2 -2
  18. package/dist/auto-complete/index.js +2 -2
  19. package/dist/avatar/Avatar.js +2 -2
  20. package/dist/avatar/AvatarGroup.js +1 -1
  21. package/dist/badge/Ribbon.js +1 -1
  22. package/dist/badge/index.d.ts +4 -1
  23. package/dist/badge/index.js +6 -6
  24. package/dist/border-beam/BorderBeam.js +1 -1
  25. package/dist/breadcrumb/Breadcrumb.js +2 -2
  26. package/dist/button/Button.js +1 -1
  27. package/dist/button/style/index.js +8 -2
  28. package/dist/calendar/generateCalendar.js +3 -3
  29. package/dist/card/Card.js +2 -2
  30. package/dist/card/CardGrid.js +1 -1
  31. package/dist/card/CardMeta.js +1 -1
  32. package/dist/card/style/index.js +2 -2
  33. package/dist/carousel/index.js +2 -2
  34. package/dist/cascader/Panel.js +1 -1
  35. package/dist/cascader/index.js +4 -4
  36. package/dist/checkbox/Checkbox.js +3 -2
  37. package/dist/checkbox/Group.js +1 -1
  38. package/dist/collapse/Collapse.js +2 -2
  39. package/dist/color-picker/ColorPicker.js +6 -2
  40. package/dist/color-picker/ColorPickerPanel.js +4 -0
  41. package/dist/color-picker/components/ColorSlider.js +12 -4
  42. package/dist/color-picker/components/PanelPicker/GradientColorBar.js +2 -0
  43. package/dist/components.d.ts +12 -8
  44. package/dist/components.js +3 -3
  45. package/dist/config-provider/context.d.ts +5 -3
  46. package/dist/config-provider/context.js +3 -3
  47. package/dist/config-provider/define.d.ts +5 -1
  48. package/dist/config-provider/index.js +38 -4
  49. package/dist/date-picker/generatePicker/generateRangePicker.js +3 -3
  50. package/dist/date-picker/generatePicker/generateSinglePicker.js +3 -3
  51. package/dist/date-picker/hooks/useMergedPickerSemantic.js +1 -1
  52. package/dist/date-picker/style/panel.js +3 -5
  53. package/dist/descriptions/hooks/useItems.d.ts +2 -2
  54. package/dist/descriptions/hooks/useRow.js +1 -1
  55. package/dist/descriptions/index.js +2 -2
  56. package/dist/divider/index.js +1 -1
  57. package/dist/drawer/DrawerPanel.js +1 -1
  58. package/dist/drawer/index.js +3 -3
  59. package/dist/dropdown/dropdown.js +3 -3
  60. package/dist/empty/index.js +2 -1
  61. package/dist/float-button/BackTop.js +2 -2
  62. package/dist/float-button/FloatButton.js +1 -1
  63. package/dist/float-button/FloatButtonGroup.js +2 -2
  64. package/dist/float-button/PurePanel.js +1 -1
  65. package/dist/form/ErrorList.js +1 -1
  66. package/dist/form/Form.d.ts +17 -44
  67. package/dist/form/Form.js +56 -7
  68. package/dist/form/FormItem/ItemHolder.js +3 -3
  69. package/dist/form/FormItem/index.d.ts +3 -3
  70. package/dist/form/FormItem/index.js +1 -1
  71. package/dist/form/FormItemLabel.js +1 -1
  72. package/dist/form/context.d.ts +3 -3
  73. package/dist/form/hooks/useForm.d.ts +4 -5
  74. package/dist/form/hooks/useVariant.js +1 -1
  75. package/dist/form/index.d.ts +29 -3
  76. package/dist/form/index.js +6 -6
  77. package/dist/form/types.d.ts +15 -7
  78. package/dist/grid/col.js +1 -1
  79. package/dist/grid/row.js +1 -1
  80. package/dist/image/PreviewGroup.js +2 -2
  81. package/dist/image/index.d.ts +5 -5
  82. package/dist/image/index.js +9 -5
  83. package/dist/index.d.ts +14 -7
  84. package/dist/index.js +2 -2
  85. package/dist/input/Group.js +2 -2
  86. package/dist/input/Input.js +2 -2
  87. package/dist/input/OTP/OTPInput.js +1 -1
  88. package/dist/input/OTP/index.js +2 -2
  89. package/dist/input/Password.js +1 -1
  90. package/dist/input/Search.js +2 -2
  91. package/dist/input/TextArea.js +2 -2
  92. package/dist/input-number/index.js +3 -3
  93. package/dist/input-number/style/index.js +3 -2
  94. package/dist/layout/Sider.js +2 -2
  95. package/dist/layout/layout.js +2 -3
  96. package/dist/listy/index.js +1 -1
  97. package/dist/locale/id_ID.js +8 -6
  98. package/dist/locale/uz_UZ.js +12 -12
  99. package/dist/masonry/Masonry.js +1 -1
  100. package/dist/mentions/index.js +5 -4
  101. package/dist/menu/MenuDivider.js +1 -1
  102. package/dist/menu/MenuItem.js +1 -1
  103. package/dist/menu/index.d.ts +2 -1
  104. package/dist/menu/index.js +29 -5
  105. package/dist/menu/menu.js +42 -18
  106. package/dist/message/PurePanel.js +2 -2
  107. package/dist/message/index.js +11 -9
  108. package/dist/message/useMessage.js +2 -2
  109. package/dist/modal/ConfirmDialog.js +2 -2
  110. package/dist/modal/Modal.js +4 -4
  111. package/dist/modal/PurePanel.js +1 -1
  112. package/dist/modal/confirm.js +6 -8
  113. package/dist/modal/index.d.ts +2 -2
  114. package/dist/modal/interface.d.ts +1 -1
  115. package/dist/modal/useModal/index.js +9 -4
  116. package/dist/notification/PurePanel.js +2 -2
  117. package/dist/notification/index.js +8 -13
  118. package/dist/notification/useNotification.js +2 -2
  119. package/dist/package.js +1 -1
  120. package/dist/package.json.d.ts +1 -0
  121. package/dist/pagination/Pagination.js +4 -4
  122. package/dist/popconfirm/index.js +2 -2
  123. package/dist/popover/PurePanel.js +2 -2
  124. package/dist/popover/index.js +1 -1
  125. package/dist/progress/progress.js +3 -3
  126. package/dist/qrcode/index.js +3 -3
  127. package/dist/radio/group.js +2 -2
  128. package/dist/radio/radio.js +2 -2
  129. package/dist/rate/index.js +2 -2
  130. package/dist/result/index.js +1 -1
  131. package/dist/segmented/index.js +1 -1
  132. package/dist/segmented/style/index.js +3 -2
  133. package/dist/select/index.d.ts +1 -0
  134. package/dist/select/index.js +5 -5
  135. package/dist/skeleton/Avatar.js +1 -1
  136. package/dist/skeleton/Button.js +1 -1
  137. package/dist/skeleton/Element.js +1 -1
  138. package/dist/skeleton/Input.js +1 -1
  139. package/dist/skeleton/Node.js +1 -1
  140. package/dist/skeleton/Skeleton.js +1 -1
  141. package/dist/skeleton/style/index.js +9 -13
  142. package/dist/slider/SliderTooltip.js +0 -1
  143. package/dist/slider/index.d.ts +2 -0
  144. package/dist/slider/index.js +5 -1
  145. package/dist/space/Addon.js +1 -1
  146. package/dist/space/index.js +1 -1
  147. package/dist/spin/index.js +2 -2
  148. package/dist/splitter/Splitter.js +2 -2
  149. package/dist/statistic/Statistic.js +1 -1
  150. package/dist/statistic/Timer.d.ts +2 -2
  151. package/dist/statistic/Timer.js +1 -1
  152. package/dist/steps/index.js +5 -4
  153. package/dist/switch/index.js +2 -2
  154. package/dist/table/InternalTable.js +10 -4
  155. package/dist/table/hooks/useFilter/FilterDropdown.js +2 -2
  156. package/dist/table/hooks/usePagination.d.ts +1 -2
  157. package/dist/table/hooks/usePagination.js +1 -3
  158. package/dist/table/hooks/useSelection.js +1 -1
  159. package/dist/table/hooks/useSorter.js +26 -19
  160. package/dist/table/style/index.js +1 -0
  161. package/dist/table/style/size.js +1 -0
  162. package/dist/table/util.d.ts +1 -1
  163. package/dist/tabs/index.js +3 -3
  164. package/dist/tabs/style/index.js +5 -1
  165. package/dist/tag/CheckableTag.js +1 -1
  166. package/dist/tag/CheckableTagGroup.d.ts +0 -1
  167. package/dist/tag/CheckableTagGroup.js +0 -4
  168. package/dist/tag/hooks/useColor.d.ts +1 -1
  169. package/dist/tag/index.js +1 -1
  170. package/dist/theme/themes/dark/index.js +1 -1
  171. package/dist/theme/useToken.js +2 -2
  172. package/dist/timeline/Timeline.js +1 -1
  173. package/dist/timeline/useItems.js +1 -1
  174. package/dist/tooltip/PurePanel.js +1 -1
  175. package/dist/tooltip/index.js +2 -2
  176. package/dist/tour/index.js +5 -2
  177. package/dist/transfer/Section.js +1 -1
  178. package/dist/transfer/Transfer.js +3 -3
  179. package/dist/transfer/hooks/useSelection.js +2 -1
  180. package/dist/tree/DirectoryTree.js +6 -5
  181. package/dist/tree/Tree.js +4 -4
  182. package/dist/tree/utils/dictUtil.js +5 -8
  183. package/dist/tree-select/index.js +4 -4
  184. package/dist/typography/Base/index.js +5 -3
  185. package/dist/typography/Base/util.js +2 -1
  186. package/dist/typography/Editable.js +6 -2
  187. package/dist/typography/Typography.js +1 -1
  188. package/dist/upload/Upload.js +25 -16
  189. package/dist/upload/UploadList/ListItem.js +5 -1
  190. package/dist/upload/UploadList/index.js +19 -12
  191. package/dist/version/token.json +1 -1
  192. package/dist/watermark/index.d.ts +13 -4
  193. package/dist/watermark/index.js +11 -7
  194. package/dist/watermark/useRafDebounce.js +1 -2
  195. package/dist/watermark/utils.js +1 -1
  196. package/package.json +42 -41
  197. package/web-tags.json +22 -14
  198. package/web-types.json +46 -23
@@ -1,3 +1,4 @@
1
+ import { useComponentBaseConfig } from "../config-provider/context.js";
1
2
  import useToken from "../theme/useToken.js";
2
3
  import { WatermarkContextProvider } from "./context.js";
3
4
  import { getCanvasFont, getContentLines, getPixelRatio, reRendering } from "./utils.js";
@@ -27,10 +28,11 @@ const fixedStyle = {
27
28
  position: "relative",
28
29
  overflow: "hidden"
29
30
  };
30
- const Watermark = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose }) => {
31
+ const Watermark = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose, emit }) => {
32
+ const { class: contextClassName, style: contextStyle } = useComponentBaseConfig("watermark", props);
31
33
  const [, token] = useToken();
32
34
  const mergedZIndex = computed(() => props.zIndex ?? token.value.zIndexPopupBase - WATERMARK_Z_INDEX_OFFSET);
33
- const onRemove = computed(() => props.onRemove);
35
+ const onRemove = computed(() => () => emit("remove"));
34
36
  const color = computed(() => props.font?.color ?? token.value.colorFill);
35
37
  const fontSize = computed(() => props?.font?.fontSize ?? token.value?.fontSizeLG);
36
38
  const fontWeight = computed(() => props?.font?.fontWeight ?? 400);
@@ -54,6 +56,7 @@ const Watermark = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose
54
56
  const mergedStyle = computed(() => {
55
57
  return {
56
58
  ...fixedStyle,
59
+ ...contextStyle.value,
57
60
  ...attrs.style
58
61
  };
59
62
  });
@@ -200,7 +203,11 @@ const Watermark = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose
200
203
  const childNode = props.inherit ? createVNode(WatermarkContextProvider, watermarkContext, _isSlot(children) ? children : { default: () => [children] }) : children;
201
204
  return createVNode("div", mergeProps({
202
205
  "ref": container,
203
- "class": [props.rootClass, attrs.class]
206
+ "class": [
207
+ props.rootClass,
208
+ attrs.class,
209
+ contextClassName.value
210
+ ]
204
211
  }, omit(attrs, ["style", "class"]), { "style": mergedStyle.value }), [childNode]);
205
212
  };
206
213
  }, {
@@ -253,10 +260,6 @@ const Watermark = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose
253
260
  type: Boolean,
254
261
  required: false,
255
262
  default: void 0
256
- },
257
- onRemove: {
258
- type: [Function, null],
259
- required: false
260
263
  }
261
264
  }, {
262
265
  rotate: -22,
@@ -264,6 +267,7 @@ const Watermark = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose
264
267
  gap: [DEFAULT_GAP_X, DEFAULT_GAP_Y],
265
268
  font: {}
266
269
  }),
270
+ emits: ["remove"],
267
271
  name: "AWatermark",
268
272
  inheritAttrs: false
269
273
  });
@@ -6,13 +6,12 @@ import raf from "@v-c/util/dist/raf";
6
6
  */
7
7
  function useRafDebounce(callback) {
8
8
  const executeRef = shallowRef(false);
9
- const rafRef = shallowRef(null);
10
9
  const wrapperCallback = callback;
11
10
  return () => {
12
11
  if (executeRef.value) return;
13
12
  executeRef.value = true;
14
13
  wrapperCallback();
15
- rafRef.value = raf(() => {
14
+ raf(() => {
16
15
  executeRef.value = false;
17
16
  });
18
17
  };
@@ -19,7 +19,7 @@ function getFontSize(font, ratio = 1) {
19
19
  }
20
20
  function getCanvasFont(font, ratio = 1, lineHeight) {
21
21
  const mergedLineHeight = lineHeight === void 0 ? "" : `/${lineHeight}px`;
22
- return `${font.fontStyle} normal ${font.fontWeight} ${getFontSize(font, ratio)}px${mergedLineHeight} ${font.fontFamily}`;
22
+ return `${font.fontStyle === "none" ? "normal" : font.fontStyle} normal ${font.fontWeight} ${getFontSize(font, ratio)}px${mergedLineHeight} ${font.fontFamily}`;
23
23
  }
24
24
  /** Merge per-line font over the base font, ignoring `undefined` overrides. */
25
25
  function mergeFont(base, override) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "antdv-next",
3
3
  "type": "module",
4
- "version": "1.8.1",
4
+ "version": "1.8.3",
5
5
  "description": "Ant Design Vue3 Component Library",
6
6
  "author": {
7
7
  "email": "aibayanyu@gmail.com",
@@ -183,51 +183,51 @@
183
183
  "@ant-design/colors": "^8.0.1",
184
184
  "@ant-design/fast-color": "^3.0.1",
185
185
  "@antdv-next/icons": "^1.1.2",
186
- "@v-c/async-validator": "^1.0.2",
187
- "@v-c/cascader": "^1.1.6",
188
- "@v-c/checkbox": "^1.0.2",
189
- "@v-c/collapse": "^1.0.3",
190
- "@v-c/color-picker": "^1.0.8",
191
- "@v-c/dialog": "^1.2.1",
192
- "@v-c/drawer": "^1.0.8",
193
- "@v-c/dropdown": "^1.1.1",
194
- "@v-c/image": "^1.1.3",
195
- "@v-c/input": "^1.3.0",
196
- "@v-c/input-number": "^1.2.0",
197
- "@v-c/listy": "^1.2.0",
198
- "@v-c/mentions": "^1.3.0",
199
- "@v-c/menu": "^1.4.6",
200
- "@v-c/mutate-observer": "^1.0.3",
201
- "@v-c/notification": "^2.0.6",
202
- "@v-c/pagination": "^1.3.0",
203
- "@v-c/picker": "^1.7.0",
204
- "@v-c/progress": "^1.1.0",
205
- "@v-c/qrcode": "^1.0.2",
206
- "@v-c/rate": "^1.0.1",
207
- "@v-c/resize-observer": "^1.1.3",
208
- "@v-c/segmented": "^1.0.6",
209
- "@v-c/select": "^1.3.0",
210
- "@v-c/slick": "^1.0.3",
211
- "@v-c/slider": "^1.1.5",
212
- "@v-c/steps": "^1.0.3",
186
+ "@v-c/async-validator": "^1.0.3",
187
+ "@v-c/cascader": "^1.1.7",
188
+ "@v-c/checkbox": "^1.0.3",
189
+ "@v-c/collapse": "^1.0.4",
190
+ "@v-c/color-picker": "^1.1.0",
191
+ "@v-c/dialog": "^1.2.4",
192
+ "@v-c/drawer": "^1.0.10",
193
+ "@v-c/dropdown": "^1.1.2",
194
+ "@v-c/image": "^1.1.5",
195
+ "@v-c/input": "^1.3.2",
196
+ "@v-c/input-number": "^1.2.1",
197
+ "@v-c/listy": "^1.2.1",
198
+ "@v-c/mentions": "^1.3.1",
199
+ "@v-c/menu": "^1.4.9",
200
+ "@v-c/mutate-observer": "^1.0.4",
201
+ "@v-c/notification": "^2.0.8",
202
+ "@v-c/pagination": "^1.3.2",
203
+ "@v-c/picker": "^1.7.3",
204
+ "@v-c/progress": "^1.1.1",
205
+ "@v-c/qrcode": "^1.0.3",
206
+ "@v-c/rate": "^1.0.2",
207
+ "@v-c/resize-observer": "^1.1.4",
208
+ "@v-c/segmented": "^1.0.7",
209
+ "@v-c/select": "^1.3.1",
210
+ "@v-c/slick": "^1.0.4",
211
+ "@v-c/slider": "^1.1.7",
212
+ "@v-c/steps": "^1.0.5",
213
213
  "@v-c/switch": "^1.0.2",
214
- "@v-c/table": "^1.3.7",
215
- "@v-c/tabs": "^1.4.3",
216
- "@v-c/textarea": "^1.2.0",
217
- "@v-c/tooltip": "^1.1.4",
218
- "@v-c/tour": "^1.1.3",
219
- "@v-c/tree": "^1.2.3",
220
- "@v-c/tree-select": "^1.1.3",
221
- "@v-c/trigger": "^1.1.6",
222
- "@v-c/upload": "^1.1.1",
223
- "@v-c/util": "^1.4.0",
224
- "@v-c/virtual-list": "^1.1.5",
214
+ "@v-c/table": "^1.3.8",
215
+ "@v-c/tabs": "^1.4.5",
216
+ "@v-c/textarea": "^1.2.1",
217
+ "@v-c/tooltip": "^1.1.5",
218
+ "@v-c/tour": "^1.1.7",
219
+ "@v-c/tree": "^1.2.6",
220
+ "@v-c/tree-select": "^1.1.4",
221
+ "@v-c/trigger": "^1.1.7",
222
+ "@v-c/upload": "^1.1.3",
223
+ "@v-c/util": "^1.4.2",
224
+ "@v-c/virtual-list": "^1.1.8",
225
225
  "@vueuse/core": "^14.4.0",
226
226
  "dayjs": "^1.11.23",
227
227
  "es-toolkit": "1.52.0",
228
228
  "scroll-into-view-if-needed": "^3.1.0",
229
229
  "throttle-debounce": "^5.0.2",
230
- "@antdv-next/cssinjs": "^1.1.0"
230
+ "@antdv-next/cssinjs": "^1.2.0"
231
231
  },
232
232
  "web-types": "web-types.json",
233
233
  "browserslist": [
@@ -237,11 +237,12 @@
237
237
  ],
238
238
  "devDependencies": {
239
239
  "@types/throttle-debounce": "^5.0.2",
240
- "@v-c/portal": "^1.0.8",
240
+ "@v-c/portal": "^1.0.9",
241
241
  "csstype": "^3.2.3"
242
242
  },
243
243
  "scripts": {
244
244
  "test": "vitest run",
245
+ "typecheck": "vue-tsc --noEmit -p tsconfig.json",
245
246
  "build": "run-s build:esm build:vite:parallel build:verify build:p",
246
247
  "build:verify": "tsx ./scripts/verify-browser-bundle.ts",
247
248
  "build:p": "run-p build:web-types build:style build:token",
package/web-tags.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.8.1",
2
+ "version": "1.8.3",
3
3
  "tags": [
4
4
  {
5
5
  "name": "a-affix",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  {
39
39
  "name": "color",
40
- "description": "Default: -\n\n(ZH) 设置按钮的颜色\n\n(EN) Set button color"
40
+ "description": "Default: primary when variant=\"solid\"\n\n(ZH) 设置按钮的颜色\n\n(EN) Set button color"
41
41
  },
42
42
  {
43
43
  "name": "danger",
@@ -59,6 +59,10 @@
59
59
  "name": "html-type",
60
60
  "description": "Default: button\n\n(ZH) 设置 button 原生的 type 值,可选值请参考 HTML 标准\n\n(EN) Set the original html type of button, see: HTML Standard"
61
61
  },
62
+ {
63
+ "name": "icon",
64
+ "description": "Default: -\n\n(ZH) 设置按钮的图标组件\n\n(EN) Set the icon component of button"
65
+ },
62
66
  {
63
67
  "name": "icon-placement",
64
68
  "description": "Default: start\n\n(ZH) 设置按钮图标组件的位置\n\n(EN) Set the icon position of button"
@@ -101,6 +105,10 @@
101
105
  "name": "type",
102
106
  "description": "Default: info, in banner mode default is warning\n\n(ZH) 指定警告提示的样式,有四种选择 success、info、warning、error\n\n(EN) Type of Alert styles, options: success, info, warning, error"
103
107
  },
108
+ {
109
+ "name": "variant",
110
+ "description": "Default: outlined\n\n(ZH) 警告提示样式变体\n\n(EN) Variant of Alert style"
111
+ },
104
112
  {
105
113
  "name": "closable",
106
114
  "description": "Default: false\n\n(ZH) 可关闭配置\n\n(EN) The config of closable"
@@ -856,7 +864,7 @@
856
864
  "attributes": [
857
865
  {
858
866
  "name": "classes",
859
- "description": "Default: -\n\n(ZH) 语义化结构 class\n\n(EN) Semantic class names"
867
+ "description": "Default: -\n\n(ZH) 用于自定义组件内部各语义化结构的 class,支持对象或函数\n\n(EN) Customize class for each semantic structure inside the component. Supports object or function."
860
868
  },
861
869
  {
862
870
  "name": "group",
@@ -892,7 +900,7 @@
892
900
  },
893
901
  {
894
902
  "name": "styles",
895
- "description": "Default: -\n\n(ZH) 语义化结构 style\n\n(EN) Semantic inline styles"
903
+ "description": "Default: -\n\n(ZH) 用于自定义组件内部各语义化结构的行内 style,支持对象或函数\n\n(EN) Customize inline style for each semantic structure inside the component. Supports object or function."
896
904
  },
897
905
  {
898
906
  "name": "virtual",
@@ -2669,13 +2677,9 @@
2669
2677
  "name": "a-avatar-group",
2670
2678
  "description": "(ZH) 用来代表用户或事物,支持图片、图标或字符展示。\n\n(EN) Used to represent users or things, supporting the display of images, icons, or characters.",
2671
2679
  "attributes": [
2672
- {
2673
- "name": "prefix-cls",
2674
- "description": "Default: -\n\n(ZH) -\n\n(EN) -"
2675
- },
2676
2680
  {
2677
2681
  "name": "max",
2678
- "description": "Default: -\n\n(ZH) -\n\n(EN) -"
2682
+ "description": "Default: -\n\n(ZH) 设置最多显示相关配置\n\n(EN) Set maximum display related configurations"
2679
2683
  },
2680
2684
  {
2681
2685
  "name": "size",
@@ -2683,7 +2687,7 @@
2683
2687
  },
2684
2688
  {
2685
2689
  "name": "shape",
2686
- "description": "Default: circle\n\n(ZH) 指定头像的形状\n\n(EN) The shape of avatar"
2690
+ "description": "Default: circle\n\n(ZH) 设置头像的形状\n\n(EN) The shape of the avatar"
2687
2691
  }
2688
2692
  ]
2689
2693
  },
@@ -3289,6 +3293,10 @@
3289
3293
  "name": "reverse",
3290
3294
  "description": "Default: false\n\n(ZH) 反向坐标轴\n\n(EN) Reverse the component"
3291
3295
  },
3296
+ {
3297
+ "name": "start-point",
3298
+ "description": "Default: min\n\n(ZH) 单滑块模式下高亮轨道的起始值\n\n(EN) The start value of the highlighted track in single mode"
3299
+ },
3292
3300
  {
3293
3301
  "name": "step",
3294
3302
  "description": "Default: 1\n\n(ZH) 步长,取值必须大于 0,并且可被 (max - min) 整除。当 marks 不为空对象时,可以设置 step 为 null,此时 Slider 的可选值仅有 marks、min 和 max\n\n(EN) The granularity the slider can step through values. Must be greater than 0, and be divisible by (max - min). When step is null and marks exist, valid points will only be marks, min and max"
@@ -5323,7 +5331,7 @@
5323
5331
  },
5324
5332
  {
5325
5333
  "name": "height",
5326
- "description": "Default: -\n\n(ZH) 设置虚拟滚动容器高度,设置后内部节点不再支持横向滚动\n\n(EN) Config virtual scroll height. Will not support horizontal scroll when enabled"
5334
+ "description": "Default: -\n\n(ZH) height 为正数时,无论 virtual 如何设置,均限制树的纵向滚动区域的最大高度。省略 height 或将其设为 0 时,树的高度随内容增长。\n\n(EN) A positive value sets the maximum height of the Tree's vertical scroll area with either virtual setting. The Tree grows with its content when height is omitted or 0."
5327
5335
  },
5328
5336
  {
5329
5337
  "name": "icon",
@@ -5383,7 +5391,7 @@
5383
5391
  },
5384
5392
  {
5385
5393
  "name": "virtual",
5386
- "description": "Default: true\n\n(ZH) 设置 false 时关闭虚拟滚动\n\n(EN) Disable virtual scroll when set to false"
5394
+ "description": "Default: true\n\n(ZH) height 为正数时是否启用节点的虚拟渲染\n\n(EN) Whether to virtualize node rendering when height is positive"
5387
5395
  }
5388
5396
  ]
5389
5397
  },
@@ -5465,7 +5473,7 @@
5465
5473
  },
5466
5474
  {
5467
5475
  "name": "height",
5468
- "description": "Default: -\n\n(ZH) 设置虚拟滚动容器高度,设置后内部节点不再支持横向滚动\n\n(EN) Config virtual scroll height. Will not support horizontal scroll when enabled"
5476
+ "description": "Default: -\n\n(ZH) height 为正数时,无论 virtual 如何设置,均限制树的纵向滚动区域的最大高度。省略 height 或将其设为 0 时,树的高度随内容增长。\n\n(EN) A positive value sets the maximum height of the Tree's vertical scroll area with either virtual setting. The Tree grows with its content when height is omitted or 0."
5469
5477
  },
5470
5478
  {
5471
5479
  "name": "icon",
@@ -5525,7 +5533,7 @@
5525
5533
  },
5526
5534
  {
5527
5535
  "name": "virtual",
5528
- "description": "Default: true\n\n(ZH) 设置 false 时关闭虚拟滚动\n\n(EN) Disable virtual scroll when set to false"
5536
+ "description": "Default: true\n\n(ZH) height 为正数时是否启用节点的虚拟渲染\n\n(EN) Whether to virtualize node rendering when height is positive"
5529
5537
  }
5530
5538
  ]
5531
5539
  },
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.8.1",
4
+ "version": "1.8.3",
5
5
  "js-types-syntax": "typescript",
6
6
  "description-markup": "markdown",
7
7
  "framework": "vue",
@@ -98,6 +98,7 @@
98
98
  {
99
99
  "name": "color",
100
100
  "description": "(ZH) 设置按钮的颜色\n\n(EN) Set button color",
101
+ "default": "primary when variant=\"solid\"",
101
102
  "value": {
102
103
  "kind": "expression",
103
104
  "type": "default | primary | danger | PresetColors"
@@ -147,6 +148,14 @@
147
148
  "type": "submit | reset | button"
148
149
  }
149
150
  },
151
+ {
152
+ "name": "icon",
153
+ "description": "(ZH) 设置按钮的图标组件\n\n(EN) Set the icon component of button",
154
+ "value": {
155
+ "kind": "expression",
156
+ "type": "VueNode"
157
+ }
158
+ },
150
159
  {
151
160
  "name": "icon-placement",
152
161
  "description": "(ZH) 设置按钮图标组件的位置\n\n(EN) Set the icon position of button",
@@ -260,6 +269,15 @@
260
269
  "type": "'success' | 'info' | 'warning' | 'error'"
261
270
  }
262
271
  },
272
+ {
273
+ "name": "variant",
274
+ "description": "(ZH) 警告提示样式变体\n\n(EN) Variant of Alert style",
275
+ "default": "outlined",
276
+ "value": {
277
+ "kind": "expression",
278
+ "type": "outlined | filled"
279
+ }
280
+ },
263
281
  {
264
282
  "name": "closable",
265
283
  "description": "(ZH) 可关闭配置\n\n(EN) The config of closable",
@@ -1674,7 +1692,7 @@
1674
1692
  "slots": [
1675
1693
  {
1676
1694
  "name": "closeIcon",
1677
- "description": "(ZH) 自定义关闭按钮。设置为 null 或 false 时隐藏关闭按钮\n\n(EN) Custom close icon. Setting to null or false hides the close button"
1695
+ "description": "(ZH) 自定义关闭按钮\n\n(EN) Custom close icon"
1678
1696
  },
1679
1697
  {
1680
1698
  "name": "icon",
@@ -2114,10 +2132,10 @@
2114
2132
  "attributes": [
2115
2133
  {
2116
2134
  "name": "classes",
2117
- "description": "(ZH) 语义化结构 class\n\n(EN) Semantic class names",
2135
+ "description": "(ZH) 用于自定义组件内部各语义化结构的 class,支持对象或函数\n\n(EN) Customize class for each semantic structure inside the component. Supports object or function.",
2118
2136
  "value": {
2119
2137
  "kind": "expression",
2120
- "type": "{ root?, item?, groupHeader? }"
2138
+ "type": "Record<SemanticDOM, string> | (info: { props })=> Record<SemanticDOM, string>"
2121
2139
  }
2122
2140
  },
2123
2141
  {
@@ -2189,10 +2207,10 @@
2189
2207
  },
2190
2208
  {
2191
2209
  "name": "styles",
2192
- "description": "(ZH) 语义化结构 style\n\n(EN) Semantic inline styles",
2210
+ "description": "(ZH) 用于自定义组件内部各语义化结构的行内 style,支持对象或函数\n\n(EN) Customize inline style for each semantic structure inside the component. Supports object or function.",
2193
2211
  "value": {
2194
2212
  "kind": "expression",
2195
- "type": "{ root?, item?, groupHeader? }"
2213
+ "type": "Record<SemanticDOM, CSSProperties> | (info: { props })=> Record<SemanticDOM, CSSProperties>"
2196
2214
  }
2197
2215
  },
2198
2216
  {
@@ -6671,6 +6689,10 @@
6671
6689
  ]
6672
6690
  },
6673
6691
  "slots": [
6692
+ {
6693
+ "name": "default",
6694
+ "description": "(ZH) 头像显示的内容\n\n(EN) Content of the avatar"
6695
+ },
6674
6696
  {
6675
6697
  "name": "icon",
6676
6698
  "description": "(ZH) 设置头像的自定义图标\n\n(EN) Custom icon type for an icon avatar"
@@ -6690,20 +6712,12 @@
6690
6712
  "symbol": "AvatarGroup"
6691
6713
  },
6692
6714
  "attributes": [
6693
- {
6694
- "name": "prefix-cls",
6695
- "description": "(ZH) -\n\n(EN) -",
6696
- "value": {
6697
- "kind": "expression",
6698
- "type": "string"
6699
- }
6700
- },
6701
6715
  {
6702
6716
  "name": "max",
6703
- "description": "(ZH) -\n\n(EN) -",
6717
+ "description": "(ZH) 设置最多显示相关配置\n\n(EN) Set maximum display related configurations",
6704
6718
  "value": {
6705
6719
  "kind": "expression",
6706
- "type": "{ count?: number style?: CSSProperties popover?: PopoverProps }"
6720
+ "type": "{ count?: number; style?: CSSProperties; popover?: PopoverProps }"
6707
6721
  }
6708
6722
  },
6709
6723
  {
@@ -6712,16 +6726,16 @@
6712
6726
  "default": "medium",
6713
6727
  "value": {
6714
6728
  "kind": "expression",
6715
- "type": "AvatarSize"
6729
+ "type": "number | large | medium | small | { xs: number, sm: number, ... }"
6716
6730
  }
6717
6731
  },
6718
6732
  {
6719
6733
  "name": "shape",
6720
- "description": "(ZH) 指定头像的形状\n\n(EN) The shape of avatar",
6734
+ "description": "(ZH) 设置头像的形状\n\n(EN) The shape of the avatar",
6721
6735
  "default": "circle",
6722
6736
  "value": {
6723
6737
  "kind": "expression",
6724
- "type": "'circle' | 'square'"
6738
+ "type": "circle | square"
6725
6739
  }
6726
6740
  }
6727
6741
  ],
@@ -8280,6 +8294,15 @@
8280
8294
  "type": "boolean"
8281
8295
  }
8282
8296
  },
8297
+ {
8298
+ "name": "start-point",
8299
+ "description": "(ZH) 单滑块模式下高亮轨道的起始值\n\n(EN) The start value of the highlighted track in single mode",
8300
+ "default": "min",
8301
+ "value": {
8302
+ "kind": "expression",
8303
+ "type": "number"
8304
+ }
8305
+ },
8283
8306
  {
8284
8307
  "name": "step",
8285
8308
  "description": "(ZH) 步长,取值必须大于 0,并且可被 (max - min) 整除。当 marks 不为空对象时,可以设置 step 为 null,此时 Slider 的可选值仅有 marks、min 和 max\n\n(EN) The granularity the slider can step through values. Must be greater than 0, and be divisible by (max - min). When step is null and marks exist, valid points will only be marks, min and max",
@@ -13851,7 +13874,7 @@
13851
13874
  },
13852
13875
  {
13853
13876
  "name": "height",
13854
- "description": "(ZH) 设置虚拟滚动容器高度,设置后内部节点不再支持横向滚动\n\n(EN) Config virtual scroll height. Will not support horizontal scroll when enabled",
13877
+ "description": "(ZH) height 为正数时,无论 virtual 如何设置,均限制树的纵向滚动区域的最大高度。省略 height 或将其设为 0 时,树的高度随内容增长。\n\n(EN) A positive value sets the maximum height of the Tree's vertical scroll area with either virtual setting. The Tree grows with its content when height is omitted or 0.",
13855
13878
  "value": {
13856
13879
  "kind": "expression",
13857
13880
  "type": "number"
@@ -13977,7 +14000,7 @@
13977
14000
  },
13978
14001
  {
13979
14002
  "name": "virtual",
13980
- "description": "(ZH) 设置 false 时关闭虚拟滚动\n\n(EN) Disable virtual scroll when set to false",
14003
+ "description": "(ZH) height 为正数时是否启用节点的虚拟渲染\n\n(EN) Whether to virtualize node rendering when height is positive",
13981
14004
  "default": "true",
13982
14005
  "value": {
13983
14006
  "kind": "expression",
@@ -14292,7 +14315,7 @@
14292
14315
  },
14293
14316
  {
14294
14317
  "name": "height",
14295
- "description": "(ZH) 设置虚拟滚动容器高度,设置后内部节点不再支持横向滚动\n\n(EN) Config virtual scroll height. Will not support horizontal scroll when enabled",
14318
+ "description": "(ZH) height 为正数时,无论 virtual 如何设置,均限制树的纵向滚动区域的最大高度。省略 height 或将其设为 0 时,树的高度随内容增长。\n\n(EN) A positive value sets the maximum height of the Tree's vertical scroll area with either virtual setting. The Tree grows with its content when height is omitted or 0.",
14296
14319
  "value": {
14297
14320
  "kind": "expression",
14298
14321
  "type": "number"
@@ -14418,7 +14441,7 @@
14418
14441
  },
14419
14442
  {
14420
14443
  "name": "virtual",
14421
- "description": "(ZH) 设置 false 时关闭虚拟滚动\n\n(EN) Disable virtual scroll when set to false",
14444
+ "description": "(ZH) height 为正数时是否启用节点的虚拟渲染\n\n(EN) Whether to virtualize node rendering when height is positive",
14422
14445
  "default": "true",
14423
14446
  "value": {
14424
14447
  "kind": "expression",