antdv-next 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_util/hooks/useClosable.d.ts +4 -2
- package/dist/_util/hooks/useClosable.js +9 -3
- package/dist/_util/hooks/useMergeSemantic.d.ts +7 -4
- package/dist/_util/hooks/useMergeSemantic.js +8 -3
- package/dist/_util/statusUtils.d.ts +1 -1
- package/dist/_util/vueNode.d.ts +2 -6
- package/dist/alert/style/index.d.ts +5 -0
- package/dist/alert/style/index.js +2 -1
- package/dist/anchor/Anchor.js +12 -6
- package/dist/antd-with-locales.esm.js +12799 -12587
- package/dist/antd-with-locales.js +82 -82
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +10540 -10546
- package/dist/antd.js +57 -57
- package/dist/avatar/AvatarGroup.d.ts +4 -1
- package/dist/avatar/AvatarGroup.js +6 -4
- package/dist/avatar/index.d.ts +2 -2
- package/dist/badge/Ribbon.d.ts +4 -1
- package/dist/badge/Ribbon.js +11 -11
- package/dist/badge/index.d.ts +3 -2
- package/dist/badge/index.js +26 -24
- package/dist/border-beam/BorderBeam.d.ts +1 -0
- package/dist/border-beam/BorderBeam.js +30 -11
- package/dist/border-beam/hooks/useBorderSize.d.ts +3 -7
- package/dist/border-beam/hooks/useBorderSize.js +25 -26
- package/dist/border-beam/style/index.js +9 -8
- package/dist/border-beam/util.d.ts +3 -1
- package/dist/border-beam/util.js +4 -1
- package/dist/breadcrumb/Breadcrumb.d.ts +4 -1
- package/dist/breadcrumb/Breadcrumb.js +12 -7
- package/dist/breadcrumb/index.d.ts +2 -2
- package/dist/button/Button.js +5 -14
- package/dist/button/buttonHelper.d.ts +1 -1
- package/dist/button/style/index.js +0 -1
- package/dist/calendar/generateCalendar.d.ts +4 -1
- package/dist/calendar/generateCalendar.js +8 -5
- package/dist/calendar/index.d.ts +2 -2
- package/dist/calendar/locale/sq_AL.d.ts +2 -0
- package/dist/calendar/locale/sq_AL.js +5 -0
- package/dist/card/CardGrid.d.ts +4 -1
- package/dist/card/CardGrid.js +7 -4
- package/dist/card/CardMeta.d.ts +4 -1
- package/dist/card/CardMeta.js +5 -3
- package/dist/card/index.d.ts +3 -3
- package/dist/carousel/index.d.ts +1 -0
- package/dist/carousel/index.js +13 -10
- package/dist/collapse/Collapse.js +2 -4
- package/dist/color-picker/ColorPicker.js +4 -7
- package/dist/color-picker/components/ColorTrigger.js +1 -1
- package/dist/color-picker/style/index.js +1 -0
- package/dist/components.d.ts +25 -21
- package/dist/components.js +4 -3
- package/dist/config-provider/context.d.ts +24 -8
- package/dist/config-provider/define.d.ts +2 -1
- package/dist/config-provider/index.js +10 -0
- package/dist/date-picker/generatePicker/generateRangePicker.js +6 -7
- package/dist/date-picker/generatePicker/generateSinglePicker.js +2 -5
- package/dist/date-picker/generatePicker/useComponents.d.ts +2 -2
- package/dist/date-picker/hooks/useMergedPickerSemantic.d.ts +1 -1
- package/dist/date-picker/hooks/useMergedPickerSemantic.js +7 -3
- package/dist/date-picker/locale/sq_AL.d.ts +6 -0
- package/dist/date-picker/locale/sq_AL.js +72 -0
- package/dist/date-picker/locale/zh_TW.js +2 -2
- package/dist/date-picker/util.d.ts +2 -6
- package/dist/descriptions/hooks/useItems.d.ts +4 -4
- package/dist/descriptions/index.d.ts +4 -1
- package/dist/descriptions/index.js +5 -2
- package/dist/divider/index.d.ts +4 -1
- package/dist/divider/index.js +9 -6
- package/dist/drawer/DrawerPanel.js +5 -3
- package/dist/drawer/index.js +9 -13
- package/dist/drawer/style/index.js +1 -0
- package/dist/dropdown/dropdown.js +4 -6
- package/dist/empty/index.d.ts +4 -1
- package/dist/empty/index.js +5 -2
- package/dist/float-button/BackTop.d.ts +2 -0
- package/dist/float-button/BackTop.js +25 -43
- package/dist/float-button/FloatButtonGroup.d.ts +4 -1
- package/dist/float-button/FloatButtonGroup.js +5 -4
- package/dist/float-button/hooks/useScroll.d.ts +16 -0
- package/dist/float-button/hooks/useScroll.js +80 -0
- package/dist/float-button/index.d.ts +2 -2
- package/dist/float-button/style/button.js +23 -0
- package/dist/form/ErrorList.js +2 -2
- package/dist/form/FormItem/ItemHolder.js +1 -1
- package/dist/form/FormItem/index.js +26 -28
- package/dist/form/context.d.ts +1 -1
- package/dist/form/hooks/useVariant.d.ts +2 -2
- package/dist/form/hooks/useVariant.js +15 -5
- package/dist/form/style/index.js +25 -12
- package/dist/form/types.d.ts +11 -3
- package/dist/form/utils/validateUtil.js +4 -0
- package/dist/image/hooks/usePreviewConfig.d.ts +5 -4
- package/dist/image/index.js +8 -9
- package/dist/index.d.ts +25 -21
- package/dist/index.js +2 -2
- package/dist/input/OTP/index.js +6 -3
- package/dist/input/Password.js +4 -1
- package/dist/input/Search.js +11 -6
- package/dist/input/index.d.ts +1 -1
- package/dist/input/style/token.js +2 -1
- package/dist/input/style/variants.js +1 -1
- package/dist/listy/interface.d.ts +3 -2
- package/dist/listy/style/index.js +5 -1
- package/dist/locale/en_US.js +4 -0
- package/dist/locale/index.d.ts +4 -0
- package/dist/locale/is_IS.js +1 -1
- package/dist/locale/mn_MN.js +1 -1
- package/dist/locale/sq_AL.d.ts +5 -0
- package/dist/locale/sq_AL.js +151 -0
- package/dist/locale/zh_CN.js +4 -0
- package/dist/locale/zh_TW.js +41 -41
- package/dist/masonry/Masonry.js +4 -4
- package/dist/mentions/index.d.ts +1 -0
- package/dist/mentions/index.js +4 -0
- package/dist/menu/MenuItem.js +12 -2
- package/dist/menu/SubMenu.d.ts +1 -1
- package/dist/menu/style/vertical.js +2 -6
- package/dist/message/useMessage.js +4 -4
- package/dist/modal/PurePanel.js +4 -7
- package/dist/notification/index.js +2 -1
- package/dist/notification/useNotification.js +12 -9
- package/dist/package.js +1 -1
- package/dist/package.json.d.ts +4 -0
- package/dist/pagination/Pagination.js +14 -6
- package/dist/pagination/index.d.ts +2 -2
- package/dist/pagination/interface.d.ts +20 -3
- package/dist/popconfirm/index.js +17 -8
- package/dist/popover/PurePanel.js +10 -0
- package/dist/popover/index.js +24 -16
- package/dist/qrcode/index.d.ts +4 -1
- package/dist/qrcode/index.js +16 -13
- package/dist/radio/group.js +2 -2
- package/dist/rate/style/index.js +12 -9
- package/dist/result/index.d.ts +4 -1
- package/dist/result/index.js +7 -4
- package/dist/select/index.js +1 -1
- package/dist/select/style/dropdown.js +4 -0
- package/dist/select/style/index.js +1 -1
- package/dist/select/style/select-input.js +1 -1
- package/dist/select/style/token.js +4 -2
- package/dist/select/useIcons.d.ts +2 -6
- package/dist/skeleton/Skeleton.d.ts +4 -1
- package/dist/skeleton/Skeleton.js +10 -4
- package/dist/skeleton/index.d.ts +2 -2
- package/dist/slider/SliderTooltip.js +5 -0
- package/dist/slider/index.d.ts +5 -1
- package/dist/slider/index.js +9 -9
- package/dist/space/Compact.d.ts +5 -2
- package/dist/space/Compact.js +8 -3
- package/dist/space/index.d.ts +2 -2
- package/dist/space/index.js +3 -3
- package/dist/spin/index.d.ts +4 -1
- package/dist/spin/index.js +7 -5
- package/dist/splitter/Splitter.d.ts +4 -1
- package/dist/splitter/Splitter.js +4 -2
- package/dist/splitter/index.d.ts +2 -2
- package/dist/splitter/style/index.js +2 -1
- package/dist/statistic/Statistic.d.ts +4 -1
- package/dist/statistic/index.d.ts +2 -2
- package/dist/steps/index.js +6 -8
- package/dist/steps/style/index.js +2 -1
- package/dist/table/InternalTable.js +5 -4
- package/dist/table/hooks/useFilter/FilterDropdown.js +2 -2
- package/dist/table/style/radius.js +4 -0
- package/dist/table/style/virtual.js +4 -0
- package/dist/tag/hooks/useColor.d.ts +1 -1
- package/dist/tag/index.js +3 -3
- package/dist/theme/interface/seeds.d.ts +8 -0
- package/dist/theme/themes/seed.js +1 -0
- package/dist/theme/util/alias.js +1 -1
- package/dist/time-picker/locale/sq_AL.d.ts +5 -0
- package/dist/time-picker/locale/sq_AL.js +7 -0
- package/dist/timeline/Timeline.js +5 -7
- package/dist/tooltip/PurePanel.js +5 -0
- package/dist/tooltip/index.d.ts +1 -0
- package/dist/tooltip/index.js +27 -13
- package/dist/tour/index.js +10 -13
- package/dist/tour/panelRender.js +2 -8
- package/dist/transfer/ListBody.js +2 -1
- package/dist/transfer/ListItem.d.ts +1 -0
- package/dist/transfer/ListItem.js +6 -2
- package/dist/transfer/Transfer.d.ts +4 -1
- package/dist/transfer/Transfer.js +5 -2
- package/dist/transfer/index.d.ts +2 -2
- package/dist/transfer/search.js +2 -2
- package/dist/tree/index.d.ts +3 -2
- package/dist/tree/index.js +3 -2
- package/dist/tree/style/index.js +4 -0
- package/dist/tree/utils/dictUtil.js +3 -2
- package/dist/typography/Base/EllipsisTooltip.d.ts +6 -1
- package/dist/typography/Base/EllipsisTooltip.js +2 -2
- package/dist/typography/Base/index.js +9 -26
- package/dist/typography/hooks/useCopyClick.d.ts +1 -1
- package/dist/typography/hooks/useCopyClick.js +5 -15
- package/dist/upload/Upload.js +7 -9
- package/dist/upload/UploadList/ListItem.js +6 -13
- package/dist/upload/UploadList/index.js +8 -2
- package/dist/upload/index.d.ts +2 -2
- package/dist/version/token-meta.json +1 -0
- package/dist/version/token.json +1 -0
- package/dist/watermark/index.d.ts +4 -1
- package/dist/watermark/index.js +2 -1
- package/package.json +13 -9
- package/web-tags.json +1980 -1947
- package/web-types.json +5808 -5730
- package/dist/slider/useRafLock.d.ts +0 -5
- package/dist/slider/useRafLock.js +0 -23
package/dist/skeleton/index.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import SkeletonButton from "./Button.js";
|
|
|
3
3
|
import SkeletonNode from "./Node.js";
|
|
4
4
|
import SkeletonImage from "./Image.js";
|
|
5
5
|
import SkeletonInput from "./Input.js";
|
|
6
|
-
import SkeletonWithSubComponents, { SkeletonProps } from "./Skeleton.js";
|
|
7
|
-
export { SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, type SkeletonProps, SkeletonWithSubComponents as default };
|
|
6
|
+
import SkeletonWithSubComponents, { SkeletonProps, SkeletonRef } from "./Skeleton.js";
|
|
7
|
+
export { SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, type SkeletonProps, type SkeletonRef, SkeletonWithSubComponents as default };
|
|
@@ -102,6 +102,11 @@ const SliderTooltip = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
102
102
|
required: false,
|
|
103
103
|
default: void 0
|
|
104
104
|
},
|
|
105
|
+
disabled: {
|
|
106
|
+
type: Boolean,
|
|
107
|
+
required: false,
|
|
108
|
+
default: void 0
|
|
109
|
+
},
|
|
105
110
|
getPopupContainer: {
|
|
106
111
|
type: Function,
|
|
107
112
|
required: false
|
package/dist/slider/index.d.ts
CHANGED
|
@@ -95,6 +95,10 @@ interface SliderEmitsProps {
|
|
|
95
95
|
'onUpdate:value'?: SliderEmits['update:value'];
|
|
96
96
|
onChangeComplete?: SliderEmits['changeComplete'];
|
|
97
97
|
}
|
|
98
|
+
interface SliderRef {
|
|
99
|
+
focus: () => void;
|
|
100
|
+
blur: () => void;
|
|
101
|
+
}
|
|
98
102
|
interface SliderSlots {}
|
|
99
103
|
type SliderRange = SliderProps$1['range'];
|
|
100
104
|
interface Opens {
|
|
@@ -102,4 +106,4 @@ interface Opens {
|
|
|
102
106
|
}
|
|
103
107
|
declare const Slider: import("vue").DefineSetupFnComponent<SliderInternalProps, SliderEmits, SlotsType<SliderSlots>, SliderInternalProps, import("vue").PublicProps>;
|
|
104
108
|
//#endregion
|
|
105
|
-
export { Formatter, HandleGeneratorFn, Opens, SliderBaseProps, SliderClassNamesType, SliderEmits, SliderEmitsProps, SliderInternalProps, SliderMarks, SliderProps, SliderSemanticClassNames, SliderSemanticName, SliderSemanticStyles, SliderSlots, SliderStylesType, SliderTooltipProps, Slider as default };
|
|
109
|
+
export { Formatter, HandleGeneratorFn, Opens, SliderBaseProps, SliderClassNamesType, SliderEmits, SliderEmitsProps, SliderInternalProps, SliderMarks, SliderProps, SliderRef, SliderSemanticClassNames, SliderSemanticName, SliderSemanticStyles, SliderSlots, SliderStylesType, SliderTooltipProps, Slider as default };
|
package/dist/slider/index.js
CHANGED
|
@@ -6,11 +6,11 @@ import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
|
6
6
|
import { useSliderInternalContext } from "./Context.js";
|
|
7
7
|
import SliderTooltip from "./SliderTooltip.js";
|
|
8
8
|
import style_default from "./style/index.js";
|
|
9
|
-
import useRafLock from "./useRafLock.js";
|
|
10
9
|
import { cloneVNode, computed, createVNode, defineComponent, isVNode, mergeProps, onMounted, onUnmounted, shallowRef } from "vue";
|
|
11
10
|
import { clsx } from "@v-c/util";
|
|
12
11
|
import raf from "@v-c/util/dist/raf";
|
|
13
12
|
import { omit } from "es-toolkit/compat";
|
|
13
|
+
import useDelayState from "@v-c/util/dist/hooks/useDelayState";
|
|
14
14
|
import VcSlider from "@v-c/slider";
|
|
15
15
|
//#region src/slider/index.tsx
|
|
16
16
|
function _isSlot(s) {
|
|
@@ -39,14 +39,14 @@ const Slider = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose })
|
|
|
39
39
|
const { handleRender: contextHandleRender, direction: internalContextDirection } = useSliderInternalContext();
|
|
40
40
|
const mergedDirection = computed(() => internalContextDirection?.value || contextDirection.value);
|
|
41
41
|
const isRTL = computed(() => mergedDirection.value === "rtl");
|
|
42
|
-
const [hoverOpen, setHoverOpen] =
|
|
43
|
-
const [focusOpen, setFocusOpen] =
|
|
42
|
+
const [hoverOpen, setHoverOpen] = useDelayState(false);
|
|
43
|
+
const [focusOpen, setFocusOpen] = useDelayState(false);
|
|
44
44
|
const tooltipProps = computed(() => {
|
|
45
45
|
return { ...props.tooltip };
|
|
46
46
|
});
|
|
47
47
|
const lockOpen = computed(() => tooltipProps.value?.open);
|
|
48
48
|
const activeOpen = computed(() => (hoverOpen.value || focusOpen.value) && lockOpen.value !== false);
|
|
49
|
-
const [dragging, setDragging] =
|
|
49
|
+
const [dragging, setDragging] = useDelayState(false);
|
|
50
50
|
const onInternalChangeComplete = (nextValues) => {
|
|
51
51
|
emit("changeComplete", nextValues);
|
|
52
52
|
setDragging(false);
|
|
@@ -59,7 +59,7 @@ const Slider = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose })
|
|
|
59
59
|
const [hashId, cssVarCls] = style_default(prefixCls);
|
|
60
60
|
const onMouseUp = () => {
|
|
61
61
|
raf(() => {
|
|
62
|
-
|
|
62
|
+
setFocusOpen(false);
|
|
63
63
|
}, 1);
|
|
64
64
|
};
|
|
65
65
|
onMounted(() => {
|
|
@@ -106,7 +106,7 @@ const Slider = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose })
|
|
|
106
106
|
}
|
|
107
107
|
const cloneNode = cloneVNode(node, {
|
|
108
108
|
onMouseenter: (e) => {
|
|
109
|
-
setHoverOpen(true);
|
|
109
|
+
setHoverOpen(true, true);
|
|
110
110
|
proxyEvent("onMouseenter", e);
|
|
111
111
|
},
|
|
112
112
|
onMouseleave: (e) => {
|
|
@@ -114,12 +114,12 @@ const Slider = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose })
|
|
|
114
114
|
proxyEvent("onMouseleave", e);
|
|
115
115
|
},
|
|
116
116
|
onMousedown: (e) => {
|
|
117
|
-
setFocusOpen(true);
|
|
118
|
-
setDragging(true);
|
|
117
|
+
setFocusOpen(true, true);
|
|
118
|
+
setDragging(true, true);
|
|
119
119
|
proxyEvent("onMousedown", e);
|
|
120
120
|
},
|
|
121
121
|
onFocus: (e) => {
|
|
122
|
-
setFocusOpen(true);
|
|
122
|
+
setFocusOpen(true, true);
|
|
123
123
|
proxyEvent("onFocus", e);
|
|
124
124
|
},
|
|
125
125
|
onBlur: (e) => {
|
package/dist/space/Compact.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ interface SpaceCompactProps extends ComponentBaseProps {
|
|
|
9
9
|
orientation?: 'horizontal' | 'vertical';
|
|
10
10
|
vertical?: boolean;
|
|
11
11
|
}
|
|
12
|
+
interface SpaceCompactRef {
|
|
13
|
+
nativeElement: HTMLDivElement;
|
|
14
|
+
}
|
|
12
15
|
interface SpaceCompactItemContextType {
|
|
13
16
|
compactSize?: SizeType;
|
|
14
17
|
compactDirection?: 'horizontal' | 'vertical';
|
|
@@ -18,10 +21,10 @@ interface SpaceCompactItemContextType {
|
|
|
18
21
|
declare function useSpaceCompactItemContext(): Ref<SpaceCompactItemContextType | null, SpaceCompactItemContextType | null>;
|
|
19
22
|
declare function useCompactItemContext(prefixCls: Ref<string>, direction: Ref<DirectionType>): {
|
|
20
23
|
compactSize: import("vue").ComputedRef<SizeType>;
|
|
21
|
-
compactDirection: import("vue").ComputedRef<"
|
|
24
|
+
compactDirection: import("vue").ComputedRef<"horizontal" | "vertical" | undefined>;
|
|
22
25
|
compactItemClassnames: import("vue").ComputedRef<string>;
|
|
23
26
|
};
|
|
24
27
|
declare const NoCompactStyle: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import("vue").PublicProps>;
|
|
25
28
|
declare const Compact: import("vue").DefineSetupFnComponent<SpaceCompactProps, {}, {}, SpaceCompactProps & {}, import("vue").PublicProps>;
|
|
26
29
|
//#endregion
|
|
27
|
-
export { NoCompactStyle, SpaceCompactItemContextType, SpaceCompactProps, Compact as default, useCompactItemContext, useSpaceCompactItemContext };
|
|
30
|
+
export { NoCompactStyle, SpaceCompactItemContextType, SpaceCompactProps, SpaceCompactRef, Compact as default, useCompactItemContext, useSpaceCompactItemContext };
|
package/dist/space/Compact.js
CHANGED
|
@@ -2,7 +2,7 @@ import { useOrientation } from "../_util/hooks/useOrientation.js";
|
|
|
2
2
|
import { useConfig } from "../config-provider/context.js";
|
|
3
3
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
4
4
|
import compact_default from "./style/compact.js";
|
|
5
|
-
import { computed, createVNode, defineComponent, inject, isVNode, mergeProps, provide, ref, toRefs } from "vue";
|
|
5
|
+
import { computed, createVNode, defineComponent, inject, isVNode, mergeProps, provide, ref, shallowRef, toRefs } from "vue";
|
|
6
6
|
import { classNames } from "@v-c/util";
|
|
7
7
|
import { filterEmpty } from "@v-c/util/dist/props-util";
|
|
8
8
|
//#region src/space/Compact.tsx
|
|
@@ -65,7 +65,7 @@ const CompactItem = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
65
65
|
default: void 0
|
|
66
66
|
}
|
|
67
67
|
} });
|
|
68
|
-
const Compact = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
68
|
+
const Compact = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose }) => {
|
|
69
69
|
const mergedSize = useSize((ctx) => props?.size ?? ctx);
|
|
70
70
|
const configContext = useConfig();
|
|
71
71
|
const prefixCls = computed(() => configContext.value?.getPrefixCls?.("space-compact", props.prefixCls));
|
|
@@ -73,6 +73,8 @@ const Compact = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
73
73
|
const compactItemContext = useSpaceCompactItemContext();
|
|
74
74
|
const { direction, vertical, orientation } = toRefs(props);
|
|
75
75
|
const [mergedOrientation, mergedVertical] = useOrientation(orientation, vertical, direction);
|
|
76
|
+
const nativeElementRef = shallowRef();
|
|
77
|
+
expose({ nativeElement: nativeElementRef });
|
|
76
78
|
return () => {
|
|
77
79
|
const { rootClass, block } = props;
|
|
78
80
|
const directionConfig = configContext.value?.direction;
|
|
@@ -93,7 +95,10 @@ const Compact = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
93
95
|
}, _isSlot(child) ? child : { default: () => [child] });
|
|
94
96
|
});
|
|
95
97
|
if (childNodes.length === 0) return null;
|
|
96
|
-
return createVNode("div", mergeProps({
|
|
98
|
+
return createVNode("div", mergeProps({
|
|
99
|
+
"ref": nativeElementRef,
|
|
100
|
+
"class": clx
|
|
101
|
+
}, attrs), [nodes]);
|
|
97
102
|
};
|
|
98
103
|
}, {
|
|
99
104
|
props: {
|
package/dist/space/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
3
3
|
import { Orientation } from "../_util/hooks/useOrientation.js";
|
|
4
4
|
import "../_util/hooks/index.js";
|
|
5
5
|
import { SizeType } from "../config-provider/SizeContext.js";
|
|
6
|
-
import { SpaceCompactProps } from "./Compact.js";
|
|
6
|
+
import { SpaceCompactProps, SpaceCompactRef } from "./Compact.js";
|
|
7
7
|
import { SpaceCompactCellProps } from "./Addon.js";
|
|
8
8
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
9
9
|
import { CSSProperties, SlotsType } from "vue";
|
|
@@ -42,4 +42,4 @@ declare const Space: import("vue").DefineSetupFnComponent<SpaceProps, EmptyEmit,
|
|
|
42
42
|
declare const SpaceCompact: import("vue").DefineSetupFnComponent<SpaceCompactProps, {}, {}, SpaceCompactProps & {}, import("vue").PublicProps>;
|
|
43
43
|
declare const SpaceAddon: import("vue").DefineSetupFnComponent<SpaceCompactCellProps, {}, {}, SpaceCompactCellProps & {}, import("vue").PublicProps>;
|
|
44
44
|
//#endregion
|
|
45
|
-
export { SpaceAddon, SpaceClassNamesType, SpaceCompact, SpaceProps, SpaceSemanticClassNames, SpaceSemanticName, SpaceSemanticStyles, SpaceSize, SpaceSlots, SpaceStylesType, Space as default };
|
|
45
|
+
export { SpaceAddon, SpaceClassNamesType, SpaceCompact, type SpaceCompactProps, type SpaceCompactRef, SpaceProps, SpaceSemanticClassNames, SpaceSemanticName, SpaceSemanticStyles, SpaceSize, SpaceSlots, SpaceStylesType, Space as default };
|
package/dist/space/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useOrientation } from "../_util/hooks/useOrientation.js";
|
|
2
2
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
3
|
import Compact from "./Compact.js";
|
|
4
|
-
import { pureAttrs, useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
4
|
+
import { pureAttrs, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
5
5
|
import { getSlotPropFn, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
6
6
|
import { isPresetSize, isValidGapNumber } from "../_util/gapSize.js";
|
|
7
7
|
import SpaceAddon$1 from "./Addon.js";
|
|
@@ -33,7 +33,8 @@ const InternalSpace = /* @__PURE__ */ defineComponent((props, { slots, attrs })
|
|
|
33
33
|
align: mergedAlign.value
|
|
34
34
|
};
|
|
35
35
|
});
|
|
36
|
-
const
|
|
36
|
+
const contextStyleRoot = useSemanticRootStyle(contextStyle);
|
|
37
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, contextStyleRoot, styles), useToProps(mergedProps));
|
|
37
38
|
const latestIndex = shallowRef(0);
|
|
38
39
|
useSpaceContextProvider(computed(() => {
|
|
39
40
|
return { latestIndex: latestIndex.value };
|
|
@@ -74,7 +75,6 @@ const InternalSpace = /* @__PURE__ */ defineComponent((props, { slots, attrs })
|
|
|
74
75
|
"style": [
|
|
75
76
|
gapStyle,
|
|
76
77
|
mergedStyles.value.root,
|
|
77
|
-
contextStyle.value,
|
|
78
78
|
attrs.style
|
|
79
79
|
]
|
|
80
80
|
}, pureAttrs(attrs)), [nodes]);
|
package/dist/spin/index.d.ts
CHANGED
|
@@ -54,6 +54,9 @@ interface SpinProps extends ComponentBaseProps {
|
|
|
54
54
|
classes?: SpinClassNamesType;
|
|
55
55
|
styles?: SpinStylesType;
|
|
56
56
|
}
|
|
57
|
+
interface SpinRef {
|
|
58
|
+
nativeElement: HTMLDivElement;
|
|
59
|
+
}
|
|
57
60
|
interface SpinSlots {
|
|
58
61
|
indicator?: () => any;
|
|
59
62
|
/** @deprecated Please use `description` instead */
|
|
@@ -66,4 +69,4 @@ declare const _default: typeof Spin & {
|
|
|
66
69
|
setDefaultIndicator: (indicator: VueNode) => void;
|
|
67
70
|
};
|
|
68
71
|
//#endregion
|
|
69
|
-
export { SpinClassNamesType, SpinProps, SpinSemanticClassNames, SpinSemanticName, SpinSemanticStyles, SpinSlots, SpinStylesType, _default as default };
|
|
72
|
+
export { SpinClassNamesType, SpinProps, SpinRef, SpinSemanticClassNames, SpinSemanticName, SpinSemanticStyles, SpinSlots, SpinStylesType, _default as default };
|
package/dist/spin/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
2
2
|
import { useComponentBaseConfig, useComponentConfig } from "../config-provider/context.js";
|
|
3
3
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
4
|
-
import { getAttrStyleAndClass as getAttrStyleAndClass$1, useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
4
|
+
import { getAttrStyleAndClass as getAttrStyleAndClass$1, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
5
5
|
import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
6
6
|
import Indicator from "./Indicator/index.js";
|
|
7
7
|
import style_default from "./style/index.js";
|
|
@@ -15,7 +15,7 @@ let defaultIndicator;
|
|
|
15
15
|
function shouldDelay(spinning, delay) {
|
|
16
16
|
return !!spinning && !!delay && !Number.isNaN(Number(delay));
|
|
17
17
|
}
|
|
18
|
-
const Spin = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
18
|
+
const Spin = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose }) => {
|
|
19
19
|
const componentCtx = useComponentConfig("spin");
|
|
20
20
|
const { direction, prefixCls, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles } = useComponentBaseConfig("spin", props, ["indicator"]);
|
|
21
21
|
const [hashId, cssVarCls] = style_default(prefixCls);
|
|
@@ -46,7 +46,10 @@ const Spin = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
46
46
|
percent: mergedPercent.value
|
|
47
47
|
};
|
|
48
48
|
});
|
|
49
|
-
const
|
|
49
|
+
const contextStyleRoot = useSemanticRootStyle(contextStyle);
|
|
50
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, contextStyleRoot, styles), useToProps(mergedProps));
|
|
51
|
+
const nativeElementRef = shallowRef();
|
|
52
|
+
expose({ nativeElement: nativeElementRef });
|
|
50
53
|
return () => {
|
|
51
54
|
const { fullscreen, size, rootClass, wrapperClassName } = props;
|
|
52
55
|
const children = filterEmpty(slots?.default?.() || []);
|
|
@@ -79,7 +82,7 @@ const Spin = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
79
82
|
...mergedStyles.value.description
|
|
80
83
|
}
|
|
81
84
|
}, [mergedDescription])]);
|
|
82
|
-
return createVNode("div", mergeProps(restAttrs, {
|
|
85
|
+
return createVNode("div", mergeProps({ "ref": nativeElementRef }, restAttrs, {
|
|
83
86
|
"class": classNames(prefixCls.value, {
|
|
84
87
|
[`${prefixCls.value}-sm`]: mergedSize.value === "small",
|
|
85
88
|
[`${prefixCls.value}-lg`]: mergedSize.value === "large",
|
|
@@ -91,7 +94,6 @@ const Spin = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
91
94
|
...mergedStyles.value.root,
|
|
92
95
|
...!isNested ? mergedStyles.value.section : {},
|
|
93
96
|
...fullscreen ? mergedStyles.value.mask : {},
|
|
94
|
-
...contextStyle.value,
|
|
95
97
|
...style
|
|
96
98
|
},
|
|
97
99
|
"aria-live": "polite",
|
|
@@ -3,6 +3,9 @@ import { SlotsType } from "vue";
|
|
|
3
3
|
//#region src/splitter/Splitter.d.ts
|
|
4
4
|
interface InternalSplitterProps extends SplitterProps, SplitterEmitsProps {}
|
|
5
5
|
interface SplitterEmitsProps {}
|
|
6
|
+
interface SplitterRef {
|
|
7
|
+
nativeElement: HTMLDivElement;
|
|
8
|
+
}
|
|
6
9
|
declare const Splitter: import("vue").DefineSetupFnComponent<InternalSplitterProps, SplitterEmits, SlotsType<SplitterSlots>, InternalSplitterProps, import("vue").PublicProps>;
|
|
7
10
|
//#endregion
|
|
8
|
-
export { InternalSplitterProps, SplitterEmitsProps, Splitter as default };
|
|
11
|
+
export { InternalSplitterProps, SplitterEmitsProps, SplitterRef, Splitter as default };
|
|
@@ -16,7 +16,7 @@ import { clsx } from "@v-c/util";
|
|
|
16
16
|
import { omit } from "es-toolkit";
|
|
17
17
|
import ResizeObserver from "@v-c/resize-observer";
|
|
18
18
|
//#region src/splitter/Splitter.tsx
|
|
19
|
-
const Splitter = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
19
|
+
const Splitter = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose }) => {
|
|
20
20
|
const { prefixCls, rootPrefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles } = useComponentBaseConfig("splitter", props);
|
|
21
21
|
const { classes, styles, orientation, layout, vertical } = toPropsRefs(props, "classes", "styles", "orientation", "layout", "vertical");
|
|
22
22
|
const rootCls = useCSSVarCls(prefixCls);
|
|
@@ -83,6 +83,8 @@ const Splitter = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
83
83
|
}
|
|
84
84
|
return mergedSizes;
|
|
85
85
|
});
|
|
86
|
+
const nativeElementRef = shallowRef();
|
|
87
|
+
expose({ nativeElement: nativeElementRef });
|
|
86
88
|
return () => {
|
|
87
89
|
const { rootClass, lazy, draggerIcon, collapsible, collapsibleIcon } = props;
|
|
88
90
|
const mergedCollapsibleIcon = collapsible?.icon ?? collapsibleIcon;
|
|
@@ -94,7 +96,7 @@ const Splitter = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
94
96
|
...mergedStyles.value.root,
|
|
95
97
|
...style
|
|
96
98
|
};
|
|
97
|
-
return createVNode(ResizeObserver, { "onResize": onContainerResize }, { default: () => [createVNode("div", mergeProps(restAttrs, {
|
|
99
|
+
return createVNode(ResizeObserver, { "onResize": onContainerResize }, { default: () => [createVNode("div", mergeProps({ "ref": nativeElementRef }, restAttrs, {
|
|
98
100
|
"style": mergedStyle,
|
|
99
101
|
"class": containerClassName
|
|
100
102
|
}), [items.value?.map?.((item, idx) => {
|
package/dist/splitter/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PanelProps, SplitterEmits, SplitterSlots } from "./interface.js";
|
|
2
|
-
import Splitter, { InternalSplitterProps } from "./Splitter.js";
|
|
2
|
+
import Splitter, { InternalSplitterProps, SplitterRef } from "./Splitter.js";
|
|
3
3
|
//#region src/splitter/index.d.ts
|
|
4
4
|
type SplitterProps = InternalSplitterProps;
|
|
5
5
|
declare const SplitterPanel: import("vue").DefineSetupFnComponent<PanelProps, {}, {}, PanelProps & {}, import("vue").PublicProps>;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { type SplitterEmits, SplitterPanel, SplitterProps, type SplitterSlots, Splitter as default };
|
|
7
|
+
export { type SplitterEmits, SplitterPanel, SplitterProps, type SplitterRef, type SplitterSlots, Splitter as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resetComponent } from "../../style/index.js";
|
|
1
|
+
import { genFocusOutline, resetComponent } from "../../style/index.js";
|
|
2
2
|
import { genCssVar, genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
3
3
|
//#region src/splitter/style/index.ts
|
|
4
4
|
const centerStyle = {
|
|
@@ -86,6 +86,7 @@ const genSplitterStyle = (token) => {
|
|
|
86
86
|
display: "flex",
|
|
87
87
|
alignItems: "center",
|
|
88
88
|
justifyContent: "center",
|
|
89
|
+
"&:focus-visible": genFocusOutline(token),
|
|
89
90
|
[`&:hover:not(${splitBarCls}-collapse-bar-customize)`]: { background: controlItemBgActive },
|
|
90
91
|
[`&:active:not(${splitBarCls}-collapse-bar-customize)`]: { background: controlItemBgActiveHover },
|
|
91
92
|
[`${splitBarCls}-collapse-icon`]: {
|
|
@@ -42,6 +42,9 @@ interface StatisticEmits {
|
|
|
42
42
|
mouseenter: (e: MouseEvent) => void;
|
|
43
43
|
mouseleave: (e: MouseEvent) => void;
|
|
44
44
|
}
|
|
45
|
+
interface StatisticRef {
|
|
46
|
+
nativeElement: HTMLDivElement | null;
|
|
47
|
+
}
|
|
45
48
|
interface StatisticSlots {
|
|
46
49
|
default: () => any;
|
|
47
50
|
title: () => any;
|
|
@@ -55,4 +58,4 @@ interface StatisticEmitsProps {
|
|
|
55
58
|
}
|
|
56
59
|
declare const Statistic: import("vue").DefineSetupFnComponent<InternalStatisticProps, StatisticEmits, SlotsType<StatisticSlots>, InternalStatisticProps, import("vue").PublicProps>;
|
|
57
60
|
//#endregion
|
|
58
|
-
export { InternalStatisticProps, StatisticClassNamesType, StatisticEmits, StatisticEmitsProps, StatisticProps, StatisticSemanticClassNames, StatisticSemanticName, StatisticSemanticStyles, StatisticSlots, StatisticStylesType, Statistic as default };
|
|
61
|
+
export { InternalStatisticProps, StatisticClassNamesType, StatisticEmits, StatisticEmitsProps, StatisticProps, StatisticRef, StatisticSemanticClassNames, StatisticSemanticName, StatisticSemanticStyles, StatisticSlots, StatisticStylesType, Statistic as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Statistic, { InternalStatisticProps, StatisticSlots } from "./Statistic.js";
|
|
1
|
+
import Statistic, { InternalStatisticProps, StatisticRef, StatisticSlots } from "./Statistic.js";
|
|
2
2
|
import StatisticTimer$1, { InternalStatisticTimerProps, StatisticTimeEmits } from "./Timer.js";
|
|
3
3
|
//#region src/statistic/index.d.ts
|
|
4
4
|
type StatisticProps = InternalStatisticProps;
|
|
@@ -8,4 +8,4 @@ declare const _default: typeof Statistic & {
|
|
|
8
8
|
Timer: typeof StatisticTimer$1;
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
|
-
export { StatisticProps, StatisticTimer, StatisticTimerProps, _default as default };
|
|
11
|
+
export { StatisticProps, type StatisticRef, StatisticTimer, StatisticTimerProps, _default as default };
|
package/dist/steps/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { devUseWarning, isDev } from "../_util/warning.js";
|
|
|
2
2
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
3
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
4
4
|
import { genCssVar } from "../theme/util/genStyleUtils.js";
|
|
5
|
-
import { useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
5
|
+
import { useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
6
6
|
import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
7
7
|
import InternalTooltip from "../tooltip/index.js";
|
|
8
8
|
import { TARGET_CLS } from "../_util/wave/interface.js";
|
|
@@ -71,7 +71,9 @@ const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
|
|
|
71
71
|
percent: mergedPercent.value
|
|
72
72
|
};
|
|
73
73
|
});
|
|
74
|
-
const
|
|
74
|
+
const contextStyleRoot = useSemanticRootStyle(contextStyle);
|
|
75
|
+
const styleRoot = useSemanticRootStyle(computed(() => attrs.style));
|
|
76
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(computed(() => waveEffectClassNames), contextClassNames, classes), useToArr(contextStyles, contextStyleRoot, styles, styleRoot), useToProps(mergedProps));
|
|
75
77
|
if (isDev) {
|
|
76
78
|
const { labelPlacement, progressDot, direction } = props;
|
|
77
79
|
const warning = devUseWarning("Steps");
|
|
@@ -84,7 +86,7 @@ const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
|
|
|
84
86
|
}
|
|
85
87
|
return () => {
|
|
86
88
|
const { variant, onChange, offset, ellipsis, rootClass, current: _current, initial: _initial, maxCount: _maxCount, ...restProps } = props;
|
|
87
|
-
const { className,
|
|
89
|
+
const { className, restAttrs } = getAttrStyleAndClass(attrs);
|
|
88
90
|
const iconRender = slots?.iconRender || props?.iconRender;
|
|
89
91
|
const legacyProgressDotRenderFn = () => {
|
|
90
92
|
return mergedType.value === "dot" && typeof props.progressDot === "function" ? props.progressDot : void 0;
|
|
@@ -154,11 +156,7 @@ const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
|
|
|
154
156
|
const itemWrapperRender = mergedType.value === "panel" ? (itemNode) => {
|
|
155
157
|
return createVNode(Fragment, null, [itemNode, createVNode(PanelArrow, { "prefixCls": prefixCls.value }, null)]);
|
|
156
158
|
} : void 0;
|
|
157
|
-
const mergedStyle = {
|
|
158
|
-
[varName("items-offset")]: `${offset}`,
|
|
159
|
-
...contextStyle.value,
|
|
160
|
-
...style
|
|
161
|
-
};
|
|
159
|
+
const mergedStyle = { [varName("items-offset")]: `${offset}` };
|
|
162
160
|
const stepsClassName = clsx(contextClassName.value, `${prefixCls.value}-${variant}`, {
|
|
163
161
|
[`${prefixCls.value}-${mergedType.value}`]: mergedType.value !== "dot" ? mergedType.value : false,
|
|
164
162
|
[`${prefixCls.value}-rtl`]: rtlDirection.value === "rtl",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resetComponent, textEllipsis } from "../../style/index.js";
|
|
1
|
+
import { genFocusOutline, resetComponent, textEllipsis } from "../../style/index.js";
|
|
2
2
|
import { genCssVar, genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
3
3
|
import { mergeToken } from "../../theme/internal.js";
|
|
4
4
|
import genHorizontalStyle from "./horizontal.js";
|
|
@@ -71,6 +71,7 @@ const genBasicStyle = (token) => {
|
|
|
71
71
|
},
|
|
72
72
|
[`${itemCls}-title, ${itemCls}-subtitle, ${itemCls}-content, ${itemCls}-rail`]: { transition: `all ${token.motionDurationSlow}` },
|
|
73
73
|
[`&${componentCls}-ellipsis`]: { [`${itemCls}-title, ${itemCls}-subtitle, ${itemCls}-content`]: textEllipsis },
|
|
74
|
+
[`${itemCls}[role='button']:focus-visible`]: genFocusOutline(token),
|
|
74
75
|
[`${itemCls}[role='button']:not(${itemCls}-active):hover`]: { cursor: "pointer" }
|
|
75
76
|
} };
|
|
76
77
|
};
|
|
@@ -374,15 +374,16 @@ const InternalTable = /* @__PURE__ */ defineComponent((props, { slots, emit, att
|
|
|
374
374
|
...mergedStyles.value.root,
|
|
375
375
|
...style
|
|
376
376
|
};
|
|
377
|
+
const title = resolvePanelRender(slots, props, "title");
|
|
378
|
+
const footer = resolvePanelRender(slots, props, "footer");
|
|
379
|
+
const summary = resolvePanelRender(slots, props, "summary");
|
|
377
380
|
const tableClassName = clsx({
|
|
378
381
|
[`${prefixCls.value}-medium`]: mergedSize.value === "middle" || mergedSize.value === "medium",
|
|
379
382
|
[`${prefixCls.value}-small`]: mergedSize.value === "small",
|
|
380
383
|
[`${prefixCls.value}-bordered`]: props.bordered,
|
|
381
|
-
[`${prefixCls.value}-empty`]: rawData.value.length === 0
|
|
384
|
+
[`${prefixCls.value}-empty`]: rawData.value.length === 0,
|
|
385
|
+
[`${prefixCls.value}-no-header`]: !title && props.showHeader === false
|
|
382
386
|
}, cssVarCls.value, rootCls.value, hashId.value);
|
|
383
|
-
const title = resolvePanelRender(slots, props, "title");
|
|
384
|
-
const footer = resolvePanelRender(slots, props, "footer");
|
|
385
|
-
const summary = resolvePanelRender(slots, props, "summary");
|
|
386
387
|
const TableComp = TableComponent.value;
|
|
387
388
|
const virtualProps = mergedVirtual.value ? { listItemHeight: listItemHeight.value } : {};
|
|
388
389
|
const mergedScroll = props.scroll ?? contextScroll.value;
|
|
@@ -163,8 +163,8 @@ const FilterDropdown = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
163
163
|
const onVisibleChange = (newVisible, info) => {
|
|
164
164
|
if (info?.source === "trigger") {
|
|
165
165
|
if (newVisible && propFilteredKeys.value !== void 0) setFilteredKeysSync(wrapStringListType(propFilteredKeys.value));
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
if (!newVisible && !hasPropDropdownRender && !column.value.filterDropdown && props.filterOnClose) onConfirm();
|
|
167
|
+
else triggerVisible(newVisible);
|
|
168
168
|
}
|
|
169
169
|
};
|
|
170
170
|
const dropdownMenuClass = computed(() => clsx({ [`${props.dropdownPrefixCls}-menu-without-submenu`]: !hasSubMenu(column?.value?.filters || []) }));
|
|
@@ -10,6 +10,10 @@ const genRadiusStyle = (token) => {
|
|
|
10
10
|
[`${componentCls}-header, table`]: { borderRadius: 0 },
|
|
11
11
|
"table > thead > tr:first-child": { "th:first-child, th:last-child, td:first-child, td:last-child": { borderRadius: 0 } }
|
|
12
12
|
},
|
|
13
|
+
[`&${componentCls}-bordered${componentCls}-no-header`]: { [`> ${componentCls}-container`]: { [`> ${componentCls}-content, > ${componentCls}-body`]: { "> table > tbody > tr:first-child": {
|
|
14
|
+
"> *:first-child": { borderStartStartRadius: tableRadius },
|
|
15
|
+
"> *:last-child": { borderStartEndRadius: tableRadius }
|
|
16
|
+
} } } },
|
|
13
17
|
"&-container": {
|
|
14
18
|
borderStartStartRadius: tableRadius,
|
|
15
19
|
borderStartEndRadius: tableRadius,
|
|
@@ -6,6 +6,10 @@ const genVirtualStyle = (token) => {
|
|
|
6
6
|
const rowCellCls = `${componentCls}-expanded-row-cell`;
|
|
7
7
|
return { [`${componentCls}-wrapper`]: {
|
|
8
8
|
[`${componentCls}-tbody-virtual`]: {
|
|
9
|
+
[`${componentCls}-tbody-virtual-scrollbar`]: {
|
|
10
|
+
cursor: "pointer",
|
|
11
|
+
"&:hover": { backgroundColor: token.colorFillQuaternary }
|
|
12
|
+
},
|
|
9
13
|
[`${componentCls}-tbody-virtual-holder-inner`]: { [`
|
|
10
14
|
& > ${componentCls}-row,
|
|
11
15
|
& > div:not(${componentCls}-row) > ${componentCls}-row
|
|
@@ -9,6 +9,6 @@ declare function useColor(props: {
|
|
|
9
9
|
color: Ref<TagProps['color']>;
|
|
10
10
|
variant: Ref<TagProps['variant']>;
|
|
11
11
|
bordered: Ref<TagProps['bordered']>;
|
|
12
|
-
}, contextVariant?: Ref<TagProps['variant']>): readonly [import("vue").ComputedRef<"outlined" | "
|
|
12
|
+
}, contextVariant?: Ref<TagProps['variant']>): readonly [import("vue").ComputedRef<"outlined" | "filled" | "solid">, import("vue").ComputedRef<string | undefined>, import("vue").ComputedRef<boolean>, import("vue").ComputedRef<boolean>, import("vue").ComputedRef<CSSProperties>];
|
|
13
13
|
//#endregion
|
|
14
14
|
export { useColor as default };
|
package/dist/tag/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useComponentBaseConfig, useConfig } from "../config-provider/context.js";
|
|
2
|
-
import { pureAttrs, useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { pureAttrs, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
4
4
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
5
5
|
import wave_default from "../_util/wave/index.js";
|
|
@@ -41,7 +41,8 @@ const InternalTag = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
|
|
|
41
41
|
disabled: mergedDisabled?.value
|
|
42
42
|
};
|
|
43
43
|
});
|
|
44
|
-
const
|
|
44
|
+
const contextStyleRoot = useSemanticRootStyle(contextStyle);
|
|
45
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, contextStyleRoot, styles), useToProps(mergedProps));
|
|
45
46
|
expose({ tagRef });
|
|
46
47
|
const triggerClose = (e) => {
|
|
47
48
|
if (mergedDisabled.value) return;
|
|
@@ -98,7 +99,6 @@ const InternalTag = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
|
|
|
98
99
|
const tagStyle = computed(() => {
|
|
99
100
|
let nextTagStyle = {
|
|
100
101
|
...mergedStyles.value?.root,
|
|
101
|
-
...contextStyle.value,
|
|
102
102
|
...attrs.style
|
|
103
103
|
};
|
|
104
104
|
if (!mergedDisabled.value) nextTagStyle = {
|
|
@@ -217,6 +217,14 @@ interface SeedToken extends PresetColorType {
|
|
|
217
217
|
* @default false
|
|
218
218
|
*/
|
|
219
219
|
wireframe: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* @nameZH 聚焦描边
|
|
222
|
+
* @nameEN Focus Outline
|
|
223
|
+
* @desc 用于配置组件聚焦时是否显示可见描边
|
|
224
|
+
* @descEN Used to configure whether components show a visible outline when focused
|
|
225
|
+
* @default true
|
|
226
|
+
*/
|
|
227
|
+
focusOutline: boolean;
|
|
220
228
|
/**
|
|
221
229
|
* @nameZH 动画风格
|
|
222
230
|
* @nameEN Motion Style
|
package/dist/theme/util/alias.js
CHANGED
|
@@ -57,7 +57,7 @@ function formatToken(derivativeToken) {
|
|
|
57
57
|
colorErrorAffix: mergedToken.colorError,
|
|
58
58
|
colorWarningAffix: mergedToken.colorWarning,
|
|
59
59
|
fontSizeIcon: mergedToken.fontSizeSM,
|
|
60
|
-
lineWidthFocus: mergedToken.lineWidth * 3,
|
|
60
|
+
lineWidthFocus: mergedToken.focusOutline === false ? 0 : mergedToken.lineWidth * 3,
|
|
61
61
|
lineWidth: mergedToken.lineWidth,
|
|
62
62
|
controlOutlineWidth: mergedToken.lineWidth * 2,
|
|
63
63
|
controlInteractiveSize: mergedToken.controlHeight / 2,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useBaseConfig, useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
2
|
import { genCssVar } from "../theme/util/genStyleUtils.js";
|
|
3
|
-
import { useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
3
|
+
import { useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import { toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
5
5
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
6
6
|
import isNonNullable from "../_util/isNonNullable.js";
|
|
@@ -79,17 +79,15 @@ const Timeline = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
79
79
|
items: mergedItems.value
|
|
80
80
|
};
|
|
81
81
|
});
|
|
82
|
-
const
|
|
82
|
+
const contextStyleRoot = useSemanticRootStyle(contextStyle);
|
|
83
|
+
const styleRoot = useSemanticRootStyle(computed(() => attrs.style));
|
|
84
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(stepsClassNames, contextClassNames, classes), useToArr(contextStyles, contextStyleRoot, styles, styleRoot), useToProps(mergedProps));
|
|
83
85
|
const layoutAlternate = computed(() => {
|
|
84
86
|
return mergedMode.value === "alternate" || orientation.value === "vertical" && mergedItems.value.some((item) => item.title);
|
|
85
87
|
});
|
|
86
88
|
return () => {
|
|
87
89
|
const { variant = "outlined", titleSpan } = props;
|
|
88
|
-
const stepStyle = {
|
|
89
|
-
...contextStyle.value,
|
|
90
|
-
...timeline?.value?.style || {},
|
|
91
|
-
...attrs.style || {}
|
|
92
|
-
};
|
|
90
|
+
const stepStyle = {};
|
|
93
91
|
if (isNonNullable(titleSpan) && mergedMode.value !== "alternate") if (typeof titleSpan === "number" && !Number.isNaN(titleSpan)) stepStyle[varName("head-span")] = titleSpan;
|
|
94
92
|
else stepStyle[varName("head-span-ptg")] = titleSpan;
|
|
95
93
|
return createVNode(Steps, mergeProps(omit(attrs, ["class", "style"]), omit(props, [
|
|
@@ -105,6 +105,11 @@ const PurePanel = /* @__PURE__ */ defineComponent((props, { attrs, slots }) => {
|
|
|
105
105
|
required: false,
|
|
106
106
|
default: void 0
|
|
107
107
|
},
|
|
108
|
+
disabled: {
|
|
109
|
+
type: Boolean,
|
|
110
|
+
required: false,
|
|
111
|
+
default: void 0
|
|
112
|
+
},
|
|
108
113
|
getPopupContainer: {
|
|
109
114
|
type: Function,
|
|
110
115
|
required: false
|
package/dist/tooltip/index.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ interface TriggerCommonApi extends ComponentBaseProps {
|
|
|
55
55
|
color?: LiteralUnion<PresetColorType>;
|
|
56
56
|
open?: boolean;
|
|
57
57
|
defaultOpen?: boolean;
|
|
58
|
+
disabled?: boolean;
|
|
58
59
|
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
|
59
60
|
destroyOnHidden?: boolean;
|
|
60
61
|
zIndex?: number;
|