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/app/App.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
2
2
|
import { AppConfig } from "./context.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue239 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/app/App.d.ts
|
|
6
6
|
interface AppProps extends ComponentBaseProps, AppConfig {
|
|
7
7
|
component?: any;
|
|
8
8
|
}
|
|
9
|
-
declare const App$1:
|
|
9
|
+
declare const App$1: vue239.DefineSetupFnComponent<AppProps, {}, {}, AppProps & {}, vue239.PublicProps>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { App$1 as App, AppProps };
|
package/dist/app/App.mjs
CHANGED
|
@@ -43,13 +43,13 @@ const App$1 = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
43
43
|
const customClassName = clsx(hashId.value, prefixCls.value, className, rootClass, cssVarCls.value, { [`${prefixCls.value}-rtl`]: direction.value === "rtl" });
|
|
44
44
|
const { component = "div" } = props;
|
|
45
45
|
devUseWarning("App")(!(cssVarCls.value && component === false), "usage", "When using cssVar, ensure `component` is assigned a valid React component string.");
|
|
46
|
-
const Component
|
|
46
|
+
const Component = component === false ? Fragment : component;
|
|
47
47
|
const rootProps = {
|
|
48
48
|
...restAttrs,
|
|
49
49
|
class: customClassName,
|
|
50
50
|
style
|
|
51
51
|
};
|
|
52
|
-
return createVNode(AppConfigProvider, mergedAppConfig.value, { default: () => [createVNode(Component
|
|
52
|
+
return createVNode(AppConfigProvider, mergedAppConfig.value, { default: () => [createVNode(Component, component === false ? void 0 : rootProps, { default: () => [
|
|
53
53
|
createVNode(MessageContextHolder, null, null),
|
|
54
54
|
createVNode(NotificationContextHolder, null, null),
|
|
55
55
|
createVNode(ModalContextHolder, null, null),
|
|
@@ -1,25 +1,37 @@
|
|
|
1
1
|
import { 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
|
-
import { InternalSelectProps } from "../select/index.mjs";
|
|
6
|
-
import * as
|
|
5
|
+
import { InternalSelectProps, SelectPopupSemanticClassNames, SelectPopupSemanticStyles } from "../select/index.mjs";
|
|
6
|
+
import * as vue65 from "vue";
|
|
7
7
|
import { App, CSSProperties, SlotsType } from "vue";
|
|
8
8
|
import { Option as Option$1, SelectProps } from "@v-c/select";
|
|
9
9
|
|
|
10
10
|
//#region src/auto-complete/index.d.ts
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
interface AutoCompleteSemanticClassNames {
|
|
12
|
+
root?: string;
|
|
13
|
+
prefix?: string;
|
|
14
|
+
input?: string;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
content?: string;
|
|
17
|
+
}
|
|
18
|
+
interface AutoCompleteSemanticStyles {
|
|
19
|
+
root?: CSSProperties;
|
|
20
|
+
prefix?: CSSProperties;
|
|
21
|
+
input?: CSSProperties;
|
|
22
|
+
placeholder?: CSSProperties;
|
|
23
|
+
content?: CSSProperties;
|
|
24
|
+
}
|
|
13
25
|
interface DataSourceItemObject {
|
|
14
26
|
value: string;
|
|
15
27
|
text: string;
|
|
16
28
|
}
|
|
17
29
|
type DataSourceItemType = DataSourceItemObject | VueNode;
|
|
18
|
-
type AutoCompleteClassNamesType = SemanticClassNamesType<AutoCompleteProps,
|
|
19
|
-
popup?:
|
|
30
|
+
type AutoCompleteClassNamesType = SemanticClassNamesType<AutoCompleteProps, AutoCompleteSemanticClassNames, {
|
|
31
|
+
popup?: SelectPopupSemanticClassNames;
|
|
20
32
|
}>;
|
|
21
|
-
type AutoCompleteStylesType = SemanticStylesType<AutoCompleteProps,
|
|
22
|
-
popup?:
|
|
33
|
+
type AutoCompleteStylesType = SemanticStylesType<AutoCompleteProps, AutoCompleteSemanticStyles, {
|
|
34
|
+
popup?: SelectPopupSemanticStyles;
|
|
23
35
|
}>;
|
|
24
36
|
type RcEventKeys = 'onClear' | 'onKeyUp' | 'onKeyDown' | 'onBlur' | 'onClick' | 'onActive' | 'onChange' | 'onDeselect' | 'onInputKeyDown' | 'onMouseDown' | 'onMouseLeave' | 'onMouseEnter' | 'onFocus' | 'onPopupScroll' | 'onPopupVisibleChange' | 'onSelect' | 'onSearch';
|
|
25
37
|
interface AutoCompleteProps extends Omit<InternalSelectProps, 'loading' | 'mode' | 'optionLabelProp' | 'labelInValue' | 'classes' | 'styles' | 'getInputElement' | 'getRawInputElement' | RcEventKeys> {
|
|
@@ -66,9 +78,9 @@ interface AutoCompleteEmits {
|
|
|
66
78
|
interface AutoCompleteSlots {
|
|
67
79
|
default?: () => any;
|
|
68
80
|
}
|
|
69
|
-
declare const InternalAutoComplete:
|
|
81
|
+
declare const InternalAutoComplete: vue65.DefineSetupFnComponent<AutoCompleteProps, AutoCompleteEmits, SlotsType<AutoCompleteSlots>, AutoCompleteProps & {
|
|
70
82
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
71
|
-
},
|
|
83
|
+
}, vue65.PublicProps>;
|
|
72
84
|
declare const AutoComplete: typeof InternalAutoComplete & {
|
|
73
85
|
Option: typeof Option$1;
|
|
74
86
|
install: (app: App) => void;
|
|
@@ -105,7 +105,7 @@ const InternalAutoComplete = /* @__PURE__ */ defineComponent((props, { slots, em
|
|
|
105
105
|
popup: {
|
|
106
106
|
root: {
|
|
107
107
|
...props.dropdownStyle,
|
|
108
|
-
...mergedStyles
|
|
108
|
+
...mergedStyles?.value?.popup?.root
|
|
109
109
|
},
|
|
110
110
|
list: mergedStyles.value.popup?.list,
|
|
111
111
|
listItem: mergedStyles.value.popup?.listItem
|
package/dist/avatar/Avatar.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VueNode } from "../_util/type.mjs";
|
|
2
2
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
3
3
|
import { AvatarSize } from "./AvatarContext.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue245 from "vue";
|
|
5
5
|
import { SlotsType } from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/avatar/Avatar.d.ts
|
|
@@ -34,8 +34,8 @@ interface AvatarSlots {
|
|
|
34
34
|
src: () => any;
|
|
35
35
|
default: () => any;
|
|
36
36
|
}
|
|
37
|
-
declare const Avatar:
|
|
37
|
+
declare const Avatar: vue245.DefineSetupFnComponent<AvatarProps, AvatarEmits, SlotsType<AvatarSlots>, AvatarProps & {
|
|
38
38
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
39
|
-
},
|
|
39
|
+
}, vue245.PublicProps>;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { Avatar, AvatarEmits, AvatarProps, AvatarSlots };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PopoverProps } from "../popover/index.mjs";
|
|
2
2
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
3
3
|
import { AvatarSize } from "./AvatarContext.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue247 from "vue";
|
|
5
5
|
import { CSSProperties } from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/avatar/AvatarGroup.d.ts
|
|
@@ -19,6 +19,6 @@ interface AvatarGroupProps extends ComponentBaseProps {
|
|
|
19
19
|
size?: AvatarSize;
|
|
20
20
|
shape?: 'circle' | 'square';
|
|
21
21
|
}
|
|
22
|
-
declare const AvatarGroup:
|
|
22
|
+
declare const AvatarGroup: vue247.DefineSetupFnComponent<AvatarGroupProps, {}, {}, AvatarGroupProps & {}, vue247.PublicProps>;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { AvatarGroup, AvatarGroupProps };
|
|
@@ -6,14 +6,14 @@ import { unit } from "@antdv-next/cssinjs";
|
|
|
6
6
|
//#region src/avatar/style/index.ts
|
|
7
7
|
const genBaseStyle = (token) => {
|
|
8
8
|
const { antCls, componentCls, iconCls, avatarBg, avatarColor, containerSize, containerSizeLG, containerSizeSM, textFontSize, textFontSizeLG, textFontSizeSM, iconFontSize, iconFontSizeLG, iconFontSizeSM, borderRadius, borderRadiusLG, borderRadiusSM, lineWidth, lineType } = token;
|
|
9
|
-
const avatarSizeStyle = (size, fontSize, iconFontSize
|
|
9
|
+
const avatarSizeStyle = (size, fontSize, iconFontSize, radius) => ({
|
|
10
10
|
width: size,
|
|
11
11
|
height: size,
|
|
12
12
|
borderRadius: "50%",
|
|
13
13
|
fontSize,
|
|
14
14
|
[`&${componentCls}-square`]: { borderRadius: radius },
|
|
15
15
|
[`&${componentCls}-icon`]: {
|
|
16
|
-
fontSize: iconFontSize
|
|
16
|
+
fontSize: iconFontSize,
|
|
17
17
|
[`> ${iconCls}`]: { margin: 0 }
|
|
18
18
|
}
|
|
19
19
|
});
|
package/dist/badge/Ribbon.d.mts
CHANGED
|
@@ -1,23 +1,39 @@
|
|
|
1
1
|
import { EmptyEmit, VueNode } from "../_util/type.mjs";
|
|
2
|
+
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
|
|
3
|
+
import "../_util/hooks/index.mjs";
|
|
2
4
|
import { PresetColorType } from "../_util/colors.mjs";
|
|
3
5
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
4
|
-
import * as
|
|
6
|
+
import * as vue67 from "vue";
|
|
5
7
|
import { CSSProperties, SlotsType } from "vue";
|
|
6
8
|
import { LiteralUnion } from "@v-c/util/dist/type";
|
|
7
9
|
|
|
8
10
|
//#region src/badge/Ribbon.d.ts
|
|
11
|
+
type RibbonPlacement = 'start' | 'end';
|
|
12
|
+
interface RibbonSemanticClassNames {
|
|
13
|
+
root?: string;
|
|
14
|
+
content?: string;
|
|
15
|
+
indicator?: string;
|
|
16
|
+
}
|
|
17
|
+
interface RibbonSemanticStyles {
|
|
18
|
+
root?: CSSProperties;
|
|
19
|
+
content?: CSSProperties;
|
|
20
|
+
indicator?: CSSProperties;
|
|
21
|
+
}
|
|
22
|
+
type RibbonClassNamesType = SemanticClassNamesType<RibbonProps, RibbonSemanticClassNames>;
|
|
23
|
+
type RibbonStylesType = SemanticStylesType<RibbonProps, RibbonSemanticStyles>;
|
|
9
24
|
interface RibbonProps extends ComponentBaseProps {
|
|
10
|
-
style?: CSSProperties;
|
|
11
25
|
text?: VueNode;
|
|
12
26
|
color?: LiteralUnion<PresetColorType>;
|
|
13
|
-
placement?:
|
|
27
|
+
placement?: RibbonPlacement;
|
|
28
|
+
classes?: RibbonClassNamesType;
|
|
29
|
+
styles?: RibbonStylesType;
|
|
14
30
|
}
|
|
15
31
|
interface RibbonSlots {
|
|
16
32
|
default?: () => any;
|
|
17
33
|
text?: () => any;
|
|
18
34
|
}
|
|
19
|
-
declare const _default:
|
|
35
|
+
declare const _default: vue67.DefineSetupFnComponent<RibbonProps, EmptyEmit, SlotsType<RibbonSlots>, RibbonProps & {
|
|
20
36
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
21
|
-
},
|
|
37
|
+
}, vue67.PublicProps>;
|
|
22
38
|
//#endregion
|
|
23
39
|
export { RibbonProps, _default };
|
package/dist/badge/Ribbon.mjs
CHANGED
|
@@ -1,20 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useComponentBaseConfig } from "../config-provider/context.mjs";
|
|
2
|
+
import { useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.mjs";
|
|
3
|
+
import "../_util/hooks/index.mjs";
|
|
4
|
+
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.mjs";
|
|
3
5
|
import { isPresetColor } from "../_util/colors.mjs";
|
|
4
6
|
import ribbon_default from "./style/ribbon.mjs";
|
|
5
|
-
import { computed, createVNode, defineComponent, mergeProps } from "vue";
|
|
6
|
-
import {
|
|
7
|
+
import { computed, createVNode, defineComponent, mergeDefaults, mergeProps } from "vue";
|
|
8
|
+
import { clsx } from "@v-c/util";
|
|
9
|
+
import { getAttrStyleAndClass } from "@v-c/util/dist/props-util";
|
|
7
10
|
|
|
8
11
|
//#region src/badge/Ribbon.tsx
|
|
12
|
+
const defaults = { placement: "end" };
|
|
9
13
|
var Ribbon_default = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
10
|
-
const
|
|
11
|
-
const prefixCls
|
|
14
|
+
const { styles, classes: ribbonClassNames } = toPropsRefs(props, "classes", "styles");
|
|
15
|
+
const { prefixCls, class: contextClassName, style: contextStyle, direction, classes: contextClassNames, styles: contextStyles } = useComponentBaseConfig("ribbon", props);
|
|
12
16
|
const wrapperCls = computed(() => `${prefixCls.value}-wrapper`);
|
|
13
17
|
const [hashId, cssVarCls] = ribbon_default(prefixCls, wrapperCls);
|
|
18
|
+
const mergedProps = computed(() => {
|
|
19
|
+
return props;
|
|
20
|
+
});
|
|
21
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, ribbonClassNames), useToArr(contextStyles, styles), useToProps(mergedProps));
|
|
14
22
|
return () => {
|
|
15
|
-
const placement =
|
|
16
|
-
const {
|
|
23
|
+
const { placement = "end", color } = props;
|
|
24
|
+
const { className, style, restAttrs } = getAttrStyleAndClass(attrs);
|
|
17
25
|
const colorInPreset = isPresetColor(props.color, false);
|
|
26
|
+
const ribbonCls = clsx(prefixCls.value, `${prefixCls.value}-placement-${placement}`, {
|
|
27
|
+
[`${prefixCls.value}-rtl`]: direction.value === "rtl",
|
|
28
|
+
[`${prefixCls.value}-color-${color}`]: colorInPreset
|
|
29
|
+
}, className, contextClassName.value, mergedClassNames.value.indicator);
|
|
18
30
|
const colorStyle = {};
|
|
19
31
|
const cornerColorStyle = {};
|
|
20
32
|
if (props.color && !colorInPreset) {
|
|
@@ -23,28 +35,27 @@ var Ribbon_default = /* @__PURE__ */ defineComponent((props, { slots, attrs }) =
|
|
|
23
35
|
}
|
|
24
36
|
const textNodes = getSlotPropsFnRun(slots, props, "text");
|
|
25
37
|
const children = slots.default?.();
|
|
26
|
-
return createVNode("div", {
|
|
27
|
-
"class":
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
38
|
+
return createVNode("div", {
|
|
39
|
+
"class": clsx(wrapperCls.value, props.rootClass, hashId.value, cssVarCls.value, mergedClassNames.value?.root),
|
|
40
|
+
"style": mergedStyles.value?.root
|
|
41
|
+
}, [children, createVNode("div", mergeProps(restAttrs, {
|
|
42
|
+
"class": clsx(ribbonCls, hashId.value),
|
|
31
43
|
"style": [
|
|
32
44
|
colorStyle,
|
|
33
|
-
|
|
34
|
-
|
|
45
|
+
mergedStyles.value?.indicator,
|
|
46
|
+
contextStyle.value,
|
|
47
|
+
style
|
|
35
48
|
]
|
|
36
|
-
}), [createVNode("span", {
|
|
49
|
+
}), [createVNode("span", {
|
|
50
|
+
"class": clsx(`${prefixCls.value}-content`, mergedClassNames.value.content),
|
|
51
|
+
"style": mergedStyles.value?.content
|
|
52
|
+
}, [Array.isArray(textNodes) ? textNodes : textNodes ?? props.text]), createVNode("div", {
|
|
37
53
|
"class": `${prefixCls.value}-corner`,
|
|
38
54
|
"style": cornerColorStyle
|
|
39
55
|
}, null)])]);
|
|
40
56
|
};
|
|
41
57
|
}, {
|
|
42
|
-
props: {
|
|
43
|
-
style: {
|
|
44
|
-
type: Object,
|
|
45
|
-
required: false,
|
|
46
|
-
default: void 0
|
|
47
|
-
},
|
|
58
|
+
props: /* @__PURE__ */ mergeDefaults({
|
|
48
59
|
text: {
|
|
49
60
|
type: [
|
|
50
61
|
Function,
|
|
@@ -66,6 +77,16 @@ var Ribbon_default = /* @__PURE__ */ defineComponent((props, { slots, attrs }) =
|
|
|
66
77
|
required: false,
|
|
67
78
|
default: void 0
|
|
68
79
|
},
|
|
80
|
+
classes: {
|
|
81
|
+
type: [Object, Function],
|
|
82
|
+
required: false,
|
|
83
|
+
default: void 0
|
|
84
|
+
},
|
|
85
|
+
styles: {
|
|
86
|
+
type: [Object, Function],
|
|
87
|
+
required: false,
|
|
88
|
+
default: void 0
|
|
89
|
+
},
|
|
69
90
|
rootClass: {
|
|
70
91
|
type: String,
|
|
71
92
|
required: false,
|
|
@@ -76,7 +97,7 @@ var Ribbon_default = /* @__PURE__ */ defineComponent((props, { slots, attrs }) =
|
|
|
76
97
|
required: false,
|
|
77
98
|
default: void 0
|
|
78
99
|
}
|
|
79
|
-
},
|
|
100
|
+
}, defaults),
|
|
80
101
|
name: "ABadgeRibbon",
|
|
81
102
|
inheritAttrs: false
|
|
82
103
|
});
|
|
@@ -46,8 +46,9 @@ var SingleNumber_default = /* @__PURE__ */ defineComponent((props) => {
|
|
|
46
46
|
top: `${offset}00%`,
|
|
47
47
|
left: 0
|
|
48
48
|
} : void 0;
|
|
49
|
+
const spanKey = Number.isNaN(key) ? unitValue : key ?? unitValue;
|
|
49
50
|
return createVNode("span", {
|
|
50
|
-
"key":
|
|
51
|
+
"key": spanKey,
|
|
51
52
|
"class": classNames(`${prefixCls}-only-unit`, { current }),
|
|
52
53
|
"style": style
|
|
53
54
|
}, [unitValue]);
|
package/dist/badge/index.d.mts
CHANGED
|
@@ -6,14 +6,21 @@ import "../theme/interface/index.mjs";
|
|
|
6
6
|
import { PresetStatusColorType } from "../_util/colors.mjs";
|
|
7
7
|
import { _default } from "./Ribbon.mjs";
|
|
8
8
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
9
|
-
import * as
|
|
10
|
-
import { SlotsType } from "vue";
|
|
9
|
+
import * as vue72 from "vue";
|
|
10
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
11
11
|
import { LiteralUnion } from "@v-c/util/dist/type";
|
|
12
12
|
|
|
13
13
|
//#region src/badge/index.d.ts
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
interface BadgeSemanticClassNames {
|
|
15
|
+
root?: string;
|
|
16
|
+
indicator?: string;
|
|
17
|
+
}
|
|
18
|
+
interface BadgeSemanticStyles {
|
|
19
|
+
root?: CSSProperties;
|
|
20
|
+
indicator?: CSSProperties;
|
|
21
|
+
}
|
|
22
|
+
type BadgeClassNamesType = SemanticClassNamesType<BadgeProps, BadgeSemanticClassNames>;
|
|
23
|
+
type BadgeStylesType = SemanticStylesType<BadgeProps, BadgeSemanticStyles>;
|
|
17
24
|
interface BadgeProps extends ComponentBaseProps {
|
|
18
25
|
/** Number to show in badge */
|
|
19
26
|
count?: VueNode;
|
|
@@ -37,9 +44,9 @@ interface BadgeSlots {
|
|
|
37
44
|
count?: () => any;
|
|
38
45
|
text?: () => any;
|
|
39
46
|
}
|
|
40
|
-
declare const InternalBadge:
|
|
47
|
+
declare const InternalBadge: vue72.DefineSetupFnComponent<BadgeProps, EmptyEmit, SlotsType<BadgeSlots>, BadgeProps & {
|
|
41
48
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
42
|
-
},
|
|
49
|
+
}, vue72.PublicProps>;
|
|
43
50
|
declare const Badge: typeof InternalBadge & {
|
|
44
51
|
Ribbon: typeof _default;
|
|
45
52
|
};
|
|
@@ -26,7 +26,7 @@ const genRibbonStyle = (token) => {
|
|
|
26
26
|
"whiteSpace": "nowrap",
|
|
27
27
|
"backgroundColor": token.colorPrimary,
|
|
28
28
|
"borderRadius": token.borderRadiusSM,
|
|
29
|
-
[`${ribbonPrefixCls}-
|
|
29
|
+
[`${ribbonPrefixCls}-content`]: { color: token.badgeTextColor },
|
|
30
30
|
[`${ribbonPrefixCls}-corner`]: {
|
|
31
31
|
position: "absolute",
|
|
32
32
|
top: "100%",
|
|
@@ -4,7 +4,7 @@ import "../_util/hooks/index.mjs";
|
|
|
4
4
|
import { DropdownProps } from "../dropdown/dropdown.mjs";
|
|
5
5
|
import "../dropdown/index.mjs";
|
|
6
6
|
import { BreadcrumbItemProps, MenuItem } from "./BreadcrumbItem.mjs";
|
|
7
|
-
import * as
|
|
7
|
+
import * as vue237 from "vue";
|
|
8
8
|
import { CSSProperties, SlotsType } from "vue";
|
|
9
9
|
import { Key } from "@v-c/util/dist/type";
|
|
10
10
|
|
|
@@ -32,9 +32,18 @@ interface BreadcrumbSeparatorType {
|
|
|
32
32
|
separator?: VueNode;
|
|
33
33
|
}
|
|
34
34
|
type ItemType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
interface BreadcrumbSemanticClassNames {
|
|
36
|
+
root?: string;
|
|
37
|
+
item?: string;
|
|
38
|
+
separator?: string;
|
|
39
|
+
}
|
|
40
|
+
interface BreadcrumbSemanticStyles {
|
|
41
|
+
root?: CSSProperties;
|
|
42
|
+
item?: CSSProperties;
|
|
43
|
+
separator?: CSSProperties;
|
|
44
|
+
}
|
|
45
|
+
type BreadcrumbClassNamesType<T extends AnyObject = AnyObject> = SemanticClassNamesType<BreadcrumbProps<T>, BreadcrumbSemanticClassNames>;
|
|
46
|
+
type BreadcrumbStylesType<T extends AnyObject = AnyObject> = SemanticStylesType<BreadcrumbProps<T>, BreadcrumbSemanticStyles>;
|
|
38
47
|
interface BreadcrumbProps<T extends AnyObject = AnyObject> {
|
|
39
48
|
prefixCls?: string;
|
|
40
49
|
params?: T;
|
|
@@ -43,6 +52,7 @@ interface BreadcrumbProps<T extends AnyObject = AnyObject> {
|
|
|
43
52
|
items?: ItemType[];
|
|
44
53
|
classes?: BreadcrumbClassNamesType<T>;
|
|
45
54
|
styles?: BreadcrumbStylesType<T>;
|
|
55
|
+
dropdownIcon?: VueNode;
|
|
46
56
|
itemRender?: (route: ItemType, params: T, routes: ItemType[], paths: string[]) => any;
|
|
47
57
|
titleRender?: (params: {
|
|
48
58
|
item: ItemType;
|
|
@@ -71,6 +81,7 @@ interface BreadcrumbSlots {
|
|
|
71
81
|
}) => any;
|
|
72
82
|
separator: () => any;
|
|
73
83
|
default: () => any;
|
|
84
|
+
dropdownIcon: () => any;
|
|
74
85
|
menuLabelRender?: (params: {
|
|
75
86
|
item: ItemType;
|
|
76
87
|
index: number;
|
|
@@ -82,8 +93,8 @@ interface BreadcrumbSlots {
|
|
|
82
93
|
menu: MenuItem;
|
|
83
94
|
}) => any;
|
|
84
95
|
}
|
|
85
|
-
declare const Breadcrumb:
|
|
96
|
+
declare const Breadcrumb: vue237.DefineSetupFnComponent<BreadcrumbProps<AnyObject>, BreadcrumbEmits, SlotsType<BreadcrumbSlots>, BreadcrumbProps<AnyObject> & {
|
|
86
97
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
87
|
-
},
|
|
98
|
+
}, vue237.PublicProps>;
|
|
88
99
|
//#endregion
|
|
89
100
|
export { Breadcrumb, BreadcrumbEmits, BreadcrumbProps, BreadcrumbSlots, ItemType };
|
|
@@ -10,6 +10,7 @@ import style_default from "./style/index.mjs";
|
|
|
10
10
|
import { computed, createVNode, defineComponent, isVNode, mergeProps } from "vue";
|
|
11
11
|
import { clsx } from "@v-c/util";
|
|
12
12
|
import { filterEmpty } from "@v-c/util/dist/props-util";
|
|
13
|
+
import { DownOutlined } from "@antdv-next/icons";
|
|
13
14
|
import pickAttrs from "@v-c/util/dist/pickAttrs";
|
|
14
15
|
|
|
15
16
|
//#region src/breadcrumb/Breadcrumb.tsx
|
|
@@ -25,7 +26,7 @@ function getPath(params, path) {
|
|
|
25
26
|
return mergedPath;
|
|
26
27
|
}
|
|
27
28
|
const Breadcrumb = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) => {
|
|
28
|
-
const { prefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, separator: contextSeparator } = useComponentBaseConfig("breadcrumb", props, ["separator"]);
|
|
29
|
+
const { prefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, separator: contextSeparator, dropdownIcon: contextDropdownIcon } = useComponentBaseConfig("breadcrumb", props, ["separator", "dropdownIcon"]);
|
|
29
30
|
const { classes, styles } = toPropsRefs(props, "classes", "styles");
|
|
30
31
|
const mergedSeparator = computed(() => {
|
|
31
32
|
const separator = getSlotPropsFnRun(slots, props, "separator");
|
|
@@ -50,6 +51,7 @@ const Breadcrumb = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
|
|
|
50
51
|
return () => {
|
|
51
52
|
const { params = {}, rootClass } = props;
|
|
52
53
|
const itemRender = slots?.itemRender ?? props?.itemRender;
|
|
54
|
+
const mergedDropdownIcon = getSlotPropsFnRun(slots, props, "dropdownIcon") ?? contextDropdownIcon.value ?? createVNode(DownOutlined, null, null);
|
|
53
55
|
const children = filterEmpty(slots?.default?.() ?? []);
|
|
54
56
|
let crumbs;
|
|
55
57
|
const titleRender = slots?.titleRender ?? props?.titleRender;
|
|
@@ -59,7 +61,7 @@ const Breadcrumb = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
|
|
|
59
61
|
const itemRenderRoutes = props?.items;
|
|
60
62
|
crumbs = mergedItems.value.map((item, index) => {
|
|
61
63
|
let _slot;
|
|
62
|
-
const { path, key, type, menu, onClick, class: itemClassName, style
|
|
64
|
+
const { path, key, type, menu, onClick, class: itemClassName, style, dropdownProps } = item;
|
|
63
65
|
const handleClick = (event) => {
|
|
64
66
|
onClick?.(event);
|
|
65
67
|
emit("clickItem", item, event);
|
|
@@ -93,8 +95,9 @@ const Breadcrumb = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
|
|
|
93
95
|
aria: true
|
|
94
96
|
}), {
|
|
95
97
|
"class": itemClassName,
|
|
96
|
-
"style": style
|
|
98
|
+
"style": style,
|
|
97
99
|
"dropdownProps": dropdownProps,
|
|
100
|
+
"dropdownIcon": mergedDropdownIcon,
|
|
98
101
|
"href": href,
|
|
99
102
|
"separator": isLastItem ? "" : mergedSeparator.value,
|
|
100
103
|
"onClick": handleClick,
|
|
@@ -159,6 +162,18 @@ const Breadcrumb = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
|
|
|
159
162
|
required: false,
|
|
160
163
|
default: void 0
|
|
161
164
|
},
|
|
165
|
+
dropdownIcon: {
|
|
166
|
+
type: [
|
|
167
|
+
Function,
|
|
168
|
+
Boolean,
|
|
169
|
+
String,
|
|
170
|
+
Number,
|
|
171
|
+
null,
|
|
172
|
+
Object
|
|
173
|
+
],
|
|
174
|
+
required: false,
|
|
175
|
+
default: void 0
|
|
176
|
+
},
|
|
162
177
|
itemRender: {
|
|
163
178
|
type: Function,
|
|
164
179
|
required: false,
|
|
@@ -7,8 +7,8 @@ import dropdown_default from "../dropdown/index.mjs";
|
|
|
7
7
|
import BreadcrumbSeparator_default from "./BreadcrumbSeparator.mjs";
|
|
8
8
|
import { renderItem } from "./useItemRender.mjs";
|
|
9
9
|
import { Fragment, createVNode, defineComponent, isVNode, mergeProps } from "vue";
|
|
10
|
+
import { clsx } from "@v-c/util";
|
|
10
11
|
import { filterEmpty } from "@v-c/util/dist/props-util";
|
|
11
|
-
import { DownOutlined } from "@antdv-next/icons";
|
|
12
12
|
|
|
13
13
|
//#region src/breadcrumb/BreadcrumbItem.tsx
|
|
14
14
|
function _isSlot(s) {
|
|
@@ -19,6 +19,7 @@ const InternalBreadcrumbItem = /* @__PURE__ */ defineComponent((props, { slots }
|
|
|
19
19
|
/** If overlay is have Wrap a Dropdown */
|
|
20
20
|
const renderBreadcrumbNode = (breadcrumbItem) => {
|
|
21
21
|
const { prefixCls, menu, dropdownProps, href } = props;
|
|
22
|
+
const dropdownIcon = getSlotPropsFnRun({}, props, "dropdownIcon");
|
|
22
23
|
if (menu) {
|
|
23
24
|
const mergeDropDownProps = { ...dropdownProps };
|
|
24
25
|
if (menu) {
|
|
@@ -41,17 +42,17 @@ const InternalBreadcrumbItem = /* @__PURE__ */ defineComponent((props, { slots }
|
|
|
41
42
|
})
|
|
42
43
|
};
|
|
43
44
|
}
|
|
44
|
-
return createVNode(dropdown_default, mergeProps({ "placement": "bottom" }, mergeDropDownProps), { default: () => [createVNode("span", { "class": `${prefixCls}-overlay-link` }, [breadcrumbItem,
|
|
45
|
+
return createVNode(dropdown_default, mergeProps({ "placement": "bottom" }, mergeDropDownProps), { default: () => [createVNode("span", { "class": `${prefixCls}-overlay-link` }, [breadcrumbItem, dropdownIcon])] });
|
|
45
46
|
}
|
|
46
47
|
return breadcrumbItem;
|
|
47
48
|
};
|
|
48
49
|
return () => {
|
|
49
|
-
const { separator = "/" } = props;
|
|
50
|
+
const { separator = "/", prefixCls } = props;
|
|
50
51
|
const children = checkRenderNode(filterEmpty(slots?.default?.() ?? []));
|
|
51
52
|
const { classes: mergedClassNames, styles: mergedStyles } = breadcrumbContext.value;
|
|
52
53
|
const link = renderBreadcrumbNode(children);
|
|
53
54
|
if (isNonNullable_default(link)) return createVNode(Fragment, null, [createVNode("li", {
|
|
54
|
-
"class": mergedClassNames?.item,
|
|
55
|
+
"class": clsx(`${prefixCls}-item`, mergedClassNames?.item),
|
|
55
56
|
"style": mergedStyles?.item
|
|
56
57
|
}, [link]), !!separator && createVNode(BreadcrumbSeparator_default, null, _isSlot(separator) ? separator : { default: () => [separator] })]);
|
|
57
58
|
return null;
|
|
@@ -78,6 +79,18 @@ const InternalBreadcrumbItem = /* @__PURE__ */ defineComponent((props, { slots }
|
|
|
78
79
|
required: false,
|
|
79
80
|
default: void 0
|
|
80
81
|
},
|
|
82
|
+
dropdownIcon: {
|
|
83
|
+
type: [
|
|
84
|
+
Function,
|
|
85
|
+
Boolean,
|
|
86
|
+
String,
|
|
87
|
+
Number,
|
|
88
|
+
null,
|
|
89
|
+
Object
|
|
90
|
+
],
|
|
91
|
+
required: false,
|
|
92
|
+
default: void 0
|
|
93
|
+
},
|
|
81
94
|
onClick: {
|
|
82
95
|
type: Function,
|
|
83
96
|
required: false,
|
|
@@ -131,6 +144,18 @@ const BreadcrumbItem = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
131
144
|
required: false,
|
|
132
145
|
default: void 0
|
|
133
146
|
},
|
|
147
|
+
dropdownIcon: {
|
|
148
|
+
type: [
|
|
149
|
+
Function,
|
|
150
|
+
Boolean,
|
|
151
|
+
String,
|
|
152
|
+
Number,
|
|
153
|
+
null,
|
|
154
|
+
Object
|
|
155
|
+
],
|
|
156
|
+
required: false,
|
|
157
|
+
default: void 0
|
|
158
|
+
},
|
|
134
159
|
onClick: {
|
|
135
160
|
type: Function,
|
|
136
161
|
required: false,
|
|
@@ -8,17 +8,17 @@ const genBreadcrumbStyle = (token) => {
|
|
|
8
8
|
const { componentCls, iconCls, calc } = token;
|
|
9
9
|
return { [componentCls]: {
|
|
10
10
|
...resetComponent(token),
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
color: token.itemColor,
|
|
12
|
+
fontSize: token.fontSize,
|
|
13
13
|
[iconCls]: { fontSize: token.iconFontSize },
|
|
14
|
-
|
|
14
|
+
ol: {
|
|
15
15
|
display: "flex",
|
|
16
16
|
flexWrap: "wrap",
|
|
17
17
|
margin: 0,
|
|
18
18
|
padding: 0,
|
|
19
19
|
listStyle: "none"
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
[`${componentCls}-item a`]: {
|
|
22
22
|
"color": token.linkColor,
|
|
23
23
|
"transition": `color ${token.motionDurationMid}`,
|
|
24
24
|
"padding": `0 ${unit(token.paddingXXS)}`,
|
|
@@ -32,7 +32,7 @@ const genBreadcrumbStyle = (token) => {
|
|
|
32
32
|
},
|
|
33
33
|
...genFocusStyle(token)
|
|
34
34
|
},
|
|
35
|
-
|
|
35
|
+
[`${componentCls}-item:last-child`]: { color: token.lastItemColor },
|
|
36
36
|
[`${componentCls}-separator`]: {
|
|
37
37
|
marginInline: token.separatorMargin,
|
|
38
38
|
color: token.separatorColor
|