antdv-next 1.0.0-beta.2 → 1.0.0-rc.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.mjs +4 -4
- package/dist/_util/hooks/useClosable.d.mts +0 -1
- package/dist/_util/hooks/useClosable.mjs +1 -1
- package/dist/_util/hooks/useMergeSemantic.d.mts +2 -3
- package/dist/_util/hooks/useMergeSemantic.mjs +9 -9
- package/dist/_util/tools.mjs +1 -1
- package/dist/_util/warning.d.mts +0 -1
- package/dist/affix/index.d.mts +3 -3
- package/dist/alert/Alert.d.mts +24 -7
- package/dist/alert/Alert.mjs +91 -28
- package/dist/anchor/Anchor.d.mts +18 -7
- package/dist/antd.css +1 -1
- package/dist/antd.js +101 -112
- package/dist/app/App.d.mts +2 -2
- package/dist/app/App.mjs +2 -2
- package/dist/auto-complete/index.d.mts +23 -11
- package/dist/auto-complete/index.mjs +1 -1
- package/dist/avatar/Avatar.d.mts +3 -3
- package/dist/avatar/AvatarGroup.d.mts +2 -2
- package/dist/avatar/style/index.mjs +2 -2
- package/dist/badge/Ribbon.d.mts +18 -2
- package/dist/badge/Ribbon.mjs +44 -23
- package/dist/badge/SingleNumber.mjs +2 -1
- package/dist/badge/index.d.mts +14 -7
- package/dist/badge/style/ribbon.mjs +1 -1
- package/dist/breadcrumb/Breadcrumb.d.mts +17 -6
- package/dist/breadcrumb/Breadcrumb.mjs +18 -3
- package/dist/breadcrumb/BreadcrumbItem.d.mts +1 -0
- package/dist/breadcrumb/BreadcrumbItem.mjs +29 -4
- package/dist/breadcrumb/style/index.mjs +5 -5
- package/dist/button/Button.d.mts +18 -10
- package/dist/button/buttonHelper.d.mts +0 -1
- package/dist/button/index.d.mts +1 -1
- package/dist/button/style/compact.mjs +28 -19
- package/dist/button/style/token.d.mts +0 -5
- package/dist/button/style/variant.mjs +27 -3
- package/dist/calendar/generateCalendar.d.mts +20 -7
- package/dist/calendar/generateCalendar.mjs +1 -1
- package/dist/calendar/index.d.mts +3 -3
- package/dist/card/Card.d.mts +23 -6
- package/dist/card/CardGrid.d.mts +2 -2
- package/dist/card/CardMeta.d.mts +20 -7
- package/dist/cascader/index.d.mts +28 -7
- package/dist/checkbox/Checkbox.d.mts +16 -7
- package/dist/checkbox/Checkbox.mjs +1 -1
- package/dist/checkbox/Group.d.mts +4 -3
- package/dist/checkbox/Group.mjs +11 -2
- package/dist/collapse/Collapse.d.mts +19 -6
- package/dist/collapse/Collapse.mjs +1 -1
- package/dist/color-picker/ColorPicker.d.mts +3 -3
- package/dist/color-picker/interface.d.mts +15 -7
- package/dist/color-picker/style/input.mjs +2 -0
- package/dist/components.d.mts +2 -3
- package/dist/config-provider/context.d.mts +58 -12
- package/dist/config-provider/context.mjs +3 -3
- package/dist/config-provider/define.d.mts +7 -1
- package/dist/config-provider/index.d.mts +3 -4
- package/dist/config-provider/index.mjs +82 -8
- package/dist/date-picker/generatePicker/index.d.mts +15 -15
- package/dist/date-picker/generatePicker/interface.d.mts +37 -10
- package/dist/date-picker/hooks/useMergedPickerSemantic.mjs +2 -2
- package/dist/date-picker/index.d.mts +25 -25
- package/dist/descriptions/Cell.mjs +5 -5
- package/dist/descriptions/DescriptionsContext.d.mts +13 -0
- package/dist/descriptions/Item.d.mts +3 -3
- package/dist/descriptions/hooks/useRow.mjs +7 -7
- package/dist/descriptions/index.d.mts +22 -7
- package/dist/divider/index.d.mts +15 -5
- package/dist/drawer/DrawerPanel.d.mts +28 -3
- package/dist/drawer/DrawerPanel.mjs +3 -3
- package/dist/drawer/index.d.mts +4 -4
- package/dist/drawer/index.mjs +4 -0
- package/dist/drawer/style/index.mjs +9 -2
- package/dist/dropdown/dropdown.d.mts +20 -7
- package/dist/empty/index.d.mts +18 -7
- package/dist/flex/index.d.mts +3 -3
- package/dist/float-button/FloatButton.d.mts +3 -4
- package/dist/float-button/FloatButtonGroup.d.mts +22 -3
- package/dist/form/Form.d.mts +16 -7
- package/dist/form/FormItem/index.d.mts +3 -3
- package/dist/form/FormItem/index.mjs +1 -1
- package/dist/form/FormItemInput.d.mts +0 -1
- package/dist/image/PreviewGroup.d.mts +3 -5
- package/dist/image/index.d.mts +34 -14
- package/dist/index.d.mts +3 -4
- package/dist/input/Input.d.mts +17 -4
- package/dist/input/Input.mjs +2 -2
- package/dist/input/OTP/index.d.mts +13 -4
- package/dist/input/Password.mjs +3 -3
- package/dist/input/Search.d.mts +21 -9
- package/dist/input/TextArea.d.mts +16 -7
- package/dist/input/TextArea.mjs +2 -2
- package/dist/input/index.d.mts +11 -11
- package/dist/input/style/index.mjs +5 -2
- package/dist/input/style/variants.mjs +2 -1
- package/dist/input-number/index.d.mts +20 -7
- package/dist/layout/index.d.mts +6 -6
- package/dist/layout/layout.d.mts +0 -1
- package/dist/locale/index.d.mts +0 -1
- package/dist/masonry/Masonry.d.mts +14 -7
- package/dist/masonry/MasonryItem.mjs +2 -2
- package/dist/mentions/index.d.mts +18 -7
- package/dist/mentions/index.mjs +2 -2
- package/dist/mentions/style/index.mjs +2 -2
- package/dist/menu/MenuContext.d.mts +0 -1
- package/dist/menu/MenuDivider.d.mts +2 -2
- package/dist/menu/MenuItem.d.mts +3 -3
- package/dist/menu/MenuItem.mjs +4 -3
- package/dist/menu/SubMenu.d.mts +3 -3
- package/dist/menu/SubMenu.mjs +5 -0
- package/dist/menu/index.d.mts +5 -5
- package/dist/menu/menu.d.mts +42 -10
- package/dist/menu/menu.mjs +2 -2
- package/dist/menu/style/index.d.mts +1 -1
- package/dist/menu/style/vertical.mjs +1 -1
- package/dist/message/PurePanel.d.mts +5 -7
- package/dist/message/index.mjs +2 -2
- package/dist/message/interface.d.mts +20 -4
- package/dist/message/useMessage.d.mts +0 -1
- package/dist/modal/Modal.d.mts +3 -3
- package/dist/modal/confirm.mjs +8 -4
- package/dist/modal/interface.d.mts +22 -3
- package/dist/modal/style/index.mjs +11 -8
- package/dist/notification/PurePanel.d.mts +8 -8
- package/dist/notification/index.mjs +2 -2
- package/dist/notification/interface.d.mts +18 -5
- package/dist/notification/style/index.mjs +8 -8
- package/dist/notification/useNotification.d.mts +2 -3
- package/dist/package.d.mts +4 -0
- package/dist/package.mjs +1 -1
- package/dist/pagination/Pagination.d.mts +3 -3
- package/dist/pagination/Pagination.mjs +11 -10
- package/dist/pagination/interface.d.mts +14 -5
- package/dist/pagination/style/bordered.mjs +2 -2
- package/dist/pagination/style/index.d.mts +10 -5
- package/dist/pagination/style/index.mjs +52 -103
- package/dist/popconfirm/PurePanel.d.mts +5 -7
- package/dist/popconfirm/index.d.mts +8 -6
- package/dist/popconfirm/index.mjs +7 -3
- package/dist/popover/index.d.mts +16 -9
- package/dist/popover/index.mjs +8 -5
- package/dist/progress/Line.mjs +3 -3
- package/dist/progress/progress.d.mts +20 -7
- package/dist/qrcode/index.d.mts +3 -3
- package/dist/qrcode/index.mjs +2 -1
- package/dist/qrcode/interface.d.mts +11 -3
- package/dist/radio/group.mjs +3 -3
- package/dist/radio/index.d.mts +5 -5
- package/dist/radio/interface.d.mts +13 -3
- package/dist/radio/radio.d.mts +3 -3
- package/dist/radio/radio.mjs +1 -1
- package/dist/rate/index.d.mts +3 -3
- package/dist/result/index.d.mts +22 -7
- package/dist/result/index.mjs +11 -6
- package/dist/result/noFound.d.mts +2 -2
- package/dist/result/serverError.d.mts +2 -2
- package/dist/result/unauthorized.d.mts +2 -2
- package/dist/segmented/index.d.mts +18 -7
- package/dist/select/index.d.mts +48 -20
- package/dist/skeleton/Avatar.d.mts +2 -2
- package/dist/skeleton/Button.d.mts +2 -2
- package/dist/skeleton/Image.d.mts +2 -2
- package/dist/skeleton/Input.d.mts +2 -2
- package/dist/skeleton/Node.d.mts +3 -3
- package/dist/skeleton/Skeleton.d.mts +22 -7
- package/dist/slider/index.d.mts +19 -6
- package/dist/slider/index.mjs +4 -4
- package/dist/space/index.d.mts +18 -9
- package/dist/spin/Indicator/Progress.mjs +3 -3
- package/dist/spin/index.d.mts +19 -6
- package/dist/splitter/SplitBar.mjs +12 -12
- package/dist/splitter/Splitter.d.mts +3 -3
- package/dist/splitter/Splitter.mjs +1 -1
- package/dist/splitter/hooks/useItems.mjs +2 -2
- package/dist/splitter/hooks/useResizable.mjs +5 -5
- package/dist/splitter/hooks/useResize.mjs +2 -2
- package/dist/splitter/index.d.mts +2 -2
- package/dist/splitter/interface.d.mts +21 -7
- package/dist/splitter/style/index.mjs +2 -28
- package/dist/statistic/Statistic.d.mts +21 -6
- package/dist/statistic/Statistic.mjs +1 -1
- package/dist/statistic/Timer.d.mts +5 -5
- package/dist/statistic/index.d.mts +5 -5
- package/dist/steps/context.mjs +5 -2
- package/dist/steps/index.d.mts +31 -9
- package/dist/steps/index.mjs +3 -3
- package/dist/style/motion/fade.mjs +25 -0
- package/dist/switch/index.d.mts +14 -7
- package/dist/switch/index.mjs +2 -2
- package/dist/table/Column.d.mts +3 -3
- package/dist/table/ColumnGroup.d.mts +3 -3
- package/dist/table/InternalTable.d.mts +35 -13
- package/dist/table/InternalTable.mjs +12 -6
- package/dist/table/Table.d.mts +3 -3
- package/dist/table/TableMeasureRowContext.mjs +20 -0
- package/dist/table/hooks/useFilter/FilterDropdown.mjs +17 -12
- package/dist/table/hooks/useSelection.mjs +1 -1
- package/dist/table/interface.d.mts +1 -2
- package/dist/table/style/virtual.mjs +1 -1
- package/dist/tabs/TabPane.d.mts +3 -3
- package/dist/tabs/index.d.mts +27 -11
- package/dist/tabs/index.mjs +5 -5
- package/dist/tag/CheckableTag.d.mts +3 -3
- package/dist/tag/CheckableTagGroup.d.mts +3 -3
- package/dist/tag/index.d.mts +16 -7
- package/dist/tag/index.mjs +1 -1
- package/dist/tag/style/index.mjs +1 -1
- package/dist/theme/index.d.mts +1 -2
- package/dist/theme/interface/maps/index.d.mts +0 -1
- package/dist/theme/useToken.mjs +3 -3
- package/dist/theme/util/genStyleUtils.mjs +3 -2
- package/dist/time-picker/index.d.mts +38 -14
- package/dist/time-picker/index.mjs +1 -1
- package/dist/timeline/Timeline.d.mts +49 -14
- package/dist/timeline/Timeline.mjs +82 -11
- package/dist/timeline/index.d.mts +1 -2
- package/dist/timeline/style/horizontal.mjs +73 -0
- package/dist/timeline/style/index.d.mts +10 -5
- package/dist/timeline/style/index.mjs +93 -137
- package/dist/timeline/useItems.mjs +52 -0
- package/dist/tooltip/PurePanel.d.mts +2 -2
- package/dist/tooltip/UniqueProvider/index.d.mts +2 -2
- package/dist/tooltip/index.d.mts +17 -8
- package/dist/tooltip/index.mjs +11 -3
- package/dist/tooltip/style/index.d.mts +7 -1
- package/dist/tooltip/style/index.mjs +3 -2
- package/dist/tour/index.d.mts +3 -3
- package/dist/tour/index.mjs +1 -1
- package/dist/tour/interface.d.mts +29 -3
- package/dist/transfer/Actions.d.mts +2 -2
- package/dist/transfer/ListItem.mjs +4 -4
- package/dist/transfer/Section.d.mts +2 -2
- package/dist/transfer/Transfer.d.mts +3 -3
- package/dist/transfer/Transfer.mjs +4 -4
- package/dist/transfer/index.d.mts +1 -1
- package/dist/transfer/interface.d.mts +32 -7
- package/dist/transfer/search.d.mts +3 -3
- package/dist/tree/DirectoryTree.d.mts +3 -3
- package/dist/tree/Tree.d.mts +18 -7
- package/dist/tree/index.d.mts +0 -1
- package/dist/tree-select/index.d.mts +41 -12
- package/dist/tree-select/style/index.d.mts +1 -1
- package/dist/typography/Editable.mjs +4 -4
- package/dist/typography/Link.d.mts +3 -3
- package/dist/typography/Paragraph.d.mts +3 -3
- package/dist/typography/Text.d.mts +3 -3
- package/dist/typography/Title.d.mts +3 -3
- package/dist/typography/Typography.d.mts +3 -3
- package/dist/typography/Typography.mjs +2 -12
- package/dist/typography/index.d.mts +9 -10
- package/dist/typography/interface.d.mts +0 -2
- package/dist/typography/style/mixins.mjs +3 -3
- package/dist/upload/Dragger.d.mts +3 -3
- package/dist/upload/Upload.d.mts +3 -4
- package/dist/upload/index.d.mts +3 -3
- package/dist/upload/interface.d.mts +13 -4
- package/dist/watermark/index.d.mts +2 -2
- package/dist/watermark/index.mjs +3 -3
- package/package.json +45 -41
- package/web-tags.json +1108 -1067
- package/web-types.json +3861 -4257
- package/dist/timeline/TimelineItem.d.mts +0 -20
- package/dist/timeline/TimelineItem.mjs +0 -115
- package/dist/timeline/TimelineItemList.mjs +0 -158
- /package/dist/{reset.css/reset.css → reset.css} +0 -0
package/dist/slider/index.d.mts
CHANGED
|
@@ -2,15 +2,28 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
2
2
|
import { Orientation } from "../_util/hooks/useOrientation.mjs";
|
|
3
3
|
import "../_util/hooks/index.mjs";
|
|
4
4
|
import { TooltipPlacement, TriggerCommonApi } from "../tooltip/index.mjs";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue153 from "vue";
|
|
6
6
|
import { CSSProperties, SlotsType } from "vue";
|
|
7
7
|
import { SliderProps } from "@v-c/slider";
|
|
8
8
|
|
|
9
9
|
//#region src/slider/index.d.ts
|
|
10
10
|
type SliderMarks = SliderProps['marks'];
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
interface SliderSemanticClassNames {
|
|
12
|
+
root?: string;
|
|
13
|
+
tracks?: string;
|
|
14
|
+
track?: string;
|
|
15
|
+
rail?: string;
|
|
16
|
+
handle?: string;
|
|
17
|
+
}
|
|
18
|
+
interface SliderSemanticStyles {
|
|
19
|
+
root?: CSSProperties;
|
|
20
|
+
tracks?: CSSProperties;
|
|
21
|
+
track?: CSSProperties;
|
|
22
|
+
rail?: CSSProperties;
|
|
23
|
+
handle?: CSSProperties;
|
|
24
|
+
}
|
|
25
|
+
type SliderClassNamesType = SemanticClassNamesType<SliderBaseProps, SliderSemanticClassNames>;
|
|
26
|
+
type SliderStylesType = SemanticStylesType<SliderBaseProps, SliderSemanticStyles>;
|
|
14
27
|
interface SliderProps$1 extends Omit<SliderProps, 'styles' | 'classNames'> {
|
|
15
28
|
classes?: SliderClassNamesType;
|
|
16
29
|
styles?: SliderStylesType;
|
|
@@ -69,8 +82,8 @@ interface SliderEmits {
|
|
|
69
82
|
}
|
|
70
83
|
interface SliderSlots {}
|
|
71
84
|
type SliderRange = SliderProps['range'];
|
|
72
|
-
declare const Slider:
|
|
85
|
+
declare const Slider: vue153.DefineSetupFnComponent<SliderInternalProps, SliderEmits, SlotsType<SliderSlots>, SliderInternalProps & {
|
|
73
86
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
74
|
-
},
|
|
87
|
+
}, vue153.PublicProps>;
|
|
75
88
|
//#endregion
|
|
76
89
|
export { Slider, SliderEmits, SliderProps$1 as SliderProps };
|
package/dist/slider/index.mjs
CHANGED
|
@@ -76,8 +76,8 @@ const Slider = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose })
|
|
|
76
76
|
return () => {
|
|
77
77
|
const { className, style, restAttrs } = getAttrStyleAndClass(attrs);
|
|
78
78
|
const { rootClass, tooltip, range } = props;
|
|
79
|
-
const tooltipProps
|
|
80
|
-
const { placement: tooltipPlacement, getPopupContainer: getTooltipPopupContainer, prefixCls: customizeTooltipPrefixCls, formatter: tipFormatter } = tooltipProps
|
|
79
|
+
const tooltipProps = { ...tooltip };
|
|
80
|
+
const { placement: tooltipPlacement, getPopupContainer: getTooltipPopupContainer, prefixCls: customizeTooltipPrefixCls, formatter: tipFormatter } = tooltipProps;
|
|
81
81
|
const rootClassNames = clsx(className, contextClassName.value, mergedClassNames.value.root, rootClass, {
|
|
82
82
|
[`${prefixCls.value}-rtl`]: isRTL.value,
|
|
83
83
|
[`${prefixCls.value}-lock`]: dragging.value
|
|
@@ -132,7 +132,7 @@ const Slider = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose })
|
|
|
132
132
|
}
|
|
133
133
|
});
|
|
134
134
|
const open = (!!lockOpen.value || activeOpen.value) && mergedTipFormatter !== null;
|
|
135
|
-
if (!useActiveTooltipHandle) return createVNode(SliderTooltip_default, mergeProps(tooltipProps
|
|
135
|
+
if (!useActiveTooltipHandle) return createVNode(SliderTooltip_default, mergeProps(tooltipProps, {
|
|
136
136
|
"prefixCls": getPrefixCls("tooltip", customizeTooltipPrefixCls),
|
|
137
137
|
"title": mergedTipFormatter ? mergedTipFormatter(value) : "",
|
|
138
138
|
"value": value,
|
|
@@ -146,7 +146,7 @@ const Slider = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose })
|
|
|
146
146
|
});
|
|
147
147
|
const activeHandleRender = useActiveTooltipHandle ? ({ node, ...info }) => {
|
|
148
148
|
const cloneNode = cloneVNode(node, { style: { visibility: "hidden" } });
|
|
149
|
-
return createVNode(SliderTooltip_default, mergeProps(tooltipProps
|
|
149
|
+
return createVNode(SliderTooltip_default, mergeProps(tooltipProps, {
|
|
150
150
|
"prefixCls": getPrefixCls("tooltip", customizeTooltipPrefixCls),
|
|
151
151
|
"title": mergedTipFormatter ? mergedTipFormatter(info.value) : "",
|
|
152
152
|
"open": mergedTipFormatter !== null && activeOpen.value,
|
package/dist/space/index.d.mts
CHANGED
|
@@ -6,14 +6,23 @@ import "../_util/hooks/index.mjs";
|
|
|
6
6
|
import { SpaceCompactProps } from "./Compact.mjs";
|
|
7
7
|
import { SpaceCompactCellProps } from "./Addon.mjs";
|
|
8
8
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
9
|
-
import * as
|
|
10
|
-
import { SlotsType } from "vue";
|
|
9
|
+
import * as vue155 from "vue";
|
|
10
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
11
11
|
|
|
12
12
|
//#region src/space/index.d.ts
|
|
13
13
|
type SpaceSize = SizeType | number;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
interface SpaceSemanticClassNames {
|
|
15
|
+
root?: string;
|
|
16
|
+
item?: string;
|
|
17
|
+
separator?: string;
|
|
18
|
+
}
|
|
19
|
+
interface SpaceSemanticStyles {
|
|
20
|
+
root?: CSSProperties;
|
|
21
|
+
item?: CSSProperties;
|
|
22
|
+
separator?: CSSProperties;
|
|
23
|
+
}
|
|
24
|
+
type SpaceClassNamesType = SemanticClassNamesType<SpaceProps, SpaceSemanticClassNames>;
|
|
25
|
+
type SpaceStylesType = SemanticStylesType<SpaceProps, SpaceSemanticStyles>;
|
|
17
26
|
interface SpaceProps extends ComponentBaseProps {
|
|
18
27
|
size?: SpaceSize | [SpaceSize, SpaceSize];
|
|
19
28
|
/** @deprecated please use `orientation` instead */
|
|
@@ -30,10 +39,10 @@ interface SpaceSlots {
|
|
|
30
39
|
default?: () => any;
|
|
31
40
|
separator?: () => any;
|
|
32
41
|
}
|
|
33
|
-
declare const Space:
|
|
42
|
+
declare const Space: vue155.DefineSetupFnComponent<SpaceProps, EmptyEmit, SlotsType<SpaceSlots>, SpaceProps & {
|
|
34
43
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
35
|
-
},
|
|
36
|
-
declare const SpaceCompact:
|
|
37
|
-
declare const SpaceAddon:
|
|
44
|
+
}, vue155.PublicProps>;
|
|
45
|
+
declare const SpaceCompact: vue155.DefineSetupFnComponent<SpaceCompactProps, {}, {}, SpaceCompactProps & {}, vue155.PublicProps>;
|
|
46
|
+
declare const SpaceAddon: vue155.DefineSetupFnComponent<SpaceCompactCellProps, {}, {}, SpaceCompactCellProps & {}, vue155.PublicProps>;
|
|
38
47
|
//#endregion
|
|
39
48
|
export { Space, SpaceAddon, SpaceCompact, SpaceProps, SpaceSize, SpaceSlots };
|
|
@@ -31,9 +31,9 @@ const CustomCircle = /* @__PURE__ */ defineComponent((props) => {
|
|
|
31
31
|
}
|
|
32
32
|
} });
|
|
33
33
|
const Progress = /* @__PURE__ */ defineComponent((props) => {
|
|
34
|
-
const render
|
|
34
|
+
const render = shallowRef(false);
|
|
35
35
|
watch(() => props.percent !== 0, () => {
|
|
36
|
-
if (props.percent !== 0) render
|
|
36
|
+
if (props.percent !== 0) render.value = true;
|
|
37
37
|
}, { immediate: true });
|
|
38
38
|
return () => {
|
|
39
39
|
const { percent, prefixCls } = props;
|
|
@@ -41,7 +41,7 @@ const Progress = /* @__PURE__ */ defineComponent((props) => {
|
|
|
41
41
|
const holderClassName = `${dotClassName}-holder`;
|
|
42
42
|
const hideClassName = `${holderClassName}-hidden`;
|
|
43
43
|
const safePtg = Math.max(Math.min(percent, 100), 0);
|
|
44
|
-
if (!render
|
|
44
|
+
if (!render.value) return null;
|
|
45
45
|
const circleStyle = {
|
|
46
46
|
strokeDashoffset: `${circumference / 4}`,
|
|
47
47
|
strokeDasharray: `${circumference * safePtg / 100} ${circumference * (100 - safePtg) / 100}`
|
package/dist/spin/index.d.mts
CHANGED
|
@@ -2,15 +2,28 @@ import { EmptyEmit, VueNode } from "../_util/type.mjs";
|
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
|
|
3
3
|
import "../_util/hooks/index.mjs";
|
|
4
4
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue161 from "vue";
|
|
6
6
|
import { CSSProperties, SlotsType } from "vue";
|
|
7
7
|
|
|
8
8
|
//#region src/spin/index.d.ts
|
|
9
9
|
declare const _SpinSizes: readonly ["small", "default", "large"];
|
|
10
10
|
type SpinSize = (typeof _SpinSizes)[number];
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
interface SpinSemanticClassNames {
|
|
12
|
+
root?: string;
|
|
13
|
+
wrapper?: string;
|
|
14
|
+
mask?: string;
|
|
15
|
+
indicator?: string;
|
|
16
|
+
tip?: string;
|
|
17
|
+
}
|
|
18
|
+
interface SpinSemanticStyles {
|
|
19
|
+
root?: CSSProperties;
|
|
20
|
+
wrapper?: CSSProperties;
|
|
21
|
+
mask?: CSSProperties;
|
|
22
|
+
indicator?: CSSProperties;
|
|
23
|
+
tip?: CSSProperties;
|
|
24
|
+
}
|
|
25
|
+
type SpinClassNamesType = SemanticClassNamesType<SpinProps, SpinSemanticClassNames>;
|
|
26
|
+
type SpinStylesType = SemanticStylesType<SpinProps, SpinSemanticStyles, {
|
|
14
27
|
wrapper?: CSSProperties;
|
|
15
28
|
}>;
|
|
16
29
|
interface SpinProps extends ComponentBaseProps {
|
|
@@ -37,9 +50,9 @@ interface SpinSlots {
|
|
|
37
50
|
tip?: () => any;
|
|
38
51
|
default?: () => any;
|
|
39
52
|
}
|
|
40
|
-
declare const Spin:
|
|
53
|
+
declare const Spin: vue161.DefineSetupFnComponent<SpinProps, EmptyEmit, SlotsType<SpinSlots>, SpinProps & {
|
|
41
54
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
42
|
-
},
|
|
55
|
+
}, vue161.PublicProps>;
|
|
43
56
|
declare const _default: typeof Spin & {
|
|
44
57
|
setDefaultIndicator: (indicator: VueNode) => void;
|
|
45
58
|
};
|
|
@@ -106,22 +106,22 @@ const SplitBar = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
106
106
|
const collapsibleIconEnd = getSlotPropsFnRun(slots, { collapsibleIconEnd: propCollapsibleIconEnd }, "collapsibleIconEnd", false);
|
|
107
107
|
const draggerIcon = getSlotPropsFnRun(slots, props, "draggerIcon", false);
|
|
108
108
|
const renderIconsFn = () => {
|
|
109
|
-
let startIcon
|
|
110
|
-
let endIcon
|
|
111
|
-
const startCustomize
|
|
112
|
-
const endCustomize
|
|
109
|
+
let startIcon = null;
|
|
110
|
+
let endIcon = null;
|
|
111
|
+
const startCustomize = collapsibleIconStart !== void 0;
|
|
112
|
+
const endCustomize = collapsibleIconEnd !== void 0;
|
|
113
113
|
if (vertical.value) {
|
|
114
|
-
startIcon
|
|
115
|
-
endIcon
|
|
114
|
+
startIcon = startCustomize ? collapsibleIconStart : createVNode(UpOutlined, null, null);
|
|
115
|
+
endIcon = endCustomize ? collapsibleIconEnd : createVNode(DownOutlined, null, null);
|
|
116
116
|
} else {
|
|
117
|
-
startIcon
|
|
118
|
-
endIcon
|
|
117
|
+
startIcon = startCustomize ? collapsibleIconStart : createVNode(LeftOutlined, null, null);
|
|
118
|
+
endIcon = endCustomize ? collapsibleIconEnd : createVNode(RightOutlined, null, null);
|
|
119
119
|
}
|
|
120
120
|
return [
|
|
121
|
-
startIcon
|
|
122
|
-
endIcon
|
|
123
|
-
startCustomize
|
|
124
|
-
endCustomize
|
|
121
|
+
startIcon,
|
|
122
|
+
endIcon,
|
|
123
|
+
startCustomize,
|
|
124
|
+
endCustomize
|
|
125
125
|
];
|
|
126
126
|
};
|
|
127
127
|
const [startIcon, endIcon, startCustomize, endCustomize] = renderIconsFn();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SplitterEmits, SplitterProps, SplitterSlots } from "./interface.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue407 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: vue407.DefineSetupFnComponent<SplitterProps, SplitterEmits, SlotsType<SplitterSlots>, SplitterProps & {
|
|
7
7
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
8
|
-
},
|
|
8
|
+
}, vue407.PublicProps>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Splitter };
|
|
@@ -42,7 +42,7 @@ const Splitter = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs })
|
|
|
42
42
|
containerSize.value = _containerSize;
|
|
43
43
|
};
|
|
44
44
|
const [panelSizes, itemPxSizes, itemPtgSizes, itemPtgMinSizes, itemPtgMaxSizes, updateSizes] = useSizes(items, containerSize);
|
|
45
|
-
const resizableInfos = useResizable(items, itemPxSizes,
|
|
45
|
+
const resizableInfos = useResizable(items, itemPxSizes, reverse);
|
|
46
46
|
const [onOffsetStart, onOffsetUpdate, onOffsetEnd, onCollapse, movingIndex] = useResize(items, resizableInfos, itemPtgSizes, containerSize, updateSizes, isRTL);
|
|
47
47
|
const onInternalResizeStart = (index) => {
|
|
48
48
|
onOffsetStart(index);
|
|
@@ -20,7 +20,7 @@ function getCollapsible(collapsible) {
|
|
|
20
20
|
*/
|
|
21
21
|
function convertChildrenToItems(children) {
|
|
22
22
|
return filterEmpty(children).filter((item) => isVNode(item)).map((node) => {
|
|
23
|
-
const { props, children
|
|
23
|
+
const { props, children } = node;
|
|
24
24
|
const defaultSize = props?.["default-size"] ?? props?.defaultSize;
|
|
25
25
|
const { collapsible, resizable, ...restProps } = props ?? {};
|
|
26
26
|
const mergedResizable = resizable !== false;
|
|
@@ -29,7 +29,7 @@ function convertChildrenToItems(children) {
|
|
|
29
29
|
defaultSize,
|
|
30
30
|
resizable: mergedResizable,
|
|
31
31
|
collapsible: getCollapsible(collapsible),
|
|
32
|
-
_$slots: children
|
|
32
|
+
_$slots: children
|
|
33
33
|
};
|
|
34
34
|
});
|
|
35
35
|
}
|
|
@@ -11,7 +11,7 @@ function getShowCollapsibleIcon(prev, next) {
|
|
|
11
11
|
if (next.collapsible) return next.showCollapsibleIcon;
|
|
12
12
|
return false;
|
|
13
13
|
}
|
|
14
|
-
function useResizable(items, pxSizes,
|
|
14
|
+
function useResizable(items, pxSizes, reverse) {
|
|
15
15
|
return computed(() => {
|
|
16
16
|
const resizeInfos = [];
|
|
17
17
|
const itemsLen = items.value.length;
|
|
@@ -45,10 +45,10 @@ function useResizable(items, pxSizes, isRTL) {
|
|
|
45
45
|
});
|
|
46
46
|
resizeInfos[i] = {
|
|
47
47
|
resizable: mergedResizable,
|
|
48
|
-
startCollapsible: !!(
|
|
49
|
-
endCollapsible: !!(
|
|
50
|
-
showStartCollapsibleIcon:
|
|
51
|
-
showEndCollapsibleIcon:
|
|
48
|
+
startCollapsible: !!(reverse.value ? endCollapsible : startCollapsible),
|
|
49
|
+
endCollapsible: !!(reverse.value ? startCollapsible : endCollapsible),
|
|
50
|
+
showStartCollapsibleIcon: reverse.value ? showEndCollapsibleIcon : showStartCollapsibleIcon,
|
|
51
|
+
showEndCollapsibleIcon: reverse.value ? showStartCollapsibleIcon : showEndCollapsibleIcon
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
return resizeInfos;
|
|
@@ -5,7 +5,7 @@ import { computed, shallowRef } from "vue";
|
|
|
5
5
|
/**
|
|
6
6
|
* Handle user drag resize logic.
|
|
7
7
|
*/
|
|
8
|
-
function useResize(items, resizableInfos, percentSizes, containerSize, updateSizes,
|
|
8
|
+
function useResize(items, resizableInfos, percentSizes, containerSize, updateSizes, reverse) {
|
|
9
9
|
const limitSizes = computed(() => items.value.map((item) => [item.min, item.max]));
|
|
10
10
|
const mergedContainerSize = computed(() => containerSize.value || 0);
|
|
11
11
|
const ptg2px = (ptg) => ptg * mergedContainerSize.value;
|
|
@@ -68,7 +68,7 @@ function useResize(items, resizableInfos, percentSizes, containerSize, updateSiz
|
|
|
68
68
|
};
|
|
69
69
|
const onCollapse = (index, type) => {
|
|
70
70
|
const currentSizes = getPxSizes();
|
|
71
|
-
const adjustedType =
|
|
71
|
+
const adjustedType = reverse.value ? type === "start" ? "end" : "start" : type;
|
|
72
72
|
const currentIndex = adjustedType === "start" ? index : index + 1;
|
|
73
73
|
const targetIndex = adjustedType === "start" ? index + 1 : index;
|
|
74
74
|
const currentSize = currentSizes[currentIndex];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { InternalPanelProps, SplitterEmits, SplitterProps, SplitterSlots } from "./interface.mjs";
|
|
2
2
|
import { Splitter } from "./Splitter.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue163 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/splitter/index.d.ts
|
|
6
|
-
declare const SplitterPanel:
|
|
6
|
+
declare const SplitterPanel: vue163.DefineSetupFnComponent<InternalPanelProps, {}, {}, InternalPanelProps & {}, vue163.PublicProps>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { SplitterPanel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VueNode } from "../_util/type.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
|
|
3
3
|
import { Orientation } from "../_util/hooks/useOrientation.mjs";
|
|
4
4
|
import "../_util/hooks/index.mjs";
|
|
5
5
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
@@ -7,13 +7,27 @@ import { ShowCollapsibleIconMode } from "./SplitBar.mjs";
|
|
|
7
7
|
import { CSSProperties } from "vue";
|
|
8
8
|
|
|
9
9
|
//#region src/splitter/interface.d.ts
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
interface SplitterSemanticClassNames {
|
|
11
|
+
root?: string;
|
|
12
|
+
panel?: string;
|
|
13
|
+
}
|
|
14
|
+
interface SplitterSemanticStyles {
|
|
15
|
+
root?: CSSProperties;
|
|
16
|
+
panel?: CSSProperties;
|
|
17
|
+
}
|
|
18
|
+
interface DraggerSemanticClassNames {
|
|
19
|
+
default?: string;
|
|
20
|
+
active?: string;
|
|
21
|
+
}
|
|
22
|
+
interface DraggerSemanticStyles {
|
|
23
|
+
default?: CSSProperties;
|
|
24
|
+
active?: CSSProperties;
|
|
25
|
+
}
|
|
26
|
+
type SplitterClassNamesType = SemanticClassNamesType<SplitterProps, SplitterSemanticClassNames, {
|
|
27
|
+
dragger?: string | DraggerSemanticClassNames;
|
|
14
28
|
}>;
|
|
15
|
-
type SplitterStylesType = SemanticStylesType<SplitterProps,
|
|
16
|
-
dragger?: CSSProperties |
|
|
29
|
+
type SplitterStylesType = SemanticStylesType<SplitterProps, SplitterSemanticStyles, {
|
|
30
|
+
dragger?: CSSProperties | DraggerSemanticStyles;
|
|
17
31
|
}>;
|
|
18
32
|
interface SplitterProps extends ComponentBaseProps {
|
|
19
33
|
classes?: SplitterClassNamesType;
|
|
@@ -3,31 +3,6 @@ import { genCssVar, genStyleHooks } from "../../theme/util/genStyleUtils.mjs";
|
|
|
3
3
|
import "../../theme/internal.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/splitter/style/index.ts
|
|
6
|
-
function genRtlStyle(token) {
|
|
7
|
-
const { componentCls } = token;
|
|
8
|
-
return {
|
|
9
|
-
[`&-rtl${componentCls}-horizontal`]: { [`> ${componentCls}-bar`]: {
|
|
10
|
-
[`${componentCls}-bar-collapse-previous`]: {
|
|
11
|
-
insetInlineEnd: 0,
|
|
12
|
-
insetInlineStart: "unset"
|
|
13
|
-
},
|
|
14
|
-
[`${componentCls}-bar-collapse-next`]: {
|
|
15
|
-
insetInlineEnd: "unset",
|
|
16
|
-
insetInlineStart: 0
|
|
17
|
-
}
|
|
18
|
-
} },
|
|
19
|
-
[`&-rtl${componentCls}-vertical`]: { [`> ${componentCls}-bar`]: {
|
|
20
|
-
[`${componentCls}-bar-collapse-previous`]: {
|
|
21
|
-
insetInlineEnd: "50%",
|
|
22
|
-
insetInlineStart: "unset"
|
|
23
|
-
},
|
|
24
|
-
[`${componentCls}-bar-collapse-next`]: {
|
|
25
|
-
insetInlineEnd: "50%",
|
|
26
|
-
insetInlineStart: "unset"
|
|
27
|
-
}
|
|
28
|
-
} }
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
6
|
const centerStyle = {
|
|
32
7
|
position: "absolute",
|
|
33
8
|
top: "50%",
|
|
@@ -39,10 +14,10 @@ const centerStyle = {
|
|
|
39
14
|
};
|
|
40
15
|
const genSplitterStyle = (token) => {
|
|
41
16
|
const { componentCls, colorFill, splitBarDraggableSize, splitBarSize, splitTriggerSize, controlItemBgHover, controlItemBgActive, controlItemBgActiveHover, colorPrimary, antCls, calc } = token;
|
|
17
|
+
const [, varRef] = genCssVar(antCls, "splitter");
|
|
42
18
|
const splitBarCls = `${componentCls}-bar`;
|
|
43
19
|
const splitMaskCls = `${componentCls}-mask`;
|
|
44
20
|
const splitPanelCls = `${componentCls}-panel`;
|
|
45
|
-
const [, varRef] = genCssVar(antCls, "splitter");
|
|
46
21
|
const halfTriggerSize = calc(splitTriggerSize).div(2).equal();
|
|
47
22
|
const splitterBarPreviewStyle = {
|
|
48
23
|
position: "absolute",
|
|
@@ -239,8 +214,7 @@ const genSplitterStyle = (token) => {
|
|
|
239
214
|
overflow: "hidden"
|
|
240
215
|
},
|
|
241
216
|
[`&:has(${componentCls}:only-child)`]: { overflow: "hidden" }
|
|
242
|
-
}
|
|
243
|
-
...genRtlStyle(token)
|
|
217
|
+
}
|
|
244
218
|
} };
|
|
245
219
|
};
|
|
246
220
|
const prepareComponentToken = (token) => {
|
|
@@ -3,13 +3,28 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
3
3
|
import "../_util/hooks/index.mjs";
|
|
4
4
|
import { FormatConfig, valueType } from "./utils.mjs";
|
|
5
5
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue299 from "vue";
|
|
7
7
|
import { CSSProperties, SlotsType, VNodeChild } from "vue";
|
|
8
8
|
|
|
9
9
|
//#region src/statistic/Statistic.d.ts
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
interface StatisticSemanticClassNames {
|
|
11
|
+
root?: string;
|
|
12
|
+
content?: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
header?: string;
|
|
15
|
+
prefix?: string;
|
|
16
|
+
suffix?: string;
|
|
17
|
+
}
|
|
18
|
+
interface StatisticSemanticStyles {
|
|
19
|
+
root?: CSSProperties;
|
|
20
|
+
content?: CSSProperties;
|
|
21
|
+
title?: CSSProperties;
|
|
22
|
+
header?: CSSProperties;
|
|
23
|
+
prefix?: CSSProperties;
|
|
24
|
+
suffix?: CSSProperties;
|
|
25
|
+
}
|
|
26
|
+
type StatisticClassNamesType = SemanticClassNamesType<StatisticProps, StatisticSemanticClassNames>;
|
|
27
|
+
type StatisticStylesType = SemanticStylesType<StatisticProps, StatisticSemanticStyles>;
|
|
13
28
|
type StatisticRectProps = FormatConfig & ComponentBaseProps & {
|
|
14
29
|
value?: valueType;
|
|
15
30
|
valueStyle?: CSSProperties;
|
|
@@ -33,7 +48,7 @@ interface StatisticSlots {
|
|
|
33
48
|
prefix: () => any;
|
|
34
49
|
suffix: () => any;
|
|
35
50
|
}
|
|
36
|
-
declare const Statistic:
|
|
51
|
+
declare const Statistic: vue299.DefineSetupFnComponent<StatisticRectProps, StatisticEmits, SlotsType<StatisticSlots>, FormatConfig & ComponentBaseProps & {
|
|
37
52
|
value?: valueType;
|
|
38
53
|
valueStyle?: CSSProperties;
|
|
39
54
|
valueRender?: (node: any) => VNodeChild;
|
|
@@ -45,6 +60,6 @@ declare const Statistic: vue328.DefineSetupFnComponent<StatisticRectProps, Stati
|
|
|
45
60
|
styles?: StatisticStylesType;
|
|
46
61
|
} & {
|
|
47
62
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
48
|
-
},
|
|
63
|
+
}, vue299.PublicProps>;
|
|
49
64
|
//#endregion
|
|
50
65
|
export { Statistic, StatisticClassNamesType, StatisticProps, StatisticSlots, StatisticStylesType };
|
|
@@ -62,7 +62,7 @@ const Statistic = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit,
|
|
|
62
62
|
"style": mergedStyles.value.header
|
|
63
63
|
}, [createVNode("div", {
|
|
64
64
|
"class": titleClassNames,
|
|
65
|
-
"style": mergedStyles.value.
|
|
65
|
+
"style": mergedStyles.value.title
|
|
66
66
|
}, [title])]), createVNode(skeleton_default, {
|
|
67
67
|
"paragraph": false,
|
|
68
68
|
"loading": loading,
|
|
@@ -2,7 +2,7 @@ import { VueNode } from "../_util/type.mjs";
|
|
|
2
2
|
import { FormatConfig, valueType } from "./utils.mjs";
|
|
3
3
|
import { StatisticClassNamesType, StatisticProps, StatisticSlots, StatisticStylesType } from "./Statistic.mjs";
|
|
4
4
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue295 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: vue295.DefineSetupFnComponent<StatisticTimerProps, StatisticTimeEmits, SlotsType<StatisticSlots>, FormatConfig & ComponentBaseProps & {
|
|
23
23
|
value?: valueType;
|
|
24
|
-
valueStyle?:
|
|
25
|
-
valueRender?: (node: any) =>
|
|
24
|
+
valueStyle?: vue295.CSSProperties;
|
|
25
|
+
valueRender?: (node: any) => vue295.VNodeChild;
|
|
26
26
|
title?: VueNode;
|
|
27
27
|
prefix?: VueNode;
|
|
28
28
|
suffix?: VueNode;
|
|
@@ -34,6 +34,6 @@ declare const StatisticTimer: vue324.DefineSetupFnComponent<StatisticTimerProps,
|
|
|
34
34
|
format?: string;
|
|
35
35
|
} & {
|
|
36
36
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
37
|
-
},
|
|
37
|
+
}, vue295.PublicProps>;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { StatisticTimeEmits, StatisticTimer, StatisticTimerProps, TimerType };
|
|
@@ -3,13 +3,13 @@ import { FormatConfig, valueType } from "./utils.mjs";
|
|
|
3
3
|
import { Statistic, StatisticClassNamesType, StatisticProps, StatisticSlots, StatisticStylesType } from "./Statistic.mjs";
|
|
4
4
|
import { StatisticTimeEmits, StatisticTimer as StatisticTimer$1, StatisticTimerProps, TimerType } from "./Timer.mjs";
|
|
5
5
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue165 from "vue";
|
|
7
7
|
|
|
8
8
|
//#region src/statistic/index.d.ts
|
|
9
|
-
declare const StatisticTimer:
|
|
9
|
+
declare const StatisticTimer: vue165.DefineSetupFnComponent<StatisticTimerProps, StatisticTimeEmits, vue165.SlotsType<StatisticSlots>, FormatConfig & ComponentBaseProps & {
|
|
10
10
|
value?: valueType;
|
|
11
|
-
valueStyle?:
|
|
12
|
-
valueRender?: (node: any) =>
|
|
11
|
+
valueStyle?: vue165.CSSProperties;
|
|
12
|
+
valueRender?: (node: any) => vue165.VNodeChild;
|
|
13
13
|
title?: VueNode;
|
|
14
14
|
prefix?: VueNode;
|
|
15
15
|
suffix?: VueNode;
|
|
@@ -21,7 +21,7 @@ declare const StatisticTimer: vue152.DefineSetupFnComponent<StatisticTimerProps,
|
|
|
21
21
|
format?: string;
|
|
22
22
|
} & {
|
|
23
23
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
24
|
-
},
|
|
24
|
+
}, vue165.PublicProps>;
|
|
25
25
|
declare const _default: typeof Statistic & {
|
|
26
26
|
Timer: typeof StatisticTimer$1;
|
|
27
27
|
};
|
package/dist/steps/context.mjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { inject, ref } from "vue";
|
|
1
|
+
import { inject, provide, ref } from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/steps/context.ts
|
|
4
4
|
const InternalContext = Symbol("InternalContext");
|
|
5
|
+
function provideInternalContext(value) {
|
|
6
|
+
provide(InternalContext, value);
|
|
7
|
+
}
|
|
5
8
|
/**
|
|
6
9
|
* When use this context. Will trade as sub component instead of root Steps component.
|
|
7
10
|
*/
|
|
@@ -10,4 +13,4 @@ function useInternalContext() {
|
|
|
10
13
|
}
|
|
11
14
|
|
|
12
15
|
//#endregion
|
|
13
|
-
export { useInternalContext };
|
|
16
|
+
export { provideInternalContext, useInternalContext };
|
package/dist/steps/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VueNode } from "../_util/type.mjs";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
|
|
3
3
|
import "../_util/hooks/index.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue170 from "vue";
|
|
5
5
|
import { CSSProperties, SlotsType } from "vue";
|
|
6
6
|
import { StepsProps } from "@v-c/steps";
|
|
7
7
|
|
|
@@ -11,9 +11,32 @@ type IconRenderType = (params: {
|
|
|
11
11
|
oriNode: any;
|
|
12
12
|
info: Pick<RcIconRenderTypeInfo, 'index' | 'active' | 'item' | 'components'>;
|
|
13
13
|
}) => any;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
interface StepsSemanticClassNames {
|
|
15
|
+
root?: string;
|
|
16
|
+
item?: string;
|
|
17
|
+
itemWrapper?: string;
|
|
18
|
+
itemIcon?: string;
|
|
19
|
+
itemSection?: string;
|
|
20
|
+
itemHeader?: string;
|
|
21
|
+
itemTitle?: string;
|
|
22
|
+
itemSubtitle?: string;
|
|
23
|
+
itemContent?: string;
|
|
24
|
+
itemRail?: string;
|
|
25
|
+
}
|
|
26
|
+
interface StepsSemanticStyles {
|
|
27
|
+
root?: CSSProperties;
|
|
28
|
+
item?: CSSProperties;
|
|
29
|
+
itemWrapper?: CSSProperties;
|
|
30
|
+
itemIcon?: CSSProperties;
|
|
31
|
+
itemSection?: CSSProperties;
|
|
32
|
+
itemHeader?: CSSProperties;
|
|
33
|
+
itemTitle?: CSSProperties;
|
|
34
|
+
itemSubtitle?: CSSProperties;
|
|
35
|
+
itemContent?: CSSProperties;
|
|
36
|
+
itemRail?: CSSProperties;
|
|
37
|
+
}
|
|
38
|
+
type StepsClassNamesType = SemanticClassNamesType<StepsProps$1, StepsSemanticClassNames>;
|
|
39
|
+
type StepsStylesType = SemanticStylesType<StepsProps$1, StepsSemanticStyles>;
|
|
17
40
|
interface StepItem {
|
|
18
41
|
class?: string;
|
|
19
42
|
style?: CSSProperties;
|
|
@@ -34,8 +57,7 @@ type ProgressDotRender = (params: {
|
|
|
34
57
|
info: {
|
|
35
58
|
index: number;
|
|
36
59
|
status: NonNullable<StepsProps['status']>;
|
|
37
|
-
title: any;
|
|
38
|
-
/** @deprecated Please use `content` instead. */
|
|
60
|
+
title: any; /** @deprecated Please use `content` instead. */
|
|
39
61
|
description: any;
|
|
40
62
|
content: any;
|
|
41
63
|
};
|
|
@@ -80,8 +102,8 @@ interface StepsSlots {
|
|
|
80
102
|
default: () => any;
|
|
81
103
|
iconRender?: IconRenderType;
|
|
82
104
|
}
|
|
83
|
-
declare const Steps:
|
|
105
|
+
declare const Steps: vue170.DefineSetupFnComponent<StepsProps$1, StepsEmits, SlotsType<StepsSlots>, StepsProps$1 & {
|
|
84
106
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
85
|
-
},
|
|
107
|
+
}, vue170.PublicProps>;
|
|
86
108
|
//#endregion
|
|
87
|
-
export { Steps, StepsProps$1 as StepsProps };
|
|
109
|
+
export { StepItem, Steps, StepsProps$1 as StepsProps, StepsSemanticClassNames, StepsSemanticStyles };
|
package/dist/steps/index.mjs
CHANGED
|
@@ -172,9 +172,9 @@ const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
|
|
|
172
172
|
"components": components.value,
|
|
173
173
|
"current": current,
|
|
174
174
|
"items": mergedItems.value,
|
|
175
|
-
"onChange": (current
|
|
176
|
-
onChange?.(current
|
|
177
|
-
emit("update:current", current
|
|
175
|
+
"onChange": (current) => {
|
|
176
|
+
onChange?.(current);
|
|
177
|
+
emit("update:current", current);
|
|
178
178
|
},
|
|
179
179
|
"iconRender": internalIconRender,
|
|
180
180
|
"itemRender": itemRender,
|