antdv-next 1.0.0-beta.3 → 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 +21 -5
- 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/carousel/index.d.mts +3 -3
- package/dist/cascader/Panel.d.mts +3 -3
- package/dist/cascader/index.d.mts +31 -10
- 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/BackTop.d.mts +3 -3
- package/dist/float-button/FloatButton.d.mts +6 -7
- package/dist/float-button/FloatButtonGroup.d.mts +25 -6
- 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/grid/index.d.mts +2 -2
- package/dist/grid/row.d.mts +2 -2
- 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 +2 -3
- 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 +1918 -1873
- package/web-types.json +6815 -7198
- package/dist/timeline/TimelineItem.d.mts +0 -20
- package/dist/timeline/TimelineItem.mjs +0 -115
- package/dist/timeline/TimelineItemList.mjs +0 -158
package/dist/tabs/TabPane.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EmptyEmit } from "../_util/type.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue352 from "vue";
|
|
3
3
|
import { CSSProperties, SlotsType } from "vue";
|
|
4
4
|
import { TabPaneProps } from "@v-c/tabs";
|
|
5
5
|
|
|
@@ -16,8 +16,8 @@ interface TabPaneSlots {
|
|
|
16
16
|
closeIcon?: () => any;
|
|
17
17
|
icon?: () => any;
|
|
18
18
|
}
|
|
19
|
-
declare const TabPane:
|
|
19
|
+
declare const TabPane: vue352.DefineSetupFnComponent<TabPaneProps$1, EmptyEmit, SlotsType<TabPaneSlots>, TabPaneProps$1 & {
|
|
20
20
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
21
|
-
},
|
|
21
|
+
}, vue352.PublicProps>;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { TabPane, TabPaneProps$1 as TabPaneProps };
|
package/dist/tabs/index.d.mts
CHANGED
|
@@ -1,24 +1,40 @@
|
|
|
1
1
|
import { SizeType } from "../config-provider/SizeContext.mjs";
|
|
2
2
|
import { VueNode } from "../_util/type.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
|
|
4
4
|
import "../_util/hooks/index.mjs";
|
|
5
5
|
import { TabPane, TabPaneProps as TabPaneProps$1 } from "./TabPane.mjs";
|
|
6
6
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
7
|
-
import * as
|
|
8
|
-
import { SlotsType } from "vue";
|
|
7
|
+
import * as vue174 from "vue";
|
|
8
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
9
9
|
import { GetIndicatorSize, MoreProps, Tab, TabsProps } from "@v-c/tabs";
|
|
10
10
|
|
|
11
11
|
//#region src/tabs/index.d.ts
|
|
12
12
|
type TabsType = 'line' | 'card' | 'editable-card';
|
|
13
13
|
type TabPosition = 'top' | 'right' | 'bottom' | 'left';
|
|
14
14
|
type TabPlacement = 'top' | 'end' | 'bottom' | 'start';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
interface TabsSemanticClassNames {
|
|
16
|
+
root?: string;
|
|
17
|
+
item?: string;
|
|
18
|
+
indicator?: string;
|
|
19
|
+
content?: string;
|
|
20
|
+
header?: string;
|
|
21
|
+
}
|
|
22
|
+
interface TabsSemanticStyles {
|
|
23
|
+
root?: CSSProperties;
|
|
24
|
+
item?: CSSProperties;
|
|
25
|
+
indicator?: CSSProperties;
|
|
26
|
+
content?: CSSProperties;
|
|
27
|
+
header?: CSSProperties;
|
|
28
|
+
}
|
|
29
|
+
type TabsClassNamesType = SemanticClassNamesType<TabsProps$1, TabsSemanticClassNames, {
|
|
30
|
+
popup?: {
|
|
31
|
+
root?: string;
|
|
32
|
+
};
|
|
19
33
|
}>;
|
|
20
|
-
type TabsStylesType = SemanticStylesType<TabsProps$1,
|
|
21
|
-
popup?:
|
|
34
|
+
type TabsStylesType = SemanticStylesType<TabsProps$1, TabsSemanticStyles, {
|
|
35
|
+
popup?: {
|
|
36
|
+
root?: CSSProperties;
|
|
37
|
+
};
|
|
22
38
|
}>;
|
|
23
39
|
interface CompatibilityProps {
|
|
24
40
|
/** @deprecated Please use `destroyOnHidden` instead */
|
|
@@ -87,8 +103,8 @@ interface TabsSlots {
|
|
|
87
103
|
rightExtra?: () => any;
|
|
88
104
|
leftExtra?: () => any;
|
|
89
105
|
}
|
|
90
|
-
declare const Tabs:
|
|
106
|
+
declare const Tabs: vue174.DefineSetupFnComponent<TabsProps$1, TabsEmits, SlotsType<TabsSlots>, TabsProps$1 & {
|
|
91
107
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
92
|
-
},
|
|
108
|
+
}, vue174.PublicProps>;
|
|
93
109
|
//#endregion
|
|
94
110
|
export { Tab$1 as Tab, Tabs, TabsEmits, TabsProps$1 as TabsProps, TabsRef, TabsSlots };
|
package/dist/tabs/index.mjs
CHANGED
|
@@ -19,7 +19,7 @@ import VcTabs from "@v-c/tabs";
|
|
|
19
19
|
//#region src/tabs/index.tsx
|
|
20
20
|
const Tabs = /* @__PURE__ */ defineComponent((props, { attrs, slots, emit, expose }) => {
|
|
21
21
|
const { classes, styles, type, size: customSize, tabPlacement: tabPlacementProp, tabPosition, hideAdd, centered, indicatorSize } = toPropsRefs(props, "classes", "styles", "type", "size", "tabPlacement", "tabPosition", "hideAdd", "centered", "indicatorSize");
|
|
22
|
-
const classNames
|
|
22
|
+
const classNames = toRef(props, "classes");
|
|
23
23
|
const more = toRef(props, "more");
|
|
24
24
|
const popupClassName = toRef(props, "popupClassName");
|
|
25
25
|
const indicator = toRef(props, "indicator");
|
|
@@ -43,7 +43,7 @@ const Tabs = /* @__PURE__ */ defineComponent((props, { attrs, slots, emit, expos
|
|
|
43
43
|
items: mergedItems.value
|
|
44
44
|
};
|
|
45
45
|
});
|
|
46
|
-
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classNames
|
|
46
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classNames, classes), useToArr(contextStyles, styles), useToProps(mergedProps), computed(() => ({ popup: { _default: "root" } })));
|
|
47
47
|
const mergedAnimated = computed(() => useAnimateConfig(prefixCls.value, props.animated));
|
|
48
48
|
const mergedIndicator = computed(() => ({
|
|
49
49
|
align: indicator.value?.align,
|
|
@@ -140,9 +140,9 @@ const Tabs = /* @__PURE__ */ defineComponent((props, { attrs, slots, emit, expos
|
|
|
140
140
|
...attrStyle
|
|
141
141
|
};
|
|
142
142
|
let renderTabBar;
|
|
143
|
-
if (slots.renderTabBar || props.renderTabBar) renderTabBar = (props
|
|
144
|
-
return getSlotPropsFnRun(slots, props
|
|
145
|
-
props
|
|
143
|
+
if (slots.renderTabBar || props.renderTabBar) renderTabBar = (props, TabNavListComponent) => {
|
|
144
|
+
return getSlotPropsFnRun(slots, props, "renderTabBar", true, {
|
|
145
|
+
props,
|
|
146
146
|
TabNavListComponent
|
|
147
147
|
});
|
|
148
148
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VueNode } from "../_util/type.mjs";
|
|
2
2
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue358 from "vue";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/tag/CheckableTag.d.ts
|
|
@@ -27,8 +27,8 @@ interface CheckableTagSlots {
|
|
|
27
27
|
default: () => any;
|
|
28
28
|
icon: () => any;
|
|
29
29
|
}
|
|
30
|
-
declare const CheckableTag:
|
|
30
|
+
declare const CheckableTag: vue358.DefineSetupFnComponent<CheckableTagProps, CheckableTagEmits, SlotsType<CheckableTagSlots>, CheckableTagProps & {
|
|
31
31
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
32
|
-
},
|
|
32
|
+
}, vue358.PublicProps>;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { CheckableTag, CheckableTagProps };
|
|
@@ -2,7 +2,7 @@ import { VueNode } from "../_util/type.mjs";
|
|
|
2
2
|
import { SemanticClassNames, SemanticStyles } 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 vue364 from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/tag/CheckableTagGroup.d.ts
|
|
8
8
|
type CheckableTagDefaultValue = string | number;
|
|
@@ -36,8 +36,8 @@ interface CheckableTagGroupEmits<CheckableTagValue = CheckableTagDefaultValue> {
|
|
|
36
36
|
'update:value': (value: CheckableTagValue | CheckableTagValue[] | null) => void;
|
|
37
37
|
[key: string]: (...args: any[]) => any;
|
|
38
38
|
}
|
|
39
|
-
declare const CheckableTagGroup:
|
|
39
|
+
declare const CheckableTagGroup: vue364.DefineSetupFnComponent<CheckableTagGroupProps<CheckableTagDefaultValue>, CheckableTagGroupEmits<CheckableTagDefaultValue>, {}, CheckableTagGroupProps<CheckableTagDefaultValue> & {
|
|
40
40
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
41
|
-
},
|
|
41
|
+
}, vue364.PublicProps>;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { CheckableTagGroup };
|
package/dist/tag/index.d.mts
CHANGED
|
@@ -6,14 +6,23 @@ import { ClosableType } from "../_util/hooks/useClosable.mjs";
|
|
|
6
6
|
import { CheckableTag, CheckableTagProps } from "./CheckableTag.mjs";
|
|
7
7
|
import { CheckableTagGroup } from "./CheckableTagGroup.mjs";
|
|
8
8
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
9
|
-
import * as
|
|
10
|
-
import { SlotsType } from "vue";
|
|
9
|
+
import * as vue176 from "vue";
|
|
10
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
11
11
|
import { LiteralUnion } from "@v-c/util/dist/type";
|
|
12
12
|
|
|
13
13
|
//#region src/tag/index.d.ts
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
interface TagSemanticClassNames {
|
|
15
|
+
root?: string;
|
|
16
|
+
icon?: string;
|
|
17
|
+
content?: string;
|
|
18
|
+
}
|
|
19
|
+
interface TagSemanticStyles {
|
|
20
|
+
root?: CSSProperties;
|
|
21
|
+
icon?: CSSProperties;
|
|
22
|
+
content?: CSSProperties;
|
|
23
|
+
}
|
|
24
|
+
type TagClassNamesType = SemanticClassNamesType<TagProps, TagSemanticClassNames>;
|
|
25
|
+
type TagStylesType = SemanticStylesType<TagProps, TagSemanticStyles>;
|
|
17
26
|
interface TagProps extends ComponentBaseProps {
|
|
18
27
|
color?: LiteralUnion<PresetColorType | PresetStatusColorType>;
|
|
19
28
|
/** Advised to use closeIcon instead. */
|
|
@@ -38,9 +47,9 @@ interface TagEmits {
|
|
|
38
47
|
close: (ev: MouseEvent) => void;
|
|
39
48
|
[key: string]: (...args: any[]) => any;
|
|
40
49
|
}
|
|
41
|
-
declare const InternalTag:
|
|
50
|
+
declare const InternalTag: vue176.DefineSetupFnComponent<TagProps, TagEmits, SlotsType<TagSlots>, TagProps & {
|
|
42
51
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
43
|
-
},
|
|
52
|
+
}, vue176.PublicProps>;
|
|
44
53
|
declare const Tag: typeof InternalTag & {
|
|
45
54
|
CheckableTag: typeof CheckableTag;
|
|
46
55
|
};
|
package/dist/tag/index.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import { useComponentBaseConfig, useConfig } from "../config-provider/context.mj
|
|
|
2
2
|
import { pureAttrs, useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.mjs";
|
|
3
3
|
import "../_util/hooks/index.mjs";
|
|
4
4
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.mjs";
|
|
5
|
-
import { replaceElement } from "../_util/vueNode.mjs";
|
|
6
5
|
import { useDisabledContext } from "../config-provider/DisabledContext.mjs";
|
|
7
6
|
import wave_default from "../_util/wave/index.mjs";
|
|
7
|
+
import { replaceElement } from "../_util/vueNode.mjs";
|
|
8
8
|
import useClosable, { pickClosable } from "../_util/hooks/useClosable.mjs";
|
|
9
9
|
import style_default from "./style/index.mjs";
|
|
10
10
|
import CheckableTag_default from "./CheckableTag.mjs";
|
package/dist/tag/style/index.mjs
CHANGED
|
@@ -124,7 +124,7 @@ const prepareToken = (token) => {
|
|
|
124
124
|
const prepareComponentToken = (token) => {
|
|
125
125
|
const solidTextColor = isBright(new AggregationColor(token.colorBgSolid), "#fff") ? "#000" : "#fff";
|
|
126
126
|
return {
|
|
127
|
-
defaultBg: new FastColor(token.
|
|
127
|
+
defaultBg: new FastColor(token.colorFillTertiary).onBackground(token.colorBgContainer).toHexString(),
|
|
128
128
|
defaultColor: token.colorText,
|
|
129
129
|
solidTextColor
|
|
130
130
|
};
|
package/dist/theme/index.d.mts
CHANGED
|
@@ -16,8 +16,7 @@ declare function useToken(): {
|
|
|
16
16
|
hashId: vue2.Ref<string, string>;
|
|
17
17
|
};
|
|
18
18
|
declare const _default: {
|
|
19
|
-
/** Default seedToken */
|
|
20
|
-
defaultSeed: SeedToken;
|
|
19
|
+
/** Default seedToken */defaultSeed: SeedToken;
|
|
21
20
|
useToken: typeof useToken;
|
|
22
21
|
defaultAlgorithm: typeof derivative;
|
|
23
22
|
darkAlgorithm: _antdv_next_cssinjs0.DerivativeFunc<SeedToken, MapToken>;
|
package/dist/theme/useToken.mjs
CHANGED
|
@@ -69,10 +69,10 @@ function useToken() {
|
|
|
69
69
|
const salt = computed(() => `${version_default}-${designContext.value.hashed || ""}`);
|
|
70
70
|
const mergedTheme = computed(() => designContext.value?.theme || theme_default);
|
|
71
71
|
const cssVar = computed(() => {
|
|
72
|
-
const cssVar
|
|
72
|
+
const cssVar = designContext.value.cssVar;
|
|
73
73
|
return {
|
|
74
|
-
prefix: cssVar
|
|
75
|
-
key: cssVar
|
|
74
|
+
prefix: cssVar?.prefix ?? "ant",
|
|
75
|
+
key: cssVar?.key ?? "css-var-root"
|
|
76
76
|
};
|
|
77
77
|
});
|
|
78
78
|
const cachedToken = useCacheToken(mergedTheme, computed(() => [seed_default, designContext.value.token]), computed(() => {
|
|
@@ -17,7 +17,7 @@ const { genComponentStyleHook, genStyleHooks, genSubStyleComponent } = genStyleU
|
|
|
17
17
|
});
|
|
18
18
|
},
|
|
19
19
|
useToken() {
|
|
20
|
-
const [theme, realToken, hashId, token, cssVar] = useToken();
|
|
20
|
+
const [theme, realToken, hashId, token, cssVar, zeroRuntime] = useToken();
|
|
21
21
|
return {
|
|
22
22
|
theme,
|
|
23
23
|
realToken,
|
|
@@ -26,7 +26,8 @@ const { genComponentStyleHook, genStyleHooks, genSubStyleComponent } = genStyleU
|
|
|
26
26
|
cssVar: computed(() => cssVar?.value ?? {
|
|
27
27
|
prefix: "",
|
|
28
28
|
key: ""
|
|
29
|
-
})
|
|
29
|
+
}),
|
|
30
|
+
zeroRuntime
|
|
30
31
|
};
|
|
31
32
|
},
|
|
32
33
|
useCSP: () => {
|
|
@@ -1,21 +1,45 @@
|
|
|
1
1
|
import { AnyObject, VueNode } from "../_util/type.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
|
|
3
3
|
import "../_util/hooks/index.mjs";
|
|
4
4
|
import { InputStatus } from "../_util/statusUtils.mjs";
|
|
5
5
|
import "../date-picker/generatePicker/index.mjs";
|
|
6
6
|
import { PickerProps as PickerProps$1, RangePickerProps as RangePickerProps$1 } from "../date-picker/generatePicker/interface.mjs";
|
|
7
|
-
import * as
|
|
7
|
+
import * as vue13 from "vue";
|
|
8
8
|
import { CSSProperties, SlotsType } from "vue";
|
|
9
9
|
import { PickerMode } from "@v-c/picker";
|
|
10
10
|
|
|
11
11
|
//#region src/time-picker/index.d.ts
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
interface TimePickerSemanticClassNames {
|
|
13
|
+
root?: string;
|
|
14
|
+
prefix?: string;
|
|
15
|
+
input?: string;
|
|
16
|
+
suffix?: string;
|
|
17
|
+
}
|
|
18
|
+
interface TimePickerSemanticStyles {
|
|
19
|
+
root?: CSSProperties;
|
|
20
|
+
prefix?: CSSProperties;
|
|
21
|
+
input?: CSSProperties;
|
|
22
|
+
suffix?: CSSProperties;
|
|
23
|
+
}
|
|
24
|
+
interface TimePickerPanelSemanticClassNames {
|
|
25
|
+
root?: string;
|
|
26
|
+
content?: string;
|
|
27
|
+
item?: string;
|
|
28
|
+
footer?: string;
|
|
29
|
+
container?: string;
|
|
30
|
+
}
|
|
31
|
+
interface TimePickerPanelSemanticStyles {
|
|
32
|
+
root?: CSSProperties;
|
|
33
|
+
content?: CSSProperties;
|
|
34
|
+
item?: CSSProperties;
|
|
35
|
+
footer?: CSSProperties;
|
|
36
|
+
container?: CSSProperties;
|
|
37
|
+
}
|
|
38
|
+
type TimePickerClassNames = SemanticClassNamesType<TimePickerProps, TimePickerSemanticClassNames, {
|
|
39
|
+
popup?: string | TimePickerPanelSemanticClassNames;
|
|
16
40
|
}>;
|
|
17
|
-
type TimePickerStyles = SemanticStylesType<TimePickerProps,
|
|
18
|
-
popup?:
|
|
41
|
+
type TimePickerStyles = SemanticStylesType<TimePickerProps, TimePickerSemanticStyles, {
|
|
42
|
+
popup?: TimePickerPanelSemanticStyles;
|
|
19
43
|
}>;
|
|
20
44
|
interface PickerTimeProps<DateType extends AnyObject> extends Omit<PickerProps$1<DateType>, 'picker' | 'showTime'> {}
|
|
21
45
|
interface RangePickerTimeProps<DateType extends AnyObject> extends Omit<RangePickerProps$1<DateType>, 'showTime' | 'picker'> {
|
|
@@ -46,9 +70,9 @@ interface TimeRangePickerEmits<DateType = AnyObject> {
|
|
|
46
70
|
'keydown': (e: KeyboardEvent, preventDefault: VoidFunction) => void;
|
|
47
71
|
[key: string]: (...args: any[]) => void;
|
|
48
72
|
}
|
|
49
|
-
declare const RangePicker$1:
|
|
73
|
+
declare const RangePicker$1: vue13.DefineSetupFnComponent<TimeRangePickerProps, TimeRangePickerEmits<AnyObject>, {}, TimeRangePickerProps & {
|
|
50
74
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
51
|
-
},
|
|
75
|
+
}, vue13.PublicProps>;
|
|
52
76
|
interface TimePickerProps extends Omit<PickerTimeProps<AnyObject>, 'picker' | 'classes' | 'styles'> {
|
|
53
77
|
addon?: () => VueNode;
|
|
54
78
|
status?: InputStatus;
|
|
@@ -79,16 +103,16 @@ interface TimePickerEmits<DateType = AnyObject> {
|
|
|
79
103
|
'keydown': (e: KeyboardEvent, preventDefault: VoidFunction) => void;
|
|
80
104
|
[key: string]: (...args: any[]) => void;
|
|
81
105
|
}
|
|
82
|
-
declare const TimePicker:
|
|
106
|
+
declare const TimePicker: vue13.DefineSetupFnComponent<TimePickerProps, TimePickerEmits<AnyObject>, SlotsType<TimePickerSlots>, TimePickerProps & {
|
|
83
107
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
84
|
-
},
|
|
108
|
+
}, vue13.PublicProps>;
|
|
85
109
|
type MergedTimePicker = typeof TimePicker & {
|
|
86
110
|
RangePicker: typeof RangePicker$1;
|
|
87
111
|
_InternalPanelDoNotUseOrYouWillBeFired: any;
|
|
88
112
|
};
|
|
89
113
|
declare const _default: MergedTimePicker;
|
|
90
|
-
declare const TimeRangePicker:
|
|
114
|
+
declare const TimeRangePicker: vue13.DefineSetupFnComponent<TimeRangePickerProps, TimeRangePickerEmits<AnyObject>, {}, TimeRangePickerProps & {
|
|
91
115
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
92
|
-
},
|
|
116
|
+
}, vue13.PublicProps>;
|
|
93
117
|
//#endregion
|
|
94
118
|
export { TimePickerLocale, TimePickerProps, TimeRangePicker, TimeRangePickerProps, _default };
|
|
@@ -1527,7 +1527,7 @@ const TimePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expose
|
|
|
1527
1527
|
nativeElement: computed(() => pickerRef.value?.nativeElement)
|
|
1528
1528
|
});
|
|
1529
1529
|
return () => {
|
|
1530
|
-
const { addon, renderExtraFooter, classes
|
|
1530
|
+
const { addon, renderExtraFooter, classes, styles, popupClassName, popupStyle, variant, bordered, ...restProps } = props;
|
|
1531
1531
|
return createVNode(InternalTimePicker, mergeProps(attrs, restProps, {
|
|
1532
1532
|
"ref": pickerRef,
|
|
1533
1533
|
"mode": void 0,
|
|
@@ -1,47 +1,82 @@
|
|
|
1
1
|
import { EmptyEmit, VueNode } from "../_util/type.mjs";
|
|
2
|
+
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
|
|
3
|
+
import "../_util/hooks/index.mjs";
|
|
4
|
+
import { StepItem, StepsProps, StepsSemanticClassNames, StepsSemanticStyles } from "../steps/index.mjs";
|
|
2
5
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
+
import * as vue301 from "vue";
|
|
7
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
8
|
+
import { LiteralUnion } from "@v-c/util/dist/type";
|
|
6
9
|
|
|
7
10
|
//#region src/timeline/Timeline.d.ts
|
|
11
|
+
type Color = 'blue' | 'red' | 'green' | 'gray';
|
|
12
|
+
type ItemPlacement = 'start' | 'end';
|
|
13
|
+
type ItemPosition = 'left' | 'right' | 'start' | 'end';
|
|
14
|
+
interface TimelineItemType {
|
|
15
|
+
color?: LiteralUnion<Color>;
|
|
16
|
+
className?: string;
|
|
17
|
+
style?: CSSProperties;
|
|
18
|
+
classes?: NonNullable<StepItem['classes']>;
|
|
19
|
+
styles?: NonNullable<StepItem['styles']>;
|
|
20
|
+
placement?: ItemPlacement;
|
|
21
|
+
/** @deprecated please use `placement` instead */
|
|
22
|
+
position?: ItemPosition;
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
key?: string | number;
|
|
25
|
+
title?: VueNode;
|
|
26
|
+
content?: VueNode;
|
|
27
|
+
/** @deprecated Please use `title` instead */
|
|
28
|
+
label?: VueNode;
|
|
29
|
+
/** @deprecated Please use `content` instead */
|
|
30
|
+
children?: VueNode;
|
|
31
|
+
icon?: VueNode;
|
|
32
|
+
/** @deprecated Please use `icon` instead */
|
|
33
|
+
dot?: VueNode;
|
|
34
|
+
}
|
|
35
|
+
type TimelineSemanticClassNames = StepsSemanticClassNames;
|
|
36
|
+
type TimelineSemanticStyles = StepsSemanticStyles;
|
|
37
|
+
type TimelineClassNamesType = SemanticClassNamesType<TimelineProps, TimelineSemanticClassNames>;
|
|
8
38
|
interface TimelineProps extends ComponentBaseProps {
|
|
9
39
|
pending?: VueNode;
|
|
10
40
|
pendingDot?: VueNode;
|
|
11
41
|
reverse?: boolean;
|
|
12
|
-
mode?: 'left' | 'alternate' | 'right';
|
|
13
|
-
items?:
|
|
42
|
+
mode?: 'left' | 'alternate' | 'right' | 'start' | 'end';
|
|
43
|
+
items?: TimelineItemType[];
|
|
14
44
|
dotRender?: (params: {
|
|
15
|
-
item:
|
|
45
|
+
item: TimelineItemType;
|
|
16
46
|
index: number;
|
|
17
47
|
}) => void;
|
|
18
48
|
labelRender?: (params: {
|
|
19
|
-
item:
|
|
49
|
+
item: TimelineItemType;
|
|
20
50
|
index: number;
|
|
21
51
|
}) => void;
|
|
22
52
|
contentRender?: (params: {
|
|
23
|
-
item:
|
|
53
|
+
item: TimelineItemType;
|
|
24
54
|
index: number;
|
|
25
55
|
}) => void;
|
|
56
|
+
orientation?: 'horizontal' | 'vertical';
|
|
57
|
+
variant?: StepsProps['variant'];
|
|
58
|
+
classes?: TimelineClassNamesType;
|
|
59
|
+
styles?: TimelineStylesType;
|
|
26
60
|
}
|
|
61
|
+
type TimelineStylesType = SemanticStylesType<TimelineProps, TimelineSemanticStyles>;
|
|
27
62
|
interface TimelineSlots {
|
|
28
63
|
pending?: () => void;
|
|
29
64
|
pendingDot?: () => void;
|
|
30
65
|
dotRender?: (params: {
|
|
31
|
-
item:
|
|
66
|
+
item: TimelineItemType;
|
|
32
67
|
index: number;
|
|
33
68
|
}) => void;
|
|
34
69
|
labelRender?: (params: {
|
|
35
|
-
item:
|
|
70
|
+
item: TimelineItemType;
|
|
36
71
|
index: number;
|
|
37
72
|
}) => void;
|
|
38
73
|
contentRender?: (params: {
|
|
39
|
-
item:
|
|
74
|
+
item: TimelineItemType;
|
|
40
75
|
index: number;
|
|
41
76
|
}) => void;
|
|
42
77
|
}
|
|
43
|
-
declare const Timeline:
|
|
78
|
+
declare const Timeline: vue301.DefineSetupFnComponent<TimelineProps, EmptyEmit, SlotsType<TimelineSlots>, TimelineProps & {
|
|
44
79
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
45
|
-
},
|
|
80
|
+
}, vue301.PublicProps>;
|
|
46
81
|
//#endregion
|
|
47
|
-
export { Timeline, TimelineProps };
|
|
82
|
+
export { Timeline, TimelineItemType, TimelineProps, TimelineSemanticClassNames, TimelineSemanticStyles };
|
|
@@ -1,24 +1,75 @@
|
|
|
1
1
|
import { useBaseConfig } from "../config-provider/context.mjs";
|
|
2
2
|
import useCSSVarCls_default from "../config-provider/hooks/useCSSVarCls.mjs";
|
|
3
|
+
import { provideInternalContext } from "../steps/context.mjs";
|
|
4
|
+
import steps_default from "../steps/index.mjs";
|
|
3
5
|
import style_default from "./style/index.mjs";
|
|
4
|
-
import
|
|
5
|
-
import { createVNode, defineComponent, mergeProps } from "vue";
|
|
6
|
+
import useItems_default from "./useItems.mjs";
|
|
7
|
+
import { computed, createVNode, defineComponent, mergeProps, ref, toRefs } from "vue";
|
|
6
8
|
import { classNames } from "@v-c/util";
|
|
7
9
|
import { omit } from "es-toolkit";
|
|
10
|
+
import { useUnstableProvider } from "@v-c/steps/dist/UnstableContext.js";
|
|
8
11
|
|
|
9
12
|
//#region src/timeline/Timeline.tsx
|
|
10
13
|
const Timeline = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
11
|
-
|
|
14
|
+
provideInternalContext(ref({
|
|
15
|
+
rootComponent: "ol",
|
|
16
|
+
itemComponent: "li"
|
|
17
|
+
}));
|
|
18
|
+
const { reverse } = toRefs(props);
|
|
19
|
+
const orientation = computed(() => props.orientation || "vertical");
|
|
20
|
+
useUnstableProvider({ railFollowPrevStatus: reverse });
|
|
21
|
+
const { prefixCls, timeline, direction } = useBaseConfig("timeline", props);
|
|
22
|
+
const items = computed(() => props.items);
|
|
23
|
+
const pending = computed(() => props.pending);
|
|
24
|
+
const pendingDot = computed(() => props.pendingDot);
|
|
25
|
+
const mergedMode = computed(() => {
|
|
26
|
+
if (props.mode === "left") return "start";
|
|
27
|
+
if (props.mode === "right") return "end";
|
|
28
|
+
return [
|
|
29
|
+
"alternate",
|
|
30
|
+
"start",
|
|
31
|
+
"end"
|
|
32
|
+
].includes(props.mode) ? props.mode : "start";
|
|
33
|
+
});
|
|
12
34
|
const rootCls = useCSSVarCls_default(prefixCls);
|
|
13
|
-
const [hashId, cssVarCls] = style_default(prefixCls
|
|
35
|
+
const [hashId, cssVarCls] = style_default(prefixCls);
|
|
36
|
+
const rawItems = useItems_default(rootCls, prefixCls, mergedMode, items, pending, pendingDot);
|
|
37
|
+
const mergedItems = computed(() => {
|
|
38
|
+
return props.reverse ? [...rawItems.value].reverse() : rawItems.value;
|
|
39
|
+
});
|
|
40
|
+
const layoutAlternate = computed(() => {
|
|
41
|
+
return mergedMode.value === "alternate" || orientation.value === "vertical" && mergedItems.value.some((item) => item.title);
|
|
42
|
+
});
|
|
43
|
+
const mergedClasses = computed(() => {
|
|
44
|
+
return {
|
|
45
|
+
item: `${prefixCls.value}-item`,
|
|
46
|
+
itemTitle: `${prefixCls.value}-item-title`,
|
|
47
|
+
itemIcon: `${prefixCls.value}-item-icon`,
|
|
48
|
+
itemContent: `${prefixCls.value}-item-content`,
|
|
49
|
+
itemRail: `${prefixCls.value}-item-rail`,
|
|
50
|
+
itemWrapper: `${prefixCls.value}-item-wrapper`,
|
|
51
|
+
itemSection: `${prefixCls.value}-item-section`,
|
|
52
|
+
itemHeader: `${prefixCls.value}-item-header`
|
|
53
|
+
};
|
|
54
|
+
});
|
|
14
55
|
return () => {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
56
|
+
const { variant = "outlined" } = props;
|
|
57
|
+
return createVNode(steps_default, mergeProps(omit(attrs, ["class", "style"]), omit(props, ["items", "prefixCls"]), {
|
|
58
|
+
"class": classNames(timeline.value?.class, attrs.class, rootCls.value, hashId.value, cssVarCls.value, prefixCls.value, {
|
|
59
|
+
[`${prefixCls.value}-${orientation.value}`]: orientation.value === "horizontal",
|
|
60
|
+
[`${prefixCls.value}-layout-alternate`]: layoutAlternate.value,
|
|
61
|
+
[`${prefixCls.value}-rtl`]: direction.value === "rtl"
|
|
62
|
+
}),
|
|
63
|
+
"classes": mergedClasses.value,
|
|
64
|
+
"style": {
|
|
65
|
+
...timeline?.value?.style || {},
|
|
66
|
+
...attrs.style || {}
|
|
67
|
+
},
|
|
68
|
+
"variant": variant,
|
|
69
|
+
"orientation": orientation.value,
|
|
70
|
+
"type": "dot",
|
|
71
|
+
"items": mergedItems.value,
|
|
72
|
+
"current": mergedItems.value.length - 1
|
|
22
73
|
}), slots);
|
|
23
74
|
};
|
|
24
75
|
}, {
|
|
@@ -77,6 +128,26 @@ const Timeline = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
77
128
|
required: false,
|
|
78
129
|
default: void 0
|
|
79
130
|
},
|
|
131
|
+
orientation: {
|
|
132
|
+
type: String,
|
|
133
|
+
required: false,
|
|
134
|
+
default: void 0
|
|
135
|
+
},
|
|
136
|
+
variant: {
|
|
137
|
+
type: String,
|
|
138
|
+
required: false,
|
|
139
|
+
default: void 0
|
|
140
|
+
},
|
|
141
|
+
classes: {
|
|
142
|
+
type: [Object, Function],
|
|
143
|
+
required: false,
|
|
144
|
+
default: void 0
|
|
145
|
+
},
|
|
146
|
+
styles: {
|
|
147
|
+
type: [Object, Function],
|
|
148
|
+
required: false,
|
|
149
|
+
default: void 0
|
|
150
|
+
},
|
|
80
151
|
rootClass: {
|
|
81
152
|
type: String,
|
|
82
153
|
required: false,
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Timeline, TimelineProps } from "./Timeline.mjs";
|
|
1
|
+
import { Timeline, TimelineItemType, TimelineProps, TimelineSemanticClassNames, TimelineSemanticStyles } from "./Timeline.mjs";
|