antdv-next 1.0.0-alpha.4 → 1.0.0-beta.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/PurePanel.js +106 -0
- package/dist/_util/hooks/useMergeSemantic.js +3 -3
- package/dist/_util/styleUtils.js +10 -0
- package/dist/_util/tools.js +2 -1
- package/dist/_util/wave/WaveEffect.js +6 -1
- package/dist/_util/wave/style.js +4 -3
- package/dist/affix/index.d.ts +3 -3
- package/dist/alert/Alert.d.ts +4 -3
- package/dist/alert/Alert.js +1 -1
- package/dist/anchor/Anchor.d.ts +5 -5
- package/dist/anchor/AnchorLink.js +2 -2
- package/dist/anchor/index.d.ts +1 -1
- package/dist/antd.js +123 -115
- package/dist/app/App.d.ts +2 -2
- package/dist/auto-complete/index.d.ts +78 -0
- package/dist/auto-complete/index.js +634 -0
- package/dist/avatar/Avatar.d.ts +3 -3
- package/dist/avatar/AvatarGroup.d.ts +2 -2
- package/dist/badge/Ribbon.d.ts +3 -3
- package/dist/badge/ScrollNumber.js +1 -1
- package/dist/badge/SingleNumber.js +1 -1
- package/dist/badge/index.d.ts +3 -3
- package/dist/badge/index.js +5 -3
- package/dist/badge/style/index.js +1 -1
- package/dist/breadcrumb/Breadcrumb.d.ts +5 -5
- package/dist/breadcrumb/Breadcrumb.js +0 -8
- package/dist/breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/dist/breadcrumb/BreadcrumbItem.js +1 -17
- package/dist/breadcrumb/index.d.ts +1 -1
- package/dist/button/Button.d.ts +3 -3
- package/dist/button/style/variant.js +116 -104
- package/dist/calendar/Header.js +1 -1
- package/dist/calendar/generateCalendar.d.ts +3 -3
- package/dist/calendar/index.d.ts +3 -3
- package/dist/calendar/style/index.d.ts +1 -1
- package/dist/calendar/style/index.js +1 -1
- package/dist/card/Card.d.ts +3 -3
- package/dist/card/CardGrid.d.ts +2 -2
- package/dist/card/CardMeta.d.ts +3 -3
- package/dist/card/style/index.js +11 -2
- package/dist/carousel/index.d.ts +3 -3
- package/dist/cascader/Panel.d.ts +3 -3
- package/dist/cascader/index.d.ts +4 -3
- package/dist/cascader/index.js +3 -1
- package/dist/checkbox/Checkbox.d.ts +3 -3
- package/dist/checkbox/Group.d.ts +3 -3
- package/dist/checkbox/style/index.d.ts +1 -1
- package/dist/collapse/Collapse.d.ts +3 -3
- package/dist/color-picker/ColorPicker.d.ts +3 -3
- package/dist/color-picker/ColorPicker.js +13 -2
- package/dist/components.d.ts +11 -8
- package/dist/components.js +7 -4
- package/dist/config-provider/context.d.ts +2 -1
- package/dist/config-provider/context.js +3 -3
- package/dist/config-provider/define.d.ts +14 -0
- package/dist/config-provider/index.d.ts +3 -3
- package/dist/config-provider/index.js +21 -2
- package/dist/date-picker/generatePicker/generateRangePicker.js +2 -2
- package/dist/date-picker/generatePicker/generateSinglePicker.js +3 -2
- package/dist/date-picker/generatePicker/index.d.ts +17 -17
- package/dist/date-picker/index.d.ts +29 -27
- package/dist/date-picker/index.js +3 -0
- package/dist/date-picker/style/panel.js +4 -4
- package/dist/descriptions/index.d.ts +3 -3
- package/dist/divider/index.d.ts +2 -2
- package/dist/drawer/index.d.ts +6 -4
- package/dist/drawer/index.js +17 -5
- package/dist/drawer/useFocusable.d.ts +10 -0
- package/dist/drawer/useFocusable.js +18 -0
- package/dist/dropdown/dropdown.d.ts +4 -4
- package/dist/dropdown/dropdown.js +12 -3
- package/dist/empty/index.d.ts +3 -3
- package/dist/flex/index.d.ts +3 -3
- package/dist/flex/index.js +1 -1
- package/dist/float-button/BackTop.d.ts +3 -3
- package/dist/float-button/BackTop.js +4 -1
- package/dist/float-button/FloatButton.d.ts +3 -3
- package/dist/float-button/FloatButtonGroup.d.ts +3 -3
- package/dist/float-button/PurePanel.js +5 -5
- package/dist/float-button/style/button.js +4 -4
- package/dist/float-button/style/group.js +12 -12
- package/dist/form/ErrorList.js +4 -7
- package/dist/form/Form.d.ts +7 -3
- package/dist/form/Form.js +39 -22
- package/dist/form/FormItem/ItemHolder.js +0 -1
- package/dist/form/FormItem/index.d.ts +5 -5
- package/dist/form/FormItem/index.js +48 -29
- package/dist/form/FormItemInput.js +17 -19
- package/dist/form/style/index.js +3 -2
- package/dist/form/utils/valueUtil.js +4 -1
- package/dist/grid/col.js +7 -2
- package/dist/grid/index.d.ts +2 -2
- package/dist/grid/row.d.ts +2 -2
- package/dist/grid/style/index.js +7 -5
- package/dist/image/PreviewGroup.d.ts +2 -2
- package/dist/image/index.d.ts +7 -4
- package/dist/image/index.js +2 -0
- package/dist/image/style/index.d.ts +1 -1
- package/dist/index.d.ts +16 -12
- package/dist/index.js +7 -4
- package/dist/input/Input.js +1 -1
- package/dist/input/OTP/index.js +1 -1
- package/dist/input/TextArea.d.ts +3 -3
- package/dist/input/TextArea.js +1 -1
- package/dist/input/index.d.ts +11 -11
- package/dist/input/style/index.d.ts +2 -2
- package/dist/input-number/index.d.ts +4 -4
- package/dist/input-number/index.js +2 -6
- package/dist/input-number/style/index.js +18 -17
- package/dist/layout/index.d.ts +6 -6
- package/dist/layout/layout.d.ts +2 -2
- package/dist/layout/style/sider.js +1 -1
- package/dist/masonry/Masonry.d.ts +3 -3
- package/dist/masonry/Masonry.js +8 -6
- package/dist/mentions/index.d.ts +4 -3
- package/dist/mentions/index.js +4 -2
- package/dist/mentions/style/index.js +18 -17
- package/dist/menu/MenuDivider.d.ts +2 -2
- package/dist/menu/MenuItem.d.ts +3 -3
- package/dist/menu/index.d.ts +5 -5
- package/dist/menu/style/horizontal.js +1 -1
- package/dist/menu/style/index.js +5 -5
- package/dist/message/PurePanel.d.ts +2 -2
- package/dist/message/useMessage.d.ts +1 -0
- package/dist/modal/ConfirmDialog.js +1 -1
- package/dist/modal/Modal.d.ts +3 -3
- package/dist/modal/Modal.js +17 -6
- package/dist/modal/PurePanel.js +305 -0
- package/dist/modal/index.js +2 -0
- package/dist/modal/interface.d.ts +3 -1
- package/dist/notification/PurePanel.d.ts +2 -2
- package/dist/notification/PurePanel.js +4 -3
- package/dist/notification/style/index.d.ts +1 -1
- package/dist/notification/useNotification.d.ts +2 -1
- package/dist/notification/useNotification.js +7 -7
- package/dist/package.d.ts +143 -3
- package/dist/package.js +1 -1
- package/dist/pagination/Pagination.d.ts +3 -3
- package/dist/pagination/Pagination.js +1 -1
- package/dist/pagination/style/index.js +61 -50
- package/dist/popconfirm/PurePanel.d.ts +2 -2
- package/dist/popconfirm/PurePanel.js +2 -1
- package/dist/popconfirm/index.d.ts +3 -3
- package/dist/popover/PurePanel.js +4 -2
- package/dist/popover/index.d.ts +9 -6
- package/dist/popover/index.js +2 -1
- package/dist/popover/style/index.js +11 -8
- package/dist/progress/progress.d.ts +3 -3
- package/dist/qrcode/index.d.ts +3 -3
- package/dist/radio/index.d.ts +5 -5
- package/dist/radio/radio.d.ts +3 -3
- package/dist/radio/style/index.js +1 -1
- package/dist/rate/index.d.ts +3 -3
- package/dist/rate/style/index.d.ts +1 -1
- package/dist/result/index.d.ts +3 -3
- package/dist/result/noFound.d.ts +2 -2
- package/dist/result/serverError.d.ts +2 -2
- package/dist/segmented/index.d.ts +3 -3
- package/dist/select/index.d.ts +6 -6
- package/dist/select/index.js +5 -3
- package/dist/select/style/dropdown.js +1 -1
- package/dist/select/style/select-input-multiple.js +31 -29
- package/dist/select/style/select-input.js +50 -44
- package/dist/skeleton/Avatar.d.ts +2 -2
- package/dist/skeleton/Button.d.ts +2 -2
- package/dist/skeleton/Image.d.ts +2 -2
- package/dist/skeleton/Input.d.ts +2 -2
- package/dist/skeleton/Node.d.ts +3 -3
- package/dist/skeleton/Skeleton.d.ts +3 -3
- package/dist/skeleton/Skeleton.js +1 -1
- package/dist/skeleton/Title.d.ts +1 -2
- package/dist/skeleton/Title.js +0 -5
- package/dist/slider/index.d.ts +3 -3
- package/dist/space/Compact.d.ts +2 -0
- package/dist/space/Compact.js +17 -4
- package/dist/space/index.d.ts +5 -5
- package/dist/space/style/addon.js +20 -19
- package/dist/spin/index.d.ts +3 -3
- package/dist/spin/index.js +7 -6
- package/dist/splitter/SplitBar.js +9 -2
- package/dist/splitter/Splitter.d.ts +3 -3
- package/dist/splitter/Splitter.js +2 -1
- package/dist/splitter/index.d.ts +2 -2
- package/dist/splitter/style/index.js +6 -6
- package/dist/statistic/Statistic.d.ts +3 -3
- package/dist/statistic/Timer.d.ts +5 -5
- package/dist/statistic/index.d.ts +5 -5
- package/dist/steps/ProgressIcon.js +9 -2
- package/dist/steps/index.d.ts +3 -3
- package/dist/steps/index.js +7 -4
- package/dist/steps/style/horizontal.js +13 -10
- package/dist/steps/style/icon.js +12 -9
- package/dist/steps/style/index.js +19 -18
- package/dist/steps/style/inline.js +20 -17
- package/dist/steps/style/label-placement.js +22 -20
- package/dist/steps/style/nav.js +7 -5
- package/dist/steps/style/panel.js +34 -32
- package/dist/steps/style/progress-dot.js +10 -8
- package/dist/steps/style/progress.js +29 -58
- package/dist/steps/style/rtl.js +6 -4
- package/dist/steps/style/small.js +10 -8
- package/dist/steps/style/status.js +124 -121
- package/dist/steps/style/util.js +7 -4
- package/dist/steps/style/vertical.js +17 -14
- package/dist/style/placementArrow.js +7 -5
- package/dist/switch/index.d.ts +3 -3
- package/dist/table/Column.d.ts +3 -3
- package/dist/table/ColumnGroup.d.ts +3 -3
- package/dist/table/InternalTable.js +20 -6
- package/dist/table/Table.d.ts +3 -3
- package/dist/table/hooks/useFilter/FilterDropdown.js +1 -1
- package/dist/table/style/index.js +3 -3
- package/dist/table/style/radius.js +6 -0
- package/dist/table/style/virtual.js +1 -1
- package/dist/tabs/TabPane.d.ts +3 -3
- package/dist/tabs/index.d.ts +3 -3
- package/dist/tag/CheckableTag.d.ts +3 -3
- package/dist/tag/CheckableTagGroup.d.ts +3 -3
- package/dist/tag/CheckableTagGroup.js +3 -3
- package/dist/tag/index.d.ts +3 -3
- package/dist/theme/context.d.ts +2 -2
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/useToken.d.ts +2 -2
- package/dist/theme/useToken.js +1 -1
- package/dist/theme/util/genStyleUtils.d.ts +2 -2
- package/dist/theme/util/genStyleUtils.js +8 -5
- package/dist/theme/util/useResetIconStyle.js +1 -1
- package/dist/time-picker/index.d.ts +8 -7
- package/dist/time-picker/index.js +17 -13
- package/dist/timeline/Timeline.d.ts +3 -3
- package/dist/tooltip/PurePanel.d.ts +2 -2
- package/dist/tooltip/PurePanel.js +12 -8
- package/dist/tooltip/UniqueProvider/index.d.ts +2 -2
- package/dist/tooltip/index.d.ts +3 -3
- package/dist/tooltip/index.js +2 -3
- package/dist/tooltip/style/index.js +10 -8
- package/dist/tooltip/util.js +5 -3
- package/dist/tour/PurePanel.js +243 -0
- package/dist/tour/index.d.ts +3 -3
- package/dist/tour/index.js +2 -0
- package/dist/tour/style/index.js +5 -4
- package/dist/transfer/Actions.d.ts +2 -2
- package/dist/transfer/Section.d.ts +2 -2
- package/dist/transfer/Transfer.d.ts +3 -3
- package/dist/transfer/Transfer.js +2 -2
- package/dist/transfer/search.d.ts +3 -3
- package/dist/tree/DirectoryTree.d.ts +3 -3
- package/dist/tree/Tree.d.ts +3 -3
- package/dist/tree/style/index.d.ts +1 -1
- package/dist/tree-select/index.d.ts +5 -4
- package/dist/tree-select/index.js +3 -1
- package/dist/typography/Link.d.ts +3 -3
- package/dist/typography/Paragraph.d.ts +3 -3
- package/dist/typography/Text.d.ts +3 -3
- package/dist/typography/Title.d.ts +3 -3
- package/dist/typography/Typography.d.ts +3 -3
- package/dist/typography/index.d.ts +9 -9
- package/dist/upload/Dragger.d.ts +6 -3
- package/dist/upload/Upload.d.ts +3 -3
- package/dist/upload/Upload.js +15 -1
- package/dist/upload/index.d.ts +6 -3
- package/dist/upload/interface.d.ts +4 -4
- package/global.d.ts +3 -0
- package/package.json +69 -17
- package/web-tags.json +5069 -0
- package/web-types.json +14335 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SkeletonElementProps } from "./Element.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue440 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/skeleton/Button.d.ts
|
|
5
5
|
interface SkeletonButtonProps extends Omit<SkeletonElementProps, 'size'> {
|
|
6
6
|
size?: 'large' | 'small' | 'default';
|
|
7
7
|
block?: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare const SkeletonButton:
|
|
9
|
+
declare const SkeletonButton: vue440.DefineSetupFnComponent<SkeletonButtonProps, {}, {}, SkeletonButtonProps & {}, vue440.PublicProps>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { SkeletonButton };
|
package/dist/skeleton/Image.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SkeletonElementProps } from "./Element.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue442 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/skeleton/Image.d.ts
|
|
5
5
|
interface SkeletonImageProps extends Omit<SkeletonElementProps, 'size' | 'shape'> {}
|
|
6
|
-
declare const SkeletonImage:
|
|
6
|
+
declare const SkeletonImage: vue442.DefineSetupFnComponent<SkeletonImageProps, {}, {}, SkeletonImageProps & {}, vue442.PublicProps>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { SkeletonImage };
|
package/dist/skeleton/Input.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SkeletonElementProps } from "./Element.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue444 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/skeleton/Input.d.ts
|
|
5
5
|
interface SkeletonInputProps extends Omit<SkeletonElementProps, 'size' | 'shape'> {
|
|
6
6
|
size?: 'large' | 'small' | 'default';
|
|
7
7
|
block?: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare const SkeletonInput:
|
|
9
|
+
declare const SkeletonInput: vue444.DefineSetupFnComponent<SkeletonInputProps, {}, {}, SkeletonInputProps & {}, vue444.PublicProps>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { SkeletonInput };
|
package/dist/skeleton/Node.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmptyEmit } from "../_util/type.js";
|
|
2
2
|
import { SkeletonElementProps } from "./Element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue432 from "vue";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/skeleton/Node.d.ts
|
|
@@ -10,8 +10,8 @@ interface SkeletonNodeProps extends Omit<SkeletonElementProps, 'size' | 'shape'>
|
|
|
10
10
|
interface SkeletonNodeSlots {
|
|
11
11
|
default?: () => any;
|
|
12
12
|
}
|
|
13
|
-
declare const SkeletonNode:
|
|
13
|
+
declare const SkeletonNode: vue432.DefineSetupFnComponent<SkeletonNodeProps, EmptyEmit, SlotsType<SkeletonNodeSlots>, SkeletonNodeProps & {
|
|
14
14
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
15
|
-
},
|
|
15
|
+
}, vue432.PublicProps>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { SkeletonNode };
|
|
@@ -9,7 +9,7 @@ import { SkeletonImage } from "./Image.js";
|
|
|
9
9
|
import { SkeletonInput } from "./Input.js";
|
|
10
10
|
import { SkeletonNode } from "./Node.js";
|
|
11
11
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
12
|
-
import * as
|
|
12
|
+
import * as vue281 from "vue";
|
|
13
13
|
import { SlotsType } from "vue";
|
|
14
14
|
|
|
15
15
|
//#region src/skeleton/Skeleton.d.ts
|
|
@@ -30,9 +30,9 @@ interface SkeletonProps extends ComponentBaseProps {
|
|
|
30
30
|
interface SkeletonSlots {
|
|
31
31
|
default?: () => any;
|
|
32
32
|
}
|
|
33
|
-
declare const Skeleton:
|
|
33
|
+
declare const Skeleton: vue281.DefineSetupFnComponent<SkeletonProps, EmptyEmit, SlotsType<SkeletonSlots>, SkeletonProps & {
|
|
34
34
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
35
|
-
},
|
|
35
|
+
}, vue281.PublicProps>;
|
|
36
36
|
type SkeletonType = typeof Skeleton & {
|
|
37
37
|
Button: typeof SkeletonButton;
|
|
38
38
|
Avatar: typeof SkeletonAvatar;
|
|
@@ -64,7 +64,7 @@ const Skeleton = /* @__PURE__ */ defineComponent((props, { attrs, slots }) => {
|
|
|
64
64
|
avatarNode = createVNode("div", {
|
|
65
65
|
"class": [mergedClassNames.value.header, `${prefixCls.value}-header`],
|
|
66
66
|
"style": mergedStyles.value.header
|
|
67
|
-
}, [createVNode(Element_default, mergeProps({ "class": mergedClassNames.value.avatar }, avatarProps, { "style": mergedStyles.value.
|
|
67
|
+
}, [createVNode(Element_default, mergeProps({ "class": mergedClassNames.value.avatar }, avatarProps, { "style": mergedStyles.value.avatar }), null)]);
|
|
68
68
|
}
|
|
69
69
|
let contentNode;
|
|
70
70
|
if (hasTitle || hasParagraph) {
|
package/dist/skeleton/Title.d.ts
CHANGED
package/dist/skeleton/Title.js
CHANGED
package/dist/slider/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
2
2
|
import { Orientation } from "../_util/hooks/useOrientation.js";
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { TooltipPlacement, TriggerCommonApi } from "../tooltip/index.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue154 from "vue";
|
|
6
6
|
import { CSSProperties, SlotsType } from "vue";
|
|
7
7
|
import { SliderProps } from "@v-c/slider";
|
|
8
8
|
|
|
@@ -69,8 +69,8 @@ interface SliderEmits {
|
|
|
69
69
|
}
|
|
70
70
|
interface SliderSlots {}
|
|
71
71
|
type SliderRange = SliderProps['range'];
|
|
72
|
-
declare const Slider:
|
|
72
|
+
declare const Slider: vue154.DefineSetupFnComponent<SliderInternalProps, SliderEmits, SlotsType<SliderSlots>, SliderInternalProps & {
|
|
73
73
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
74
|
-
},
|
|
74
|
+
}, vue154.PublicProps>;
|
|
75
75
|
//#endregion
|
|
76
76
|
export { Slider, SliderEmits, SliderProps$1 as SliderProps };
|
package/dist/space/Compact.d.ts
CHANGED
package/dist/space/Compact.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { useConfig } from "../config-provider/context.js";
|
|
2
|
+
import { useOrientation } from "../_util/hooks/useOrientation.js";
|
|
2
3
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
3
4
|
import compact_default from "./style/compact.js";
|
|
4
|
-
import { computed, createVNode, defineComponent, inject, isVNode, mergeProps, provide, ref } from "vue";
|
|
5
|
+
import { computed, createVNode, defineComponent, inject, isVNode, mergeProps, provide, ref, toRefs } from "vue";
|
|
5
6
|
import { classNames } from "@v-c/util";
|
|
6
7
|
import { filterEmpty } from "@v-c/util/dist/props-util";
|
|
7
8
|
|
|
@@ -73,20 +74,22 @@ const Compact = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
73
74
|
const prefixCls = computed(() => configContext.value?.getPrefixCls?.("space-compact", props.prefixCls));
|
|
74
75
|
const [hashId, cssVarCls] = compact_default(prefixCls);
|
|
75
76
|
const compactItemContext = useSpaceCompactItemContext();
|
|
77
|
+
const { direction, vertical, orientation } = toRefs(props);
|
|
78
|
+
const [mergedOrientation, mergedVertical] = useOrientation(orientation, vertical, direction);
|
|
76
79
|
return () => {
|
|
77
|
-
const { rootClass,
|
|
80
|
+
const { rootClass, block } = props;
|
|
78
81
|
const directionConfig = configContext.value?.direction;
|
|
79
82
|
const clx = classNames(prefixCls.value, hashId.value, cssVarCls.value, {
|
|
80
83
|
[`${prefixCls.value}-rtl`]: directionConfig === "rtl",
|
|
81
84
|
[`${prefixCls.value}-block`]: block,
|
|
82
|
-
[`${prefixCls.value}-vertical`]:
|
|
85
|
+
[`${prefixCls.value}-vertical`]: mergedVertical.value
|
|
83
86
|
}, rootClass);
|
|
84
87
|
const childNodes = filterEmpty(slots?.default?.());
|
|
85
88
|
const nodes = childNodes.map((child, i) => {
|
|
86
89
|
const key = child?.key || `${prefixCls.value}-item-${i}`;
|
|
87
90
|
return createVNode(CompactItem, {
|
|
88
91
|
"compactSize": mergedSize.value,
|
|
89
|
-
"compactDirection":
|
|
92
|
+
"compactDirection": mergedOrientation.value,
|
|
90
93
|
"isFirstItem": i === 0 && (!compactItemContext.value || compactItemContext.value?.isFirstItem),
|
|
91
94
|
"key": key,
|
|
92
95
|
"isLastItem": i === childNodes.length - 1 && (!compactItemContext.value || compactItemContext.value?.isLastItem)
|
|
@@ -112,6 +115,16 @@ const Compact = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
112
115
|
required: false,
|
|
113
116
|
default: void 0
|
|
114
117
|
},
|
|
118
|
+
orientation: {
|
|
119
|
+
type: String,
|
|
120
|
+
required: false,
|
|
121
|
+
default: void 0
|
|
122
|
+
},
|
|
123
|
+
vertical: {
|
|
124
|
+
type: Boolean,
|
|
125
|
+
required: false,
|
|
126
|
+
default: void 0
|
|
127
|
+
},
|
|
115
128
|
rootClass: {
|
|
116
129
|
type: String,
|
|
117
130
|
required: false,
|
package/dist/space/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import "../_util/hooks/index.js";
|
|
|
6
6
|
import { SpaceCompactProps } from "./Compact.js";
|
|
7
7
|
import { SpaceCompactCellProps } from "./Addon.js";
|
|
8
8
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
9
|
-
import * as
|
|
9
|
+
import * as vue156 from "vue";
|
|
10
10
|
import { SlotsType } from "vue";
|
|
11
11
|
|
|
12
12
|
//#region src/space/index.d.ts
|
|
@@ -30,10 +30,10 @@ interface SpaceSlots {
|
|
|
30
30
|
default?: () => any;
|
|
31
31
|
separator?: () => any;
|
|
32
32
|
}
|
|
33
|
-
declare const Space:
|
|
33
|
+
declare const Space: vue156.DefineSetupFnComponent<SpaceProps, EmptyEmit, SlotsType<SpaceSlots>, SpaceProps & {
|
|
34
34
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
35
|
-
},
|
|
36
|
-
declare const SpaceCompact:
|
|
37
|
-
declare const SpaceAddon:
|
|
35
|
+
}, vue156.PublicProps>;
|
|
36
|
+
declare const SpaceCompact: vue156.DefineSetupFnComponent<SpaceCompactProps, {}, {}, SpaceCompactProps & {}, vue156.PublicProps>;
|
|
37
|
+
declare const SpaceAddon: vue156.DefineSetupFnComponent<SpaceCompactCellProps, {}, {}, SpaceCompactCellProps & {}, vue156.PublicProps>;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { Space, SpaceAddon, SpaceCompact, SpaceProps, SpaceSize, SpaceSlots };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
1
|
+
import { genCssVar, genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
2
2
|
import "../../theme/internal.js";
|
|
3
3
|
import { genCompactItemStyle } from "../../style/compact-item.js";
|
|
4
4
|
|
|
5
5
|
//#region src/space/style/addon.ts
|
|
6
6
|
const genSpaceAddonStyle = (token) => {
|
|
7
|
-
const { componentCls, borderRadius, paddingSM, colorBorder, paddingXS, fontSizeLG, fontSizeSM, borderRadiusLG, borderRadiusSM, colorBgContainerDisabled, lineWidth } = token;
|
|
7
|
+
const { componentCls, borderRadius, paddingSM, colorBorder, paddingXS, fontSizeLG, fontSizeSM, borderRadiusLG, borderRadiusSM, colorBgContainerDisabled, lineWidth, antCls } = token;
|
|
8
|
+
const [varName, varRef] = genCssVar(antCls, "space");
|
|
8
9
|
return { [componentCls]: [
|
|
9
10
|
{
|
|
10
11
|
"display": "inline-flex",
|
|
@@ -39,19 +40,19 @@ const genSpaceAddonStyle = (token) => {
|
|
|
39
40
|
"&-compact-item:not(:first-child)": { borderInlineStartWidth: 0 }
|
|
40
41
|
},
|
|
41
42
|
{
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"borderColor": "
|
|
47
|
-
"background": "
|
|
48
|
-
"&-variant-outlined": { "
|
|
43
|
+
[varName("addon-border-color")]: colorBorder,
|
|
44
|
+
[varName("addon-background")]: colorBgContainerDisabled,
|
|
45
|
+
[varName("addon-border-color-outlined")]: colorBorder,
|
|
46
|
+
[varName("addon-background-filled")]: colorBgContainerDisabled,
|
|
47
|
+
"borderColor": varRef("addon-border-color"),
|
|
48
|
+
"background": varRef("addon-background"),
|
|
49
|
+
"&-variant-outlined": { [varName("addon-border-color")]: varRef("addon-border-color-outlined") },
|
|
49
50
|
"&-variant-filled": {
|
|
50
|
-
"
|
|
51
|
-
"
|
|
51
|
+
[varName("addon-border-color")]: "transparent",
|
|
52
|
+
[varName("addon-background")]: varRef("addon-background-filled"),
|
|
52
53
|
[`&${componentCls}-disabled`]: {
|
|
53
|
-
"
|
|
54
|
-
"
|
|
54
|
+
[varName("addon-border-color")]: colorBorder,
|
|
55
|
+
[varName("addon-background")]: colorBgContainerDisabled
|
|
55
56
|
}
|
|
56
57
|
},
|
|
57
58
|
"&-variant-borderless": {
|
|
@@ -65,14 +66,14 @@ const genSpaceAddonStyle = (token) => {
|
|
|
65
66
|
},
|
|
66
67
|
{
|
|
67
68
|
"&-status-error": {
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
|
|
69
|
+
[varName("addon-border-color-outlined")]: token.colorError,
|
|
70
|
+
[varName("addon-background-filled")]: token.colorErrorBg,
|
|
71
|
+
color: token.colorError
|
|
71
72
|
},
|
|
72
73
|
"&-status-warning": {
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
|
|
74
|
+
[varName("addon-border-color-outlined")]: token.colorWarning,
|
|
75
|
+
[varName("addon-background-filled")]: token.colorWarningBg,
|
|
76
|
+
color: token.colorWarning
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
] };
|
package/dist/spin/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { EmptyEmit, VueNode } from "../_util/type.js";
|
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue146 from "vue";
|
|
6
6
|
import { CSSProperties, SlotsType } from "vue";
|
|
7
7
|
|
|
8
8
|
//#region src/spin/index.d.ts
|
|
@@ -37,9 +37,9 @@ interface SpinSlots {
|
|
|
37
37
|
tip?: () => any;
|
|
38
38
|
default?: () => any;
|
|
39
39
|
}
|
|
40
|
-
declare const Spin:
|
|
40
|
+
declare const Spin: vue146.DefineSetupFnComponent<SpinProps, EmptyEmit, SlotsType<SpinSlots>, SpinProps & {
|
|
41
41
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
42
|
-
},
|
|
42
|
+
}, vue146.PublicProps>;
|
|
43
43
|
declare const _default: typeof Spin & {
|
|
44
44
|
setDefaultIndicator: (indicator: VueNode) => void;
|
|
45
45
|
};
|
package/dist/spin/index.js
CHANGED
|
@@ -6,10 +6,11 @@ import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
|
6
6
|
import Indicator_default from "./Indicator/index.js";
|
|
7
7
|
import style_default from "./style/index.js";
|
|
8
8
|
import usePercent from "./usePercent.js";
|
|
9
|
-
import { computed, createVNode, defineComponent, mergeDefaults, mergeProps, shallowRef,
|
|
9
|
+
import { computed, createVNode, defineComponent, mergeDefaults, mergeProps, shallowRef, watch } from "vue";
|
|
10
10
|
import { classNames } from "@v-c/util";
|
|
11
11
|
import { filterEmpty } from "@v-c/util/dist/props-util";
|
|
12
|
-
import {
|
|
12
|
+
import { omit } from "es-toolkit";
|
|
13
|
+
import { debounce } from "throttle-debounce";
|
|
13
14
|
|
|
14
15
|
//#region src/spin/index.tsx
|
|
15
16
|
let defaultIndicator;
|
|
@@ -23,11 +24,11 @@ const Spin = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
23
24
|
const { classes, styles } = toPropsRefs(props, "classes", "styles");
|
|
24
25
|
const spinning = shallowRef(shouldDelay(props.spinning, props.delay) ? false : !!props.spinning);
|
|
25
26
|
const mergedPercent = usePercent(spinning, computed(() => props.percent));
|
|
26
|
-
|
|
27
|
+
watch([() => props.delay, () => props.spinning], (_, _p, onCleanup) => {
|
|
27
28
|
if (props.spinning) {
|
|
28
|
-
const showSpinning = debounce(() => {
|
|
29
|
+
const showSpinning = debounce(props?.delay ?? 0, () => {
|
|
29
30
|
spinning.value = true;
|
|
30
|
-
}
|
|
31
|
+
});
|
|
31
32
|
showSpinning();
|
|
32
33
|
onCleanup(() => {
|
|
33
34
|
showSpinning?.cancel?.();
|
|
@@ -35,7 +36,7 @@ const Spin = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
35
36
|
return;
|
|
36
37
|
}
|
|
37
38
|
spinning.value = false;
|
|
38
|
-
});
|
|
39
|
+
}, { immediate: true });
|
|
39
40
|
const warning = devUseWarning("Spin");
|
|
40
41
|
const mergedProps = computed(() => {
|
|
41
42
|
return {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { genCssVar } from "../theme/util/genStyleUtils.js";
|
|
1
2
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
2
3
|
import { computed, createVNode, defineComponent, mergeProps, shallowRef, watch } from "vue";
|
|
3
4
|
import { clsx } from "@v-c/util";
|
|
@@ -8,8 +9,9 @@ function getValidNumber(num) {
|
|
|
8
9
|
return typeof num === "number" && !Number.isNaN(num) && Number.isFinite(num) ? Math.round(num) : 0;
|
|
9
10
|
}
|
|
10
11
|
const SplitBar = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
11
|
-
const { vertical, resizable, index, containerSize, ariaNow, ariaMin, ariaMax, prefixCls, lazy } = toPropsRefs(props, "vertical", "resizable", "index", "containerSize", "ariaNow", "ariaMin", "ariaMax", "prefixCls", "lazy");
|
|
12
|
+
const { vertical, resizable, index, containerSize, ariaNow, ariaMin, ariaMax, prefixCls, rootPrefixCls, lazy } = toPropsRefs(props, "vertical", "resizable", "index", "containerSize", "ariaNow", "ariaMin", "ariaMax", "prefixCls", "rootPrefixCls", "lazy");
|
|
12
13
|
const splitBarPrefixCls = computed(() => `${prefixCls.value}-bar`);
|
|
14
|
+
const barVarName = computed(() => genCssVar(rootPrefixCls.value, "splitter")[0]);
|
|
13
15
|
const startPos = shallowRef();
|
|
14
16
|
const constrainedOffset = shallowRef(0);
|
|
15
17
|
const constrainedOffsetX = computed(() => vertical.value ? 0 : constrainedOffset.value);
|
|
@@ -97,7 +99,7 @@ const SplitBar = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
97
99
|
});
|
|
98
100
|
return () => {
|
|
99
101
|
const { collapsibleIcon, draggerClassName, draggerStyle, active, startCollapsible, showStartCollapsibleIcon, onCollapse, endCollapsible, showEndCollapsibleIcon } = props;
|
|
100
|
-
const transformStyle = { [
|
|
102
|
+
const transformStyle = { [barVarName.value("bar-preview-offset")]: `${constrainedOffset.value}px` };
|
|
101
103
|
const propCollapsibleIconStart = collapsibleIcon?.start;
|
|
102
104
|
const propCollapsibleIconEnd = collapsibleIcon?.end;
|
|
103
105
|
const collapsibleIconStart = getSlotPropsFnRun(slots, { collapsibleIconStart: propCollapsibleIconStart }, "collapsibleIconStart", false);
|
|
@@ -181,6 +183,11 @@ const SplitBar = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
181
183
|
required: true,
|
|
182
184
|
default: void 0
|
|
183
185
|
},
|
|
186
|
+
rootPrefixCls: {
|
|
187
|
+
type: String,
|
|
188
|
+
required: true,
|
|
189
|
+
default: void 0
|
|
190
|
+
},
|
|
184
191
|
resizable: {
|
|
185
192
|
type: Boolean,
|
|
186
193
|
required: true,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SplitterEmits, SplitterProps, SplitterSlots } from "./interface.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue410 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/splitter/Splitter.d.ts
|
|
6
|
-
declare const Splitter:
|
|
6
|
+
declare const Splitter: vue410.DefineSetupFnComponent<SplitterProps, SplitterEmits, SlotsType<SplitterSlots>, SplitterProps & {
|
|
7
7
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
8
|
-
},
|
|
8
|
+
}, vue410.PublicProps>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Splitter };
|
|
@@ -19,7 +19,7 @@ import ResizeObserver from "@v-c/resize-observer";
|
|
|
19
19
|
|
|
20
20
|
//#region src/splitter/Splitter.tsx
|
|
21
21
|
const Splitter = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) => {
|
|
22
|
-
const { prefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles } = useComponentBaseConfig("splitter", props);
|
|
22
|
+
const { prefixCls, rootPrefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles } = useComponentBaseConfig("splitter", props);
|
|
23
23
|
const { classes, styles, orientation, layout, vertical } = toPropsRefs(props, "classes", "styles", "orientation", "layout", "vertical");
|
|
24
24
|
const rootCls = useCSSVarCls_default(prefixCls);
|
|
25
25
|
const [hashId, cssVarCls] = style_default(prefixCls, rootCls);
|
|
@@ -121,6 +121,7 @@ const Splitter = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs })
|
|
|
121
121
|
"index": idx,
|
|
122
122
|
"active": movingIndex.value === idx,
|
|
123
123
|
"prefixCls": prefixCls.value,
|
|
124
|
+
"rootPrefixCls": rootPrefixCls.value,
|
|
124
125
|
"vertical": isVertical.value,
|
|
125
126
|
"resizable": resizableInfo.resizable,
|
|
126
127
|
"draggerStyle": mergedStyles.value.dragger,
|
package/dist/splitter/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { InternalPanelProps, SplitterEmits, SplitterProps, SplitterSlots } from "./interface.js";
|
|
2
2
|
import { Splitter } from "./Splitter.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue164 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/splitter/index.d.ts
|
|
6
|
-
declare const SplitterPanel:
|
|
6
|
+
declare const SplitterPanel: vue164.DefineSetupFnComponent<InternalPanelProps, {}, {}, InternalPanelProps & {}, vue164.PublicProps>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { SplitterPanel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resetComponent } from "../../style/index.js";
|
|
2
|
-
import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
2
|
+
import { genCssVar, genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
3
3
|
import "../../theme/internal.js";
|
|
4
4
|
|
|
5
5
|
//#region src/splitter/style/index.ts
|
|
@@ -38,12 +38,12 @@ const centerStyle = {
|
|
|
38
38
|
transform: "translate(-50%, -50%)"
|
|
39
39
|
};
|
|
40
40
|
const genSplitterStyle = (token) => {
|
|
41
|
-
const { componentCls, colorFill, splitBarDraggableSize, splitBarSize, splitTriggerSize, controlItemBgHover, controlItemBgActive, controlItemBgActiveHover,
|
|
41
|
+
const { componentCls, colorFill, splitBarDraggableSize, splitBarSize, splitTriggerSize, controlItemBgHover, controlItemBgActive, controlItemBgActiveHover, colorPrimary, antCls, calc } = token;
|
|
42
42
|
const splitBarCls = `${componentCls}-bar`;
|
|
43
43
|
const splitMaskCls = `${componentCls}-mask`;
|
|
44
44
|
const splitPanelCls = `${componentCls}-panel`;
|
|
45
|
-
const
|
|
46
|
-
const
|
|
45
|
+
const [, varRef] = genCssVar(antCls, "splitter");
|
|
46
|
+
const halfTriggerSize = calc(splitTriggerSize).div(2).equal();
|
|
47
47
|
const splitterBarPreviewStyle = {
|
|
48
48
|
position: "absolute",
|
|
49
49
|
background: token.colorPrimary,
|
|
@@ -143,7 +143,7 @@ const genSplitterStyle = (token) => {
|
|
|
143
143
|
...splitterBarPreviewStyle,
|
|
144
144
|
[`&${splitBarCls}-preview-active`]: {
|
|
145
145
|
display: "block",
|
|
146
|
-
transform: `
|
|
146
|
+
transform: `translate3d(${varRef("bar-preview-offset")}, 0, 0)`
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
149
|
[`${splitBarCls}-dragger`]: {
|
|
@@ -197,7 +197,7 @@ const genSplitterStyle = (token) => {
|
|
|
197
197
|
...splitterBarPreviewStyle,
|
|
198
198
|
[`&${splitBarCls}-preview-active`]: {
|
|
199
199
|
display: "block",
|
|
200
|
-
transform: `
|
|
200
|
+
transform: `translate3d(0, ${varRef("bar-preview-offset")}, 0)`
|
|
201
201
|
}
|
|
202
202
|
},
|
|
203
203
|
[`${splitBarCls}-dragger`]: {
|
|
@@ -3,7 +3,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { FormatConfig, valueType } from "./utils.js";
|
|
5
5
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue310 from "vue";
|
|
7
7
|
import { CSSProperties, SlotsType, VNodeChild } from "vue";
|
|
8
8
|
|
|
9
9
|
//#region src/statistic/Statistic.d.ts
|
|
@@ -33,7 +33,7 @@ interface StatisticSlots {
|
|
|
33
33
|
prefix: () => any;
|
|
34
34
|
suffix: () => any;
|
|
35
35
|
}
|
|
36
|
-
declare const Statistic:
|
|
36
|
+
declare const Statistic: vue310.DefineSetupFnComponent<StatisticRectProps, StatisticEmits, SlotsType<StatisticSlots>, FormatConfig & ComponentBaseProps & {
|
|
37
37
|
value?: valueType;
|
|
38
38
|
valueStyle?: CSSProperties;
|
|
39
39
|
valueRender?: (node: any) => VNodeChild;
|
|
@@ -45,6 +45,6 @@ declare const Statistic: vue363.DefineSetupFnComponent<StatisticRectProps, Stati
|
|
|
45
45
|
styles?: StatisticStylesType;
|
|
46
46
|
} & {
|
|
47
47
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
48
|
-
},
|
|
48
|
+
}, vue310.PublicProps>;
|
|
49
49
|
//#endregion
|
|
50
50
|
export { Statistic, StatisticClassNamesType, StatisticProps, StatisticSlots, StatisticStylesType };
|
|
@@ -2,7 +2,7 @@ import { VueNode } from "../_util/type.js";
|
|
|
2
2
|
import { FormatConfig, valueType } from "./utils.js";
|
|
3
3
|
import { StatisticClassNamesType, StatisticProps, StatisticSlots, StatisticStylesType } from "./Statistic.js";
|
|
4
4
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue306 from "vue";
|
|
6
6
|
import { SlotsType } from "vue";
|
|
7
7
|
|
|
8
8
|
//#region src/statistic/Timer.d.ts
|
|
@@ -19,10 +19,10 @@ interface StatisticTimeEmits {
|
|
|
19
19
|
change: (value?: valueType) => void;
|
|
20
20
|
[key: string]: (...args: any[]) => any;
|
|
21
21
|
}
|
|
22
|
-
declare const StatisticTimer:
|
|
22
|
+
declare const StatisticTimer: vue306.DefineSetupFnComponent<StatisticTimerProps, StatisticTimeEmits, SlotsType<StatisticSlots>, FormatConfig & ComponentBaseProps & {
|
|
23
23
|
value?: valueType;
|
|
24
|
-
valueStyle?:
|
|
25
|
-
valueRender?: (node: any) =>
|
|
24
|
+
valueStyle?: vue306.CSSProperties;
|
|
25
|
+
valueRender?: (node: any) => vue306.VNodeChild;
|
|
26
26
|
title?: VueNode;
|
|
27
27
|
prefix?: VueNode;
|
|
28
28
|
suffix?: VueNode;
|
|
@@ -34,6 +34,6 @@ declare const StatisticTimer: vue359.DefineSetupFnComponent<StatisticTimerProps,
|
|
|
34
34
|
format?: string;
|
|
35
35
|
} & {
|
|
36
36
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
37
|
-
},
|
|
37
|
+
}, vue306.PublicProps>;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { StatisticTimeEmits, StatisticTimer, StatisticTimerProps, TimerType };
|
|
@@ -3,13 +3,13 @@ import { FormatConfig, valueType } from "./utils.js";
|
|
|
3
3
|
import { Statistic, StatisticClassNamesType, StatisticProps, StatisticSlots, StatisticStylesType } from "./Statistic.js";
|
|
4
4
|
import { StatisticTimeEmits, StatisticTimer, StatisticTimerProps, TimerType } from "./Timer.js";
|
|
5
5
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue166 from "vue";
|
|
7
7
|
|
|
8
8
|
//#region src/statistic/index.d.ts
|
|
9
|
-
declare const StatisticTimer$1:
|
|
9
|
+
declare const StatisticTimer$1: vue166.DefineSetupFnComponent<StatisticTimerProps, StatisticTimeEmits, vue166.SlotsType<StatisticSlots>, FormatConfig & ComponentBaseProps & {
|
|
10
10
|
value?: valueType;
|
|
11
|
-
valueStyle?:
|
|
12
|
-
valueRender?: (node: any) =>
|
|
11
|
+
valueStyle?: vue166.CSSProperties;
|
|
12
|
+
valueRender?: (node: any) => vue166.VNodeChild;
|
|
13
13
|
title?: VueNode;
|
|
14
14
|
prefix?: VueNode;
|
|
15
15
|
suffix?: VueNode;
|
|
@@ -21,7 +21,7 @@ declare const StatisticTimer$1: vue183.DefineSetupFnComponent<StatisticTimerProp
|
|
|
21
21
|
format?: string;
|
|
22
22
|
} & {
|
|
23
23
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
24
|
-
},
|
|
24
|
+
}, vue166.PublicProps>;
|
|
25
25
|
declare const _default: typeof Statistic & {
|
|
26
26
|
Timer: typeof StatisticTimer;
|
|
27
27
|
};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
+
import { genCssVar } from "../theme/util/genStyleUtils.js";
|
|
1
2
|
import { Fragment, createTextVNode, createVNode, defineComponent } from "vue";
|
|
2
3
|
import { clsx } from "@v-c/util";
|
|
3
4
|
|
|
4
5
|
//#region src/steps/ProgressIcon.tsx
|
|
5
6
|
const ProgressIcon = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
6
7
|
return () => {
|
|
7
|
-
const { prefixCls, percent } = props;
|
|
8
|
+
const { prefixCls, rootPrefixCls, percent } = props;
|
|
8
9
|
const progressCls = `${prefixCls}-item-progress-icon`;
|
|
9
10
|
const circleCls = `${progressCls}-circle`;
|
|
10
|
-
const
|
|
11
|
+
const [, varRef] = genCssVar(rootPrefixCls, "cmp-steps");
|
|
12
|
+
const dashArray = `calc(${varRef("progress-radius")} * 2 * ${Math.PI * percent / 100}) 9999`;
|
|
11
13
|
return createVNode(Fragment, null, [createVNode("svg", {
|
|
12
14
|
"class": `${progressCls}-svg`,
|
|
13
15
|
"viewBox": "0 0 100 100",
|
|
@@ -34,6 +36,11 @@ const ProgressIcon = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
34
36
|
required: true,
|
|
35
37
|
default: void 0
|
|
36
38
|
},
|
|
39
|
+
rootPrefixCls: {
|
|
40
|
+
type: String,
|
|
41
|
+
required: true,
|
|
42
|
+
default: void 0
|
|
43
|
+
},
|
|
37
44
|
percent: {
|
|
38
45
|
type: Number,
|
|
39
46
|
required: true,
|
package/dist/steps/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue171 from "vue";
|
|
5
5
|
import { CSSProperties, SlotsType } from "vue";
|
|
6
6
|
import { StepsProps } from "@v-c/steps";
|
|
7
7
|
|
|
@@ -80,8 +80,8 @@ interface StepsSlots {
|
|
|
80
80
|
default: () => any;
|
|
81
81
|
iconRender?: IconRenderType;
|
|
82
82
|
}
|
|
83
|
-
declare const Steps:
|
|
83
|
+
declare const Steps: vue171.DefineSetupFnComponent<StepsProps$1, StepsEmits, SlotsType<StepsSlots>, StepsProps$1 & {
|
|
84
84
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
85
|
-
},
|
|
85
|
+
}, vue171.PublicProps>;
|
|
86
86
|
//#endregion
|
|
87
87
|
export { Steps, StepsProps$1 as StepsProps };
|