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/select/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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 { InputStatus } from "../_util/statusUtils.mjs";
|
|
6
6
|
import { SelectCommonPlacement } from "../_util/motion.mjs";
|
|
7
7
|
import { ComponentBaseProps, Variant } from "../config-provider/context.mjs";
|
|
8
|
-
import * as
|
|
8
|
+
import * as vue147 from "vue";
|
|
9
9
|
import { CSSProperties, SlotsType } from "vue";
|
|
10
10
|
import { SelectProps } from "@v-c/select";
|
|
11
11
|
import * as _v_c_select_dist_Option_js0 from "@v-c/select/dist/Option.js";
|
|
@@ -37,23 +37,51 @@ interface InternalSelectProps extends ComponentBaseProps, Omit<SelectProps, 'mod
|
|
|
37
37
|
* @default "outlined"
|
|
38
38
|
*/
|
|
39
39
|
variant?: Variant;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
styles?: SelectStylesType;
|
|
41
|
+
classes?: SelectClassNamesType;
|
|
42
|
+
}
|
|
43
|
+
interface SelectSemanticClassNames {
|
|
44
|
+
root?: string;
|
|
45
|
+
prefix?: string;
|
|
46
|
+
suffix?: string;
|
|
47
|
+
input?: string;
|
|
48
|
+
placeholder?: string;
|
|
49
|
+
content?: string;
|
|
50
|
+
item?: string;
|
|
51
|
+
itemContent?: string;
|
|
52
|
+
itemRemove?: string;
|
|
53
|
+
clear?: string;
|
|
54
|
+
}
|
|
55
|
+
interface SelectSemanticStyles {
|
|
56
|
+
root?: CSSProperties;
|
|
57
|
+
prefix?: CSSProperties;
|
|
58
|
+
suffix?: CSSProperties;
|
|
59
|
+
input?: CSSProperties;
|
|
60
|
+
placeholder?: CSSProperties;
|
|
61
|
+
content?: CSSProperties;
|
|
62
|
+
item?: CSSProperties;
|
|
63
|
+
itemContent?: CSSProperties;
|
|
64
|
+
itemRemove?: CSSProperties;
|
|
65
|
+
clear?: CSSProperties;
|
|
66
|
+
}
|
|
67
|
+
interface SelectPopupSemanticClassNames {
|
|
68
|
+
root?: string;
|
|
69
|
+
listItem?: string;
|
|
70
|
+
list?: string;
|
|
71
|
+
}
|
|
72
|
+
interface SelectPopupSemanticStyles {
|
|
73
|
+
root?: CSSProperties;
|
|
74
|
+
listItem?: CSSProperties;
|
|
75
|
+
list?: CSSProperties;
|
|
46
76
|
}
|
|
47
|
-
type
|
|
48
|
-
|
|
49
|
-
type SelectClassNamesType = SemanticClassNamesType<SelectProps$1, SemanticName, {
|
|
50
|
-
popup?: SemanticClassNames<PopupSemantic>;
|
|
77
|
+
type SelectClassNamesType = SemanticClassNamesType<SelectProps$1, SelectSemanticClassNames, {
|
|
78
|
+
popup?: SelectPopupSemanticClassNames;
|
|
51
79
|
}>;
|
|
52
|
-
type SelectStylesType = SemanticStylesType<SelectProps$1,
|
|
53
|
-
popup?:
|
|
80
|
+
type SelectStylesType = SemanticStylesType<SelectProps$1, SelectSemanticStyles, {
|
|
81
|
+
popup?: SelectPopupSemanticStyles;
|
|
54
82
|
}>;
|
|
55
83
|
type RcEventKeys = 'onClear' | 'onKeyUp' | 'onKeyDown' | 'onBlur' | 'onClick' | 'onActive' | 'onChange' | 'onDeselect' | 'onInputKeyDown' | 'onMouseDown' | 'onMouseLeave' | 'onMouseEnter' | 'onFocus' | 'onPopupScroll' | 'onPopupVisibleChange' | 'onSelect' | 'optionRender';
|
|
56
|
-
interface SelectProps$1 extends Omit<InternalSelectProps, 'mode' | 'getInputElement' | 'getRawInputElement' | 'backfill' | 'placement' | 'dropdownClassName' | 'dropdownStyle' | RcEventKeys> {
|
|
84
|
+
interface SelectProps$1 extends Omit<InternalSelectProps, 'mode' | 'getInputElement' | 'getRawInputElement' | 'backfill' | 'placement' | 'dropdownClassName' | 'dropdownStyle' | 'classes' | 'styles' | RcEventKeys> {
|
|
57
85
|
placement?: SelectCommonPlacement;
|
|
58
86
|
mode?: 'multiple' | 'tags';
|
|
59
87
|
status?: InputStatus;
|
|
@@ -110,10 +138,10 @@ interface SelectSlots {
|
|
|
110
138
|
maxTagPlaceholder?: (data: any[]) => any;
|
|
111
139
|
notFoundContent?: () => any;
|
|
112
140
|
}
|
|
113
|
-
declare const Select:
|
|
141
|
+
declare const Select: vue147.DefineSetupFnComponent<SelectProps$1, SelectEmits, SlotsType<SelectSlots>, SelectProps$1 & {
|
|
114
142
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
115
|
-
},
|
|
116
|
-
declare const SelectOption:
|
|
117
|
-
declare const SelectOptGroup:
|
|
143
|
+
}, vue147.PublicProps>;
|
|
144
|
+
declare const SelectOption: vue147.FunctionalComponent<_v_c_select_dist_Option_js0.OptionProps, {}, any, {}>;
|
|
145
|
+
declare const SelectOptGroup: vue147.FunctionalComponent<_v_c_select_dist_OptGroup_js0.OptGroupProps, {}, any, {}>;
|
|
118
146
|
//#endregion
|
|
119
|
-
export { InternalSelectProps, Select, SelectEmits, SelectOptGroup, SelectOption, SelectProps$1 as SelectProps, SelectSlots, SelectValue };
|
|
147
|
+
export { InternalSelectProps, Select, SelectEmits, SelectOptGroup, SelectOption, SelectPopupSemanticClassNames, SelectPopupSemanticStyles, SelectProps$1 as SelectProps, SelectSlots, SelectValue };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SkeletonElementProps } from "./Element.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue435 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/skeleton/Avatar.d.ts
|
|
5
5
|
interface SkeletonAvatarProps extends Omit<SkeletonElementProps, 'shape'> {
|
|
6
6
|
shape?: 'circle' | 'square';
|
|
7
7
|
}
|
|
8
|
-
declare const SkeletonAvatar:
|
|
8
|
+
declare const SkeletonAvatar: vue435.DefineSetupFnComponent<SkeletonAvatarProps, {}, {}, SkeletonAvatarProps & {}, vue435.PublicProps>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { SkeletonAvatar, SkeletonAvatarProps };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SkeletonElementProps } from "./Element.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue441 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/skeleton/Button.d.ts
|
|
5
5
|
interface SkeletonButtonProps extends Omit<SkeletonElementProps, 'size'> {
|
|
6
6
|
size?: 'large' | 'small' | 'default';
|
|
7
7
|
block?: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare const SkeletonButton:
|
|
9
|
+
declare const SkeletonButton: vue441.DefineSetupFnComponent<SkeletonButtonProps, {}, {}, SkeletonButtonProps & {}, vue441.PublicProps>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { SkeletonButton };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SkeletonElementProps } from "./Element.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue443 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/skeleton/Image.d.ts
|
|
5
5
|
interface SkeletonImageProps extends Omit<SkeletonElementProps, 'size' | 'shape'> {}
|
|
6
|
-
declare const SkeletonImage:
|
|
6
|
+
declare const SkeletonImage: vue443.DefineSetupFnComponent<SkeletonImageProps, {}, {}, SkeletonImageProps & {}, vue443.PublicProps>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { SkeletonImage };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SkeletonElementProps } from "./Element.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue445 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/skeleton/Input.d.ts
|
|
5
5
|
interface SkeletonInputProps extends Omit<SkeletonElementProps, 'size' | 'shape'> {
|
|
6
6
|
size?: 'large' | 'small' | 'default';
|
|
7
7
|
block?: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare const SkeletonInput:
|
|
9
|
+
declare const SkeletonInput: vue445.DefineSetupFnComponent<SkeletonInputProps, {}, {}, SkeletonInputProps & {}, vue445.PublicProps>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { SkeletonInput };
|
package/dist/skeleton/Node.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmptyEmit } from "../_util/type.mjs";
|
|
2
2
|
import { SkeletonElementProps } from "./Element.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue433 from "vue";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/skeleton/Node.d.ts
|
|
@@ -10,8 +10,8 @@ interface SkeletonNodeProps extends Omit<SkeletonElementProps, 'size' | 'shape'>
|
|
|
10
10
|
interface SkeletonNodeSlots {
|
|
11
11
|
default?: () => any;
|
|
12
12
|
}
|
|
13
|
-
declare const SkeletonNode:
|
|
13
|
+
declare const SkeletonNode: vue433.DefineSetupFnComponent<SkeletonNodeProps, EmptyEmit, SlotsType<SkeletonNodeSlots>, SkeletonNodeProps & {
|
|
14
14
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
15
|
-
},
|
|
15
|
+
}, vue433.PublicProps>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { SkeletonNode };
|
|
@@ -9,14 +9,29 @@ import { SkeletonImage } from "./Image.mjs";
|
|
|
9
9
|
import { SkeletonInput } from "./Input.mjs";
|
|
10
10
|
import { SkeletonNode } from "./Node.mjs";
|
|
11
11
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
12
|
-
import * as
|
|
13
|
-
import { SlotsType } from "vue";
|
|
12
|
+
import * as vue291 from "vue";
|
|
13
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
14
14
|
|
|
15
15
|
//#region src/skeleton/Skeleton.d.ts
|
|
16
16
|
type SkeletonAvatarProps = Omit<SkeletonAvatarProps$1, 'active'>;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
interface SkeletonSemanticClassNames {
|
|
18
|
+
root?: string;
|
|
19
|
+
header?: string;
|
|
20
|
+
section?: string;
|
|
21
|
+
avatar?: string;
|
|
22
|
+
title?: string;
|
|
23
|
+
paragraph?: string;
|
|
24
|
+
}
|
|
25
|
+
interface SkeletonSemanticStyles {
|
|
26
|
+
root?: CSSProperties;
|
|
27
|
+
header?: CSSProperties;
|
|
28
|
+
section?: CSSProperties;
|
|
29
|
+
avatar?: CSSProperties;
|
|
30
|
+
title?: CSSProperties;
|
|
31
|
+
paragraph?: CSSProperties;
|
|
32
|
+
}
|
|
33
|
+
type SkeletonClassNamesType = SemanticClassNamesType<SkeletonProps, SkeletonSemanticClassNames>;
|
|
34
|
+
type SkeletonStylesType = SemanticStylesType<SkeletonProps, SkeletonSemanticStyles>;
|
|
20
35
|
interface SkeletonProps extends ComponentBaseProps {
|
|
21
36
|
active?: boolean;
|
|
22
37
|
loading?: boolean;
|
|
@@ -30,9 +45,9 @@ interface SkeletonProps extends ComponentBaseProps {
|
|
|
30
45
|
interface SkeletonSlots {
|
|
31
46
|
default?: () => any;
|
|
32
47
|
}
|
|
33
|
-
declare const Skeleton:
|
|
48
|
+
declare const Skeleton: vue291.DefineSetupFnComponent<SkeletonProps, EmptyEmit, SlotsType<SkeletonSlots>, SkeletonProps & {
|
|
34
49
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
35
|
-
},
|
|
50
|
+
}, vue291.PublicProps>;
|
|
36
51
|
type SkeletonType = typeof Skeleton & {
|
|
37
52
|
Button: typeof SkeletonButton;
|
|
38
53
|
Avatar: typeof SkeletonAvatar;
|
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) => {
|