antdv-next 1.5.0 → 1.5.2
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.
- package/dist/_util/hooks/useClosable.d.ts +4 -2
- package/dist/_util/hooks/useClosable.js +9 -3
- package/dist/_util/hooks/useMergeSemantic.d.ts +7 -4
- package/dist/_util/hooks/useMergeSemantic.js +8 -3
- package/dist/_util/statusUtils.d.ts +1 -1
- package/dist/_util/vueNode.d.ts +2 -6
- package/dist/alert/style/index.d.ts +5 -0
- package/dist/alert/style/index.js +2 -1
- package/dist/anchor/Anchor.js +12 -6
- package/dist/antd-with-locales.esm.js +12799 -12587
- package/dist/antd-with-locales.js +82 -82
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +10540 -10546
- package/dist/antd.js +57 -57
- package/dist/avatar/AvatarGroup.d.ts +4 -1
- package/dist/avatar/AvatarGroup.js +6 -4
- package/dist/avatar/index.d.ts +2 -2
- package/dist/badge/Ribbon.d.ts +4 -1
- package/dist/badge/Ribbon.js +11 -11
- package/dist/badge/index.d.ts +3 -2
- package/dist/badge/index.js +26 -24
- package/dist/border-beam/BorderBeam.d.ts +1 -0
- package/dist/border-beam/BorderBeam.js +30 -11
- package/dist/border-beam/hooks/useBorderSize.d.ts +3 -7
- package/dist/border-beam/hooks/useBorderSize.js +25 -26
- package/dist/border-beam/style/index.js +9 -8
- package/dist/border-beam/util.d.ts +3 -1
- package/dist/border-beam/util.js +4 -1
- package/dist/breadcrumb/Breadcrumb.d.ts +4 -1
- package/dist/breadcrumb/Breadcrumb.js +12 -7
- package/dist/breadcrumb/index.d.ts +2 -2
- package/dist/button/Button.js +5 -14
- package/dist/button/buttonHelper.d.ts +1 -1
- package/dist/button/style/index.js +0 -1
- package/dist/calendar/generateCalendar.d.ts +4 -1
- package/dist/calendar/generateCalendar.js +8 -5
- package/dist/calendar/index.d.ts +2 -2
- package/dist/calendar/locale/sq_AL.d.ts +2 -0
- package/dist/calendar/locale/sq_AL.js +5 -0
- package/dist/card/CardGrid.d.ts +4 -1
- package/dist/card/CardGrid.js +7 -4
- package/dist/card/CardMeta.d.ts +4 -1
- package/dist/card/CardMeta.js +5 -3
- package/dist/card/index.d.ts +3 -3
- package/dist/carousel/index.d.ts +1 -0
- package/dist/carousel/index.js +13 -10
- package/dist/collapse/Collapse.js +2 -4
- package/dist/color-picker/ColorPicker.js +4 -7
- package/dist/color-picker/components/ColorTrigger.js +1 -1
- package/dist/color-picker/style/index.js +1 -0
- package/dist/components.d.ts +25 -21
- package/dist/components.js +4 -3
- package/dist/config-provider/context.d.ts +24 -8
- package/dist/config-provider/define.d.ts +2 -1
- package/dist/config-provider/index.js +10 -0
- package/dist/date-picker/generatePicker/generateRangePicker.js +6 -7
- package/dist/date-picker/generatePicker/generateSinglePicker.js +2 -5
- package/dist/date-picker/generatePicker/useComponents.d.ts +2 -2
- package/dist/date-picker/hooks/useMergedPickerSemantic.d.ts +1 -1
- package/dist/date-picker/hooks/useMergedPickerSemantic.js +7 -3
- package/dist/date-picker/locale/sq_AL.d.ts +6 -0
- package/dist/date-picker/locale/sq_AL.js +72 -0
- package/dist/date-picker/locale/zh_TW.js +2 -2
- package/dist/date-picker/util.d.ts +2 -6
- package/dist/descriptions/hooks/useItems.d.ts +4 -4
- package/dist/descriptions/index.d.ts +4 -1
- package/dist/descriptions/index.js +5 -2
- package/dist/divider/index.d.ts +4 -1
- package/dist/divider/index.js +9 -6
- package/dist/drawer/DrawerPanel.js +5 -3
- package/dist/drawer/index.js +9 -13
- package/dist/drawer/style/index.js +1 -0
- package/dist/dropdown/dropdown.js +4 -6
- package/dist/empty/index.d.ts +4 -1
- package/dist/empty/index.js +5 -2
- package/dist/float-button/BackTop.d.ts +2 -0
- package/dist/float-button/BackTop.js +25 -43
- package/dist/float-button/FloatButtonGroup.d.ts +4 -1
- package/dist/float-button/FloatButtonGroup.js +5 -4
- package/dist/float-button/hooks/useScroll.d.ts +16 -0
- package/dist/float-button/hooks/useScroll.js +80 -0
- package/dist/float-button/index.d.ts +2 -2
- package/dist/float-button/style/button.js +23 -0
- package/dist/form/ErrorList.js +2 -2
- package/dist/form/FormItem/ItemHolder.js +1 -1
- package/dist/form/FormItem/index.js +26 -28
- package/dist/form/context.d.ts +1 -1
- package/dist/form/hooks/useVariant.d.ts +2 -2
- package/dist/form/hooks/useVariant.js +15 -5
- package/dist/form/style/index.js +25 -12
- package/dist/form/types.d.ts +11 -3
- package/dist/form/utils/validateUtil.js +4 -0
- package/dist/image/hooks/usePreviewConfig.d.ts +5 -4
- package/dist/image/index.js +8 -9
- package/dist/index.d.ts +25 -21
- package/dist/index.js +2 -2
- package/dist/input/OTP/index.js +6 -3
- package/dist/input/Password.js +4 -1
- package/dist/input/Search.js +11 -6
- package/dist/input/index.d.ts +1 -1
- package/dist/input/style/token.js +2 -1
- package/dist/input/style/variants.js +1 -1
- package/dist/listy/interface.d.ts +3 -2
- package/dist/listy/style/index.js +5 -1
- package/dist/locale/en_US.js +4 -0
- package/dist/locale/index.d.ts +4 -0
- package/dist/locale/is_IS.js +1 -1
- package/dist/locale/mn_MN.js +1 -1
- package/dist/locale/sq_AL.d.ts +5 -0
- package/dist/locale/sq_AL.js +151 -0
- package/dist/locale/zh_CN.js +4 -0
- package/dist/locale/zh_TW.js +41 -41
- package/dist/masonry/Masonry.js +4 -4
- package/dist/mentions/index.d.ts +1 -0
- package/dist/mentions/index.js +4 -0
- package/dist/menu/MenuItem.js +12 -2
- package/dist/menu/SubMenu.d.ts +1 -1
- package/dist/menu/style/vertical.js +2 -6
- package/dist/message/useMessage.js +4 -4
- package/dist/modal/PurePanel.js +4 -7
- package/dist/notification/index.js +2 -1
- package/dist/notification/useNotification.js +12 -9
- package/dist/package.js +1 -1
- package/dist/package.json.d.ts +4 -0
- package/dist/pagination/Pagination.js +14 -6
- package/dist/pagination/index.d.ts +2 -2
- package/dist/pagination/interface.d.ts +20 -3
- package/dist/popconfirm/index.js +17 -8
- package/dist/popover/PurePanel.js +10 -0
- package/dist/popover/index.js +24 -16
- package/dist/qrcode/index.d.ts +4 -1
- package/dist/qrcode/index.js +16 -13
- package/dist/radio/group.js +2 -2
- package/dist/rate/style/index.js +12 -9
- package/dist/result/index.d.ts +4 -1
- package/dist/result/index.js +7 -4
- package/dist/select/index.js +1 -1
- package/dist/select/style/dropdown.js +4 -0
- package/dist/select/style/index.js +1 -1
- package/dist/select/style/select-input.js +1 -1
- package/dist/select/style/token.js +4 -2
- package/dist/select/useIcons.d.ts +2 -6
- package/dist/skeleton/Skeleton.d.ts +4 -1
- package/dist/skeleton/Skeleton.js +10 -4
- package/dist/skeleton/index.d.ts +2 -2
- package/dist/slider/SliderTooltip.js +5 -0
- package/dist/slider/index.d.ts +5 -1
- package/dist/slider/index.js +9 -9
- package/dist/space/Compact.d.ts +5 -2
- package/dist/space/Compact.js +8 -3
- package/dist/space/index.d.ts +2 -2
- package/dist/space/index.js +3 -3
- package/dist/spin/index.d.ts +4 -1
- package/dist/spin/index.js +7 -5
- package/dist/splitter/Splitter.d.ts +4 -1
- package/dist/splitter/Splitter.js +4 -2
- package/dist/splitter/index.d.ts +2 -2
- package/dist/splitter/style/index.js +2 -1
- package/dist/statistic/Statistic.d.ts +4 -1
- package/dist/statistic/index.d.ts +2 -2
- package/dist/steps/index.js +6 -8
- package/dist/steps/style/index.js +2 -1
- package/dist/table/InternalTable.js +5 -4
- package/dist/table/hooks/useFilter/FilterDropdown.js +2 -2
- package/dist/table/style/radius.js +4 -0
- package/dist/table/style/virtual.js +4 -0
- package/dist/tag/hooks/useColor.d.ts +1 -1
- package/dist/tag/index.js +3 -3
- package/dist/theme/interface/seeds.d.ts +8 -0
- package/dist/theme/themes/seed.js +1 -0
- package/dist/theme/util/alias.js +1 -1
- package/dist/time-picker/locale/sq_AL.d.ts +5 -0
- package/dist/time-picker/locale/sq_AL.js +7 -0
- package/dist/timeline/Timeline.js +5 -7
- package/dist/tooltip/PurePanel.js +5 -0
- package/dist/tooltip/index.d.ts +1 -0
- package/dist/tooltip/index.js +27 -13
- package/dist/tour/index.js +10 -13
- package/dist/tour/panelRender.js +2 -8
- package/dist/transfer/ListBody.js +2 -1
- package/dist/transfer/ListItem.d.ts +1 -0
- package/dist/transfer/ListItem.js +6 -2
- package/dist/transfer/Transfer.d.ts +4 -1
- package/dist/transfer/Transfer.js +5 -2
- package/dist/transfer/index.d.ts +2 -2
- package/dist/transfer/search.js +2 -2
- package/dist/tree/index.d.ts +3 -2
- package/dist/tree/index.js +3 -2
- package/dist/tree/style/index.js +4 -0
- package/dist/tree/utils/dictUtil.js +3 -2
- package/dist/typography/Base/EllipsisTooltip.d.ts +6 -1
- package/dist/typography/Base/EllipsisTooltip.js +2 -2
- package/dist/typography/Base/index.js +9 -26
- package/dist/typography/hooks/useCopyClick.d.ts +1 -1
- package/dist/typography/hooks/useCopyClick.js +5 -15
- package/dist/upload/Upload.js +7 -9
- package/dist/upload/UploadList/ListItem.js +6 -13
- package/dist/upload/UploadList/index.js +8 -2
- package/dist/upload/index.d.ts +2 -2
- package/dist/version/token-meta.json +1 -0
- package/dist/version/token.json +1 -0
- package/dist/watermark/index.d.ts +4 -1
- package/dist/watermark/index.js +2 -1
- package/package.json +13 -9
- package/web-tags.json +1980 -1947
- package/web-types.json +5808 -5730
- package/dist/slider/useRafLock.d.ts +0 -5
- package/dist/slider/useRafLock.js +0 -23
package/dist/form/style/index.js
CHANGED
|
@@ -194,9 +194,8 @@ const genFormItemStyle = (token) => {
|
|
|
194
194
|
}
|
|
195
195
|
} };
|
|
196
196
|
};
|
|
197
|
-
const
|
|
197
|
+
const makeVerticalLayoutLabelBase = (token) => ({
|
|
198
198
|
padding: token.verticalLabelPadding,
|
|
199
|
-
margin: token.verticalLabelMargin,
|
|
200
199
|
whiteSpace: "initial",
|
|
201
200
|
textAlign: "start",
|
|
202
201
|
"> label": {
|
|
@@ -204,6 +203,17 @@ const makeVerticalLayoutLabel = (token) => ({
|
|
|
204
203
|
"&::after": { visibility: "hidden" }
|
|
205
204
|
}
|
|
206
205
|
});
|
|
206
|
+
const makeVerticalLayoutLabel = (token) => ({
|
|
207
|
+
...makeVerticalLayoutLabelBase(token),
|
|
208
|
+
margin: token.verticalLabelMargin
|
|
209
|
+
});
|
|
210
|
+
const makeVerticalLayoutLabelWithOffset = (token) => {
|
|
211
|
+
const [formVarName] = genCssVar(token.antCls, "form");
|
|
212
|
+
return {
|
|
213
|
+
...makeVerticalLayoutLabelBase(token),
|
|
214
|
+
[formVarName("item-label-margin")]: token.verticalLabelMargin
|
|
215
|
+
};
|
|
216
|
+
};
|
|
207
217
|
const genHorizontalStyle = (token) => {
|
|
208
218
|
const { antCls, formItemCls } = token;
|
|
209
219
|
return { [`${formItemCls}-horizontal`]: {
|
|
@@ -213,8 +223,8 @@ const genHorizontalStyle = (token) => {
|
|
|
213
223
|
minWidth: 0
|
|
214
224
|
},
|
|
215
225
|
[`${formItemCls}-label[class$='-24'], ${formItemCls}-label[class*='-24 ']`]: { [`& + ${formItemCls}-control`]: { minWidth: "unset" } },
|
|
216
|
-
[
|
|
217
|
-
${antCls}-col-xl-24${formItemCls}-label`]: makeVerticalLayoutLabel(token)
|
|
226
|
+
[`> ${formItemCls}-row > ${antCls}-col-24${formItemCls}-label,
|
|
227
|
+
> ${formItemCls}-row > ${antCls}-col-xl-24${formItemCls}-label`]: makeVerticalLayoutLabel(token)
|
|
218
228
|
} };
|
|
219
229
|
};
|
|
220
230
|
const genInlineStyle = (token) => {
|
|
@@ -241,7 +251,7 @@ const genInlineStyle = (token) => {
|
|
|
241
251
|
const makeVerticalLayout = (token) => {
|
|
242
252
|
const { componentCls, formItemCls, rootPrefixCls } = token;
|
|
243
253
|
return {
|
|
244
|
-
[`${formItemCls} ${formItemCls}-label`]: makeVerticalLayoutLabel(token),
|
|
254
|
+
[`${formItemCls}:not(${formItemCls}-vertical) > ${formItemCls}-row > ${formItemCls}-label`]: makeVerticalLayoutLabel(token),
|
|
245
255
|
[`${componentCls}:not(${componentCls}-inline)`]: { [formItemCls]: {
|
|
246
256
|
flexWrap: "wrap",
|
|
247
257
|
[`${formItemCls}-label, ${formItemCls}-control`]: { [`&:not([class*=" ${rootPrefixCls}-col-xs"])`]: {
|
|
@@ -253,19 +263,22 @@ const makeVerticalLayout = (token) => {
|
|
|
253
263
|
};
|
|
254
264
|
const genVerticalStyle = (token) => {
|
|
255
265
|
const { componentCls, formItemCls, antCls, verticalLabelHeight } = token;
|
|
266
|
+
const [formVarName, formVarRef] = genCssVar(antCls, "form");
|
|
256
267
|
return {
|
|
268
|
+
[formItemCls]: { [formVarName("item-label-margin")]: "initial" },
|
|
269
|
+
[`${formItemCls}-label`]: { margin: formVarRef("item-label-margin") },
|
|
257
270
|
[`${formItemCls}-vertical`]: {
|
|
258
271
|
[`${formItemCls}-row`]: { flexDirection: "column" },
|
|
259
272
|
[`${formItemCls}-label > label`]: { height: verticalLabelHeight },
|
|
260
273
|
[`${formItemCls}-control`]: { width: "100%" },
|
|
261
|
-
[
|
|
262
|
-
${antCls}-col-24${formItemCls}-label,
|
|
263
|
-
${antCls}-col-xl-24${formItemCls}-label`]:
|
|
274
|
+
[`> ${formItemCls}-row > ${formItemCls}-label,
|
|
275
|
+
> ${formItemCls}-row > ${antCls}-col-24${formItemCls}-label,
|
|
276
|
+
> ${formItemCls}-row > ${antCls}-col-xl-24${formItemCls}-label`]: makeVerticalLayoutLabelWithOffset(token)
|
|
264
277
|
},
|
|
265
|
-
[`@media (max-width: ${unit(token.screenXSMax)})`]: [makeVerticalLayout(token), { [componentCls]: { [`${formItemCls}:not(${formItemCls}-horizontal)`]: { [
|
|
266
|
-
[`@media (max-width: ${unit(token.screenSMMax)})`]: { [componentCls]: { [`${formItemCls}:not(${formItemCls}-horizontal)`]: { [
|
|
267
|
-
[`@media (max-width: ${unit(token.screenMDMax)})`]: { [componentCls]: { [`${formItemCls}:not(${formItemCls}-horizontal)`]: { [
|
|
268
|
-
[`@media (max-width: ${unit(token.screenLGMax)})`]: { [componentCls]: { [`${formItemCls}:not(${formItemCls}-horizontal)`]: { [
|
|
278
|
+
[`@media (max-width: ${unit(token.screenXSMax)})`]: [makeVerticalLayout(token), { [componentCls]: { [`${formItemCls}:not(${formItemCls}-horizontal):not(${formItemCls}-vertical)`]: { [`> ${formItemCls}-row > ${antCls}-col-xs-24${formItemCls}-label`]: makeVerticalLayoutLabel(token) } } }],
|
|
279
|
+
[`@media (max-width: ${unit(token.screenSMMax)})`]: { [componentCls]: { [`${formItemCls}:not(${formItemCls}-horizontal):not(${formItemCls}-vertical)`]: { [`> ${formItemCls}-row > ${antCls}-col-sm-24${formItemCls}-label`]: makeVerticalLayoutLabel(token) } } },
|
|
280
|
+
[`@media (max-width: ${unit(token.screenMDMax)})`]: { [componentCls]: { [`${formItemCls}:not(${formItemCls}-horizontal):not(${formItemCls}-vertical)`]: { [`> ${formItemCls}-row > ${antCls}-col-md-24${formItemCls}-label`]: makeVerticalLayoutLabel(token) } } },
|
|
281
|
+
[`@media (max-width: ${unit(token.screenLGMax)})`]: { [componentCls]: { [`${formItemCls}:not(${formItemCls}-horizontal):not(${formItemCls}-vertical)`]: { [`> ${formItemCls}-row > ${antCls}-col-lg-24${formItemCls}-label`]: makeVerticalLayoutLabel(token) } } }
|
|
269
282
|
};
|
|
270
283
|
};
|
|
271
284
|
const prepareComponentToken = (token) => ({
|
package/dist/form/types.d.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
1
2
|
import { DeepNamePath } from "./namePathType.js";
|
|
2
3
|
import { Component } from "vue";
|
|
3
4
|
//#region src/form/types.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Render function form of a rule message. Kept as-is through validation and
|
|
7
|
+
* only invoked while rendering the error, so any reactive state it reads
|
|
8
|
+
* (locale, i18n `t`, ...) updates the displayed message without re-validating.
|
|
9
|
+
*/
|
|
10
|
+
type RuleMessageRender = () => VueNode;
|
|
11
|
+
type RuleMessage = string | Component | RuleMessageRender;
|
|
4
12
|
type ReducerAction = UpdateAction | ValidateAction;
|
|
5
13
|
type BatchTask = (key: string, callback: VoidFunction) => void;
|
|
6
14
|
type InternalNamePath = (string | number)[];
|
|
@@ -39,7 +47,7 @@ type Validator = (rule: RuleObject, value: StoreValue, callback: (error?: string
|
|
|
39
47
|
type RuleRender = (form: FormInstance) => RuleObject;
|
|
40
48
|
interface ValidatorRule {
|
|
41
49
|
warningOnly?: boolean;
|
|
42
|
-
message?:
|
|
50
|
+
message?: RuleMessage;
|
|
43
51
|
validator: Validator;
|
|
44
52
|
}
|
|
45
53
|
type TriggerType = 'change' | 'blur' | 'focus';
|
|
@@ -48,7 +56,7 @@ interface BaseRule {
|
|
|
48
56
|
enum?: StoreValue[];
|
|
49
57
|
len?: number;
|
|
50
58
|
max?: number;
|
|
51
|
-
message?:
|
|
59
|
+
message?: RuleMessage;
|
|
52
60
|
min?: number;
|
|
53
61
|
pattern?: RegExp;
|
|
54
62
|
required?: boolean;
|
|
@@ -298,4 +306,4 @@ interface ValidateMessages {
|
|
|
298
306
|
};
|
|
299
307
|
}
|
|
300
308
|
//#endregion
|
|
301
|
-
export { BatchTask, Callbacks, EventArgs, FieldData, FieldEntity, FieldError, FilterFunc, FormInstance, FormRef, GetFieldsValueConfig, InternalFieldData, InternalFormInstance, InternalHooks, InternalNamePath, InternalValidateFields, InternalValidateOptions, Meta, NamePath, NotifyInfo, ReducerAction, Rule, RuleError, RuleObject, RuleRender, RuleType, RulesMap, Store, StoreValue, TriggerType, ValidateErrorEntity, ValidateFields, ValidateMessages, ValidateOptions, ValidatorRule, ValuedNotifyInfo, WatchCallBack, WatchOptions };
|
|
309
|
+
export { BatchTask, Callbacks, EventArgs, FieldData, FieldEntity, FieldError, FilterFunc, FormInstance, FormRef, GetFieldsValueConfig, InternalFieldData, InternalFormInstance, InternalHooks, InternalNamePath, InternalValidateFields, InternalValidateOptions, Meta, NamePath, NotifyInfo, ReducerAction, Rule, RuleError, RuleMessage, RuleMessageRender, RuleObject, RuleRender, RuleType, RulesMap, Store, StoreValue, TriggerType, ValidateErrorEntity, ValidateFields, ValidateMessages, ValidateOptions, ValidatorRule, ValuedNotifyInfo, WatchCallBack, WatchOptions };
|
|
@@ -16,12 +16,15 @@ function replaceMessage(template, kv) {
|
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
const CODE_LOGIC_ERROR = "CODE_LOGIC_ERROR";
|
|
19
|
+
const CODE_FUNCTION_MESSAGE = "CODE_FUNCTION_MESSAGE";
|
|
19
20
|
async function validateRule(name, value, rule, options, messageVariables) {
|
|
20
21
|
const cloneRule = { ...rule };
|
|
21
22
|
delete cloneRule.ruleIndex;
|
|
22
23
|
delete cloneRule.trigger;
|
|
23
24
|
delete cloneRule.validateTrigger;
|
|
24
25
|
AsyncValidator.warning = () => void 0;
|
|
26
|
+
const functionMessage = typeof cloneRule.message === "function" ? cloneRule.message : null;
|
|
27
|
+
if (functionMessage) cloneRule.message = CODE_FUNCTION_MESSAGE;
|
|
25
28
|
if (cloneRule.validator) {
|
|
26
29
|
const originValidator = cloneRule.validator;
|
|
27
30
|
cloneRule.validator = (...args) => {
|
|
@@ -46,6 +49,7 @@ async function validateRule(name, value, rule, options, messageVariables) {
|
|
|
46
49
|
await Promise.resolve(validator.validate({ [name]: value }, { ...options }));
|
|
47
50
|
} catch (errObj) {
|
|
48
51
|
if (errObj.errors) result = errObj.errors.map(({ message }, index) => {
|
|
52
|
+
if (functionMessage && message === CODE_FUNCTION_MESSAGE) return functionMessage;
|
|
49
53
|
const mergedMessage = message === CODE_LOGIC_ERROR ? messages.default : message;
|
|
50
54
|
return isVNode(mergedMessage) ? createVNode(mergedMessage, { key: `error_${index}` }) : mergedMessage;
|
|
51
55
|
});
|
|
@@ -36,16 +36,17 @@ 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 focusTrap?: boolean;
|
|
40
|
-
readonly afterOpenChange?: (open: boolean) => void;
|
|
41
39
|
readonly maskClosable?: boolean;
|
|
40
|
+
readonly focusTrap?: boolean;
|
|
42
41
|
readonly zIndex?: number;
|
|
42
|
+
readonly afterOpenChange?: (open: boolean) => void;
|
|
43
43
|
readonly getContainer?: import("@v-c/portal/dist/Portal.js").PortalProps["getContainer"];
|
|
44
44
|
readonly closeIcon?: import("@v-c/util").VueNode | boolean | null;
|
|
45
|
-
readonly
|
|
45
|
+
readonly wheel?: boolean;
|
|
46
|
+
readonly icons?: import("@v-c/image/dist/Preview/index.js").OperationIcons;
|
|
46
47
|
readonly src?: string;
|
|
47
48
|
readonly alt?: string;
|
|
48
|
-
readonly
|
|
49
|
+
readonly motionName?: string;
|
|
49
50
|
readonly countRender?: (current: number, total: number) => import("@v-c/util").VueNode;
|
|
50
51
|
readonly scaleStep?: number;
|
|
51
52
|
readonly minScale?: number;
|
package/dist/image/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
2
2
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
|
-
import { useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
3
|
+
import { useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
5
5
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
6
6
|
import useMergedPreviewConfig from "./hooks/useMergedPreviewConfig.js";
|
|
@@ -46,18 +46,17 @@ const Image = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) =>
|
|
|
46
46
|
const mergedPopupClassNames = computed(() => {
|
|
47
47
|
return { mask: clsx({ [`${prefixCls.value}-preview-mask-hidden`]: !mergedMask.value }, blurClassName.value) };
|
|
48
48
|
});
|
|
49
|
-
const
|
|
49
|
+
const contextImageStyle = useSemanticRootStyle(contextStyle, "image");
|
|
50
|
+
const imageStyle = useSemanticRootStyle(computed(() => attrs.style), "image");
|
|
51
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes, mergedLegacyClassNames, computed(() => ({ popup: mergedPopupClassNames.value }))), useToArr(contextStyles, computed(() => ({ root: props.wrapperStyle })), contextImageStyle, styles, imageStyle), useToProps(mergedProps), computed(() => {
|
|
50
52
|
return { popup: { _default: "root" } };
|
|
51
53
|
}));
|
|
52
54
|
return () => {
|
|
53
55
|
const mergedFallback = getSlotPropsFnRun(slots, props, "fallback") ?? contextFallback.value;
|
|
54
56
|
const placeholder = getSlotPropsFnRun(slots, props, "placeholder", false);
|
|
55
|
-
const {
|
|
57
|
+
const { className, restAttrs } = getAttrStyleAndClass(attrs);
|
|
56
58
|
const mergedClassName = clsx(className, hashId.value, contextClassName.value);
|
|
57
|
-
const
|
|
58
|
-
...contextStyle.value,
|
|
59
|
-
...style
|
|
60
|
-
};
|
|
59
|
+
const { image: mergedImageStyle, ...restMergedStyles } = mergedStyles.value;
|
|
61
60
|
const otherProps = omit(props, [
|
|
62
61
|
"prefixCls",
|
|
63
62
|
"preview",
|
|
@@ -82,12 +81,12 @@ const Image = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) =>
|
|
|
82
81
|
"preview": mergedPreviewConfig.value || false,
|
|
83
82
|
"rootClassName": mergedRootClassName.value,
|
|
84
83
|
"class": mergedClassName,
|
|
85
|
-
"style":
|
|
84
|
+
"style": mergedImageStyle,
|
|
86
85
|
"fallback": mergedFallback
|
|
87
86
|
}, omit(otherProps, ["placeholder"]), onEvents, {
|
|
88
87
|
"placeholder": placeholder,
|
|
89
88
|
"classNames": mergedClassNames.value,
|
|
90
|
-
"styles":
|
|
89
|
+
"styles": restMergedStyles
|
|
91
90
|
}), null);
|
|
92
91
|
};
|
|
93
92
|
}, {
|
package/dist/index.d.ts
CHANGED
|
@@ -11,15 +11,15 @@ import InternalFormItem, { FormItemEmits, FormItemProps, FormItemSlots } from ".
|
|
|
11
11
|
import { DatePickerEmits, DatePickerSlots } from "./date-picker/generatePicker/generateSinglePicker.js";
|
|
12
12
|
import _default$14, { TimePickerEmits, TimePickerLocale, TimePickerProps, TimePickerSlots, TimeRangePicker, TimeRangePickerEmits, TimeRangePickerProps } from "./time-picker/index.js";
|
|
13
13
|
import _default$5, { DateMonthPicker, DatePickerProps, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, MonthPickerProps, RangePickerProps, WeekPickerProps } from "./date-picker/index.js";
|
|
14
|
-
import _default$6, { EmptyProps, EmptySlots } from "./empty/index.js";
|
|
14
|
+
import _default$6, { EmptyProps, EmptyRef, EmptySlots } from "./empty/index.js";
|
|
15
15
|
import { ModalEmits, ModalSlots } from "./modal/interface.js";
|
|
16
16
|
import Select, { SelectEmits, SelectOptGroup, SelectOption, SelectProps, SelectSlots, SelectValue } from "./select/index.js";
|
|
17
|
-
import { PaginationClassNamesType, PaginationConfig, PaginationEmits, PaginationLocale, PaginationPosition, PaginationSlots, PaginationStylesType } from "./pagination/interface.js";
|
|
17
|
+
import { PaginationClassNamesType, PaginationComponents, PaginationConfig, PaginationEmits, PaginationLocale, PaginationPosition, PaginationSizeChangerProps, PaginationSlots, PaginationStylesType } from "./pagination/interface.js";
|
|
18
18
|
import Pagination from "./pagination/Pagination.js";
|
|
19
19
|
import { PaginationProps } from "./pagination/index.js";
|
|
20
20
|
import Popover, { PopoverEmits, PopoverProps, PopoverRef, PopoverSlots } from "./popover/index.js";
|
|
21
21
|
import Popconfirm, { PopconfirmEmits, PopconfirmProps, PopconfirmSlots } from "./popconfirm/index.js";
|
|
22
|
-
import _default$11, { SpinProps, SpinSlots } from "./spin/index.js";
|
|
22
|
+
import _default$11, { SpinProps, SpinRef, SpinSlots } from "./spin/index.js";
|
|
23
23
|
import InternalCheckbox, { CheckboxEmits, CheckboxProps, CheckboxSlots } from "./checkbox/Checkbox.js";
|
|
24
24
|
import CheckboxGroup, { CheckboxGroupEmits, CheckboxGroupProps, CheckboxGroupSlots, CheckboxOptionType } from "./checkbox/Group.js";
|
|
25
25
|
import { MenuItemProps } from "./menu/MenuItem.js";
|
|
@@ -38,6 +38,7 @@ import _default$13, { DataIndex, Summary, SummaryCell, SummaryRow } from "./tabl
|
|
|
38
38
|
import { TourEmits, TourLocale, TourSlots, TourStylesType } from "./tour/interface.js";
|
|
39
39
|
import Tour, { TourProps, TourStepItem } from "./tour/index.js";
|
|
40
40
|
import { KeyWise, KeyWiseTransferItem, ListStyle, PaginationType, RenderResult, RenderResultObject, SelectAllLabel, TransferClassNamesType, TransferCustomListBodyProps, TransferDirection, TransferEmits, TransferItem, TransferKey, TransferListBodyProps, TransferListProps, TransferLocale, TransferRender, TransferSearchOption, TransferSlots, TransferStylesType } from "./transfer/interface.js";
|
|
41
|
+
import { TransferRef } from "./transfer/Transfer.js";
|
|
41
42
|
import { TransferOperationProps } from "./transfer/Actions.js";
|
|
42
43
|
import { TransferSearchEmits, TransferSearchProps, TransferSearchSlots } from "./transfer/search.js";
|
|
43
44
|
import InternalTransfer, { TransferProps } from "./transfer/index.js";
|
|
@@ -49,17 +50,17 @@ import Alert, { AlertEmits, AlertProps, AlertSemanticType, AlertSlots } from "./
|
|
|
49
50
|
import { Affix, AffixEmits, AffixProps, AffixRef } from "./affix/index.js";
|
|
50
51
|
import { AnchorLinkProps } from "./anchor/AnchorLink.js";
|
|
51
52
|
import Anchor, { AnchorEmits, AnchorProps, AnchorSlots } from "./anchor/Anchor.js";
|
|
52
|
-
import { RibbonProps } from "./badge/Ribbon.js";
|
|
53
|
+
import { RibbonProps, RibbonRef } from "./badge/Ribbon.js";
|
|
53
54
|
import Badge, { BadgeProps, BadgeRibbon, BadgeSlots } from "./badge/index.js";
|
|
54
55
|
import _default$1, { BreadcrumbItemProps } from "./breadcrumb/BreadcrumbItem.js";
|
|
55
56
|
import _default$2 from "./breadcrumb/BreadcrumbSeparator.js";
|
|
56
|
-
import Breadcrumb, { BreadcrumbEmits, BreadcrumbProps, BreadcrumbSlots, ItemType } from "./breadcrumb/Breadcrumb.js";
|
|
57
|
-
import { CalendarMode, CalendarProps } from "./calendar/generateCalendar.js";
|
|
57
|
+
import Breadcrumb, { BreadcrumbEmits, BreadcrumbProps, BreadcrumbRef, BreadcrumbSlots, ItemType } from "./breadcrumb/Breadcrumb.js";
|
|
58
|
+
import { CalendarMode, CalendarProps, CalendarRef } from "./calendar/generateCalendar.js";
|
|
58
59
|
import _default$3 from "./calendar/index.js";
|
|
59
60
|
import TabPane, { TabPaneProps } from "./tabs/TabPane.js";
|
|
60
61
|
import Tabs, { TabsEmits, TabsProps, TabsRef, TabsSlots } from "./tabs/index.js";
|
|
61
62
|
import Card, { CardEmits, CardProps, CardSize, CardSlots, CardTabListType } from "./card/Card.js";
|
|
62
|
-
import CardMeta, { CardMetaProps } from "./card/CardMeta.js";
|
|
63
|
+
import CardMeta, { CardMetaProps, CardMetaRef } from "./card/CardMeta.js";
|
|
63
64
|
import CascaderPanel, { CascaderPanelEmits, CascaderPanelProps, CascaderPanelSlots } from "./cascader/Panel.js";
|
|
64
65
|
import Cascader, { CascaderEmits, CascaderProps, CascaderSlots } from "./cascader/index.js";
|
|
65
66
|
import Collapse, { CollapseProps } from "./collapse/Collapse.js";
|
|
@@ -69,18 +70,19 @@ import { ColorPickerEmits, ColorPickerSlots, ColorValueType } from "./color-pick
|
|
|
69
70
|
import ColorPicker from "./color-picker/ColorPicker.js";
|
|
70
71
|
import { ColorPickerProps } from "./color-picker/index.js";
|
|
71
72
|
import DescriptionsItem, { DescriptionsItemProps, DescriptionsItemSlots } from "./descriptions/Item.js";
|
|
72
|
-
import Descriptions, { DescriptionsItemType, DescriptionsProps, DescriptionsSlots } from "./descriptions/index.js";
|
|
73
|
-
import Divider, { DividerProps } from "./divider/index.js";
|
|
73
|
+
import Descriptions, { DescriptionsItemType, DescriptionsProps, DescriptionsRef, DescriptionsSlots } from "./descriptions/index.js";
|
|
74
|
+
import Divider, { DividerProps, DividerRef } from "./divider/index.js";
|
|
74
75
|
import Drawer, { DrawerEmits, DrawerProps, DrawerResizableConfig, DrawerSlots } from "./drawer/index.js";
|
|
75
76
|
import { FlexProps } from "./flex/interface.js";
|
|
76
77
|
import Flex, { FlexSlots } from "./flex/index.js";
|
|
77
78
|
import FloatButton, { FloatButtonProps, FloatButtonRef } from "./float-button/FloatButton.js";
|
|
78
|
-
import FloatButtonGroup, { FloatButtonGroupProps } from "./float-button/FloatButtonGroup.js";
|
|
79
|
+
import FloatButtonGroup, { FloatButtonGroupProps, FloatButtonGroupRef } from "./float-button/FloatButtonGroup.js";
|
|
79
80
|
import BackTopWithInstall from "./float-button/BackTop.js";
|
|
80
81
|
import _default_1, { ImageEmits, ImagePreviewGroup, ImagePreviewGroupProps, ImageProps, ImageSlots, PreviewConfig } from "./image/index.js";
|
|
81
82
|
import InputNumber, { InputNumberEmits, InputNumberProps, InputNumberRef as VcInputNumberRef, InputNumberStepContext, ValueType } from "./input-number/index.js";
|
|
82
83
|
import { InputEmits, InputProps, InputRef, InputSlots } from "./input/Input.js";
|
|
83
84
|
import { OTPEmits, OTPProps, OTPSlots } from "./input/OTP/index.js";
|
|
85
|
+
import { InputPasswordRef, PasswordProps } from "./input/Password.js";
|
|
84
86
|
import { InputSearchRef, SearchProps } from "./input/Search.js";
|
|
85
87
|
import InternalTextArea, { InputTextAreaRef, TextAreaProps, TextAreaRef } from "./input/TextArea.js";
|
|
86
88
|
import { ListyClassNames, ListyProps, ListyRef, ListyScrollToConfig, ListyStyles } from "./listy/interface.js";
|
|
@@ -89,21 +91,23 @@ import { MasonryEmits, MasonryProps, MasonryRef, MasonrySlots } from "./masonry/
|
|
|
89
91
|
import useNotification from "./notification/useNotification.js";
|
|
90
92
|
import staticMethods$1 from "./notification/index.js";
|
|
91
93
|
import { QRCodeEmits } from "./qrcode/interface.js";
|
|
92
|
-
import QRCode, { QRCodeProps } from "./qrcode/index.js";
|
|
94
|
+
import QRCode, { QRCodeProps, QRCodeRef } from "./qrcode/index.js";
|
|
93
95
|
import { RadioChangeEvent, RadioEmits, RadioGroupEmits, RadioGroupOptionType, RadioGroupSlots, RadioSlots } from "./radio/interface.js";
|
|
94
|
-
import _default$10, { ResultProps, ResultSlots, ResultStatusType } from "./result/index.js";
|
|
96
|
+
import _default$10, { ResultProps, ResultRef, ResultSlots, ResultStatusType } from "./result/index.js";
|
|
95
97
|
import Segmented, { SegmentedEmits, SegmentedOptions, SegmentedProps, SegmentedSlots } from "./segmented/index.js";
|
|
96
98
|
import SkeletonAvatar from "./skeleton/Avatar.js";
|
|
97
99
|
import SkeletonButton from "./skeleton/Button.js";
|
|
98
100
|
import SkeletonNode from "./skeleton/Node.js";
|
|
99
101
|
import SkeletonImage from "./skeleton/Image.js";
|
|
100
102
|
import SkeletonInput from "./skeleton/Input.js";
|
|
101
|
-
import SkeletonWithSubComponents, { SkeletonProps } from "./skeleton/Skeleton.js";
|
|
102
|
-
import Slider, { SliderEmits, SliderProps } from "./slider/index.js";
|
|
103
|
+
import SkeletonWithSubComponents, { SkeletonProps, SkeletonRef } from "./skeleton/Skeleton.js";
|
|
104
|
+
import Slider, { SliderEmits, SliderProps, SliderRef } from "./slider/index.js";
|
|
105
|
+
import { SpaceCompactProps, SpaceCompactRef } from "./space/Compact.js";
|
|
103
106
|
import Space, { SpaceAddon, SpaceCompact, SpaceProps, SpaceSize, SpaceSlots } from "./space/index.js";
|
|
104
107
|
import { SplitterEmits, SplitterSlots } from "./splitter/interface.js";
|
|
105
|
-
import Splitter from "./splitter/Splitter.js";
|
|
108
|
+
import Splitter, { SplitterRef } from "./splitter/Splitter.js";
|
|
106
109
|
import { SplitterPanel, SplitterProps } from "./splitter/index.js";
|
|
110
|
+
import { StatisticRef } from "./statistic/Statistic.js";
|
|
107
111
|
import _default$12, { StatisticProps, StatisticTimer, StatisticTimerProps } from "./statistic/index.js";
|
|
108
112
|
import Steps, { StepItem, StepsEmits, StepsProps, StepsSlots } from "./steps/index.js";
|
|
109
113
|
import Switch, { SwitchEmits, SwitchProps, SwitchSize, SwitchSlots } from "./switch/index.js";
|
|
@@ -114,7 +118,7 @@ import Timeline, { TimelineItemType, TimelineProps } from "./timeline/Timeline.j
|
|
|
114
118
|
import { TimelineItem, TimelineItemProps, TimelineItemSlots } from "./timeline/TimelineItem.js";
|
|
115
119
|
import { AntTreeNode, AntTreeNodeCheckedEvent, AntTreeNodeExpandedEvent, AntTreeNodeMouseEvent, AntTreeNodeProps, AntTreeNodeSelectedEvent, AntdTreeNodeAttribute, TreeEmits, TreeProps, TreeSlots } from "./tree/Tree.js";
|
|
116
120
|
import DirectoryTree, { DirectoryTreeEmits, DirectoryTreeProps, DirectoryTreeSlots, ExpandAction } from "./tree/DirectoryTree.js";
|
|
117
|
-
import Tree, { BasicDataNode, DataNode } from "./tree/index.js";
|
|
121
|
+
import Tree, { BasicDataNode, DataNode, TreeInstance, UseTreeConfig, useTree } from "./tree/index.js";
|
|
118
122
|
import TreeSelect, { TreeSelectEmits, TreeSelectNode, TreeSelectProps, TreeSelectSlots } from "./tree-select/index.js";
|
|
119
123
|
import { BlockProps } from "./typography/interface.js";
|
|
120
124
|
import { ThemeConfig } from "./config-provider/context.js";
|
|
@@ -126,15 +130,14 @@ import { AppProps } from "./app/App.js";
|
|
|
126
130
|
import _default from "./app/index.js";
|
|
127
131
|
import AutoComplete, { AutoCompleteClassNamesType, AutoCompleteEmits, AutoCompleteProps, AutoCompleteSlots, AutoCompleteStylesType, DataSourceItemObject, DataSourceItemType, Option } from "./auto-complete/index.js";
|
|
128
132
|
import { AvatarEmits, AvatarProps, AvatarSlots } from "./avatar/Avatar.js";
|
|
129
|
-
import AvatarGroup, { AvatarGroupProps } from "./avatar/AvatarGroup.js";
|
|
133
|
+
import AvatarGroup, { AvatarGroupProps, AvatarGroupRef } from "./avatar/AvatarGroup.js";
|
|
130
134
|
import Avatar from "./avatar/index.js";
|
|
131
135
|
import { BorderBeamColor, BorderBeamGradient } from "./border-beam/util.js";
|
|
132
136
|
import BorderBeam, { BorderBeamProps } from "./border-beam/BorderBeam.js";
|
|
133
|
-
import CardGrid, { CardGridProps } from "./card/CardGrid.js";
|
|
137
|
+
import CardGrid, { CardGridProps, CardGridRef } from "./card/CardGrid.js";
|
|
134
138
|
import Carousel, { CarouselEmits, CarouselProps, CarouselRef, CarouselSlots } from "./carousel/index.js";
|
|
135
139
|
import { FormHookInstance, useForm, useFormInstance } from "./form/hooks/useForm.js";
|
|
136
140
|
import { InputGroupProps } from "./input/Group.js";
|
|
137
|
-
import { InputPasswordRef, PasswordProps } from "./input/Password.js";
|
|
138
141
|
import CompoundedInput, { InputGroup, InputOTP, InputPassword, InputSearch } from "./input/index.js";
|
|
139
142
|
import Layout, { BasicProps } from "./layout/layout.js";
|
|
140
143
|
import { LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, useLayoutSider } from "./layout/index.js";
|
|
@@ -154,8 +157,9 @@ import { TitleProps } from "./typography/Title.js";
|
|
|
154
157
|
import { ParagraphProps } from "./typography/Paragraph.js";
|
|
155
158
|
import Typography, { TypographyLink, TypographyParagraph, TypographyText, TypographyTitle } from "./typography/index.js";
|
|
156
159
|
import { DraggerProps } from "./upload/Dragger.js";
|
|
160
|
+
import { UploadRef } from "./upload/Upload.js";
|
|
157
161
|
import Upload, { UploadDragger, UploadProps } from "./upload/index.js";
|
|
158
|
-
import Watermark, { WatermarkProps } from "./watermark/index.js";
|
|
162
|
+
import Watermark, { WatermarkProps, WatermarkRef } from "./watermark/index.js";
|
|
159
163
|
import "./components.js";
|
|
160
164
|
import { App, Plugin } from "vue";
|
|
161
165
|
import { StyleProvider } from "@antdv-next/cssinjs";
|
|
@@ -164,4 +168,4 @@ declare function setPrefix(newPrefix: string): void;
|
|
|
164
168
|
declare function install(app: App): void;
|
|
165
169
|
declare const _default$16: Plugin;
|
|
166
170
|
//#endregion
|
|
167
|
-
export { Affix, type AffixEmits, type AffixProps, type AffixRef, Alert, type AlertEmits, type AlertProps, type AlertSemanticType, type AlertSlots, Anchor, type AnchorEmits, type AnchorLinkProps, type AnchorProps, type AnchorSlots, type AntTreeNode, type AntTreeNodeCheckedEvent, type AntTreeNodeExpandedEvent, type AntTreeNodeMouseEvent, type AntTreeNodeProps, type AntTreeNodeSelectedEvent, type AntdTreeNodeAttribute, _default as App, type AppProps, AutoComplete, type AutoCompleteClassNamesType, type AutoCompleteEmits, Option as AutoCompleteOption, type AutoCompleteProps, type AutoCompleteSlots, type AutoCompleteStylesType, Avatar, type AvatarEmits, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSlots, BackTopWithInstall as BackTop, Badge, type BadgeProps, BadgeRibbon, type RibbonProps as BadgeRibbonProps, type BadgeSlots, type BasicDataNode, BorderBeam, type BorderBeamColor, type BorderBeamGradient, type BorderBeamProps, Breadcrumb, type BreadcrumbEmits, _default$1 as BreadcrumbItem, type BreadcrumbItemProps, type ItemType as BreadcrumbItemType, type BreadcrumbProps, _default$2 as BreadcrumbSeparator, type BreadcrumbSlots, Button, type ButtonColorType, type ButtonEmits, type ButtonHTMLType, type ButtonProps, type ButtonSemanticName, type ButtonShape, type SizeType as ButtonSize, type ButtonSlots, type ButtonType, type ButtonVariantType, _default$3 as Calendar, type CalendarMode, type CalendarProps, Card, type CardEmits, CardGrid, type CardGridProps, CardMeta, type CardMetaProps, type CardProps, type CardSize, type CardSlots, type CardTabListType, Carousel, type CarouselEmits, type CarouselProps, type CarouselRef, type CarouselSlots, Cascader, type CascaderEmits, CascaderPanel, type CascaderPanelEmits, type CascaderPanelProps, type CascaderPanelSlots, type CascaderProps, type CascaderSlots, CheckableTag, CheckableTagGroup, type CheckableTagProps, InternalCheckbox as Checkbox, type CheckboxEmits, CheckboxGroup, type CheckboxGroupEmits, type CheckboxGroupProps, type CheckboxGroupSlots, type CheckboxOptionType, type CheckboxProps, type CheckboxSlots, Col, type ColProps, type ColSize, Collapse, CollapsePanel, type CollapsePanelProps, type CollapsePanelSlots, type CollapseProps, type AggregationColor as Color, ColorPicker, type ColorPickerEmits, type ColorPickerProps, type ColorPickerSlots, type ColorValueType, _default$4 as ConfigProvider, type ConfigProviderProps, type DataSourceItemObject, type DataSourceItemType, DateMonthPicker, _default$5 as DatePicker, type DatePickerEmits, type DatePickerProps, type DatePickerSlots, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItem, type DescriptionsItemProps, type DescriptionsItemSlots, type DescriptionsItemType, type DescriptionsProps, type DescriptionsSlots, DirectoryTree, type DirectoryTreeEmits, type ExpandAction as DirectoryTreeExpandAction, type DirectoryTreeProps, type DirectoryTreeSlots, Divider, type DividerProps, Drawer, type DrawerEmits, type DrawerProps, type DrawerResizableConfig, type DrawerSlots, Dropdown, type DropdownArrowOptions, type DropdownEmits, type DropdownProps, type DropdownSlots, _default$6 as Empty, type EmptyProps, type EmptySlots, Flex, type FlexProps, type FlexSlots, FloatButton, FloatButtonGroup, type FloatButtonGroupProps, type FloatButtonProps, type FloatButtonRef, InternalForm as Form, type FormEmits, type FormHookInstance, type FormInstance, InternalFormItem as FormItem, type FormItemEmits, type FormItemProps, type FormItemSlots, type FormProps, type FormSlots, type GlobalToken, _default_1 as Image, type ImageEmits, type PreviewConfig as ImagePreviewConfig, ImagePreviewGroup, type ImagePreviewGroupProps, type ImageProps, type ImageSlots, CompoundedInput as Input, type InputEmits, InputGroup, type InputGroupProps, InputNumber, type InputNumberEmits, type InputNumberProps, type VcInputNumberRef as InputNumberRef, type InputNumberStepContext, type ValueType as InputNumberValueType, InputOTP, type OTPEmits as InputOTPEmits, type OTPProps as InputOTPProps, type OTPSlots as InputOTPSlots, InputPassword, type PasswordProps as InputPasswordProps, type InputPasswordRef, type InputProps, type InputRef, InputSearch, type SearchProps as InputSearchProps, type InputSearchRef, type InputSlots, type InputTextAreaRef, type KeyWise, type KeyWiseTransferItem, Layout, LayoutContent, LayoutFooter, LayoutHeader, type BasicProps as LayoutProps, LayoutSider, type LegacyButtonType, type ListStyle, Listy, type ListyClassNames, type ListyProps, type ListyRef, type ListyScrollToConfig, type ListyStyles, _default$7 as Masonry, type MasonryEmits, type MasonryProps, type MasonryRef, type MasonrySlots, type MentionPlacement, Mentions, type MentionsClassNamesType, type MentionsEmits, Option$1 as MentionsOption, type MentionsOptionProps, type MentionsProps, type MentionsRef, type MentionsSlots, type MentionsStylesType, _default$8 as Menu, MenuDivider, type MenuEmits, MenuItem, MenuItemGroup, type MenuItemGroupProps, type MenuItemProps, type MenuItemType, type MenuProps, type MenuRef, type MenuSlots, _default$9 as Modal, type ModalEmits, type ModalProps, type ModalSlots, type MonthPickerProps, Pagination, type PaginationClassNamesType, type PaginationConfig, type PaginationEmits, type PaginationLocale, type PaginationPosition, type PaginationProps, type PaginationSlots, type PaginationStylesType, Popconfirm, type PopconfirmEmits, type PopconfirmProps, type PopconfirmSlots, Popover, type PopoverEmits, type PopoverProps, type PopoverRef, type PopoverSlots, Progress, type ProgressProps, QRCode, type QRCodeEmits, type QRCodeProps, InternalRadio as Radio, RadioButton, type RadioChangeEvent, type RadioEmits, RadioGroup, type RadioGroupEmits, type RadioGroupOptionType, type RadioGroupProps, type RadioGroupSlots, type RadioOptionType, type RadioProps, type RadioSlots, type RangePickerProps, Rate, type RateEmits, type RateProps, type RenderResult, type RenderResultObject, _default$10 as Result, type ResultProps, type ResultSlots, type ResultStatusType, Row, type RowProps, type Rule, type RuleObject, type RuleRender, type RuleType, Segmented, type SegmentedEmits, type SegmentedOptions, type SegmentedProps, type SegmentedSlots, Select, type SelectAllLabel, type SelectEmits, SelectOptGroup, SelectOption, type SelectProps, type SelectSlots, type SelectValue, type SizeType, SkeletonWithSubComponents as Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, type SkeletonProps, Slider, type SliderEmits, type SliderProps, Space, SpaceAddon, SpaceCompact, type SpaceProps, type SpaceSize, type SpaceSlots, _default$11 as Spin, type SpinProps, type SpinSlots, Splitter, type SplitterEmits, SplitterPanel, type SplitterProps, type SplitterSlots, _default$12 as Statistic, type StatisticProps, StatisticTimer, type StatisticTimerProps, type StepItem, Steps, type StepsEmits, type StepsProps, type StepsSlots, StyleProvider, SubMenu, type SubMenuProps, Switch, type SwitchEmits, type SwitchProps, type SwitchSize, type SwitchSlots, TabPane, type TabPaneProps, _default$13 as Table, type TableClassNamesType, Column as TableColumn, ColumnGroup as TableColumnGroup, type ColumnType as TableColumnType, type ColumnsType as TableColumnsType, type DataIndex as TableDataIndex, type TableEmits, type TableLocale, type TablePaginationConfig, type TableProps, type TableRowSelection, type TableSlots, type SortOrder as TableSortOrder, type SorterResult as TableSorterResult, type TableStylesType, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, Tabs, type TabsEmits, type TabsProps, type TabsRef, type TabsSlots, Tag, type TagProps, type TagSlots, InternalTextArea as TextArea, type TextAreaProps, type TextAreaRef, type ThemeConfig, _default$14 as TimePicker, type TimePickerEmits, type TimePickerLocale, type TimePickerProps, type TimePickerSlots, TimeRangePicker, type TimeRangePickerEmits, type TimeRangePickerProps, Timeline, TimelineItem, type TimelineItemProps, type TimelineItemSlots, type TimelineItemType, type TimelineProps, _default$15 as Tooltip, type TooltipAlignConfig, type TooltipEmits, type TooltipPlacement, type TooltipProps, type TooltipRef, type TooltipSlots, Tour, type TourEmits, type TourLocale, type TourProps, type TourSlots, type TourStepItem, type TourStylesType, InternalTransfer as Transfer, type TransferClassNamesType, type TransferCustomListBodyProps, type TransferDirection, type TransferEmits, type TransferItem, type TransferKey, type TransferListBodyProps, type TransferListProps, type TransferLocale, type TransferOperationProps, type PaginationType as TransferPaginationType, type TransferProps, type TransferRender, type TransferSearchEmits, type TransferSearchOption, type TransferSearchProps, type TransferSearchSlots, type TransferSlots, type TransferStylesType, Tree, type DataNode as TreeDataNode, type TreeEmits, type TreeProps, TreeSelect, type TreeSelectEmits, type TreeSelectNode, type TreeSelectProps, type TreeSelectSlots, type TreeSlots, Typography, type BlockProps as TypographyBaseProps, TypographyLink, type LinkProps as TypographyLinkProps, TypographyParagraph, type ParagraphProps as TypographyParagraphProps, TypographyText, type TextProps as TypographyTextProps, TypographyTitle, type TitleProps as TypographyTitleProps, UniqueProvider, Upload, type UploadChangeParam, UploadDragger, type DraggerProps as UploadDraggerProps, type UploadEmits, type UploadFile, type UploadProps, type UploadSlots, Watermark, type WatermarkProps, type WeekPickerProps, _default$16 as default, install, staticMethods as message, staticMethods$1 as notification, setPrefix, _default$17 as theme, useBreakpoint, useExportConfig as useConfig, useForm, useFormInstance, useLayoutSider, useMessage, useModal, useNotification, useResponsive, _version2 as version };
|
|
171
|
+
export { Affix, type AffixEmits, type AffixProps, type AffixRef, Alert, type AlertEmits, type AlertProps, type AlertSemanticType, type AlertSlots, Anchor, type AnchorEmits, type AnchorLinkProps, type AnchorProps, type AnchorSlots, type AntTreeNode, type AntTreeNodeCheckedEvent, type AntTreeNodeExpandedEvent, type AntTreeNodeMouseEvent, type AntTreeNodeProps, type AntTreeNodeSelectedEvent, type AntdTreeNodeAttribute, _default as App, type AppProps, AutoComplete, type AutoCompleteClassNamesType, type AutoCompleteEmits, Option as AutoCompleteOption, type AutoCompleteProps, type AutoCompleteSlots, type AutoCompleteStylesType, Avatar, type AvatarEmits, AvatarGroup, type AvatarGroupProps, type AvatarGroupRef, type AvatarProps, type AvatarSlots, BackTopWithInstall as BackTop, Badge, type BadgeProps, BadgeRibbon, type RibbonProps as BadgeRibbonProps, type RibbonRef as BadgeRibbonRef, type BadgeSlots, type BasicDataNode, BorderBeam, type BorderBeamColor, type BorderBeamGradient, type BorderBeamProps, Breadcrumb, type BreadcrumbEmits, _default$1 as BreadcrumbItem, type BreadcrumbItemProps, type ItemType as BreadcrumbItemType, type BreadcrumbProps, type BreadcrumbRef, _default$2 as BreadcrumbSeparator, type BreadcrumbSlots, Button, type ButtonColorType, type ButtonEmits, type ButtonHTMLType, type ButtonProps, type ButtonSemanticName, type ButtonShape, type SizeType as ButtonSize, type ButtonSlots, type ButtonType, type ButtonVariantType, _default$3 as Calendar, type CalendarMode, type CalendarProps, type CalendarRef, Card, type CardEmits, CardGrid, type CardGridProps, type CardGridRef, CardMeta, type CardMetaProps, type CardMetaRef, type CardProps, type CardSize, type CardSlots, type CardTabListType, Carousel, type CarouselEmits, type CarouselProps, type CarouselRef, type CarouselSlots, Cascader, type CascaderEmits, CascaderPanel, type CascaderPanelEmits, type CascaderPanelProps, type CascaderPanelSlots, type CascaderProps, type CascaderSlots, CheckableTag, CheckableTagGroup, type CheckableTagProps, InternalCheckbox as Checkbox, type CheckboxEmits, CheckboxGroup, type CheckboxGroupEmits, type CheckboxGroupProps, type CheckboxGroupSlots, type CheckboxOptionType, type CheckboxProps, type CheckboxSlots, Col, type ColProps, type ColSize, Collapse, CollapsePanel, type CollapsePanelProps, type CollapsePanelSlots, type CollapseProps, type AggregationColor as Color, ColorPicker, type ColorPickerEmits, type ColorPickerProps, type ColorPickerSlots, type ColorValueType, _default$4 as ConfigProvider, type ConfigProviderProps, type DataSourceItemObject, type DataSourceItemType, DateMonthPicker, _default$5 as DatePicker, type DatePickerEmits, type DatePickerProps, type DatePickerSlots, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItem, type DescriptionsItemProps, type DescriptionsItemSlots, type DescriptionsItemType, type DescriptionsProps, type DescriptionsRef, type DescriptionsSlots, DirectoryTree, type DirectoryTreeEmits, type ExpandAction as DirectoryTreeExpandAction, type DirectoryTreeProps, type DirectoryTreeSlots, Divider, type DividerProps, type DividerRef, Drawer, type DrawerEmits, type DrawerProps, type DrawerResizableConfig, type DrawerSlots, Dropdown, type DropdownArrowOptions, type DropdownEmits, type DropdownProps, type DropdownSlots, _default$6 as Empty, type EmptyProps, type EmptyRef, type EmptySlots, Flex, type FlexProps, type FlexSlots, FloatButton, FloatButtonGroup, type FloatButtonGroupProps, type FloatButtonGroupRef, type FloatButtonProps, type FloatButtonRef, InternalForm as Form, type FormEmits, type FormHookInstance, type FormInstance, InternalFormItem as FormItem, type FormItemEmits, type FormItemProps, type FormItemSlots, type FormProps, type FormSlots, type GlobalToken, _default_1 as Image, type ImageEmits, type PreviewConfig as ImagePreviewConfig, ImagePreviewGroup, type ImagePreviewGroupProps, type ImageProps, type ImageSlots, CompoundedInput as Input, type InputEmits, InputGroup, type InputGroupProps, InputNumber, type InputNumberEmits, type InputNumberProps, type VcInputNumberRef as InputNumberRef, type InputNumberStepContext, type ValueType as InputNumberValueType, InputOTP, type OTPEmits as InputOTPEmits, type OTPProps as InputOTPProps, type OTPSlots as InputOTPSlots, InputPassword, type PasswordProps as InputPasswordProps, type InputPasswordRef, type InputProps, type InputRef, InputSearch, type SearchProps as InputSearchProps, type InputSearchRef, type InputSlots, type InputTextAreaRef, type KeyWise, type KeyWiseTransferItem, Layout, LayoutContent, LayoutFooter, LayoutHeader, type BasicProps as LayoutProps, LayoutSider, type LegacyButtonType, type ListStyle, Listy, type ListyClassNames, type ListyProps, type ListyRef, type ListyScrollToConfig, type ListyStyles, _default$7 as Masonry, type MasonryEmits, type MasonryProps, type MasonryRef, type MasonrySlots, type MentionPlacement, Mentions, type MentionsClassNamesType, type MentionsEmits, Option$1 as MentionsOption, type MentionsOptionProps, type MentionsProps, type MentionsRef, type MentionsSlots, type MentionsStylesType, _default$8 as Menu, MenuDivider, type MenuEmits, MenuItem, MenuItemGroup, type MenuItemGroupProps, type MenuItemProps, type MenuItemType, type MenuProps, type MenuRef, type MenuSlots, _default$9 as Modal, type ModalEmits, type ModalProps, type ModalSlots, type MonthPickerProps, Pagination, type PaginationClassNamesType, type PaginationComponents, type PaginationConfig, type PaginationEmits, type PaginationLocale, type PaginationPosition, type PaginationProps, type PaginationSizeChangerProps, type PaginationSlots, type PaginationStylesType, Popconfirm, type PopconfirmEmits, type PopconfirmProps, type PopconfirmSlots, Popover, type PopoverEmits, type PopoverProps, type PopoverRef, type PopoverSlots, Progress, type ProgressProps, QRCode, type QRCodeEmits, type QRCodeProps, type QRCodeRef, InternalRadio as Radio, RadioButton, type RadioChangeEvent, type RadioEmits, RadioGroup, type RadioGroupEmits, type RadioGroupOptionType, type RadioGroupProps, type RadioGroupSlots, type RadioOptionType, type RadioProps, type RadioSlots, type RangePickerProps, Rate, type RateEmits, type RateProps, type RenderResult, type RenderResultObject, _default$10 as Result, type ResultProps, type ResultRef, type ResultSlots, type ResultStatusType, Row, type RowProps, type Rule, type RuleObject, type RuleRender, type RuleType, Segmented, type SegmentedEmits, type SegmentedOptions, type SegmentedProps, type SegmentedSlots, Select, type SelectAllLabel, type SelectEmits, SelectOptGroup, SelectOption, type SelectProps, type SelectSlots, type SelectValue, type SizeType, SkeletonWithSubComponents as Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, type SkeletonProps, type SkeletonRef, Slider, type SliderEmits, type SliderProps, type SliderRef, Space, SpaceAddon, SpaceCompact, type SpaceCompactProps, type SpaceCompactRef, type SpaceProps, type SpaceSize, type SpaceSlots, _default$11 as Spin, type SpinProps, type SpinRef, type SpinSlots, Splitter, type SplitterEmits, SplitterPanel, type SplitterProps, type SplitterRef, type SplitterSlots, _default$12 as Statistic, type StatisticProps, type StatisticRef, StatisticTimer, type StatisticTimerProps, type StepItem, Steps, type StepsEmits, type StepsProps, type StepsSlots, StyleProvider, SubMenu, type SubMenuProps, Switch, type SwitchEmits, type SwitchProps, type SwitchSize, type SwitchSlots, TabPane, type TabPaneProps, _default$13 as Table, type TableClassNamesType, Column as TableColumn, ColumnGroup as TableColumnGroup, type ColumnType as TableColumnType, type ColumnsType as TableColumnsType, type DataIndex as TableDataIndex, type TableEmits, type TableLocale, type TablePaginationConfig, type TableProps, type TableRowSelection, type TableSlots, type SortOrder as TableSortOrder, type SorterResult as TableSorterResult, type TableStylesType, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, Tabs, type TabsEmits, type TabsProps, type TabsRef, type TabsSlots, Tag, type TagProps, type TagSlots, InternalTextArea as TextArea, type TextAreaProps, type TextAreaRef, type ThemeConfig, _default$14 as TimePicker, type TimePickerEmits, type TimePickerLocale, type TimePickerProps, type TimePickerSlots, TimeRangePicker, type TimeRangePickerEmits, type TimeRangePickerProps, Timeline, TimelineItem, type TimelineItemProps, type TimelineItemSlots, type TimelineItemType, type TimelineProps, _default$15 as Tooltip, type TooltipAlignConfig, type TooltipEmits, type TooltipPlacement, type TooltipProps, type TooltipRef, type TooltipSlots, Tour, type TourEmits, type TourLocale, type TourProps, type TourSlots, type TourStepItem, type TourStylesType, InternalTransfer as Transfer, type TransferClassNamesType, type TransferCustomListBodyProps, type TransferDirection, type TransferEmits, type TransferItem, type TransferKey, type TransferListBodyProps, type TransferListProps, type TransferLocale, type TransferOperationProps, type PaginationType as TransferPaginationType, type TransferProps, type TransferRef, type TransferRender, type TransferSearchEmits, type TransferSearchOption, type TransferSearchProps, type TransferSearchSlots, type TransferSlots, type TransferStylesType, Tree, type DataNode as TreeDataNode, type TreeEmits, type TreeInstance, type TreeProps, TreeSelect, type TreeSelectEmits, type TreeSelectNode, type TreeSelectProps, type TreeSelectSlots, type TreeSlots, type UseTreeConfig as TreeUseTreeConfig, Typography, type BlockProps as TypographyBaseProps, TypographyLink, type LinkProps as TypographyLinkProps, TypographyParagraph, type ParagraphProps as TypographyParagraphProps, TypographyText, type TextProps as TypographyTextProps, TypographyTitle, type TitleProps as TypographyTitleProps, UniqueProvider, Upload, type UploadChangeParam, UploadDragger, type DraggerProps as UploadDraggerProps, type UploadEmits, type UploadFile, type UploadProps, type UploadRef, type UploadSlots, Watermark, type WatermarkProps, type WatermarkRef, type WeekPickerProps, _default$16 as default, install, staticMethods as message, staticMethods$1 as notification, setPrefix, _default$17 as theme, useBreakpoint, useExportConfig as useConfig, useForm, useFormInstance, useLayoutSider, useMessage, useModal, useNotification, useResponsive, useTree, _version2 as version };
|
package/dist/index.js
CHANGED
|
@@ -91,7 +91,7 @@ import Switch from "./switch/index.js";
|
|
|
91
91
|
import Column from "./table/Column.js";
|
|
92
92
|
import ColumnGroup from "./table/ColumnGroup.js";
|
|
93
93
|
import DirectoryTree from "./tree/DirectoryTree.js";
|
|
94
|
-
import Tree from "./tree/index.js";
|
|
94
|
+
import Tree, { useTree } from "./tree/index.js";
|
|
95
95
|
import InternalTable, { Summary, SummaryCell, SummaryRow } from "./table/index.js";
|
|
96
96
|
import CheckableTag from "./tag/CheckableTag.js";
|
|
97
97
|
import CheckableTagGroup from "./tag/CheckableTagGroup.js";
|
|
@@ -128,4 +128,4 @@ var src_default = {
|
|
|
128
128
|
version: version_default
|
|
129
129
|
};
|
|
130
130
|
//#endregion
|
|
131
|
-
export { Affix, alert_default as Alert, anchor_default as Anchor, App, AutoComplete, Option as AutoCompleteOption, Avatar, AvatarGroup, BackTopWithInstall as BackTop, Badge, BadgeRibbon, border_beam_default as BorderBeam, breadcrumb_default as Breadcrumb, BreadcrumbItem, BreadcrumbSeparator, button_default as Button, Calendar, card_default as Card, CardGrid, CardMeta, Carousel, Cascader, CascaderPanel, CheckableTag, CheckableTagGroup, checkbox_default as Checkbox, CheckboxGroup, Col, collapse_default as Collapse, CollapsePanel, color_picker_default as ColorPicker, ConfigProvider, DateMonthPicker, DatePicker, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItem, DirectoryTree, Divider, Drawer, Dropdown, Empty, Flex, float_button_default as FloatButton, FloatButtonGroup, form_default as Form, InternalFormItem as FormItem, Image, ImagePreviewGroup, CompoundedInput as Input, InputGroup, InputNumber, InputOTP, InputPassword, InputSearch, layout_default as Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, Listy, masonry_default as Masonry, Mentions, Option$1 as MentionsOption, Menu, MenuDivider, MenuItem, MenuItemGroup, Modal, pagination_default as Pagination, Popconfirm, Popover, Progress, QRCode, radio_default as Radio, RadioButton, RadioGroup, Rate, Result, Row, Segmented, Select, SelectOptGroup, SelectOption, skeleton_default as Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, Slider, Space, SpaceAddon, SpaceCompact, Spin, splitter_default as Splitter, SplitterPanel, statistic_default as Statistic, StatisticTimer, Steps, StyleProvider, SubMenu, Switch, TabPane, InternalTable as Table, Column as TableColumn, ColumnGroup as TableColumnGroup, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, Tabs, Tag, InternalTextArea as TextArea, TimePicker, TimeRangePicker, timeline_default as Timeline, TimelineItem, InternalTooltip as Tooltip, Tour, InternalTransfer as Transfer, Tree, TreeSelect, Typography, TypographyLink, TypographyParagraph, TypographyText, TypographyTitle, UniqueProvider, Upload, UploadDragger, Watermark, src_default as default, install, staticMethods as message, staticMethods$1 as notification, setPrefix, theme_default as theme, useBreakpoint, useExportConfig as useConfig, useForm, useFormInstance, useLayoutSider, useMessage, useModal, useNotification, useResponsive, version_default as version };
|
|
131
|
+
export { Affix, alert_default as Alert, anchor_default as Anchor, App, AutoComplete, Option as AutoCompleteOption, Avatar, AvatarGroup, BackTopWithInstall as BackTop, Badge, BadgeRibbon, border_beam_default as BorderBeam, breadcrumb_default as Breadcrumb, BreadcrumbItem, BreadcrumbSeparator, button_default as Button, Calendar, card_default as Card, CardGrid, CardMeta, Carousel, Cascader, CascaderPanel, CheckableTag, CheckableTagGroup, checkbox_default as Checkbox, CheckboxGroup, Col, collapse_default as Collapse, CollapsePanel, color_picker_default as ColorPicker, ConfigProvider, DateMonthPicker, DatePicker, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItem, DirectoryTree, Divider, Drawer, Dropdown, Empty, Flex, float_button_default as FloatButton, FloatButtonGroup, form_default as Form, InternalFormItem as FormItem, Image, ImagePreviewGroup, CompoundedInput as Input, InputGroup, InputNumber, InputOTP, InputPassword, InputSearch, layout_default as Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, Listy, masonry_default as Masonry, Mentions, Option$1 as MentionsOption, Menu, MenuDivider, MenuItem, MenuItemGroup, Modal, pagination_default as Pagination, Popconfirm, Popover, Progress, QRCode, radio_default as Radio, RadioButton, RadioGroup, Rate, Result, Row, Segmented, Select, SelectOptGroup, SelectOption, skeleton_default as Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, Slider, Space, SpaceAddon, SpaceCompact, Spin, splitter_default as Splitter, SplitterPanel, statistic_default as Statistic, StatisticTimer, Steps, StyleProvider, SubMenu, Switch, TabPane, InternalTable as Table, Column as TableColumn, ColumnGroup as TableColumnGroup, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, Tabs, Tag, InternalTextArea as TextArea, TimePicker, TimeRangePicker, timeline_default as Timeline, TimelineItem, InternalTooltip as Tooltip, Tour, InternalTransfer as Transfer, Tree, TreeSelect, Typography, TypographyLink, TypographyParagraph, TypographyText, TypographyTitle, UniqueProvider, Upload, UploadDragger, Watermark, src_default as default, install, staticMethods as message, staticMethods$1 as notification, setPrefix, theme_default as theme, useBreakpoint, useExportConfig as useConfig, useForm, useFormInstance, useLayoutSider, useMessage, useModal, useNotification, useResponsive, useTree, version_default as version };
|
package/dist/input/OTP/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr,
|
|
|
5
5
|
import { toPropsRefs } from "../../_util/tools.js";
|
|
6
6
|
import { getMergedStatus } from "../../_util/statusUtils.js";
|
|
7
7
|
import { useFormItemInputContext, useFormItemInputContextProvider } from "../../form/context.js";
|
|
8
|
+
import useVariant from "../../form/hooks/useVariant.js";
|
|
8
9
|
import otp_default from "../style/otp.js";
|
|
9
10
|
import OTPInput from "./OTPInput.js";
|
|
10
11
|
import { Fragment, computed, createVNode, defineComponent, mergeProps, shallowRef, watch } from "vue";
|
|
@@ -25,10 +26,12 @@ const OTP = /* @__PURE__ */ defineComponent((props, { attrs, emit, slots }) => {
|
|
|
25
26
|
hasFeedback: false,
|
|
26
27
|
feedbackIcon: null
|
|
27
28
|
})));
|
|
28
|
-
const { classes, styles } = toPropsRefs(props, "classes", "styles");
|
|
29
|
+
const { classes, styles, variant: customizeVariant } = toPropsRefs(props, "classes", "styles", "variant");
|
|
30
|
+
const [mergedVariant] = useVariant("otp", customizeVariant, void 0, "input");
|
|
29
31
|
const mergedProps = computed(() => ({
|
|
30
32
|
...props,
|
|
31
|
-
length: mergedLength.value
|
|
33
|
+
length: mergedLength.value,
|
|
34
|
+
variant: mergedVariant.value
|
|
32
35
|
}));
|
|
33
36
|
const contextStyleRoot = useSemanticRootStyle(contextStyle);
|
|
34
37
|
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, contextStyleRoot, styles), useToProps(mergedProps));
|
|
@@ -107,7 +110,7 @@ const OTP = /* @__PURE__ */ defineComponent((props, { attrs, emit, slots }) => {
|
|
|
107
110
|
"type": props.type,
|
|
108
111
|
"inputMode": props.inputMode,
|
|
109
112
|
"size": mergedSize.value,
|
|
110
|
-
"variant":
|
|
113
|
+
"variant": mergedVariant.value,
|
|
111
114
|
"status": mergedStatus.value,
|
|
112
115
|
"disabled": props.disabled,
|
|
113
116
|
"class": clsx(`${prefixCls.value}-input`, mergedClassNames.value.input),
|
package/dist/input/Password.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
2
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
3
3
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
4
|
+
import useVariant from "../form/hooks/useVariant.js";
|
|
4
5
|
import useRemovePasswordTimeout from "./hooks/useRemovePasswordTimeout.js";
|
|
5
6
|
import InternalInput from "./Input.js";
|
|
6
7
|
import { Fragment, computed, createVNode, defineComponent, mergeProps, shallowRef, watch } from "vue";
|
|
@@ -10,12 +11,13 @@ import { omit } from "es-toolkit";
|
|
|
10
11
|
//#region src/input/Password.tsx
|
|
11
12
|
const defaultIconRender = (visible) => visible ? createVNode(EyeOutlined, null, null) : createVNode(EyeInvisibleOutlined, null, null);
|
|
12
13
|
const InternalPassword = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit, expose }) => {
|
|
13
|
-
const { disabled: customDisabled, inputPrefixCls: customizeInputPrefixCls } = toPropsRefs(props, "disabled", "inputPrefixCls");
|
|
14
|
+
const { disabled: customDisabled, inputPrefixCls: customizeInputPrefixCls, variant: customizeVariant, bordered } = toPropsRefs(props, "disabled", "inputPrefixCls", "variant", "bordered");
|
|
14
15
|
const { getPrefixCls } = useComponentBaseConfig("input", props);
|
|
15
16
|
const inputPrefixCls = computed(() => getPrefixCls("input", customizeInputPrefixCls.value));
|
|
16
17
|
const passwordPrefixCls = computed(() => getPrefixCls("input-password", props.prefixCls));
|
|
17
18
|
const disabledContext = useDisabledContext();
|
|
18
19
|
const mergedDisabled = computed(() => customDisabled.value ?? disabledContext.value);
|
|
20
|
+
const [mergedVariant] = useVariant("inputPassword", customizeVariant, bordered, "input");
|
|
19
21
|
const inputRef = shallowRef();
|
|
20
22
|
const removePasswordTimeout = useRemovePasswordTimeout(inputRef);
|
|
21
23
|
const visibilityToggle = computed(() => props.visibilityToggle ?? true);
|
|
@@ -93,6 +95,7 @@ const InternalPassword = /* @__PURE__ */ defineComponent((props, { slots, attrs,
|
|
|
93
95
|
"type": visible.value ? "text" : "password",
|
|
94
96
|
"suffix": mergedSuffix,
|
|
95
97
|
"disabled": mergedDisabled.value,
|
|
98
|
+
"variant": mergedVariant.value,
|
|
96
99
|
"rootClass": clsx(passwordPrefixCls.value, props.rootClass, { [`${passwordPrefixCls.value}-${props.size}`]: props.size }),
|
|
97
100
|
"onChange": handleChange,
|
|
98
101
|
"onFocus": handleFocus,
|
package/dist/input/Search.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
2
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
3
3
|
import { useCompactItemContext } from "../space/Compact.js";
|
|
4
|
-
import { getAttrStyleAndClass, useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
4
|
+
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
5
5
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
6
6
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
7
7
|
import button_default from "../button/index.js";
|
|
8
|
+
import useVariant from "../form/hooks/useVariant.js";
|
|
8
9
|
import { SpaceCompact } from "../space/index.js";
|
|
9
10
|
import InternalInput from "./Input.js";
|
|
10
11
|
import search_default from "./style/search.js";
|
|
@@ -32,17 +33,22 @@ const InternalSearch = /* @__PURE__ */ defineComponent((props, { slots, attrs, e
|
|
|
32
33
|
const inputRef = shallowRef();
|
|
33
34
|
const { prefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, getPrefixCls } = useComponentBaseConfig("inputSearch", props, void 0, "input-search");
|
|
34
35
|
const inputPrefixCls = computed(() => getPrefixCls("input", props.inputPrefixCls));
|
|
35
|
-
const { classes, styles, size: customizeSize, disabled: customDisabled, variant } = toPropsRefs(props, "classes", "styles", "size", "disabled", "variant");
|
|
36
|
+
const { classes, styles, size: customizeSize, disabled: customDisabled, variant: customizeVariant, bordered } = toPropsRefs(props, "classes", "styles", "size", "disabled", "variant", "bordered");
|
|
36
37
|
const contextDisabled = useDisabledContext();
|
|
37
38
|
const mergedDisabled = computed(() => customDisabled.value ?? contextDisabled.value);
|
|
39
|
+
const [searchVariant, , isVariantConfigured] = useVariant("inputSearch", customizeVariant, bordered);
|
|
40
|
+
const variant = computed(() => isVariantConfigured.value ? searchVariant.value : void 0);
|
|
41
|
+
const [inputVariant] = useVariant("inputSearch", customizeVariant, bordered, "input");
|
|
38
42
|
const [hashId, cssVarCls] = search_default(prefixCls);
|
|
39
43
|
const { compactSize } = useCompactItemContext(prefixCls, direction);
|
|
40
44
|
const mergedSize = useSize((ctx) => customizeSize.value ?? compactSize.value ?? ctx);
|
|
41
45
|
const mergedProps = computed(() => ({
|
|
42
46
|
...props,
|
|
43
|
-
enterButton: props.enterButton
|
|
47
|
+
enterButton: props.enterButton,
|
|
48
|
+
variant: variant.value
|
|
44
49
|
}));
|
|
45
|
-
const
|
|
50
|
+
const contextStyleRoot = useSemanticRootStyle(contextStyle);
|
|
51
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, contextStyleRoot, styles), useToProps(mergedProps), computed(() => schema));
|
|
46
52
|
const handleSearch = (event, info, value) => {
|
|
47
53
|
emit("search", value ?? inputRef.value?.input?.value ?? "", event, info ?? { source: "input" });
|
|
48
54
|
};
|
|
@@ -89,7 +95,6 @@ const InternalSearch = /* @__PURE__ */ defineComponent((props, { slots, attrs, e
|
|
|
89
95
|
}, className, props.rootClass, contextClassName.value, mergedClassNames.value.root, hashId.value);
|
|
90
96
|
const mergedRootStyle = {
|
|
91
97
|
...mergedStyles.value.root,
|
|
92
|
-
...contextStyle.value,
|
|
93
98
|
...style
|
|
94
99
|
};
|
|
95
100
|
const btnPrefixCls = `${prefixCls.value}-btn`;
|
|
@@ -144,7 +149,7 @@ const InternalSearch = /* @__PURE__ */ defineComponent((props, { slots, attrs, e
|
|
|
144
149
|
"disabled": customDisabled.value,
|
|
145
150
|
"classes": inputClassNames,
|
|
146
151
|
"styles": inputStyles,
|
|
147
|
-
"variant":
|
|
152
|
+
"variant": inputVariant.value,
|
|
148
153
|
"onChange": handleChange,
|
|
149
154
|
"onFocus": (e) => emit("focus", e),
|
|
150
155
|
"onBlur": (e) => emit("blur", e),
|
package/dist/input/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { EmptyEmit } from "../_util/type.js";
|
|
2
2
|
import InternalInput, { InputEmits, InputProps, InputRef, InputSlots } from "./Input.js";
|
|
3
3
|
import OTP, { OTPEmits, OTPProps, OTPSlots } from "./OTP/index.js";
|
|
4
|
+
import InternalPassword, { InputPasswordRef, PasswordEmits, PasswordProps, PasswordSlots } from "./Password.js";
|
|
4
5
|
import InternalSearch, { InputSearchRef, SearchEmits, SearchProps, SearchSlots } from "./Search.js";
|
|
5
6
|
import InternalTextArea, { InputTextAreaRef, TextAreaProps, TextAreaRef } from "./TextArea.js";
|
|
6
7
|
import InputGroup$1, { InputGroupProps } from "./Group.js";
|
|
7
|
-
import InternalPassword, { InputPasswordRef, PasswordEmits, PasswordProps, PasswordSlots } from "./Password.js";
|
|
8
8
|
import { App } from "vue";
|
|
9
9
|
//#region src/input/index.d.ts
|
|
10
10
|
type CompoundedInputType = typeof InternalInput & {
|
|
@@ -4,7 +4,7 @@ function initInputToken(token) {
|
|
|
4
4
|
return mergeToken(token, { inputAffixPadding: token.paddingXXS });
|
|
5
5
|
}
|
|
6
6
|
function initComponentToken(token) {
|
|
7
|
-
const { controlHeight, fontSize, lineHeight, lineWidth, controlHeightSM, controlHeightLG, fontSizeLG, lineHeightLG, paddingSM, controlPaddingHorizontalSM, controlPaddingHorizontal, colorFillAlter, colorPrimaryHover, colorPrimary, controlOutlineWidth, controlOutline, colorErrorOutline, colorWarningOutline, colorBgContainer, inputFontSize, inputFontSizeLG, inputFontSizeSM } = token;
|
|
7
|
+
const { controlHeight, fontSize, lineHeight, lineWidth, lineWidthFocus, controlHeightSM, controlHeightLG, fontSizeLG, lineHeightLG, paddingSM, controlPaddingHorizontalSM, controlPaddingHorizontal, colorFillAlter, colorPrimaryHover, colorPrimary, controlOutlineWidth, controlOutline, colorErrorOutline, colorWarningOutline, colorBgContainer, inputFontSize, inputFontSizeLG, inputFontSizeSM } = token;
|
|
8
8
|
const mergedFontSize = inputFontSize || fontSize;
|
|
9
9
|
const mergedFontSizeSM = inputFontSizeSM || mergedFontSize;
|
|
10
10
|
const mergedFontSizeLG = inputFontSizeLG || fontSizeLG;
|
|
@@ -12,6 +12,7 @@ function initComponentToken(token) {
|
|
|
12
12
|
const paddingBlockSM = Math.round((controlHeightSM - mergedFontSizeSM * lineHeight) / 2 * 10) / 10 - lineWidth;
|
|
13
13
|
const paddingBlockLG = Math.ceil((controlHeightLG - mergedFontSizeLG * lineHeightLG) / 2 * 10) / 10 - lineWidth;
|
|
14
14
|
return {
|
|
15
|
+
lineWidthFocus: lineWidthFocus === 0 ? 0 : lineWidth,
|
|
15
16
|
paddingBlock: Math.max(paddingBlock, 0),
|
|
16
17
|
paddingBlockSM: Math.max(paddingBlockSM, 0),
|
|
17
18
|
paddingBlockLG: Math.max(paddingBlockLG, 0),
|
|
@@ -103,7 +103,7 @@ const genOutlinedGroupStyle = (token) => ({ "&-outlined": {
|
|
|
103
103
|
const borderlessFocusVisibleSelector = "&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)";
|
|
104
104
|
function genBorderlessFocusVisibleStyle(token, outlineColor) {
|
|
105
105
|
return {
|
|
106
|
-
outline: `${unit(token.
|
|
106
|
+
outline: `${unit(token.lineWidthFocus)} ${token.lineType} ${outlineColor}`,
|
|
107
107
|
outlineOffset: unit(token.calc(token.lineWidth).mul(-1).equal()),
|
|
108
108
|
transition: [`outline-offset`, `outline`].map((prop) => `${prop} 0s`).join(", ")
|
|
109
109
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
1
2
|
import { SemanticType } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
-
import { CSSProperties
|
|
3
|
+
import { CSSProperties } from "vue";
|
|
3
4
|
import { ListyClassNames, ListyProps as ListyProps$1, ListyRef, ListyScrollToConfig, ListyStyles, ScrollAlign } from "@v-c/listy";
|
|
4
5
|
//#region src/listy/interface.d.ts
|
|
5
6
|
interface ListySemanticType {
|
|
@@ -14,7 +15,7 @@ interface ListyProps extends Omit<ListyProps$1, 'itemHeight' | 'direction' | 'cl
|
|
|
14
15
|
style?: CSSProperties;
|
|
15
16
|
classes?: ListyClassNamesType;
|
|
16
17
|
styles?: ListyStylesType;
|
|
17
|
-
itemRender?: (item: any) =>
|
|
18
|
+
itemRender?: (item: any, index: number) => VueNode;
|
|
18
19
|
}
|
|
19
20
|
//#endregion
|
|
20
21
|
export { type ListyClassNames, ListyProps, type ListyRef, type ListyScrollToConfig, ListySemanticType, type ListyStyles, type ScrollAlign };
|