antdv-next 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_util/statusUtils.d.ts +1 -1
- package/dist/_util/vueNode.d.ts +11 -1
- package/dist/_util/vueNode.js +17 -1
- package/dist/affix/index.js +12 -9
- package/dist/anchor/Anchor.js +11 -6
- package/dist/anchor/style/index.js +2 -3
- package/dist/antd-with-locales.esm.js +16246 -18306
- package/dist/antd-with-locales.js +80 -87
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +14610 -16673
- package/dist/antd.js +80 -87
- package/dist/avatar/Avatar.js +1 -1
- package/dist/avatar/AvatarContext.d.ts +2 -2
- package/dist/avatar/AvatarGroup.js +3 -5
- package/dist/breadcrumb/index.d.ts +8 -1
- package/dist/calendar/generateCalendar.d.ts +10 -10
- package/dist/calendar/index.d.ts +1 -1
- package/dist/card/index.d.ts +8 -1
- package/dist/card/style/index.js +3 -7
- package/dist/cascader/hooks/useIcons.js +3 -2
- package/dist/cascader/index.d.ts +2 -0
- package/dist/checkbox/Group.js +4 -4
- package/dist/color-picker/style/input.js +6 -11
- package/dist/components.d.ts +23 -23
- package/dist/components.js +1 -2
- package/dist/config-provider/context.d.ts +3 -2
- package/dist/date-picker/generatePicker/generateRangePicker.js +4 -4
- package/dist/date-picker/generatePicker/generateSinglePicker.js +4 -4
- package/dist/date-picker/generatePicker/interface.d.ts +17 -5
- package/dist/date-picker/generatePicker/useComponents.d.ts +1 -14
- package/dist/date-picker/util.d.ts +6 -2
- package/dist/descriptions/hooks/useItems.d.ts +6 -6
- package/dist/dropdown/style/index.js +0 -6
- package/dist/empty/index.js +2 -1
- package/dist/float-button/BackTop.js +2 -1
- package/dist/form/Form.js +8 -7
- package/dist/form/FormItem/index.js +9 -7
- package/dist/form/FormItemLabel.js +1 -1
- package/dist/form/context.d.ts +2 -2
- package/dist/form/hooks/useVariant.d.ts +1 -1
- package/dist/grid/hooks/useBreakpoint.js +12 -6
- package/dist/image/PreviewGroup.d.ts +9 -2
- package/dist/image/hooks/usePreviewConfig.d.ts +7 -7
- package/dist/image/index.d.ts +3 -3
- package/dist/index.d.ts +25 -23
- package/dist/index.js +1 -2
- package/dist/input/style/index.js +2 -15
- package/dist/listy/interface.d.ts +23 -4
- package/dist/listy/style/index.js +1 -0
- package/dist/message/style/index.js +2 -1
- package/dist/modal/PurePanel.js +2 -2
- package/dist/modal/style/confirm.js +1 -1
- package/dist/notification/style/index.d.ts +3 -0
- package/dist/notification/style/index.js +4 -5
- package/dist/package.js +1 -1
- package/dist/pagination/style/index.js +12 -4
- package/dist/popconfirm/index.js +2 -1
- package/dist/progress/Line.js +2 -1
- package/dist/progress/progress.js +1 -1
- package/dist/qrcode/QrcodeStatus.js +2 -1
- package/dist/select/useIcons.d.ts +6 -2
- package/dist/slider/index.d.ts +6 -1
- package/dist/slider/index.js +5 -3
- package/dist/space/Compact.d.ts +1 -1
- package/dist/space/Item.d.ts +1 -0
- package/dist/space/Item.js +6 -2
- package/dist/space/index.js +1 -0
- package/dist/spin/Indicator/index.js +5 -1
- package/dist/splitter/Splitter.js +8 -2
- package/dist/splitter/interface.d.ts +1 -0
- package/dist/statistic/Statistic.d.ts +3 -0
- package/dist/statistic/Statistic.js +2 -1
- package/dist/steps/index.js +9 -7
- package/dist/switch/index.js +8 -2
- package/dist/table/InternalTable.js +20 -5
- package/dist/table/index.d.ts +2 -2
- package/dist/table/util.d.ts +1 -1
- package/dist/tabs/style/index.js +2 -6
- package/dist/tag/hooks/useColor.d.ts +1 -1
- package/dist/time-picker/index.d.ts +10 -9
- package/dist/time-picker/index.js +20 -83
- package/dist/tooltip/style/index.js +0 -1
- package/dist/tree/DirectoryTree.d.ts +19 -7
- package/dist/tree/Tree.d.ts +73 -58
- package/dist/tree/index.d.ts +8 -5
- package/dist/tree/index.js +4 -3
- package/dist/upload/utils.js +8 -3
- package/dist/version/token.json +1 -1
- package/package.json +20 -20
- package/web-tags.json +6 -2
- package/web-types.json +11 -3
|
@@ -8,23 +8,23 @@ declare function useItems(screens: Ref<ScreenMap>, items: Ref<DescriptionsItemTy
|
|
|
8
8
|
filled: boolean;
|
|
9
9
|
_$index: number;
|
|
10
10
|
key?: import("@v-c/util/dist/type").Key;
|
|
11
|
-
|
|
11
|
+
styles?: CellSemanticStyles | undefined;
|
|
12
12
|
style?: import("vue").CSSProperties | undefined;
|
|
13
|
-
label?: VueNode;
|
|
14
13
|
classes?: CellSemanticClassNames | undefined;
|
|
15
|
-
styles?: CellSemanticStyles | undefined;
|
|
16
14
|
rootClass?: string | undefined;
|
|
17
15
|
content?: VueNode;
|
|
16
|
+
label?: VueNode;
|
|
17
|
+
class?: string | undefined;
|
|
18
18
|
} | {
|
|
19
19
|
span: number | undefined;
|
|
20
20
|
key?: import("@v-c/util/dist/type").Key;
|
|
21
|
-
|
|
21
|
+
styles?: CellSemanticStyles | undefined;
|
|
22
22
|
style?: import("vue").CSSProperties | undefined;
|
|
23
|
-
label?: VueNode;
|
|
24
23
|
classes?: CellSemanticClassNames | undefined;
|
|
25
|
-
styles?: CellSemanticStyles | undefined;
|
|
26
24
|
rootClass?: string | undefined;
|
|
27
25
|
content?: VueNode;
|
|
26
|
+
label?: VueNode;
|
|
27
|
+
class?: string | undefined;
|
|
28
28
|
_$index: number;
|
|
29
29
|
})[]>;
|
|
30
30
|
//#endregion
|
|
@@ -33,12 +33,6 @@ const genBaseStyle = (token) => {
|
|
|
33
33
|
overflowY: "auto"
|
|
34
34
|
},
|
|
35
35
|
[`&-trigger${antCls}-btn`]: { [`& > ${iconCls}-down, & > ${antCls}-btn-icon > ${iconCls}-down`]: { fontSize: fontSizeIcon } },
|
|
36
|
-
[`${componentCls}-wrap`]: {
|
|
37
|
-
position: "relative",
|
|
38
|
-
[`${antCls}-btn > ${iconCls}-down`]: { fontSize: fontSizeIcon },
|
|
39
|
-
[`${iconCls}-down::before`]: { transition: `transform ${motionDurationMid}` }
|
|
40
|
-
},
|
|
41
|
-
[`${componentCls}-wrap-open`]: { [`${iconCls}-down::before`]: { transform: `rotate(180deg)` } },
|
|
42
36
|
[`
|
|
43
37
|
&-hidden,
|
|
44
38
|
&-menu-hidden,
|
package/dist/empty/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import { pureAttrs, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps
|
|
|
3
3
|
import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
4
4
|
import { isRenderable } from "../_util/is.js";
|
|
5
5
|
import useLocale from "../locale/useLocale.js";
|
|
6
|
+
import { cloneIfVNode } from "../_util/vueNode.js";
|
|
6
7
|
import Empty$1 from "./empty.js";
|
|
7
8
|
import Simple from "./simple.js";
|
|
8
9
|
import style_default from "./style/index.js";
|
|
@@ -32,7 +33,7 @@ const Empty = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose })
|
|
|
32
33
|
"alt": alt,
|
|
33
34
|
"src": mergedImage
|
|
34
35
|
}, null);
|
|
35
|
-
else imageNode = mergedImage;
|
|
36
|
+
else imageNode = cloneIfVNode(mergedImage);
|
|
36
37
|
const children = filterEmpty(slots?.default?.() ?? []);
|
|
37
38
|
return createVNode("div", mergeProps({
|
|
38
39
|
"ref": nativeElementRef,
|
|
@@ -3,6 +3,7 @@ import { genCssVar } from "../theme/util/genStyleUtils.js";
|
|
|
3
3
|
import { getAttrStyleAndClass, pureAttrs } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import { toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
5
5
|
import scrollTo from "../_util/scrollTo.js";
|
|
6
|
+
import { cloneIfVNode } from "../_util/vueNode.js";
|
|
6
7
|
import { useGroupContext } from "./context.js";
|
|
7
8
|
import FloatButton, { floatButtonPrefixCls } from "./FloatButton.js";
|
|
8
9
|
import useScroll from "./hooks/useScroll.js";
|
|
@@ -34,7 +35,7 @@ const BackTopWithInstall = /* @__PURE__ */ defineComponent((props, { attrs, slot
|
|
|
34
35
|
const mergedIcon = computed(() => {
|
|
35
36
|
const slotIcon = slots.icon ? filterEmpty(slots.icon()) : [];
|
|
36
37
|
if (slotIcon.length) return slotIcon;
|
|
37
|
-
return props.icon ?? backTopIcon?.value ?? defaultIcon;
|
|
38
|
+
return cloneIfVNode(props.icon ?? backTopIcon?.value ?? defaultIcon);
|
|
38
39
|
});
|
|
39
40
|
const rootPrefixCls = computed(() => globalConfig.value?.getPrefixCls?.());
|
|
40
41
|
const transitionProps = computed(() => getTransitionProps(`${rootPrefixCls.value}-fade`));
|
package/dist/form/Form.js
CHANGED
|
@@ -74,13 +74,14 @@ const InternalForm = /* @__PURE__ */ defineComponent((props, { slots, expose, em
|
|
|
74
74
|
});
|
|
75
75
|
const contextStyleRoot = useSemanticRootStyle(contextStyle);
|
|
76
76
|
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, contextStyleRoot, styles), useToProps(mergedProps));
|
|
77
|
-
const fields =
|
|
77
|
+
const fields = {};
|
|
78
78
|
const lastValidatePromise = shallowRef();
|
|
79
79
|
const addField = (eventKey, field) => {
|
|
80
|
-
fields
|
|
80
|
+
fields[eventKey] = field;
|
|
81
81
|
};
|
|
82
|
-
const removeField = (eventKey) => {
|
|
83
|
-
|
|
82
|
+
const removeField = (eventKey, field) => {
|
|
83
|
+
if (field && fields[eventKey] !== field) return;
|
|
84
|
+
delete fields[eventKey];
|
|
84
85
|
};
|
|
85
86
|
const items = /* @__PURE__ */ new Map();
|
|
86
87
|
const addItem = (namePathStr, instance) => {
|
|
@@ -94,7 +95,7 @@ const InternalForm = /* @__PURE__ */ defineComponent((props, { slots, expose, em
|
|
|
94
95
|
};
|
|
95
96
|
const getFieldsByNameList = (namePathList, partialMatch = false) => {
|
|
96
97
|
const mergedNamePathList = namePathList?.length ? namePathList : void 0;
|
|
97
|
-
const fieldList = Object.values(fields
|
|
98
|
+
const fieldList = Object.values(fields);
|
|
98
99
|
if (!mergedNamePathList) return fieldList;
|
|
99
100
|
return fieldList.filter((field) => containsNamePath(mergedNamePathList, field.namePath(), partialMatch));
|
|
100
101
|
};
|
|
@@ -103,7 +104,7 @@ const InternalForm = /* @__PURE__ */ defineComponent((props, { slots, expose, em
|
|
|
103
104
|
};
|
|
104
105
|
const getFieldsValue = (nameList = true) => {
|
|
105
106
|
if (nameList === true) {
|
|
106
|
-
const allNameList = Object.values(fields
|
|
107
|
+
const allNameList = Object.values(fields).map((field) => field.namePath());
|
|
107
108
|
return cloneByNamePathList(model.value ?? {}, allNameList);
|
|
108
109
|
}
|
|
109
110
|
return cloneByNamePathList(model.value ?? {}, nameList);
|
|
@@ -303,7 +304,7 @@ const InternalForm = /* @__PURE__ */ defineComponent((props, { slots, expose, em
|
|
|
303
304
|
const setFields = (data) => {
|
|
304
305
|
data.forEach((item) => {
|
|
305
306
|
const namePath = getNamePath(item.name);
|
|
306
|
-
const target = Object.values(fields
|
|
307
|
+
const target = Object.values(fields).find((field) => containsNamePath([field.namePath()], namePath));
|
|
307
308
|
if (target?.setFieldState) target.setFieldState({
|
|
308
309
|
errors: item.errors || [],
|
|
309
310
|
warnings: item.warnings || [],
|
|
@@ -273,9 +273,11 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
|
|
|
273
273
|
}
|
|
274
274
|
if (itemInstance) setItemInstance(itemInstance);
|
|
275
275
|
}, { flush: "post" });
|
|
276
|
-
watch(hasName, (val, _, onCleanup) => {
|
|
277
|
-
|
|
278
|
-
|
|
276
|
+
watch([hasName, eventKey], ([val], _, onCleanup) => {
|
|
277
|
+
const fieldKey = eventKey.value;
|
|
278
|
+
const formCtx = formContext.value;
|
|
279
|
+
if (val && formCtx?.addField) {
|
|
280
|
+
const field = {
|
|
279
281
|
onFieldBlur,
|
|
280
282
|
namePath: () => namePath.value,
|
|
281
283
|
getValue: () => fieldValue.value,
|
|
@@ -295,11 +297,12 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
|
|
|
295
297
|
warnings: state.warnings ?? meta.value.warnings
|
|
296
298
|
});
|
|
297
299
|
}
|
|
298
|
-
}
|
|
300
|
+
};
|
|
301
|
+
formCtx.addField(fieldKey, field);
|
|
299
302
|
onCleanup(() => {
|
|
300
|
-
|
|
303
|
+
formCtx.removeField?.(fieldKey, field);
|
|
301
304
|
});
|
|
302
|
-
}
|
|
305
|
+
}
|
|
303
306
|
}, { immediate: true });
|
|
304
307
|
onBeforeUnmount(() => {
|
|
305
308
|
validateId++;
|
|
@@ -308,7 +311,6 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
|
|
|
308
311
|
...meta.value,
|
|
309
312
|
destroy: true
|
|
310
313
|
}, meta.value.name);
|
|
311
|
-
formContext.value?.removeField?.(eventKey.value);
|
|
312
314
|
if (itemInstanceKey) {
|
|
313
315
|
formContext.value?.removeItem?.(itemInstanceKey);
|
|
314
316
|
itemInstanceKey = void 0;
|
|
@@ -25,7 +25,7 @@ const FormItemLabel = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
25
25
|
const labelColClassName = clsx(labelClsBasic, mergedLabelAlign === "left" && `${labelClsBasic}-left`, mergedLabelCol.class, { [`${labelClsBasic}-wrap`]: !!labelWrap });
|
|
26
26
|
let labelChildren = label;
|
|
27
27
|
const computedColon = colon === true || contextColon !== false && colon !== false;
|
|
28
|
-
if (computedColon && !vertical && typeof label === "string" && label.trim()) labelChildren = label.replace(/[
|
|
28
|
+
if (computedColon && !vertical && typeof label === "string" && label.trim()) labelChildren = label.replace(/[::]\s*$/, "");
|
|
29
29
|
const tooltipProps = convertToTooltipProps(tooltip, contextTooltip);
|
|
30
30
|
if (tooltipProps) {
|
|
31
31
|
const { ...restTooltipProps } = tooltipProps;
|
package/dist/form/context.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ interface FormContextProps {
|
|
|
44
44
|
preserve?: boolean;
|
|
45
45
|
clearOnDestroy?: boolean;
|
|
46
46
|
addField?: (eventKey: string, field: FormFieldRegister) => void;
|
|
47
|
-
removeField?: (eventKey: string) => void;
|
|
47
|
+
removeField?: (eventKey: string, field?: FormFieldRegister) => void;
|
|
48
48
|
addItem?: (namePathStr: string, instance: any) => void;
|
|
49
49
|
removeItem?: (namePathStr: string) => void;
|
|
50
50
|
onValidate?: (name: InternalNamePath, status: boolean, errors: any[] | null) => void;
|
|
@@ -71,7 +71,7 @@ declare function useFormItemPrefixContext(): Ref<{
|
|
|
71
71
|
prefixCls: string;
|
|
72
72
|
}>;
|
|
73
73
|
declare function useVariantContextProvider(variant: Ref<Variant | undefined>): void;
|
|
74
|
-
declare function useVariantContext(): Ref<"
|
|
74
|
+
declare function useVariantContext(): Ref<"filled" | "outlined" | "borderless" | "underlined" | undefined, "filled" | "outlined" | "borderless" | "underlined" | undefined>;
|
|
75
75
|
interface FormItemStatusContextProps {
|
|
76
76
|
isFormItemInput?: boolean;
|
|
77
77
|
status?: ValidateStatus;
|
|
@@ -3,7 +3,7 @@ import { Variant } from "../../config-provider/context.js";
|
|
|
3
3
|
import { Ref } from "vue";
|
|
4
4
|
//#region src/form/hooks/useVariant.d.ts
|
|
5
5
|
type VariantComponents = keyof Pick<ConfigProviderProps, 'input' | 'inputPassword' | 'inputSearch' | 'otp' | 'inputNumber' | 'textArea' | 'mentions' | 'select' | 'cascader' | 'treeSelect' | 'datePicker' | 'timePicker' | 'rangePicker' | 'card'>;
|
|
6
|
-
declare function useVariant(component: VariantComponents, variant?: Ref<Variant | undefined>, legacyBordered?: Ref<boolean | undefined> | boolean, fallbackComponent?: VariantComponents): readonly [import("vue").ComputedRef<"
|
|
6
|
+
declare function useVariant(component: VariantComponents, variant?: Ref<Variant | undefined>, legacyBordered?: Ref<boolean | undefined> | boolean, fallbackComponent?: VariantComponents): readonly [import("vue").ComputedRef<"filled" | "outlined" | "borderless" | "underlined">, import("vue").ComputedRef<boolean>, import("vue").ComputedRef<boolean>];
|
|
7
7
|
declare const useVariants: typeof useVariant;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { useVariant as default, useVariants };
|
|
@@ -5,15 +5,21 @@ import canUseDom from "@v-c/util/dist/Dom/canUseDom";
|
|
|
5
5
|
function useBreakpoint(refreshOnChange = true, defaultScreens = {}) {
|
|
6
6
|
const screensRef = ref(unref(defaultScreens));
|
|
7
7
|
const responsiveObserver = useResponsiveObserver();
|
|
8
|
-
watchEffect(
|
|
8
|
+
watchEffect((onCleanup) => {
|
|
9
9
|
if (!canUseDom()) return;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
const observer = responsiveObserver.value;
|
|
11
|
+
let token;
|
|
12
|
+
let cancelled = false;
|
|
13
|
+
nextTick(() => {
|
|
14
|
+
if (cancelled) return;
|
|
15
|
+
token = observer.subscribe((supportScreens) => {
|
|
16
|
+
screensRef.value = unref(supportScreens);
|
|
17
|
+
if (unref(refreshOnChange)) {}
|
|
18
|
+
});
|
|
14
19
|
});
|
|
15
20
|
onCleanup(() => {
|
|
16
|
-
|
|
21
|
+
cancelled = true;
|
|
22
|
+
if (token !== void 0) observer.unsubscribe(token);
|
|
17
23
|
});
|
|
18
24
|
});
|
|
19
25
|
return screensRef;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { MaskType } from "../_util/hooks/useMergedMask.js";
|
|
2
|
+
import { EmptyEmit } from "../_util/type.js";
|
|
2
3
|
import "../_util/hooks/index.js";
|
|
3
4
|
import { DeprecatedPreviewConfig, ImageClassNamesType, ImageStylesType } from "./index.js";
|
|
5
|
+
import { SlotsType } from "vue";
|
|
4
6
|
import { PreviewGroupProps as PreviewGroupProps$1 } from "@v-c/image";
|
|
5
7
|
//#region src/image/PreviewGroup.d.ts
|
|
6
8
|
declare const icons: {
|
|
@@ -25,6 +27,11 @@ interface PreviewGroupProps extends Omit<PreviewGroupProps$1, 'preview' | 'style
|
|
|
25
27
|
classes?: ImageClassNamesType;
|
|
26
28
|
styles?: ImageStylesType;
|
|
27
29
|
}
|
|
28
|
-
|
|
30
|
+
interface PreviewGroupSlots {
|
|
31
|
+
default?: () => any;
|
|
32
|
+
countRender?: (...args: Parameters<NonNullable<OriginPreviewConfig['countRender']>>) => any;
|
|
33
|
+
actionsRender?: (...args: Parameters<NonNullable<OriginPreviewConfig['actionsRender']>>) => any;
|
|
34
|
+
}
|
|
35
|
+
declare const InternalPreviewGroup: import("vue").DefineSetupFnComponent<PreviewGroupProps, EmptyEmit, SlotsType<PreviewGroupSlots>, PreviewGroupProps, import("vue").PublicProps>;
|
|
29
36
|
//#endregion
|
|
30
|
-
export { GroupPreviewConfig, PreviewGroupProps, InternalPreviewGroup as default, icons };
|
|
37
|
+
export { GroupPreviewConfig, PreviewGroupProps, PreviewGroupSlots, InternalPreviewGroup as default, icons };
|
|
@@ -7,14 +7,14 @@ declare function usePreviewConfig<T extends PreviewConfig | GroupPreviewConfig>(
|
|
|
7
7
|
readonly onOpenChange: ((value: boolean, info: {
|
|
8
8
|
current: number;
|
|
9
9
|
}) => void) | undefined;
|
|
10
|
-
readonly cover: string | number | boolean | import("vue").
|
|
10
|
+
readonly cover: string | number | boolean | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}> | import("vue").ComponentOptions<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions> | import("vue").FunctionalComponent<any, {}, any, {}> | {
|
|
11
13
|
new (...args: any[]): any;
|
|
12
14
|
__isFragment?: never;
|
|
13
15
|
__isTeleport?: never;
|
|
14
16
|
__isSuspense?: never;
|
|
15
|
-
} | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
}> | (string | number | boolean | void | import("vue").Component | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
17
|
+
} | (string | number | boolean | void | import("vue").Component | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
18
18
|
[key: string]: any;
|
|
19
19
|
}> | null | undefined)[] | import("@v-c/image").CoverConfig | {
|
|
20
20
|
enabled?: boolean;
|
|
@@ -36,22 +36,22 @@ declare function usePreviewConfig<T extends PreviewConfig | GroupPreviewConfig>(
|
|
|
36
36
|
image: import("@v-c/image").ImgInfo;
|
|
37
37
|
}) => import("@v-c/util").VueNode;
|
|
38
38
|
readonly onChange?: (current: number, prevCurrent: number) => void;
|
|
39
|
-
readonly wheel?: boolean;
|
|
40
39
|
readonly focusTrap?: boolean;
|
|
41
40
|
readonly afterOpenChange?: (open: boolean) => void;
|
|
42
41
|
readonly maskClosable?: boolean;
|
|
43
42
|
readonly zIndex?: number;
|
|
44
43
|
readonly getContainer?: import("@v-c/portal/dist/Portal.js").PortalProps["getContainer"];
|
|
45
44
|
readonly closeIcon?: import("@v-c/util").VueNode | boolean | null;
|
|
46
|
-
readonly
|
|
45
|
+
readonly wheel?: boolean;
|
|
47
46
|
readonly src?: string;
|
|
48
47
|
readonly alt?: string;
|
|
49
|
-
readonly icons?: import("@v-c/image/dist/Preview/index.js").OperationIcons;
|
|
50
48
|
readonly countRender?: (current: number, total: number) => import("@v-c/util").VueNode;
|
|
51
49
|
readonly scaleStep?: number;
|
|
52
50
|
readonly minScale?: number;
|
|
53
51
|
readonly maxScale?: number;
|
|
52
|
+
readonly motionName?: string;
|
|
54
53
|
readonly movable?: boolean;
|
|
54
|
+
readonly icons?: import("@v-c/image/dist/Preview/index.js").OperationIcons;
|
|
55
55
|
readonly onTransform?: (info: {
|
|
56
56
|
transform: import("@v-c/image/dist/hooks/useImageTransform.js").TransformType;
|
|
57
57
|
action: import("@v-c/image/dist/hooks/useImageTransform.js").TransformAction;
|
package/dist/image/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MaskType } from "../_util/hooks/useMergedMask.js";
|
|
2
|
-
import { VueNode } from "../_util/type.js";
|
|
2
|
+
import { EmptyEmit, VueNode } from "../_util/type.js";
|
|
3
3
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import "../_util/hooks/index.js";
|
|
5
|
-
import InternalPreviewGroup, { PreviewGroupProps as PreviewGroupProps$1 } from "./PreviewGroup.js";
|
|
5
|
+
import InternalPreviewGroup, { PreviewGroupProps as PreviewGroupProps$1, PreviewGroupSlots } from "./PreviewGroup.js";
|
|
6
6
|
import { CSSProperties, SlotsType } from "vue";
|
|
7
7
|
import { ImageProps as ImageProps$1 } from "@v-c/image";
|
|
8
8
|
//#region src/image/index.d.ts
|
|
@@ -98,7 +98,7 @@ declare const Image: import("vue").DefineSetupFnComponent<ImageProps, ImageEmits
|
|
|
98
98
|
declare const _default_1: typeof Image & {
|
|
99
99
|
PreviewGroup: typeof InternalPreviewGroup;
|
|
100
100
|
};
|
|
101
|
-
declare const ImagePreviewGroup: import("vue").DefineSetupFnComponent<PreviewGroupProps$1,
|
|
101
|
+
declare const ImagePreviewGroup: import("vue").DefineSetupFnComponent<PreviewGroupProps$1, EmptyEmit, SlotsType<PreviewGroupSlots>, PreviewGroupProps$1, import("vue").PublicProps>;
|
|
102
102
|
type ImagePreviewGroupProps = PreviewGroupProps$1;
|
|
103
103
|
//#endregion
|
|
104
104
|
export { DeprecatedPreviewConfig, ImageClassNamesType, ImageEmits, ImageEmitsProps, ImagePopupSemanticClassNames, ImagePopupSemanticName, ImagePopupSemanticStyles, ImagePreviewGroup, ImagePreviewGroupProps, ImageProps, ImageSemanticClassNames, ImageSemanticName, ImageSemanticStyles, ImageSlots, ImageStylesType, PreviewConfig, _default_1 as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,14 +4,14 @@ import Col, { ColProps, ColSize } from "./grid/col.js";
|
|
|
4
4
|
import Row, { RowProps } from "./grid/row.js";
|
|
5
5
|
import { useBreakpoint } from "./grid/index.js";
|
|
6
6
|
import UniqueProvider from "./tooltip/UniqueProvider/index.js";
|
|
7
|
-
import _default$
|
|
7
|
+
import _default$17, { TooltipAlignConfig, TooltipEmits, TooltipPlacement, TooltipProps, TooltipRef, TooltipSlots } from "./tooltip/index.js";
|
|
8
8
|
import { Rule, RuleObject, RuleRender, RuleType } from "./form/types.js";
|
|
9
9
|
import InternalForm, { FormEmits, FormInstance, FormProps, FormSlots } from "./form/Form.js";
|
|
10
10
|
import InternalFormItem, { FormItemEmits, FormItemProps, FormItemSlots } from "./form/FormItem/index.js";
|
|
11
11
|
import { DatePickerEmits, DatePickerSlots } from "./date-picker/generatePicker/generateSinglePicker.js";
|
|
12
|
-
import _default$
|
|
13
|
-
import _default$
|
|
14
|
-
import _default$
|
|
12
|
+
import _default$16, { TimePickerEmits, TimePickerLocale, TimePickerProps, TimePickerSlots, TimeRangePicker, TimeRangePickerEmits, TimeRangePickerProps, TimeRangePickerSlots } from "./time-picker/index.js";
|
|
13
|
+
import _default$7, { DateMonthPicker, DatePickerProps, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, MonthPickerProps, RangePickerProps, WeekPickerProps } from "./date-picker/index.js";
|
|
14
|
+
import _default$8, { 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
17
|
import { PaginationClassNamesType, PaginationComponents, PaginationConfig, PaginationEmits, PaginationLocale, PaginationPosition, PaginationSizeChangerProps, PaginationSlots, PaginationStylesType } from "./pagination/interface.js";
|
|
@@ -20,7 +20,7 @@ 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
22
|
import { SplitterEmits, SplitterSlots } from "./splitter/interface.js";
|
|
23
|
-
import _default$
|
|
23
|
+
import _default$13, { SpinProps, SpinRef, SpinSlots } from "./spin/index.js";
|
|
24
24
|
import InternalCheckbox, { CheckboxEmits, CheckboxProps, CheckboxSlots } from "./checkbox/Checkbox.js";
|
|
25
25
|
import CheckboxGroup, { CheckboxGroupEmits, CheckboxGroupProps, CheckboxGroupSlots, CheckboxOptionType } from "./checkbox/Group.js";
|
|
26
26
|
import { MenuItemProps } from "./menu/MenuItem.js";
|
|
@@ -28,14 +28,14 @@ import { MenuEmits, MenuSlots } from "./menu/menu.js";
|
|
|
28
28
|
import MenuItemGroup, { MenuItemGroupProps } from "./menu/MenuItemGroup.js";
|
|
29
29
|
import SubMenu, { SubMenuProps } from "./menu/SubMenu.js";
|
|
30
30
|
import MenuDivider from "./menu/MenuDivider.js";
|
|
31
|
-
import _default$
|
|
31
|
+
import _default$10, { MenuInfo, MenuItem, MenuItemType, MenuProps, MenuRef, SelectInfo } from "./menu/index.js";
|
|
32
32
|
import { DropdownArrowOptions, DropdownEmits, DropdownProps, DropdownSlots } from "./dropdown/dropdown.js";
|
|
33
33
|
import Dropdown from "./dropdown/index.js";
|
|
34
|
-
import { ColumnType, ColumnsType, SortOrder, SorterResult, TableLocale, TablePaginationConfig, TableRowSelection } from "./table/interface.js";
|
|
34
|
+
import { ColumnType, ColumnsType, FilterDropdownProps, SortOrder, SorterResult, TableLocale, TablePaginationConfig, TableRowSelection } from "./table/interface.js";
|
|
35
35
|
import { TableClassNamesType, TableEmits, TableProps, TableSlots, TableStylesType } from "./table/InternalTable.js";
|
|
36
36
|
import Column from "./table/Column.js";
|
|
37
37
|
import ColumnGroup from "./table/ColumnGroup.js";
|
|
38
|
-
import _default$
|
|
38
|
+
import _default$15, { DataIndex, Summary, SummaryCell, SummaryRow } from "./table/index.js";
|
|
39
39
|
import { TourEmits, TourLocale, TourSlots, TourStylesType } from "./tour/interface.js";
|
|
40
40
|
import Tour, { TourProps, TourStepItem } from "./tour/index.js";
|
|
41
41
|
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";
|
|
@@ -46,21 +46,21 @@ import InternalTransfer, { TransferProps } from "./transfer/index.js";
|
|
|
46
46
|
import Progress, { ProgressProps } from "./progress/progress.js";
|
|
47
47
|
import { UploadChangeParam, UploadEmits, UploadFile, UploadSlots } from "./upload/interface.js";
|
|
48
48
|
import { useExportConfig } from "./config-provider/hooks/useConfig.js";
|
|
49
|
-
import _default$
|
|
49
|
+
import _default$6, { ConfigProviderProps } from "./config-provider/index.js";
|
|
50
50
|
import Alert, { AlertEmits, AlertProps, AlertSemanticType, AlertSlots } from "./alert/Alert.js";
|
|
51
51
|
import { Affix, AffixEmits, AffixProps, AffixRef } from "./affix/index.js";
|
|
52
52
|
import { AnchorLinkProps } from "./anchor/AnchorLink.js";
|
|
53
53
|
import Anchor, { AnchorEmits, AnchorProps, AnchorSlots } from "./anchor/Anchor.js";
|
|
54
54
|
import { RibbonProps, RibbonRef } from "./badge/Ribbon.js";
|
|
55
55
|
import Badge, { BadgeProps, BadgeRibbon, BadgeSlots } from "./badge/index.js";
|
|
56
|
-
import _default$
|
|
57
|
-
import _default$
|
|
58
|
-
import
|
|
56
|
+
import _default$2, { BreadcrumbItemProps } from "./breadcrumb/BreadcrumbItem.js";
|
|
57
|
+
import _default$3 from "./breadcrumb/BreadcrumbSeparator.js";
|
|
58
|
+
import { BreadcrumbEmits, BreadcrumbProps, BreadcrumbRef, BreadcrumbSlots, ItemType } from "./breadcrumb/Breadcrumb.js";
|
|
59
59
|
import { CalendarMode, CalendarProps, CalendarRef } from "./calendar/generateCalendar.js";
|
|
60
|
-
import _default$
|
|
60
|
+
import _default$4 from "./calendar/index.js";
|
|
61
61
|
import TabPane, { TabPaneProps } from "./tabs/TabPane.js";
|
|
62
62
|
import Tabs, { TabsEmits, TabsProps, TabsRef, TabsSlots } from "./tabs/index.js";
|
|
63
|
-
import
|
|
63
|
+
import { CardEmits, CardProps, CardSize, CardSlots, CardTabListType } from "./card/Card.js";
|
|
64
64
|
import CardMeta, { CardMetaProps, CardMetaRef } from "./card/CardMeta.js";
|
|
65
65
|
import CascaderPanel, { CascaderPanelEmits, CascaderPanelProps, CascaderPanelSlots } from "./cascader/Panel.js";
|
|
66
66
|
import Cascader, { CascaderEmits, CascaderProps, CascaderSlots } from "./cascader/index.js";
|
|
@@ -94,7 +94,7 @@ import staticMethods$1 from "./notification/index.js";
|
|
|
94
94
|
import { QRCodeEmits } from "./qrcode/interface.js";
|
|
95
95
|
import QRCode, { QRCodeProps, QRCodeRef } from "./qrcode/index.js";
|
|
96
96
|
import { RadioChangeEvent, RadioEmits, RadioGroupEmits, RadioGroupOptionType, RadioGroupSlots, RadioSlots } from "./radio/interface.js";
|
|
97
|
-
import _default$
|
|
97
|
+
import _default$12, { ResultProps, ResultRef, ResultSlots, ResultStatusType } from "./result/index.js";
|
|
98
98
|
import Segmented, { SegmentedEmits, SegmentedOptions, SegmentedProps, SegmentedSlots } from "./segmented/index.js";
|
|
99
99
|
import SkeletonAvatar from "./skeleton/Avatar.js";
|
|
100
100
|
import SkeletonButton from "./skeleton/Button.js";
|
|
@@ -108,7 +108,7 @@ import Space, { SpaceAddon, SpaceCompact, SpaceProps, SpaceSize, SpaceSlots } fr
|
|
|
108
108
|
import Splitter, { SplitterRef } from "./splitter/Splitter.js";
|
|
109
109
|
import { SplitterPanel, SplitterProps } from "./splitter/index.js";
|
|
110
110
|
import { StatisticRef } from "./statistic/Statistic.js";
|
|
111
|
-
import _default$
|
|
111
|
+
import _default$14, { StatisticProps, StatisticTimer, StatisticTimerProps } from "./statistic/index.js";
|
|
112
112
|
import Steps, { StepItem, StepsEmits, StepsProps, StepsSlots } from "./steps/index.js";
|
|
113
113
|
import Switch, { SwitchEmits, SwitchProps, SwitchSize, SwitchSlots } from "./switch/index.js";
|
|
114
114
|
import CheckableTag, { CheckableTagProps } from "./tag/CheckableTag.js";
|
|
@@ -117,8 +117,8 @@ import Tag, { TagProps, TagSlots } from "./tag/index.js";
|
|
|
117
117
|
import Timeline, { TimelineItemType, TimelineProps } from "./timeline/Timeline.js";
|
|
118
118
|
import { TimelineItem, TimelineItemProps, TimelineItemSlots } from "./timeline/TimelineItem.js";
|
|
119
119
|
import { AntTreeNode, AntTreeNodeCheckedEvent, AntTreeNodeExpandedEvent, AntTreeNodeMouseEvent, AntTreeNodeProps, AntTreeNodeSelectedEvent, AntdTreeNodeAttribute, TreeEmits, TreeProps, TreeSlots } from "./tree/Tree.js";
|
|
120
|
-
import
|
|
121
|
-
import Tree, { BasicDataNode, DataNode, TreeInstance, UseTreeConfig, useTree } from "./tree/index.js";
|
|
120
|
+
import { DirectoryTreeEmits, DirectoryTreeProps, DirectoryTreeSlots, ExpandAction } from "./tree/DirectoryTree.js";
|
|
121
|
+
import Tree, { BasicDataNode, DataNode, DirectoryTree, TreeInstance, UseTreeConfig, useTree } from "./tree/index.js";
|
|
122
122
|
import TreeSelect, { TreeSelectEmits, TreeSelectNode, TreeSelectProps, TreeSelectSlots } from "./tree-select/index.js";
|
|
123
123
|
import { BlockProps } from "./typography/interface.js";
|
|
124
124
|
import { ThemeConfig } from "./config-provider/context.js";
|
|
@@ -134,20 +134,22 @@ import AvatarGroup, { AvatarGroupProps, AvatarGroupRef } from "./avatar/AvatarGr
|
|
|
134
134
|
import Avatar from "./avatar/index.js";
|
|
135
135
|
import { BorderBeamColor, BorderBeamGradient } from "./border-beam/util.js";
|
|
136
136
|
import BorderBeam, { BorderBeamProps } from "./border-beam/BorderBeam.js";
|
|
137
|
+
import _default$1 from "./breadcrumb/index.js";
|
|
137
138
|
import CardGrid, { CardGridProps, CardGridRef } from "./card/CardGrid.js";
|
|
139
|
+
import _default$5 from "./card/index.js";
|
|
138
140
|
import Carousel, { CarouselEmits, CarouselProps, CarouselRef, CarouselSlots } from "./carousel/index.js";
|
|
139
141
|
import { FormHookInstance, useForm, useFormInstance } from "./form/hooks/useForm.js";
|
|
140
142
|
import { InputGroupProps } from "./input/Group.js";
|
|
141
143
|
import CompoundedInput, { InputGroup, InputOTP, InputPassword, InputSearch } from "./input/index.js";
|
|
142
144
|
import Layout, { BasicProps } from "./layout/layout.js";
|
|
143
145
|
import { LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, useLayoutSider } from "./layout/index.js";
|
|
144
|
-
import _default$
|
|
146
|
+
import _default$9 from "./masonry/index.js";
|
|
145
147
|
import Mentions, { MentionPlacement, MentionsClassNamesType, MentionsEmits, MentionsOptionProps, MentionsProps, MentionsRef, MentionsSlots, MentionsStylesType, Option as Option$1 } from "./mentions/index.js";
|
|
146
148
|
import useMessage from "./message/useMessage.js";
|
|
147
149
|
import staticMethods from "./message/index.js";
|
|
148
|
-
import _default$
|
|
150
|
+
import _default$11, { ModalProps } from "./modal/index.js";
|
|
149
151
|
import { version as _version2 } from "./package.json.js";
|
|
150
|
-
import _default$
|
|
152
|
+
import _default$19 from "./theme/index.js";
|
|
151
153
|
import InternalRadio from "./radio/radio.js";
|
|
152
154
|
import { RadioButton, RadioGroup, RadioGroupProps, RadioOptionType, RadioProps } from "./radio/index.js";
|
|
153
155
|
import Rate, { RateEmits, RateProps } from "./rate/index.js";
|
|
@@ -166,6 +168,6 @@ import { StyleProvider } from "@antdv-next/cssinjs";
|
|
|
166
168
|
//#region src/index.d.ts
|
|
167
169
|
declare function setPrefix(newPrefix: string): void;
|
|
168
170
|
declare function install(app: App): void;
|
|
169
|
-
declare const _default$
|
|
171
|
+
declare const _default$18: Plugin;
|
|
170
172
|
//#endregion
|
|
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, type MenuInfo, 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, type SelectInfo, 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, type TimeRangePickerSlots, 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 };
|
|
173
|
+
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, _default$1 as Breadcrumb, type BreadcrumbEmits, _default$2 as BreadcrumbItem, type BreadcrumbItemProps, type ItemType as BreadcrumbItemType, type BreadcrumbProps, type BreadcrumbRef, _default$3 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$4 as Calendar, type CalendarMode, type CalendarProps, type CalendarRef, _default$5 as 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$6 as ConfigProvider, type ConfigProviderProps, type DataSourceItemObject, type DataSourceItemType, DateMonthPicker, _default$7 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$8 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$9 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$10 as Menu, MenuDivider, type MenuEmits, type MenuInfo, MenuItem, MenuItemGroup, type MenuItemGroupProps, type MenuItemProps, type MenuItemType, type MenuProps, type MenuRef, type MenuSlots, _default$11 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$12 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, type SelectInfo, 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$13 as Spin, type SpinProps, type SpinRef, type SpinSlots, Splitter, type SplitterEmits, SplitterPanel, type SplitterProps, type SplitterRef, type SplitterSlots, _default$14 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$15 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 FilterDropdownProps as TableFilterDropdownProps, 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$16 as TimePicker, type TimePickerEmits, type TimePickerLocale, type TimePickerProps, type TimePickerSlots, TimeRangePicker, type TimeRangePickerEmits, type TimeRangePickerProps, type TimeRangePickerSlots, Timeline, TimelineItem, type TimelineItemProps, type TimelineItemSlots, type TimelineItemType, type TimelineProps, _default$17 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$18 as default, install, staticMethods as message, staticMethods$1 as notification, setPrefix, _default$19 as theme, useBreakpoint, useExportConfig as useConfig, useForm, useFormInstance, useLayoutSider, useMessage, useModal, useNotification, useResponsive, useTree, _version2 as version };
|
package/dist/index.js
CHANGED
|
@@ -90,8 +90,7 @@ import Steps from "./steps/index.js";
|
|
|
90
90
|
import Switch from "./switch/index.js";
|
|
91
91
|
import Column from "./table/Column.js";
|
|
92
92
|
import ColumnGroup from "./table/ColumnGroup.js";
|
|
93
|
-
import DirectoryTree from "./tree/
|
|
94
|
-
import Tree, { useTree } from "./tree/index.js";
|
|
93
|
+
import Tree, { DirectoryTree, useTree } from "./tree/index.js";
|
|
95
94
|
import InternalTable, { Summary, SummaryCell, SummaryRow } from "./table/index.js";
|
|
96
95
|
import CheckableTag from "./tag/CheckableTag.js";
|
|
97
96
|
import CheckableTagGroup from "./tag/CheckableTagGroup.js";
|
|
@@ -106,15 +106,6 @@ const genInputGroupStyle = (token) => {
|
|
|
106
106
|
border: `${unit(token.lineWidth)} ${token.lineType} transparent`,
|
|
107
107
|
boxShadow: "none"
|
|
108
108
|
}
|
|
109
|
-
},
|
|
110
|
-
[`${antCls}-cascader-picker`]: {
|
|
111
|
-
margin: `-9px ${unit(token.calc(token.paddingInline).mul(-1).equal())}`,
|
|
112
|
-
backgroundColor: "transparent",
|
|
113
|
-
[`${antCls}-cascader-input`]: {
|
|
114
|
-
textAlign: "start",
|
|
115
|
-
border: 0,
|
|
116
|
-
boxShadow: "none"
|
|
117
|
-
}
|
|
118
109
|
}
|
|
119
110
|
}
|
|
120
111
|
},
|
|
@@ -192,7 +183,6 @@ const genInputGroupStyle = (token) => {
|
|
|
192
183
|
[componentCls]: { float: "none" },
|
|
193
184
|
[`& > ${antCls}-select,
|
|
194
185
|
& > ${antCls}-select-auto-complete ${componentCls},
|
|
195
|
-
& > ${antCls}-cascader-picker ${componentCls},
|
|
196
186
|
& > ${componentCls}-group-wrapper ${componentCls}`]: {
|
|
197
187
|
borderInlineEndWidth: token.lineWidth,
|
|
198
188
|
borderRadius: 0,
|
|
@@ -202,15 +192,12 @@ const genInputGroupStyle = (token) => {
|
|
|
202
192
|
[`& > ${antCls}-select > ${antCls}-select-arrow`]: { zIndex: 1 },
|
|
203
193
|
[`& > *:first-child,
|
|
204
194
|
& > ${antCls}-select:first-child,
|
|
205
|
-
& > ${antCls}-select-auto-complete:first-child ${componentCls}
|
|
206
|
-
& > ${antCls}-cascader-picker:first-child ${componentCls}`]: {
|
|
195
|
+
& > ${antCls}-select-auto-complete:first-child ${componentCls}`]: {
|
|
207
196
|
borderStartStartRadius: token.borderRadius,
|
|
208
197
|
borderEndStartRadius: token.borderRadius
|
|
209
198
|
},
|
|
210
199
|
[`& > *:last-child,
|
|
211
|
-
& > ${antCls}-select:last-child
|
|
212
|
-
& > ${antCls}-cascader-picker:last-child ${componentCls},
|
|
213
|
-
& > ${antCls}-cascader-picker-focused:last-child ${componentCls}`]: {
|
|
200
|
+
& > ${antCls}-select:last-child`]: {
|
|
214
201
|
borderInlineEndWidth: token.lineWidth,
|
|
215
202
|
borderStartEndRadius: token.borderRadius,
|
|
216
203
|
borderEndEndRadius: token.borderRadius
|
|
@@ -1,14 +1,33 @@
|
|
|
1
1
|
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { StyleValue } from "vue";
|
|
4
|
-
import { ListyClassNames, ListyProps as ListyProps$1,
|
|
4
|
+
import { ListyClassNames, ListyProps as ListyProps$1, ListyStyles, ScrollAlign } from "@v-c/listy";
|
|
5
|
+
import { Key } from "@v-c/util/dist/type";
|
|
5
6
|
//#region src/listy/interface.d.ts
|
|
7
|
+
interface ListyKeyScrollToConfig {
|
|
8
|
+
key: Key;
|
|
9
|
+
align?: ScrollAlign;
|
|
10
|
+
offset?: number;
|
|
11
|
+
}
|
|
12
|
+
interface ListyGroupScrollToConfig {
|
|
13
|
+
groupKey: Key;
|
|
14
|
+
align?: ScrollAlign;
|
|
15
|
+
offset?: number;
|
|
16
|
+
}
|
|
17
|
+
interface ListyPositionScrollToConfig {
|
|
18
|
+
left?: number;
|
|
19
|
+
top?: number;
|
|
20
|
+
}
|
|
21
|
+
type ListyScrollToConfig = number | null | ListyKeyScrollToConfig | ListyPositionScrollToConfig | ListyGroupScrollToConfig;
|
|
22
|
+
interface ListyRef {
|
|
23
|
+
scrollTo: (config?: ListyScrollToConfig) => void;
|
|
24
|
+
}
|
|
6
25
|
interface ListySemanticType {
|
|
7
26
|
classes?: ListyClassNames;
|
|
8
27
|
styles?: ListyStyles;
|
|
9
28
|
}
|
|
10
|
-
type ListyClassNamesType = SemanticType<
|
|
11
|
-
type ListyStylesType = SemanticType<
|
|
29
|
+
type ListyClassNamesType = SemanticType<ListyProps, ListyClassNames>;
|
|
30
|
+
type ListyStylesType = SemanticType<ListyProps, ListyStyles>;
|
|
12
31
|
interface ListyProps extends Omit<ListyProps$1, 'itemHeight' | 'direction' | 'classNames' | 'styles' | 'itemRender' | 'onScroll'> {
|
|
13
32
|
rootClass?: string;
|
|
14
33
|
class?: string;
|
|
@@ -23,4 +42,4 @@ interface ListyProps extends Omit<ListyProps$1, 'itemHeight' | 'direction' | 'cl
|
|
|
23
42
|
rowHoverable?: boolean;
|
|
24
43
|
}
|
|
25
44
|
//#endregion
|
|
26
|
-
export { type ListyClassNames, ListyProps,
|
|
45
|
+
export { type ListyClassNames, ListyGroupScrollToConfig, ListyKeyScrollToConfig, ListyPositionScrollToConfig, ListyProps, ListyRef, ListyScrollToConfig, ListySemanticType, type ListyStyles, type ScrollAlign };
|