antdv-next 1.4.6 → 1.5.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/hooks/useMergeSemantic.d.ts +7 -4
- package/dist/_util/hooks/useMergeSemantic.js +8 -3
- package/dist/_util/is.d.ts +9 -1
- package/dist/_util/is.js +25 -2
- package/dist/_util/scrollTo.d.ts +1 -1
- package/dist/_util/scrollTo.js +17 -5
- package/dist/_util/vueNode.d.ts +6 -2
- package/dist/alert/Alert.js +1 -1
- package/dist/alert/style/index.d.ts +5 -0
- package/dist/alert/style/index.js +2 -1
- package/dist/antd-with-locales.esm.js +12939 -12342
- package/dist/antd-with-locales.js +80 -80
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +10123 -9740
- package/dist/antd.js +55 -55
- package/dist/app/App.js +2 -1
- 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 +4 -0
- package/dist/border-beam/BorderBeam.js +48 -12
- package/dist/border-beam/hooks/useBorderSize.d.ts +3 -7
- package/dist/border-beam/hooks/useBorderSize.js +31 -25
- package/dist/border-beam/style/index.js +13 -12
- package/dist/border-beam/util.d.ts +4 -1
- package/dist/border-beam/util.js +7 -2
- 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/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 +8 -8
- package/dist/checkbox/Group.js +3 -3
- package/dist/color-picker/ColorPicker.js +4 -7
- package/dist/components.d.ts +27 -21
- package/dist/components.js +6 -3
- package/dist/config-provider/context.d.ts +28 -8
- package/dist/config-provider/define.d.ts +4 -1
- package/dist/config-provider/index.js +29 -0
- package/dist/date-picker/generatePicker/generateRangePicker.js +2 -5
- package/dist/date-picker/generatePicker/generateSinglePicker.js +2 -5
- package/dist/date-picker/generatePicker/useComponents.d.ts +1 -1
- 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 -2
- 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 +27 -44
- 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 +17 -0
- package/dist/form/ErrorList.js +2 -2
- package/dist/form/FormItem/index.js +23 -24
- 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/types.d.ts +11 -3
- package/dist/form/utils/validateUtil.js +4 -0
- package/dist/image/hooks/usePreviewConfig.d.ts +6 -5
- package/dist/image/index.js +8 -9
- package/dist/index.d.ts +27 -21
- package/dist/index.js +3 -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/layout/Sider.d.ts +2 -0
- package/dist/layout/Sider.js +14 -2
- package/dist/listy/index.d.ts +12 -0
- package/dist/listy/index.js +119 -0
- package/dist/listy/interface.d.ts +21 -0
- package/dist/listy/interface.js +1 -0
- package/dist/listy/style/index.d.ts +23 -0
- package/dist/listy/style/index.js +57 -0
- package/dist/locale/sq_AL.d.ts +5 -0
- package/dist/locale/sq_AL.js +151 -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/message/useMessage.js +4 -4
- package/dist/modal/PurePanel.js +4 -7
- package/dist/notification/useNotification.js +4 -5
- package/dist/package.js +1 -1
- package/dist/package.json.d.ts +1 -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/rate/style/index.js +12 -9
- package/dist/result/index.d.ts +4 -1
- package/dist/result/index.js +7 -4
- package/dist/select/style/dropdown.js +4 -0
- package/dist/select/style/select-input.js +1 -1
- package/dist/select/style/token.js +4 -2
- 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 +4 -1
- 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/SplitBar.js +1 -12
- 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/style/virtual.js +4 -0
- package/dist/table/util.d.ts +1 -1
- package/dist/tag/hooks/useColor.d.ts +1 -1
- package/dist/tag/index.js +3 -3
- package/dist/theme/interface/components.d.ts +70 -68
- 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/PurePanel.js +0 -8
- package/dist/tour/index.js +10 -13
- package/dist/tour/interface.d.ts +4 -6
- package/dist/tour/panelRender.js +8 -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/tree/index.d.ts +3 -2
- package/dist/tree/index.js +3 -2
- package/dist/tree/style/index.js +4 -0
- 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 +4 -12
- package/dist/upload/index.d.ts +2 -2
- package/dist/watermark/index.d.ts +4 -1
- package/dist/watermark/index.js +2 -1
- package/global.d.ts +1 -0
- package/package.json +10 -9
- package/web-tags.json +1384 -1338
- package/web-types.json +4584 -4467
- package/dist/slider/useRafLock.d.ts +0 -5
- package/dist/slider/useRafLock.js +0 -23
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ListyClassNames, ListyProps, ListyRef, ListyScrollToConfig, ListyStyles, ScrollAlign } from "./interface.js";
|
|
2
|
+
import { SlotsType } from "vue";
|
|
3
|
+
//#region src/listy/index.d.ts
|
|
4
|
+
interface ListyEmits {
|
|
5
|
+
scroll: [event: Event];
|
|
6
|
+
}
|
|
7
|
+
interface ListySlots {
|
|
8
|
+
itemRender: (item: any) => any;
|
|
9
|
+
}
|
|
10
|
+
declare const Listy: import("vue").DefineSetupFnComponent<ListyProps, ListyEmits, SlotsType<ListySlots>, ListyProps, import("vue").PublicProps>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { type ListyClassNames, type ListyProps, type ListyRef, type ListyScrollToConfig, type ListyStyles, type ScrollAlign, Listy as default };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
|
+
import useToken from "../theme/useToken.js";
|
|
3
|
+
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
4
|
+
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
5
|
+
import style_default from "./style/index.js";
|
|
6
|
+
import { computed, createVNode, defineComponent, mergeProps, shallowRef, useAttrs } from "vue";
|
|
7
|
+
import { clsx } from "@v-c/util";
|
|
8
|
+
import VcListy from "@v-c/listy";
|
|
9
|
+
//#region src/listy/index.tsx
|
|
10
|
+
const Listy = /* @__PURE__ */ defineComponent((props, { expose, slots }) => {
|
|
11
|
+
const listyRef = shallowRef();
|
|
12
|
+
const { style, className, restAttrs } = getAttrStyleAndClass(useAttrs());
|
|
13
|
+
const { getPrefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, virtual: contextVirtual } = useComponentBaseConfig("listy");
|
|
14
|
+
const prefixCls = computed(() => getPrefixCls("listy", props.prefixCls));
|
|
15
|
+
const rootCls = useCSSVarCls(prefixCls);
|
|
16
|
+
const [hashId, cssVarCls] = style_default(prefixCls, rootCls);
|
|
17
|
+
const [, token] = useToken();
|
|
18
|
+
const contextStyleRoot = useSemanticRootStyle(contextStyle);
|
|
19
|
+
const styleRoot = useSemanticRootStyle(computed(() => style));
|
|
20
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, computed(() => props.classes)), useToArr(contextStyles, contextStyleRoot, computed(() => props.styles), styleRoot), useToProps(computed(() => props)));
|
|
21
|
+
expose({ scrollTo: (config) => {
|
|
22
|
+
listyRef.value?.scrollTo(config);
|
|
23
|
+
} });
|
|
24
|
+
return () => {
|
|
25
|
+
const { classes, styles, rootClass, virtual, itemRender = slots.itemRender, ...restProps } = props;
|
|
26
|
+
const rootClassNames = clsx(contextClassName.value, mergedClassNames.value.root, rootClass, className, hashId.value, cssVarCls.value, rootCls.value);
|
|
27
|
+
const listyToken = {
|
|
28
|
+
...token.value,
|
|
29
|
+
...token.value.Listy
|
|
30
|
+
};
|
|
31
|
+
const itemHeight = listyToken.fontHeight + (listyToken.itemPaddingBlock ?? listyToken.paddingSM) * 2;
|
|
32
|
+
const mergedVirtual = virtual ?? contextVirtual.value ?? false;
|
|
33
|
+
return createVNode(VcListy, mergeProps({ "ref": listyRef }, restProps, restAttrs, {
|
|
34
|
+
"prefixCls": prefixCls.value,
|
|
35
|
+
"direction": direction.value,
|
|
36
|
+
"virtual": mergedVirtual,
|
|
37
|
+
"itemHeight": itemHeight,
|
|
38
|
+
"itemRender": itemRender,
|
|
39
|
+
"classNames": {
|
|
40
|
+
...mergedClassNames.value,
|
|
41
|
+
root: rootClassNames
|
|
42
|
+
},
|
|
43
|
+
"styles": mergedStyles.value
|
|
44
|
+
}), null);
|
|
45
|
+
};
|
|
46
|
+
}, {
|
|
47
|
+
props: {
|
|
48
|
+
rootClass: {
|
|
49
|
+
type: String,
|
|
50
|
+
required: false
|
|
51
|
+
},
|
|
52
|
+
class: {
|
|
53
|
+
type: String,
|
|
54
|
+
required: false
|
|
55
|
+
},
|
|
56
|
+
style: {
|
|
57
|
+
type: Object,
|
|
58
|
+
required: false
|
|
59
|
+
},
|
|
60
|
+
classes: {
|
|
61
|
+
type: Function,
|
|
62
|
+
required: false,
|
|
63
|
+
skipCheck: true
|
|
64
|
+
},
|
|
65
|
+
styles: {
|
|
66
|
+
type: Function,
|
|
67
|
+
required: false,
|
|
68
|
+
skipCheck: true
|
|
69
|
+
},
|
|
70
|
+
itemRender: {
|
|
71
|
+
type: Function,
|
|
72
|
+
required: false
|
|
73
|
+
},
|
|
74
|
+
items: {
|
|
75
|
+
type: Array,
|
|
76
|
+
required: false
|
|
77
|
+
},
|
|
78
|
+
sticky: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
required: false,
|
|
81
|
+
default: void 0
|
|
82
|
+
},
|
|
83
|
+
height: {
|
|
84
|
+
type: Number,
|
|
85
|
+
required: false
|
|
86
|
+
},
|
|
87
|
+
group: {
|
|
88
|
+
type: Object,
|
|
89
|
+
required: false
|
|
90
|
+
},
|
|
91
|
+
virtual: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
required: false,
|
|
94
|
+
default: void 0
|
|
95
|
+
},
|
|
96
|
+
prefixCls: {
|
|
97
|
+
type: String,
|
|
98
|
+
required: false
|
|
99
|
+
},
|
|
100
|
+
rowKey: {
|
|
101
|
+
type: Function,
|
|
102
|
+
required: true,
|
|
103
|
+
skipCheck: true
|
|
104
|
+
},
|
|
105
|
+
onScroll: {
|
|
106
|
+
type: Function,
|
|
107
|
+
required: false
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
emits: ["scroll"],
|
|
111
|
+
name: "AListy",
|
|
112
|
+
inheritAttrs: false
|
|
113
|
+
});
|
|
114
|
+
Listy.install = (app) => {
|
|
115
|
+
app.component(Listy.name, Listy);
|
|
116
|
+
return app;
|
|
117
|
+
};
|
|
118
|
+
//#endregion
|
|
119
|
+
export { Listy as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
|
+
import { SemanticType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
|
+
import { CSSProperties } from "vue";
|
|
4
|
+
import { ListyClassNames, ListyProps as ListyProps$1, ListyRef, ListyScrollToConfig, ListyStyles, ScrollAlign } from "@v-c/listy";
|
|
5
|
+
//#region src/listy/interface.d.ts
|
|
6
|
+
interface ListySemanticType {
|
|
7
|
+
classes?: ListyClassNames;
|
|
8
|
+
styles?: ListyStyles;
|
|
9
|
+
}
|
|
10
|
+
type ListyClassNamesType = SemanticType<ListyClassNames, ListyProps>;
|
|
11
|
+
type ListyStylesType = SemanticType<ListyStyles, ListyProps>;
|
|
12
|
+
interface ListyProps extends Omit<ListyProps$1, 'itemHeight' | 'direction' | 'classNames' | 'styles' | 'itemRender'> {
|
|
13
|
+
rootClass?: string;
|
|
14
|
+
class?: string;
|
|
15
|
+
style?: CSSProperties;
|
|
16
|
+
classes?: ListyClassNamesType;
|
|
17
|
+
styles?: ListyStylesType;
|
|
18
|
+
itemRender?: (item: any, index: number) => VueNode;
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { type ListyClassNames, ListyProps, type ListyRef, type ListyScrollToConfig, ListySemanticType, type ListyStyles, type ScrollAlign };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
2
|
+
import "../../theme/internal.js";
|
|
3
|
+
//#region src/listy/style/index.d.ts
|
|
4
|
+
interface ComponentToken {
|
|
5
|
+
/**
|
|
6
|
+
* @nameZH 列表项纵向内间距
|
|
7
|
+
* @nameEN Item Vertical Padding
|
|
8
|
+
* @desc 列表项的纵向内间距。
|
|
9
|
+
* @descEN Vertical padding of a list item.
|
|
10
|
+
*/
|
|
11
|
+
itemPaddingBlock: number;
|
|
12
|
+
/**
|
|
13
|
+
* @nameZH 列表项横向内间距
|
|
14
|
+
* @nameEN Item Horizontal Padding
|
|
15
|
+
* @desc 列表项的横向内间距。
|
|
16
|
+
* @descEN Horizontal padding of a list item.
|
|
17
|
+
*/
|
|
18
|
+
itemPaddingInline: number;
|
|
19
|
+
}
|
|
20
|
+
declare const prepareComponentToken: GetDefaultToken<'Listy'>;
|
|
21
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
22
|
+
//#endregion
|
|
23
|
+
export { ComponentToken, _default as default, prepareComponentToken };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { resetComponent } from "../../style/index.js";
|
|
2
|
+
import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
3
|
+
import { unit } from "@antdv-next/cssinjs";
|
|
4
|
+
//#region src/listy/style/index.ts
|
|
5
|
+
const genListyStyle = (token) => {
|
|
6
|
+
const { componentCls, itemPaddingBlock, itemPaddingInline } = token;
|
|
7
|
+
return { [componentCls]: {
|
|
8
|
+
...resetComponent(token),
|
|
9
|
+
position: "relative",
|
|
10
|
+
color: token.colorText,
|
|
11
|
+
fontSize: token.fontSize,
|
|
12
|
+
lineHeight: token.lineHeight,
|
|
13
|
+
[`${componentCls}-item`]: {
|
|
14
|
+
padding: `${unit(itemPaddingBlock)} ${unit(itemPaddingInline)}`,
|
|
15
|
+
borderBottom: `${unit(token.lineWidth)} ${token.lineType} ${token.colorSplit}`,
|
|
16
|
+
transition: `background-color ${token.motionDurationMid} ${token.motionEaseInOut}`,
|
|
17
|
+
"&:hover": { backgroundColor: token.controlItemBgHover }
|
|
18
|
+
},
|
|
19
|
+
[`${componentCls}-group-header`]: {
|
|
20
|
+
boxSizing: "border-box",
|
|
21
|
+
padding: `${unit(token.paddingXS)} ${unit(itemPaddingInline)}`,
|
|
22
|
+
color: token.colorTextDescription,
|
|
23
|
+
fontWeight: token.fontWeightStrong,
|
|
24
|
+
backgroundColor: token.colorBgContainer,
|
|
25
|
+
backgroundImage: `linear-gradient(${token.colorFillAlter}, ${token.colorFillAlter})`,
|
|
26
|
+
"&-sticky": {
|
|
27
|
+
position: "sticky",
|
|
28
|
+
top: 0,
|
|
29
|
+
insetInline: 0,
|
|
30
|
+
zIndex: 1
|
|
31
|
+
},
|
|
32
|
+
"&-fixed": {
|
|
33
|
+
position: "absolute",
|
|
34
|
+
top: 0,
|
|
35
|
+
insetInline: 0,
|
|
36
|
+
transform: "translateY(0)",
|
|
37
|
+
pointerEvents: "auto"
|
|
38
|
+
},
|
|
39
|
+
"&-holder": {
|
|
40
|
+
position: "absolute",
|
|
41
|
+
inset: 0,
|
|
42
|
+
overflow: "hidden",
|
|
43
|
+
pointerEvents: "none"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
[`${componentCls}-group-section`]: { position: "relative" },
|
|
47
|
+
[`${componentCls}-scrollbar`]: { zIndex: 1 },
|
|
48
|
+
"&-rtl": { direction: "rtl" }
|
|
49
|
+
} };
|
|
50
|
+
};
|
|
51
|
+
const prepareComponentToken = (token) => ({
|
|
52
|
+
itemPaddingBlock: token.paddingSM,
|
|
53
|
+
itemPaddingInline: token.padding
|
|
54
|
+
});
|
|
55
|
+
var style_default = genStyleHooks("Listy", genListyStyle, prepareComponentToken);
|
|
56
|
+
//#endregion
|
|
57
|
+
export { style_default as default, prepareComponentToken };
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import locale from "../time-picker/locale/sq_AL.js";
|
|
2
|
+
import locale$1 from "../date-picker/locale/sq_AL.js";
|
|
3
|
+
import sq_AL_default from "../calendar/locale/sq_AL.js";
|
|
4
|
+
//#region src/locale/sq_AL.ts
|
|
5
|
+
const typeTemplate = "${label} nuk është një ${type} i vlefshëm";
|
|
6
|
+
const localeValues = {
|
|
7
|
+
locale: "sq",
|
|
8
|
+
Pagination: {
|
|
9
|
+
items_per_page: "/ faqe",
|
|
10
|
+
jump_to: "Shko te",
|
|
11
|
+
jump_to_confirm: "konfirmo",
|
|
12
|
+
page: "Faqe",
|
|
13
|
+
prev_page: "Faqja e mëparshme",
|
|
14
|
+
next_page: "Faqja tjetër",
|
|
15
|
+
prev_5: "5 faqet e mëparshme",
|
|
16
|
+
next_5: "5 faqet e tjera",
|
|
17
|
+
prev_3: "3 faqet e mëparshme",
|
|
18
|
+
next_3: "3 faqet e tjera"
|
|
19
|
+
},
|
|
20
|
+
DatePicker: locale$1,
|
|
21
|
+
TimePicker: locale,
|
|
22
|
+
Calendar: sq_AL_default,
|
|
23
|
+
global: {
|
|
24
|
+
placeholder: "Ju lutemi zgjidhni",
|
|
25
|
+
close: "Mbyll",
|
|
26
|
+
sortable: "i renditshëm"
|
|
27
|
+
},
|
|
28
|
+
Table: {
|
|
29
|
+
filterTitle: "Menuja e filtrimit",
|
|
30
|
+
filterConfirm: "OK",
|
|
31
|
+
filterReset: "Rivendos",
|
|
32
|
+
filterEmptyText: "Pa filtra",
|
|
33
|
+
filterCheckAll: "Zgjidh të gjitha elementet",
|
|
34
|
+
filterSearchPlaceholder: "Kërko në filtra",
|
|
35
|
+
emptyText: "Nuk ka të dhëna",
|
|
36
|
+
selectAll: "Zgjidh faqen aktuale",
|
|
37
|
+
selectInvert: "Përmbys faqen aktuale",
|
|
38
|
+
selectNone: "Pastro të gjitha të dhënat",
|
|
39
|
+
selectionAll: "Zgjidh të gjitha të dhënat",
|
|
40
|
+
sortTitle: "Rendit",
|
|
41
|
+
expand: "Zgjero rreshtin",
|
|
42
|
+
collapse: "Mblidh rreshtin",
|
|
43
|
+
triggerDesc: "Kliko për renditje zbritëse",
|
|
44
|
+
triggerAsc: "Kliko për renditje ngjitëse",
|
|
45
|
+
cancelSort: "Kliko për të anuluar renditjen"
|
|
46
|
+
},
|
|
47
|
+
Tour: {
|
|
48
|
+
Next: "Tjetër",
|
|
49
|
+
Previous: "I mëparshëm",
|
|
50
|
+
Finish: "Përfundo"
|
|
51
|
+
},
|
|
52
|
+
Modal: {
|
|
53
|
+
okText: "OK",
|
|
54
|
+
cancelText: "Anulo",
|
|
55
|
+
justOkText: "OK"
|
|
56
|
+
},
|
|
57
|
+
Popconfirm: {
|
|
58
|
+
okText: "OK",
|
|
59
|
+
cancelText: "Anulo"
|
|
60
|
+
},
|
|
61
|
+
Transfer: {
|
|
62
|
+
titles: ["", ""],
|
|
63
|
+
searchPlaceholder: "Kërko këtu",
|
|
64
|
+
itemUnit: "element",
|
|
65
|
+
itemsUnit: "elemente",
|
|
66
|
+
remove: "Hiq",
|
|
67
|
+
selectCurrent: "Zgjidh faqen aktuale",
|
|
68
|
+
removeCurrent: "Hiq faqen aktuale",
|
|
69
|
+
selectAll: "Zgjidh të gjitha të dhënat",
|
|
70
|
+
deselectAll: "Çzgjidh të gjitha të dhënat",
|
|
71
|
+
removeAll: "Hiq të gjitha të dhënat",
|
|
72
|
+
selectInvert: "Përmbys faqen aktuale"
|
|
73
|
+
},
|
|
74
|
+
Upload: {
|
|
75
|
+
uploading: "Duke ngarkuar...",
|
|
76
|
+
removeFile: "Hiq skedarin",
|
|
77
|
+
uploadError: "Gabim gjatë ngarkimit",
|
|
78
|
+
previewFile: "Shiko skedarin",
|
|
79
|
+
downloadFile: "Shkarko skedarin"
|
|
80
|
+
},
|
|
81
|
+
Empty: { description: "Nuk ka të dhëna" },
|
|
82
|
+
Icon: { icon: "ikonë" },
|
|
83
|
+
Text: {
|
|
84
|
+
edit: "Ndrysho",
|
|
85
|
+
copy: "Kopjo",
|
|
86
|
+
copied: "U kopjua",
|
|
87
|
+
expand: "Zgjero",
|
|
88
|
+
collapse: "Mblidh"
|
|
89
|
+
},
|
|
90
|
+
Form: {
|
|
91
|
+
optional: "(opsionale)",
|
|
92
|
+
defaultValidateMessages: {
|
|
93
|
+
default: "Gabim në validimin e fushës ${label}",
|
|
94
|
+
required: "Ju lutemi shkruani ${label}",
|
|
95
|
+
enum: "${label} duhet të jetë një nga [${enum}]",
|
|
96
|
+
whitespace: "${label} nuk mund të jetë karakter bosh",
|
|
97
|
+
date: {
|
|
98
|
+
format: "Formati i datës për ${label} është i pavlefshëm",
|
|
99
|
+
parse: "${label} nuk mund të konvertohet në datë",
|
|
100
|
+
invalid: "${label} është datë e pavlefshme"
|
|
101
|
+
},
|
|
102
|
+
types: {
|
|
103
|
+
string: typeTemplate,
|
|
104
|
+
method: typeTemplate,
|
|
105
|
+
array: typeTemplate,
|
|
106
|
+
object: typeTemplate,
|
|
107
|
+
number: typeTemplate,
|
|
108
|
+
date: typeTemplate,
|
|
109
|
+
boolean: typeTemplate,
|
|
110
|
+
integer: typeTemplate,
|
|
111
|
+
float: typeTemplate,
|
|
112
|
+
regexp: typeTemplate,
|
|
113
|
+
email: typeTemplate,
|
|
114
|
+
url: typeTemplate,
|
|
115
|
+
hex: typeTemplate
|
|
116
|
+
},
|
|
117
|
+
string: {
|
|
118
|
+
len: "${label} duhet të ketë ${len} karaktere",
|
|
119
|
+
min: "${label} duhet të ketë të paktën ${min} karaktere",
|
|
120
|
+
max: "${label} duhet të ketë më së shumti ${max} karaktere",
|
|
121
|
+
range: "${label} duhet të ketë midis ${min}-${max} karaktere"
|
|
122
|
+
},
|
|
123
|
+
number: {
|
|
124
|
+
len: "${label} duhet të jetë e barabartë me ${len}",
|
|
125
|
+
min: "${label} duhet të jetë minimumi ${min}",
|
|
126
|
+
max: "${label} duhet të jetë maksimumi ${max}",
|
|
127
|
+
range: "${label} duhet të jetë midis ${min}-${max}"
|
|
128
|
+
},
|
|
129
|
+
array: {
|
|
130
|
+
len: "Duhet të ketë ${len} ${label}",
|
|
131
|
+
min: "Të paktën ${min} ${label}",
|
|
132
|
+
max: "Më së shumti ${max} ${label}",
|
|
133
|
+
range: "Sasia e ${label} duhet të jetë midis ${min}-${max}"
|
|
134
|
+
},
|
|
135
|
+
pattern: { mismatch: "${label} nuk përputhet me modelin ${pattern}" }
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
QRCode: {
|
|
139
|
+
expired: "Kodi QR ka skaduar",
|
|
140
|
+
refresh: "Rifresko",
|
|
141
|
+
scanned: "U skanua"
|
|
142
|
+
},
|
|
143
|
+
ColorPicker: {
|
|
144
|
+
presetEmpty: "Bosh",
|
|
145
|
+
transparent: "Transparent",
|
|
146
|
+
singleColor: "Një ngjyrë",
|
|
147
|
+
gradientColor: "Ngjyrë gradient"
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
//#endregion
|
|
151
|
+
export { localeValues as default };
|
package/dist/locale/zh_TW.js
CHANGED
|
@@ -18,21 +18,21 @@ const localeValues = {
|
|
|
18
18
|
Table: {
|
|
19
19
|
filterTitle: "篩選器",
|
|
20
20
|
filterConfirm: "確定",
|
|
21
|
-
filterReset: "
|
|
22
|
-
filterEmptyText: "
|
|
21
|
+
filterReset: "重設",
|
|
22
|
+
filterEmptyText: "無篩選條件",
|
|
23
23
|
filterCheckAll: "全選",
|
|
24
|
-
filterSearchPlaceholder: "
|
|
25
|
-
emptyText: "
|
|
26
|
-
selectAll: "
|
|
27
|
-
selectInvert: "
|
|
28
|
-
selectNone: "
|
|
29
|
-
selectionAll: "
|
|
24
|
+
filterSearchPlaceholder: "搜尋篩選條件",
|
|
25
|
+
emptyText: "暫無資料",
|
|
26
|
+
selectAll: "選取目前頁面",
|
|
27
|
+
selectInvert: "反向選取目前頁面",
|
|
28
|
+
selectNone: "清除全部資料",
|
|
29
|
+
selectionAll: "選取所有資料",
|
|
30
30
|
sortTitle: "排序",
|
|
31
|
-
expand: "
|
|
32
|
-
collapse: "
|
|
33
|
-
triggerDesc: "
|
|
34
|
-
triggerAsc: "
|
|
35
|
-
cancelSort: "
|
|
31
|
+
expand: "展開列",
|
|
32
|
+
collapse: "收合列",
|
|
33
|
+
triggerDesc: "點擊以遞減排序",
|
|
34
|
+
triggerAsc: "點擊以遞增排序",
|
|
35
|
+
cancelSort: "點擊以取消排序"
|
|
36
36
|
},
|
|
37
37
|
Modal: {
|
|
38
38
|
okText: "確定",
|
|
@@ -50,44 +50,44 @@ const localeValues = {
|
|
|
50
50
|
},
|
|
51
51
|
Transfer: {
|
|
52
52
|
titles: ["", ""],
|
|
53
|
-
searchPlaceholder: "
|
|
53
|
+
searchPlaceholder: "在此搜尋",
|
|
54
54
|
itemUnit: "項目",
|
|
55
55
|
itemsUnit: "項目",
|
|
56
|
-
remove: "
|
|
57
|
-
selectCurrent: "
|
|
58
|
-
removeCurrent: "
|
|
59
|
-
selectAll: "
|
|
60
|
-
removeAll: "
|
|
61
|
-
selectInvert: "
|
|
62
|
-
deselectAll: "
|
|
56
|
+
remove: "移除",
|
|
57
|
+
selectCurrent: "選取目前頁面",
|
|
58
|
+
removeCurrent: "移除目前頁面",
|
|
59
|
+
selectAll: "選取所有資料",
|
|
60
|
+
removeAll: "移除所有資料",
|
|
61
|
+
selectInvert: "反向選取目前頁面",
|
|
62
|
+
deselectAll: "取消選取所有資料"
|
|
63
63
|
},
|
|
64
64
|
Upload: {
|
|
65
65
|
uploading: "正在上傳...",
|
|
66
|
-
removeFile: "
|
|
66
|
+
removeFile: "移除檔案",
|
|
67
67
|
uploadError: "上傳失敗",
|
|
68
|
-
previewFile: "
|
|
69
|
-
downloadFile: "
|
|
68
|
+
previewFile: "預覽檔案",
|
|
69
|
+
downloadFile: "下載檔案"
|
|
70
70
|
},
|
|
71
|
-
Empty: { description: "
|
|
72
|
-
Icon: { icon: "
|
|
71
|
+
Empty: { description: "暫無資料" },
|
|
72
|
+
Icon: { icon: "圖示" },
|
|
73
73
|
Text: {
|
|
74
74
|
edit: "編輯",
|
|
75
75
|
copy: "複製",
|
|
76
76
|
copied: "複製成功",
|
|
77
77
|
expand: "展開",
|
|
78
|
-
collapse: "
|
|
78
|
+
collapse: "收合"
|
|
79
79
|
},
|
|
80
80
|
Form: {
|
|
81
|
-
optional: "
|
|
81
|
+
optional: "(選填)",
|
|
82
82
|
defaultValidateMessages: {
|
|
83
|
-
default: "
|
|
83
|
+
default: "欄位驗證錯誤:${label}",
|
|
84
84
|
required: "請輸入${label}",
|
|
85
|
-
enum: "${label}
|
|
86
|
-
whitespace: "${label}
|
|
85
|
+
enum: "${label}必須是 [${enum}] 其中之一",
|
|
86
|
+
whitespace: "${label}不能是空白字元",
|
|
87
87
|
date: {
|
|
88
|
-
format: "${label}
|
|
89
|
-
parse: "${label}
|
|
90
|
-
invalid: "${label}
|
|
88
|
+
format: "${label}的日期格式無效",
|
|
89
|
+
parse: "${label}無法轉換為日期",
|
|
90
|
+
invalid: "${label}是無效的日期"
|
|
91
91
|
},
|
|
92
92
|
types: {
|
|
93
93
|
string: typeTemplate,
|
|
@@ -105,10 +105,10 @@ const localeValues = {
|
|
|
105
105
|
hex: typeTemplate
|
|
106
106
|
},
|
|
107
107
|
string: {
|
|
108
|
-
len: "${label}須為${len}
|
|
109
|
-
min: "${label}
|
|
110
|
-
max: "${label}
|
|
111
|
-
range: "${label}
|
|
108
|
+
len: "${label}須為${len}個字元",
|
|
109
|
+
min: "${label}最少需要${min}個字元",
|
|
110
|
+
max: "${label}最多可為${max}個字元",
|
|
111
|
+
range: "${label}須介於${min}-${max}個字元之間"
|
|
112
112
|
},
|
|
113
113
|
number: {
|
|
114
114
|
len: "${label}必須等於${len}",
|
|
@@ -122,12 +122,12 @@ const localeValues = {
|
|
|
122
122
|
max: "最多${max}個${label}",
|
|
123
123
|
range: "${label}數量須在${min}-${max}之間"
|
|
124
124
|
},
|
|
125
|
-
pattern: { mismatch: "${label}
|
|
125
|
+
pattern: { mismatch: "${label}與模式 ${pattern} 不相符" }
|
|
126
126
|
}
|
|
127
127
|
},
|
|
128
128
|
QRCode: {
|
|
129
|
-
expired: "
|
|
130
|
-
refresh: "
|
|
129
|
+
expired: "QR Code 已過期",
|
|
130
|
+
refresh: "重新整理",
|
|
131
131
|
scanned: "已掃描"
|
|
132
132
|
},
|
|
133
133
|
ColorPicker: {
|
package/dist/masonry/Masonry.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
2
|
import { genCssVar } from "../theme/util/genStyleUtils.js";
|
|
3
|
-
import { getAttrStyleAndClass, useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
3
|
+
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import { toPropsRefs } from "../_util/tools.js";
|
|
5
5
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
6
6
|
import { responsiveArray } from "../_util/responsiveObserver.js";
|
|
@@ -51,7 +51,8 @@ const Masonry = /* @__PURE__ */ defineComponent((props, { expose, emit, attrs, s
|
|
|
51
51
|
columns: columnCount.value
|
|
52
52
|
};
|
|
53
53
|
});
|
|
54
|
-
const
|
|
54
|
+
const contextStyleRoot = useSemanticRootStyle(contextStyle);
|
|
55
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, contextStyleRoot, styles), useToProps(mergedProps));
|
|
55
56
|
const itemHeights = ref([]);
|
|
56
57
|
const collectItemSize = useDelay(() => {
|
|
57
58
|
const nextItemHeights = mergedItems.value.map((item, index) => {
|
|
@@ -121,8 +122,7 @@ const Masonry = /* @__PURE__ */ defineComponent((props, { expose, emit, attrs, s
|
|
|
121
122
|
"class": clsx(prefixCls.value, contextClassName.value, mergedClassNames.value?.root, props.rootClass, className, hashId.value, cssVarCls.value, { [`${prefixCls.value}-rtl`]: direction.value === "rtl" }),
|
|
122
123
|
"style": {
|
|
123
124
|
height: `${totalHeight.value}px`,
|
|
124
|
-
...
|
|
125
|
-
...contextStyle.value,
|
|
125
|
+
...mergedStyles.value.root,
|
|
126
126
|
...style
|
|
127
127
|
}
|
|
128
128
|
}), [createVNode(TransitionGroup, transitionProps, _isSlot(_slot = itemWithPositions.value.map((motionInfo) => {
|
package/dist/mentions/index.d.ts
CHANGED
package/dist/mentions/index.js
CHANGED
|
@@ -11,6 +11,7 @@ import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils.js";
|
|
|
11
11
|
import { DefaultRenderEmpty } from "../config-provider/defaultRenderEmpty.js";
|
|
12
12
|
import { useFormItemInputContext } from "../form/context.js";
|
|
13
13
|
import useVariant from "../form/hooks/useVariant.js";
|
|
14
|
+
import usePopupRender from "../select/usePopupRender.js";
|
|
14
15
|
import getAllowClear from "../_util/getAllowClear.js";
|
|
15
16
|
import toList from "../_util/toList.js";
|
|
16
17
|
import Spin from "../spin/index.js";
|
|
@@ -41,6 +42,7 @@ const omitKeys = [
|
|
|
41
42
|
"allowClear",
|
|
42
43
|
"filterOption",
|
|
43
44
|
"popupClassName",
|
|
45
|
+
"popupRender",
|
|
44
46
|
"options",
|
|
45
47
|
"notFoundContent"
|
|
46
48
|
];
|
|
@@ -170,6 +172,7 @@ const Mentions = /* @__PURE__ */ defineComponent((props, { slots, emit, expose,
|
|
|
170
172
|
},
|
|
171
173
|
suffix: mergedStyles.value.suffix
|
|
172
174
|
};
|
|
175
|
+
const mergedPopupRender = usePopupRender(slots?.popupRender ?? props?.popupRender);
|
|
173
176
|
const restProps = omit(props, omitKeys);
|
|
174
177
|
return createVNode(VcMentions, mergeProps({ "ref": mentionsRef }, restAttrs, restProps, {
|
|
175
178
|
"prefixCls": prefixCls.value,
|
|
@@ -178,6 +181,7 @@ const Mentions = /* @__PURE__ */ defineComponent((props, { slots, emit, expose,
|
|
|
178
181
|
"classNames": classNames,
|
|
179
182
|
"styles": mergedStylesValue,
|
|
180
183
|
"popupClassName": props.popupClassName,
|
|
184
|
+
"popupRender": mergedPopupRender,
|
|
181
185
|
"notFoundContent": notFoundContent.value,
|
|
182
186
|
"disabled": mergedDisabled.value,
|
|
183
187
|
"allowClear": mergedAllowClear.value,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { devUseWarning } from "../_util/warning.js";
|
|
2
2
|
import { useBaseConfig, useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
|
-
import { mergeClassNames, mergeStyles, resolveStyleOrClass, useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
3
|
+
import { mergeClassNames, mergeStyles, resolveStyleOrClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import { toPropsRefs } from "../_util/tools.js";
|
|
5
5
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
6
6
|
import style_default from "./style/index.js";
|
|
@@ -63,7 +63,8 @@ const Holder = /* @__PURE__ */ defineComponent((props, { expose }) => {
|
|
|
63
63
|
pauseOnHover: mergedPauseOnHover.value
|
|
64
64
|
});
|
|
65
65
|
const mergedProps = computed(() => props);
|
|
66
|
-
const
|
|
66
|
+
const contextStyleRoot = useSemanticRootStyle(contextStyle);
|
|
67
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClasses, classes), useToArr(contextStyles, contextStyleRoot, styles), useToProps(mergedProps));
|
|
67
68
|
expose({
|
|
68
69
|
...api,
|
|
69
70
|
prefixCls,
|
|
@@ -143,7 +144,7 @@ function useInternalMessage(messageConfig) {
|
|
|
143
144
|
fakeResult.then = () => {};
|
|
144
145
|
return fakeResult;
|
|
145
146
|
}
|
|
146
|
-
const { open: originOpen, prefixCls, contextClassName,
|
|
147
|
+
const { open: originOpen, prefixCls, contextClassName, contextClasses, contextStyles, classNames: originClassNames, styles: originStyles } = holderRef.value;
|
|
147
148
|
const noticePrefixCls = `${prefixCls}-notice`;
|
|
148
149
|
const { content, icon, type, key, class: className, style, onClose, classes: configClassNames = {}, styles = {}, ...restConfig } = config;
|
|
149
150
|
let mergedKey = key;
|
|
@@ -183,7 +184,6 @@ function useInternalMessage(messageConfig) {
|
|
|
183
184
|
class: clsx({ [`${noticePrefixCls}-${type}`]: !!type }, className, contextClassName, mergedClassNames.root),
|
|
184
185
|
style: {
|
|
185
186
|
...mergedStyles.root,
|
|
186
|
-
...contextStyle,
|
|
187
187
|
...style
|
|
188
188
|
},
|
|
189
189
|
onClose: () => {
|
package/dist/modal/PurePanel.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
|
-
import { getAttrStyleAndClass as getAttrStyleAndClass$1, useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { getAttrStyleAndClass as getAttrStyleAndClass$1, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { getSlotPropsFnRun } from "../_util/tools.js";
|
|
4
4
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
5
5
|
import { Footer, renderCloseIcon } from "./shared.js";
|
|
@@ -14,7 +14,8 @@ var PurePanel_default = withPureRenderTheme(/* @__PURE__ */ defineComponent((pro
|
|
|
14
14
|
const { prefixCls, getPrefixCls, styles: contextStyles, classes: contextClassNames, class: contextClassName, style: contextStyle } = useComponentBaseConfig("modal", props, []);
|
|
15
15
|
const { classes, styles } = toPropsRefs(props, "classes", "styles");
|
|
16
16
|
const rootPrefixCls = computed(() => getPrefixCls(void 0, ""));
|
|
17
|
-
const
|
|
17
|
+
const contextStyleRoot = useSemanticRootStyle(contextStyle);
|
|
18
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, contextStyleRoot, styles), useToProps(computed(() => props)));
|
|
18
19
|
const rootCls = useCSSVarCls(rootPrefixCls);
|
|
19
20
|
const [hashId, cssVarCls] = style_default(prefixCls, rootCls);
|
|
20
21
|
const confirmPrefixCls = computed(() => `${prefixCls.value}-confirm`);
|
|
@@ -45,11 +46,7 @@ var PurePanel_default = withPureRenderTheme(/* @__PURE__ */ defineComponent((pro
|
|
|
45
46
|
"prefixCls": prefixCls.value,
|
|
46
47
|
"className": clsx(hashId.value, `${prefixCls.value}-pure-panel`, type && confirmPrefixCls.value, type && `${confirmPrefixCls.value}-${type}`, attrClassName, contextClassName.value, cssVarCls.value, rootCls.value, props.rootClass, mergedClassNames.value?.root),
|
|
47
48
|
"animationVisible": true,
|
|
48
|
-
"style": [
|
|
49
|
-
contextStyle,
|
|
50
|
-
mergedStyles.value?.root,
|
|
51
|
-
attrStyle
|
|
52
|
-
]
|
|
49
|
+
"style": [mergedStyles.value?.root, attrStyle]
|
|
53
50
|
}, restAttrs, {
|
|
54
51
|
"closeIcon": renderCloseIcon(prefixCls.value, slots.closeIcon || closeIcon),
|
|
55
52
|
"closable": closable,
|