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
|
@@ -108,7 +108,8 @@ var style_default = genStyleHooks("Message", (token) => {
|
|
|
108
108
|
const messageToken = prepareMessageToken(token);
|
|
109
109
|
return [sharedGenerateStyle(messageToken, {
|
|
110
110
|
stackVisibleCount: 1,
|
|
111
|
-
itemStyle: generateMessageStyle
|
|
111
|
+
itemStyle: generateMessageStyle,
|
|
112
|
+
listContentPointerEvents: "none"
|
|
112
113
|
}), generateMessageStackStyle(messageToken)];
|
|
113
114
|
}, prepareComponentToken);
|
|
114
115
|
//#endregion
|
package/dist/modal/PurePanel.js
CHANGED
|
@@ -22,7 +22,7 @@ var PurePanel_default = withPureRenderTheme(/* @__PURE__ */ defineComponent((pro
|
|
|
22
22
|
return () => {
|
|
23
23
|
const { className: attrClassName, restAttrs, style: attrStyle } = getAttrStyleAndClass(attrs);
|
|
24
24
|
const { type, closable, closeIcon } = props;
|
|
25
|
-
const footer =
|
|
25
|
+
const footer = slots.footer ?? props.footer;
|
|
26
26
|
const title = getSlotPropsFnRun(slots, props, "title", false);
|
|
27
27
|
let additionalProps = {};
|
|
28
28
|
if (type) additionalProps = {
|
|
@@ -39,7 +39,7 @@ var PurePanel_default = withPureRenderTheme(/* @__PURE__ */ defineComponent((pro
|
|
|
39
39
|
else additionalProps = {
|
|
40
40
|
closable: closable ?? true,
|
|
41
41
|
title,
|
|
42
|
-
footer: footer !== null && createVNode(Footer, mergeProps(props, { "footer": footer }), null),
|
|
42
|
+
footer: props.footer !== null && createVNode(Footer, mergeProps(props, { "footer": footer }), null),
|
|
43
43
|
children: slots.default?.()
|
|
44
44
|
};
|
|
45
45
|
return createVNode(Panel, mergeProps({
|
|
@@ -4,12 +4,15 @@ import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
|
4
4
|
import { FullToken, GenStyleFn } from "../../theme/interface/cssinjs-utils.js";
|
|
5
5
|
import { GenerateStyle } from "../../theme/interface/index.js";
|
|
6
6
|
import "../../theme/internal.js";
|
|
7
|
+
import { CSSProperties } from "vue";
|
|
7
8
|
//#region src/notification/style/index.d.ts
|
|
8
9
|
type WidthKey<Token extends NotificationToken> = { [Key in keyof Token]: Token[Key] extends number | string ? Key : never; }[keyof Token];
|
|
9
10
|
interface SharedStyleConfig<Token extends NotificationToken> {
|
|
10
11
|
listWidthKey?: WidthKey<Token>;
|
|
11
12
|
stackVisibleCount?: number;
|
|
12
13
|
itemStyle?: GenerateStyle<Token>;
|
|
14
|
+
/** Whether the list content should capture pointer events (stack interaction needs it). */
|
|
15
|
+
listContentPointerEvents?: CSSProperties['pointerEvents'];
|
|
13
16
|
}
|
|
14
17
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
15
18
|
interface ComponentToken {
|
|
@@ -41,7 +41,7 @@ function getStackNoticeClipPath(offset) {
|
|
|
41
41
|
return `inset(${offset} ${offset} ${offset} ${offset})`;
|
|
42
42
|
}
|
|
43
43
|
/** Generate shared list content and motion base styles. */
|
|
44
|
-
|
|
44
|
+
function genNotificationListContentStyle(token, pointerEvents) {
|
|
45
45
|
const { componentCls, motionDurationMid, motionDurationSlow, motionEaseInOut } = token;
|
|
46
46
|
const listContentCls = `${`${componentCls}-list`}-content`;
|
|
47
47
|
return {
|
|
@@ -54,7 +54,7 @@ const genNotificationListContentStyle = (token) => {
|
|
|
54
54
|
width: "100%",
|
|
55
55
|
willChange: "height, transform",
|
|
56
56
|
transition: "none",
|
|
57
|
-
pointerEvents
|
|
57
|
+
pointerEvents,
|
|
58
58
|
[`&${listContentCls}-decrease`]: { transition: `height calc(${motionDurationSlow} * 2) ${motionEaseInOut} ${motionDurationMid}` }
|
|
59
59
|
},
|
|
60
60
|
[`${componentCls}-fade`]: {
|
|
@@ -62,7 +62,7 @@ const genNotificationListContentStyle = (token) => {
|
|
|
62
62
|
willChange: "transform, opacity"
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
|
-
}
|
|
65
|
+
}
|
|
66
66
|
/** Generate the root holder, list, stack, and RTL styles for notifications. */
|
|
67
67
|
function genNotificationListStyle(token, config) {
|
|
68
68
|
const { componentCls, notificationMarginEdge } = token;
|
|
@@ -82,7 +82,6 @@ function genNotificationListStyle(token, config) {
|
|
|
82
82
|
height: "100vh",
|
|
83
83
|
overflow: "hidden",
|
|
84
84
|
overscrollBehavior: "contain",
|
|
85
|
-
[`${componentCls}-hook-holder`]: { position: "relative" },
|
|
86
85
|
[`&${listCls}`]: {
|
|
87
86
|
maxHeight: "100vh",
|
|
88
87
|
padding: `var(${notificationMarginEdgeVar})`,
|
|
@@ -97,7 +96,7 @@ function genNotificationListStyle(token, config) {
|
|
|
97
96
|
height: 0
|
|
98
97
|
}
|
|
99
98
|
},
|
|
100
|
-
...genNotificationListContentStyle(token),
|
|
99
|
+
...genNotificationListContentStyle(token, config.listContentPointerEvents ?? "auto"),
|
|
101
100
|
[`&${componentCls}-stack`]: {
|
|
102
101
|
[noticeCls]: { clipPath: stackNoticeClipPath },
|
|
103
102
|
[`&:not(${componentCls}-stack-expanded)`]: {
|
package/dist/package.js
CHANGED
|
@@ -366,6 +366,7 @@ const genPaginationStyle = (token) => {
|
|
|
366
366
|
...resetComponent(token),
|
|
367
367
|
display: "flex",
|
|
368
368
|
alignItems: "center",
|
|
369
|
+
userSelect: "none",
|
|
369
370
|
"&-start": { justifyContent: "start" },
|
|
370
371
|
"&-center": { justifyContent: "center" },
|
|
371
372
|
"&-end": { justifyContent: "end" },
|
|
@@ -387,7 +388,8 @@ const genPaginationStyle = (token) => {
|
|
|
387
388
|
height: varRef(`item-size-actual`),
|
|
388
389
|
marginInlineEnd: varRef(`item-spacing-actual`),
|
|
389
390
|
lineHeight: unit(token.calc(varRef(`item-size-actual`)).sub(2).equal()),
|
|
390
|
-
verticalAlign: "middle"
|
|
391
|
+
verticalAlign: "middle",
|
|
392
|
+
userSelect: "text"
|
|
391
393
|
},
|
|
392
394
|
...genPaginationItemStyle(token),
|
|
393
395
|
...genPaginationJumpStyle(token),
|
|
@@ -405,13 +407,19 @@ const genPaginationStyle = (token) => {
|
|
|
405
407
|
const genPaginationFocusStyle = (token) => {
|
|
406
408
|
const { componentCls } = token;
|
|
407
409
|
return { [`${componentCls}:not(${componentCls}-disabled)`]: {
|
|
408
|
-
[`${componentCls}-item`]: {
|
|
409
|
-
|
|
410
|
+
[`${componentCls}-item`]: {
|
|
411
|
+
...genFocusStyle(token),
|
|
412
|
+
"> a, > button": {
|
|
413
|
+
borderRadius: "inherit",
|
|
414
|
+
...genFocusStyle(token)
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
[`${componentCls}-jump-prev, ${componentCls}-jump-next`]: { "&:focus-visible, &:has(> :focus-visible)": {
|
|
410
418
|
[`${componentCls}-item-link-icon`]: { opacity: 1 },
|
|
411
419
|
[`${componentCls}-item-ellipsis`]: { opacity: 0 },
|
|
412
420
|
...genFocusOutline(token)
|
|
413
421
|
} },
|
|
414
|
-
[`${componentCls}-prev, ${componentCls}-next`]: { [`&:focus-visible ${componentCls}-item-link`]: genFocusOutline(token) }
|
|
422
|
+
[`${componentCls}-prev, ${componentCls}-next`]: { [`&:focus-visible ${componentCls}-item-link, ${componentCls}-item-link:focus-visible`]: genFocusOutline(token) }
|
|
415
423
|
} };
|
|
416
424
|
};
|
|
417
425
|
const prepareComponentToken = (token) => ({
|
package/dist/popconfirm/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
|
2
2
|
import { useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1, useLiveListener } from "../_util/tools.js";
|
|
4
4
|
import useMergedArrow from "../tooltip/hooks/useMergedArrow.js";
|
|
5
|
+
import { cloneIfVNode } from "../_util/vueNode.js";
|
|
5
6
|
import Popover from "../popover/index.js";
|
|
6
7
|
import style_default from "./style/index.js";
|
|
7
8
|
import PurePanel, { Overlay } from "./PurePanel.js";
|
|
@@ -84,7 +85,7 @@ const Popconfirm = /* @__PURE__ */ defineComponent((props, { slots, attrs, expos
|
|
|
84
85
|
return () => {
|
|
85
86
|
const titleNode = getSlotPropsFnRun(slots, props, "title");
|
|
86
87
|
const descriptionNode = getSlotPropsFnRun(slots, props, "description");
|
|
87
|
-
const iconNode = getSlotPropsFnRun(slots, props, "icon") ?? defaultIcon;
|
|
88
|
+
const iconNode = cloneIfVNode(getSlotPropsFnRun(slots, props, "icon") ?? defaultIcon);
|
|
88
89
|
const okTextNode = getSlotPropsFnRun(slots, props, "okText");
|
|
89
90
|
const cancelTextNode = getSlotPropsFnRun(slots, props, "cancelText");
|
|
90
91
|
const restProps = omit(props, OMITTED_PROP_KEYS);
|
package/dist/progress/Line.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
2
|
+
import { isString } from "../_util/is.js";
|
|
2
3
|
import { getSize, getSuccessPercent, validProgress } from "./utils.js";
|
|
3
4
|
import { LineStrokeColorVar } from "./style/index.js";
|
|
4
5
|
import { computed, createVNode, defineComponent } from "vue";
|
|
@@ -90,7 +91,7 @@ const Line = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
90
91
|
return createVNode("div", {
|
|
91
92
|
"class": clsx(`${prefixCls}-body`, classes.body, { [`${prefixCls}-body-layout-bottom`]: infoAlign === "center" && infoPosition === "outer" }),
|
|
92
93
|
"style": {
|
|
93
|
-
width: width > 0 ? width : "100%",
|
|
94
|
+
width: isString(width) || width > 0 ? width : "100%",
|
|
94
95
|
...styles.body
|
|
95
96
|
}
|
|
96
97
|
}, [createVNode("div", {
|
|
@@ -151,7 +151,7 @@ const Progress = /* @__PURE__ */ defineComponent((props, { attrs }) => {
|
|
|
151
151
|
"style": [mergedStyles.value.root, attrStyle],
|
|
152
152
|
"class": classString,
|
|
153
153
|
"role": "progressbar",
|
|
154
|
-
"aria-valuenow":
|
|
154
|
+
"aria-valuenow": validProgress(mergedPercent.value),
|
|
155
155
|
"aria-valuemin": 0,
|
|
156
156
|
"aria-valuemax": 100
|
|
157
157
|
}), [progress]);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { cloneIfVNode } from "../_util/vueNode.js";
|
|
1
2
|
import button_default from "../button/index.js";
|
|
2
3
|
import Spin from "../spin/index.js";
|
|
3
4
|
import { Fragment, createVNode, defineComponent } from "vue";
|
|
@@ -15,7 +16,7 @@ const QRcodeStatus = /* @__PURE__ */ defineComponent((props) => {
|
|
|
15
16
|
const defaultScannedNode = createVNode("p", { "class": `${prefixCls}-scanned` }, [locale?.scanned]);
|
|
16
17
|
const defaultNodes = {
|
|
17
18
|
expired: defaultExpiredNode,
|
|
18
|
-
loading: defaultSpin,
|
|
19
|
+
loading: cloneIfVNode(defaultSpin),
|
|
19
20
|
scanned: defaultScannedNode
|
|
20
21
|
};
|
|
21
22
|
const defaultStatusRender = (info) => defaultNodes[info.status];
|
|
@@ -21,8 +21,12 @@ declare function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeI
|
|
|
21
21
|
open: boolean;
|
|
22
22
|
showSearch: boolean;
|
|
23
23
|
}) => import("vue/jsx-runtime").JSX.Element | null) | null;
|
|
24
|
-
itemIcon: string | number | boolean | import("vue
|
|
25
|
-
|
|
24
|
+
itemIcon: string | number | boolean | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}> | RenderNodeFn<any[]> | null;
|
|
27
|
+
removeIcon: string | number | boolean | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}> | RenderNodeFn<any[]> | null;
|
|
26
30
|
};
|
|
27
31
|
//#endregion
|
|
28
32
|
export { useIcons as default };
|
package/dist/slider/index.d.ts
CHANGED
|
@@ -98,7 +98,12 @@ interface SliderRef {
|
|
|
98
98
|
focus: () => void;
|
|
99
99
|
blur: () => void;
|
|
100
100
|
}
|
|
101
|
-
interface SliderSlots {
|
|
101
|
+
interface SliderSlots {
|
|
102
|
+
mark?: (ctx: {
|
|
103
|
+
point: number;
|
|
104
|
+
label?: any;
|
|
105
|
+
}) => any;
|
|
106
|
+
}
|
|
102
107
|
type SliderRange = SliderProps$1['range'];
|
|
103
108
|
interface Opens {
|
|
104
109
|
[index: number]: boolean;
|
package/dist/slider/index.js
CHANGED
|
@@ -20,7 +20,7 @@ function getTipFormatter(tipFormatter) {
|
|
|
20
20
|
if (tipFormatter || tipFormatter === null) return tipFormatter;
|
|
21
21
|
return (val) => typeof val === "number" ? val.toString() : "";
|
|
22
22
|
}
|
|
23
|
-
const Slider = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose }) => {
|
|
23
|
+
const Slider = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose, slots }) => {
|
|
24
24
|
const { classes, styles, vertical, orientation } = toPropsRefs(props, "classes", "styles", "vertical", "orientation");
|
|
25
25
|
const [, mergedVertical] = useOrientation(orientation, vertical);
|
|
26
26
|
const sliderRef = shallowRef();
|
|
@@ -97,6 +97,8 @@ const Slider = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose })
|
|
|
97
97
|
...restAttrs
|
|
98
98
|
};
|
|
99
99
|
delete restProps.onAfterChange;
|
|
100
|
+
const onBlur = restProps.onBlur;
|
|
101
|
+
delete restProps.onBlur;
|
|
100
102
|
if (isRTL.value && !mergedVertical.value) restProps.reverse = !restProps.reverse;
|
|
101
103
|
const mergedTipFormatter = getTipFormatter(tipFormatter);
|
|
102
104
|
const useActiveTooltipHandle = range && !lockOpen.value;
|
|
@@ -125,7 +127,7 @@ const Slider = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose })
|
|
|
125
127
|
},
|
|
126
128
|
onBlur: (e) => {
|
|
127
129
|
setFocusOpen(false);
|
|
128
|
-
|
|
130
|
+
onBlur?.(e);
|
|
129
131
|
proxyEvent("onBlur", e);
|
|
130
132
|
}
|
|
131
133
|
});
|
|
@@ -177,7 +179,7 @@ const Slider = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose })
|
|
|
177
179
|
emit("update:value", ...args);
|
|
178
180
|
},
|
|
179
181
|
"ref": sliderRef
|
|
180
|
-
}),
|
|
182
|
+
}), { mark: slots.mark });
|
|
181
183
|
};
|
|
182
184
|
}, {
|
|
183
185
|
props: {
|
package/dist/space/Compact.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ interface SpaceCompactItemContextType {
|
|
|
21
21
|
declare function useSpaceCompactItemContext(): Ref<SpaceCompactItemContextType | null, SpaceCompactItemContextType | null>;
|
|
22
22
|
declare function useCompactItemContext(prefixCls: Ref<string>, direction: Ref<DirectionType>): {
|
|
23
23
|
compactSize: import("vue").ComputedRef<SizeType>;
|
|
24
|
-
compactDirection: import("vue").ComputedRef<"
|
|
24
|
+
compactDirection: import("vue").ComputedRef<"horizontal" | "vertical" | undefined>;
|
|
25
25
|
compactItemClassnames: import("vue").ComputedRef<string>;
|
|
26
26
|
};
|
|
27
27
|
declare const NoCompactStyle: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import("vue").PublicProps>;
|
package/dist/space/Item.d.ts
CHANGED
package/dist/space/Item.js
CHANGED
|
@@ -5,13 +5,13 @@ import { filterEmpty } from "@v-c/util/dist/props-util";
|
|
|
5
5
|
const Item = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
6
6
|
const spaceContext = useSpaceContext();
|
|
7
7
|
return () => {
|
|
8
|
-
const { index, className, classes, styles } = props;
|
|
8
|
+
const { index, className, prefix, classes, styles } = props;
|
|
9
9
|
const { latestIndex } = spaceContext.value;
|
|
10
10
|
const children = filterEmpty(slots?.default?.());
|
|
11
11
|
const separator = filterEmpty(slots?.separator?.());
|
|
12
12
|
if (children.length === 0) return null;
|
|
13
13
|
return createVNode(Fragment, null, [createVNode("div", mergeProps({ "class": className }, attrs), [children]), index < latestIndex && !!separator.length && createVNode("span", {
|
|
14
|
-
"class": [`${
|
|
14
|
+
"class": [`${prefix}-item-separator`, classes.separator],
|
|
15
15
|
"style": styles.separator
|
|
16
16
|
}, [separator])]);
|
|
17
17
|
};
|
|
@@ -24,6 +24,10 @@ const Item = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
24
24
|
type: String,
|
|
25
25
|
required: true
|
|
26
26
|
},
|
|
27
|
+
prefix: {
|
|
28
|
+
type: String,
|
|
29
|
+
required: true
|
|
30
|
+
},
|
|
27
31
|
classes: {
|
|
28
32
|
type: Object,
|
|
29
33
|
required: true
|
package/dist/space/index.js
CHANGED
|
@@ -54,6 +54,7 @@ const InternalSpace = /* @__PURE__ */ defineComponent((props, { slots, attrs })
|
|
|
54
54
|
if (child !== null && child !== void 0) latestIndex.value = i;
|
|
55
55
|
const key = child?.key || `${itemClassName}-${i}`;
|
|
56
56
|
return createVNode(Item, {
|
|
57
|
+
"prefix": prefixCls.value,
|
|
57
58
|
"className": itemClassName,
|
|
58
59
|
"classes": mergedClassNames.value,
|
|
59
60
|
"styles": mergedStyles.value,
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
+
import { getAttrStyleAndClass } from "../../_util/hooks/useMergeSemantic.js";
|
|
1
2
|
import { getSlotPropsFnRun } from "../../_util/tools.js";
|
|
2
3
|
import { Looper } from "./Looper.js";
|
|
3
4
|
import { createVNode, defineComponent, isVNode, mergeDefaults, mergeProps } from "vue";
|
|
5
|
+
import { classNames } from "@v-c/util";
|
|
4
6
|
//#region src/spin/Indicator/index.tsx
|
|
5
7
|
const Indicator = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
6
8
|
return () => {
|
|
7
9
|
const { prefixCls, percent } = props;
|
|
8
10
|
const dotClassName = `${prefixCls}-dot`;
|
|
9
11
|
const indicator = getSlotPropsFnRun(slots, props, "indicator");
|
|
12
|
+
const { style, className } = getAttrStyleAndClass(attrs);
|
|
10
13
|
if (indicator && isVNode(indicator)) return createVNode(indicator, {
|
|
11
|
-
class: dotClassName,
|
|
14
|
+
class: classNames(dotClassName, className),
|
|
15
|
+
style,
|
|
12
16
|
percent
|
|
13
17
|
});
|
|
14
18
|
return createVNode(Looper, mergeProps(attrs, {
|
|
@@ -86,7 +86,7 @@ const Splitter = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose
|
|
|
86
86
|
const nativeElementRef = shallowRef();
|
|
87
87
|
expose({ nativeElement: nativeElementRef });
|
|
88
88
|
return () => {
|
|
89
|
-
const { rootClass, lazy, draggerIcon, collapsible, collapsibleIcon } = props;
|
|
89
|
+
const { rootClass, lazy, draggerIcon, collapsible, collapsibleIcon, destroyOnHidden } = props;
|
|
90
90
|
const mergedCollapsibleIcon = collapsible?.icon ?? collapsibleIcon;
|
|
91
91
|
items.value = convertChildrenToItems(slots?.default?.() ?? []);
|
|
92
92
|
const { className, style, restAttrs } = getAttrStyleAndClass(attrs);
|
|
@@ -110,7 +110,8 @@ const Splitter = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose
|
|
|
110
110
|
}, {
|
|
111
111
|
"prefixCls": prefixCls.value,
|
|
112
112
|
"size": panelSizes.value[idx],
|
|
113
|
-
"supportMotion": collapsible?.motion && movingIndex.value === void 0
|
|
113
|
+
"supportMotion": collapsible?.motion && movingIndex.value === void 0,
|
|
114
|
+
"destroyOnHidden": item.destroyOnHidden ?? destroyOnHidden
|
|
114
115
|
}), { default: () => [item._$slots?.default?.()] });
|
|
115
116
|
let splitBar = null;
|
|
116
117
|
const resizableInfo = resizableInfos.value[idx];
|
|
@@ -181,6 +182,11 @@ const Splitter = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose
|
|
|
181
182
|
required: false,
|
|
182
183
|
default: void 0
|
|
183
184
|
},
|
|
185
|
+
destroyOnHidden: {
|
|
186
|
+
type: Boolean,
|
|
187
|
+
required: false,
|
|
188
|
+
default: void 0
|
|
189
|
+
},
|
|
184
190
|
draggerIcon: {
|
|
185
191
|
type: [
|
|
186
192
|
Function,
|
|
@@ -48,6 +48,7 @@ interface SplitterProps extends ComponentBaseProps {
|
|
|
48
48
|
layout?: Orientation;
|
|
49
49
|
orientation?: Orientation;
|
|
50
50
|
vertical?: boolean;
|
|
51
|
+
destroyOnHidden?: boolean;
|
|
51
52
|
draggerIcon?: VueNode;
|
|
52
53
|
/**
|
|
53
54
|
* Collapse configuration. Set `motion: true` to enable collapse animation.
|
|
@@ -50,6 +50,9 @@ interface StatisticSlots {
|
|
|
50
50
|
title: () => any;
|
|
51
51
|
prefix: () => any;
|
|
52
52
|
suffix: () => any;
|
|
53
|
+
formatter?: (ctx: {
|
|
54
|
+
value: valueType;
|
|
55
|
+
}) => any;
|
|
53
56
|
}
|
|
54
57
|
interface InternalStatisticProps extends StatisticProps, StatisticEmitsProps {}
|
|
55
58
|
interface StatisticEmitsProps {
|
|
@@ -29,6 +29,7 @@ const Statistic = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit,
|
|
|
29
29
|
const title = getSlotPropsFnRun(slots, props, "title");
|
|
30
30
|
const prefix = getSlotPropsFnRun(slots, props, "prefix");
|
|
31
31
|
const suffix = getSlotPropsFnRun(slots, props, "suffix");
|
|
32
|
+
const mergedFormatter = slots.formatter ? (v) => getSlotPropsFnRun(slots, {}, "formatter", true, { value: v }) : formatter;
|
|
32
33
|
const cls = classNames(prefixCls.value, { [`${prefixCls.value}-rtl`]: direction.value === "rtl" }, contextClassName.value, attrs.class, rootClass, mergedClassNames.value.root, hashId.value, cssVarCls.value);
|
|
33
34
|
const restProps = pickAttrs(attrs, {
|
|
34
35
|
data: true,
|
|
@@ -44,7 +45,7 @@ const Statistic = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit,
|
|
|
44
45
|
"decimalSeparator": decimalSeparator,
|
|
45
46
|
"groupSeparator": groupSeparator,
|
|
46
47
|
"prefixCls": prefixCls.value,
|
|
47
|
-
"formatter":
|
|
48
|
+
"formatter": mergedFormatter,
|
|
48
49
|
"precision": precision,
|
|
49
50
|
"value": value,
|
|
50
51
|
"className": valueClassNames,
|
package/dist/steps/index.js
CHANGED
|
@@ -13,9 +13,9 @@ import PanelArrow from "./PanelArrow.js";
|
|
|
13
13
|
import ProgressIcon from "./ProgressIcon.js";
|
|
14
14
|
import style_default from "./style/index.js";
|
|
15
15
|
import useDisplaySteps from "./useDisplaySteps.js";
|
|
16
|
-
import { Fragment, computed, createVNode, defineComponent, isVNode, mergeDefaults, mergeProps } from "vue";
|
|
16
|
+
import { Fragment, computed, createVNode, defineComponent, getCurrentInstance, isVNode, mergeDefaults, mergeProps } from "vue";
|
|
17
17
|
import { clsx } from "@v-c/util";
|
|
18
|
-
import { CheckOutlined } from "@antdv-next/icons";
|
|
18
|
+
import { CheckOutlined, CloseOutlined } from "@antdv-next/icons";
|
|
19
19
|
import VcSteps from "@v-c/steps";
|
|
20
20
|
//#region src/steps/index.tsx
|
|
21
21
|
function _isSlot(s) {
|
|
@@ -23,6 +23,7 @@ function _isSlot(s) {
|
|
|
23
23
|
}
|
|
24
24
|
const waveEffectClassNames = { itemIcon: TARGET_CLS };
|
|
25
25
|
const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) => {
|
|
26
|
+
const instance = getCurrentInstance();
|
|
26
27
|
const internalContent = useInternalContext();
|
|
27
28
|
const { direction: rtlDirection, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, prefixCls, rootPrefixCls } = useComponentBaseConfig("steps", props);
|
|
28
29
|
const { size, items, responsive, type, classes, styles } = toPropsRefs(props, "size", "items", "responsive", "type", "classes", "styles");
|
|
@@ -84,7 +85,7 @@ const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
|
|
|
84
85
|
warning(props.maxCount === void 0 || props.maxCount >= 3, "usage", "`maxCount` should be greater than or equal to 3.");
|
|
85
86
|
}
|
|
86
87
|
return () => {
|
|
87
|
-
const { variant, onChange, offset, ellipsis, rootClass, current: _current, initial: _initial, maxCount: _maxCount, ...restProps } = props;
|
|
88
|
+
const { variant, onChange, offset, ellipsis, rootClass, classes: _classes, size: _size, type: _type, direction: _direction, labelPlacement: _labelPlacement, progressDot: _progressDot, responsive: _responsive, percent: _percent, current: _current, initial: _initial, maxCount: _maxCount, ...restProps } = props;
|
|
88
89
|
const { className, restAttrs } = getAttrStyleAndClass(attrs);
|
|
89
90
|
const iconRender = slots?.iconRender || props?.iconRender;
|
|
90
91
|
const legacyProgressDotRenderFn = () => {
|
|
@@ -103,7 +104,7 @@ const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
|
|
|
103
104
|
iconContent = createVNode(CheckOutlined, { "class": `${itemIconCls.value}-finish` }, null);
|
|
104
105
|
break;
|
|
105
106
|
case "error":
|
|
106
|
-
iconContent = createVNode(
|
|
107
|
+
iconContent = createVNode(CloseOutlined, { "class": `${itemIconCls.value}-error` }, null);
|
|
107
108
|
break;
|
|
108
109
|
default: {
|
|
109
110
|
let numNode = createVNode("span", { "class": `${itemIconCls.value}-number` }, [mappedIndex + 1]);
|
|
@@ -139,6 +140,7 @@ const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
|
|
|
139
140
|
});
|
|
140
141
|
return iconNode;
|
|
141
142
|
};
|
|
143
|
+
const hasChangeListener = !!(props.onChange || instance?.vnode?.props?.["onUpdate:current"]);
|
|
142
144
|
const itemRender = (itemNode, itemInfo) => {
|
|
143
145
|
let content = itemNode;
|
|
144
146
|
const itemContent = getSlotPropsFnRun({}, itemInfo.item, "content");
|
|
@@ -148,7 +150,7 @@ const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
|
|
|
148
150
|
}, _isSlot(itemNode) ? itemNode : { default: () => [itemNode] });
|
|
149
151
|
return createVNode(wave_default, {
|
|
150
152
|
"component": "Steps",
|
|
151
|
-
"disabled": itemInfo.item.disabled || !
|
|
153
|
+
"disabled": itemInfo.item.disabled || !hasChangeListener,
|
|
152
154
|
"colorSource": variant === "filled" ? "color" : null
|
|
153
155
|
}, _isSlot(content) ? content : { default: () => [content] });
|
|
154
156
|
};
|
|
@@ -177,13 +179,13 @@ const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
|
|
|
177
179
|
"initial": 0,
|
|
178
180
|
"current": mappedDisplayCurrent.value,
|
|
179
181
|
"items": displayItems.value,
|
|
180
|
-
"onChange": (displayCurrent) => {
|
|
182
|
+
"onChange": hasChangeListener ? (displayCurrent) => {
|
|
181
183
|
const target = displaySteps.value[displayCurrent];
|
|
182
184
|
const originIndex = target && target.originIndex >= 0 ? target.originIndex : displayCurrent;
|
|
183
185
|
const next = mergedInitial.value + originIndex;
|
|
184
186
|
onChange?.(next);
|
|
185
187
|
emit("update:current", next);
|
|
186
|
-
},
|
|
188
|
+
} : void 0,
|
|
187
189
|
"iconRender": internalIconRender,
|
|
188
190
|
"itemRender": itemRender,
|
|
189
191
|
"itemWrapperRender": itemWrapperRender
|
package/dist/switch/index.js
CHANGED
|
@@ -31,7 +31,7 @@ const keys = [
|
|
|
31
31
|
"checkedChildren",
|
|
32
32
|
"unCheckedChildren"
|
|
33
33
|
];
|
|
34
|
-
const Switch = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) => {
|
|
34
|
+
const Switch = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs, expose }) => {
|
|
35
35
|
const mergedCheckedValue = computed(() => props.checkedValue ?? true);
|
|
36
36
|
const mergedUnCheckedValue = computed(() => props.unCheckedValue ?? false);
|
|
37
37
|
const currentValue = shallowRef(props?.checked ?? props?.value ?? props?.defaultChecked ?? props?.defaultValue ?? mergedUnCheckedValue.value);
|
|
@@ -69,6 +69,12 @@ const Switch = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) =
|
|
|
69
69
|
emit("update:checked", newValue);
|
|
70
70
|
emit("update:value", newValue);
|
|
71
71
|
};
|
|
72
|
+
const switchRef = shallowRef();
|
|
73
|
+
expose({
|
|
74
|
+
nativeElement: switchRef,
|
|
75
|
+
focus: () => switchRef.value?.focus?.(),
|
|
76
|
+
blur: () => switchRef.value?.blur?.()
|
|
77
|
+
});
|
|
72
78
|
return () => {
|
|
73
79
|
const { loading, rootClass } = props;
|
|
74
80
|
const checkedChildren = getSlotPropsFnRun(slots, props, "checkedChildren");
|
|
@@ -91,7 +97,7 @@ const Switch = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) =
|
|
|
91
97
|
return createVNode(wave_default, {
|
|
92
98
|
"component": "Switch",
|
|
93
99
|
"disabled": mergedDisabled.value
|
|
94
|
-
}, { default: () => [createVNode(VcSwitch, mergeProps(restAttrs, restProps, {
|
|
100
|
+
}, { default: () => [createVNode(VcSwitch, mergeProps({ "ref": switchRef }, restAttrs, restProps, {
|
|
95
101
|
"classNames": mergedClassNames.value,
|
|
96
102
|
"styles": mergedStyles.value,
|
|
97
103
|
"checked": isChecked.value,
|
|
@@ -286,12 +286,12 @@ const InternalTable = /* @__PURE__ */ defineComponent((props, { slots, emit, att
|
|
|
286
286
|
};
|
|
287
287
|
const columnTitleProps = useColumnTitleProps(sorterTitleProps, filters);
|
|
288
288
|
const transformTitleColumns = computed(() => useTitleColumns(columnTitleProps.value)[0]);
|
|
289
|
-
const renderExpandedRow =
|
|
289
|
+
const renderExpandedRow = (record, index, indent, expanded) => getSlotPropsFnRun(slots, props, "expandedRowRender", true, {
|
|
290
290
|
record,
|
|
291
291
|
index,
|
|
292
292
|
indent,
|
|
293
293
|
expanded
|
|
294
|
-
})
|
|
294
|
+
});
|
|
295
295
|
const renderFilterDropdown = slots.filterDropdown ? (ctx) => getSlotPropsFnRun(slots, props, "filterDropdown", false, ctx) : void 0;
|
|
296
296
|
const renderFilterIcon = slots.filterIcon ? (ctx) => getSlotPropsFnRun(slots, props, "filterIcon", false, ctx) : void 0;
|
|
297
297
|
const transformFilterColumns = computed(() => useFilter({
|
|
@@ -309,7 +309,7 @@ const InternalTable = /* @__PURE__ */ defineComponent((props, { slots, emit, att
|
|
|
309
309
|
const transformColumns = (innerColumns) => transformTitleColumns.value(transformSelectionColumns(transformFilterColumns.value(transformSorterColumns(innerColumns))));
|
|
310
310
|
const expandType = computed(() => {
|
|
311
311
|
if (rawData.value.some((item) => item?.[childrenColumnName.value])) return "nest";
|
|
312
|
-
if (
|
|
312
|
+
if (slots.expandedRowRender || mergedExpandable.value.expandedRowRender) return "row";
|
|
313
313
|
return null;
|
|
314
314
|
});
|
|
315
315
|
if (isDev) devUseWarning("Table").deprecated(!props.expandable?.expandIcon, "expandable.expandIcon", "components.ExpandIcon");
|
|
@@ -317,13 +317,28 @@ const InternalTable = /* @__PURE__ */ defineComponent((props, { slots, emit, att
|
|
|
317
317
|
const mergedExpandableConfig = computed(() => {
|
|
318
318
|
const expandable = { ...mergedExpandable.value };
|
|
319
319
|
expandable.__PARENT_RENDER_ICON__ = expandable.expandIcon;
|
|
320
|
-
if (renderExpandedRow) expandable.expandedRowRender = renderExpandedRow;
|
|
321
320
|
expandable.expandIcon = void 0;
|
|
322
321
|
if (expandType.value === "nest" && expandable.expandIconColumnIndex === void 0) expandable.expandIconColumnIndex = mergedRowSelection.value ? 1 : 0;
|
|
323
322
|
else if (expandType.value === "nest" && expandable.expandIconColumnIndex > 0 && mergedRowSelection.value) expandable.expandIconColumnIndex -= 1;
|
|
324
323
|
if (typeof expandable.indentSize !== "number") expandable.indentSize = typeof props.indentSize === "number" ? props.indentSize : 15;
|
|
325
324
|
return expandable;
|
|
326
325
|
});
|
|
326
|
+
let lastExpandableBase;
|
|
327
|
+
let lastExpandableHasSlot = false;
|
|
328
|
+
let lastExpandableConfig;
|
|
329
|
+
const resolveExpandableConfig = () => {
|
|
330
|
+
const base = mergedExpandableConfig.value;
|
|
331
|
+
const hasSlot = !!slots.expandedRowRender;
|
|
332
|
+
if (base !== lastExpandableBase || hasSlot !== lastExpandableHasSlot) {
|
|
333
|
+
lastExpandableBase = base;
|
|
334
|
+
lastExpandableHasSlot = hasSlot;
|
|
335
|
+
lastExpandableConfig = hasSlot ? {
|
|
336
|
+
...base,
|
|
337
|
+
expandedRowRender: renderExpandedRow
|
|
338
|
+
} : base;
|
|
339
|
+
}
|
|
340
|
+
return lastExpandableConfig;
|
|
341
|
+
};
|
|
327
342
|
const mergedComponents = computed(() => {
|
|
328
343
|
let components = props.components;
|
|
329
344
|
if (hasAriaProps.value) components = {
|
|
@@ -419,7 +434,7 @@ const InternalTable = /* @__PURE__ */ defineComponent((props, { slots, emit, att
|
|
|
419
434
|
"emptyText": mergedEmptyNode,
|
|
420
435
|
"classNames": mergedClassNames.value,
|
|
421
436
|
"styles": mergedStyles.value,
|
|
422
|
-
"expandable":
|
|
437
|
+
"expandable": resolveExpandableConfig(),
|
|
423
438
|
"prefixCls": prefixCls.value,
|
|
424
439
|
"direction": direction.value,
|
|
425
440
|
"headerCell": slots.headerCell || contextHeaderCell.value || props.headerCell ? renderHeaderCell : void 0,
|
package/dist/table/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SELECTION_ALL, SELECTION_COLUMN, SELECTION_INVERT, SELECTION_NONE } from "./hooks/useSelection.js";
|
|
2
|
-
import { ColumnType, ColumnsType, ExpandType, FilterValue, SortOrder, SorterResult, TableLocale, TablePaginationConfig, TableRowSelection } from "./interface.js";
|
|
2
|
+
import { ColumnType, ColumnsType, ExpandType, FilterDropdownProps, FilterValue, SortOrder, SorterResult, TableLocale, TablePaginationConfig, TableRowSelection } from "./interface.js";
|
|
3
3
|
import { TableClassNamesType, TableEmits, TableExpose, TableProps, TableSlots, TableStylesType } from "./InternalTable.js";
|
|
4
4
|
import Column from "./Column.js";
|
|
5
5
|
import ColumnGroup from "./ColumnGroup.js";
|
|
@@ -8,4 +8,4 @@ import { DataIndex, EXPAND_COLUMN, Reference, Summary, SummaryCell, SummaryRow }
|
|
|
8
8
|
//#region src/table/index.d.ts
|
|
9
9
|
declare const _default: ForwardTableType;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { Column, ColumnGroup, type ColumnType, type ColumnsType, type DataIndex, EXPAND_COLUMN, type ExpandType, type FilterValue, type Reference, SELECTION_ALL, SELECTION_COLUMN, SELECTION_INVERT, SELECTION_NONE, type SortOrder, type SorterResult, Summary, SummaryCell, SummaryRow, type TableClassNamesType, type ForwardTableType as TableConstructor, type TableEmits, type TableExpose, type TableLocale, type TablePaginationConfig, type TableProps, type TableRowSelection, type TableSlots, type TableStylesType, _default as default };
|
|
11
|
+
export { Column, ColumnGroup, type ColumnType, type ColumnsType, type DataIndex, EXPAND_COLUMN, type ExpandType, type FilterDropdownProps, type FilterValue, type Reference, SELECTION_ALL, SELECTION_COLUMN, SELECTION_INVERT, SELECTION_NONE, type SortOrder, type SorterResult, Summary, SummaryCell, SummaryRow, type TableClassNamesType, type ForwardTableType as TableConstructor, type TableEmits, type TableExpose, type TableLocale, type TablePaginationConfig, type TableProps, type TableRowSelection, type TableSlots, type TableStylesType, _default as default };
|
package/dist/table/util.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ declare function renderColumnTitle<RecordType extends AnyObject = AnyObject>(tit
|
|
|
11
11
|
* Should filter [object Object]
|
|
12
12
|
*/
|
|
13
13
|
declare function safeColumnTitle<RecordType extends AnyObject = AnyObject>(title: ColumnTitle<RecordType>, props: ColumnTitleProps<RecordType>): any;
|
|
14
|
-
declare function normalizePlacement(pos: TablePaginationPlacement | TablePaginationPosition): "center" | "
|
|
14
|
+
declare function normalizePlacement(pos: TablePaginationPlacement | TablePaginationPosition): "center" | "start" | "end";
|
|
15
15
|
declare function getPaginationSize(paginationSize: SizeType, mergedSize: SizeType): SizeType;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { getColumnKey, getColumnPos, getPaginationSize, normalizePlacement, renderColumnTitle, safeColumnTitle };
|
package/dist/tabs/style/index.js
CHANGED
|
@@ -401,7 +401,7 @@ const genTabStyle = (token) => {
|
|
|
401
401
|
color: token.colorTextDisabled,
|
|
402
402
|
cursor: "not-allowed"
|
|
403
403
|
},
|
|
404
|
-
[`&${tabCls}-disabled ${tabCls}-btn
|
|
404
|
+
[`&${tabCls}-disabled ${tabCls}-btn`]: { "&:focus, &:active": { color: token.colorTextDisabled } },
|
|
405
405
|
[`& ${tabCls}-remove ${iconCls}`]: {
|
|
406
406
|
margin: 0,
|
|
407
407
|
verticalAlign: "middle"
|
|
@@ -472,11 +472,7 @@ const genRtlStyle = (token) => {
|
|
|
472
472
|
}
|
|
473
473
|
} } }
|
|
474
474
|
},
|
|
475
|
-
[`${componentCls}-dropdown-rtl`]: { direction: "rtl" }
|
|
476
|
-
[`${componentCls}-menu-item`]: { [`${componentCls}-dropdown-rtl`]: { textAlign: {
|
|
477
|
-
_skip_check_: true,
|
|
478
|
-
value: "right"
|
|
479
|
-
} } }
|
|
475
|
+
[`${componentCls}-dropdown-rtl`]: { direction: "rtl" }
|
|
480
476
|
};
|
|
481
477
|
};
|
|
482
478
|
const genTabsStyle = (token) => {
|