antdv-next 1.0.0-beta.2 → 1.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_util/PurePanel.mjs +4 -4
- package/dist/_util/hooks/useClosable.d.mts +0 -1
- package/dist/_util/hooks/useClosable.mjs +1 -1
- package/dist/_util/hooks/useMergeSemantic.d.mts +2 -3
- package/dist/_util/hooks/useMergeSemantic.mjs +9 -9
- package/dist/_util/tools.mjs +1 -1
- package/dist/_util/warning.d.mts +0 -1
- package/dist/affix/index.d.mts +3 -3
- package/dist/alert/Alert.d.mts +24 -7
- package/dist/alert/Alert.mjs +91 -28
- package/dist/anchor/Anchor.d.mts +18 -7
- package/dist/antd.css +1 -1
- package/dist/antd.js +101 -112
- package/dist/app/App.d.mts +2 -2
- package/dist/app/App.mjs +2 -2
- package/dist/auto-complete/index.d.mts +23 -11
- package/dist/auto-complete/index.mjs +1 -1
- package/dist/avatar/Avatar.d.mts +3 -3
- package/dist/avatar/AvatarGroup.d.mts +2 -2
- package/dist/avatar/style/index.mjs +2 -2
- package/dist/badge/Ribbon.d.mts +18 -2
- package/dist/badge/Ribbon.mjs +44 -23
- package/dist/badge/SingleNumber.mjs +2 -1
- package/dist/badge/index.d.mts +14 -7
- package/dist/badge/style/ribbon.mjs +1 -1
- package/dist/breadcrumb/Breadcrumb.d.mts +17 -6
- package/dist/breadcrumb/Breadcrumb.mjs +18 -3
- package/dist/breadcrumb/BreadcrumbItem.d.mts +1 -0
- package/dist/breadcrumb/BreadcrumbItem.mjs +29 -4
- package/dist/breadcrumb/style/index.mjs +5 -5
- package/dist/button/Button.d.mts +18 -10
- package/dist/button/buttonHelper.d.mts +0 -1
- package/dist/button/index.d.mts +1 -1
- package/dist/button/style/compact.mjs +28 -19
- package/dist/button/style/token.d.mts +0 -5
- package/dist/button/style/variant.mjs +27 -3
- package/dist/calendar/generateCalendar.d.mts +20 -7
- package/dist/calendar/generateCalendar.mjs +1 -1
- package/dist/calendar/index.d.mts +3 -3
- package/dist/card/Card.d.mts +23 -6
- package/dist/card/CardGrid.d.mts +2 -2
- package/dist/card/CardMeta.d.mts +20 -7
- package/dist/cascader/index.d.mts +28 -7
- package/dist/checkbox/Checkbox.d.mts +16 -7
- package/dist/checkbox/Checkbox.mjs +1 -1
- package/dist/checkbox/Group.d.mts +4 -3
- package/dist/checkbox/Group.mjs +11 -2
- package/dist/collapse/Collapse.d.mts +19 -6
- package/dist/collapse/Collapse.mjs +1 -1
- package/dist/color-picker/ColorPicker.d.mts +3 -3
- package/dist/color-picker/interface.d.mts +15 -7
- package/dist/color-picker/style/input.mjs +2 -0
- package/dist/components.d.mts +2 -3
- package/dist/config-provider/context.d.mts +58 -12
- package/dist/config-provider/context.mjs +3 -3
- package/dist/config-provider/define.d.mts +7 -1
- package/dist/config-provider/index.d.mts +3 -4
- package/dist/config-provider/index.mjs +82 -8
- package/dist/date-picker/generatePicker/index.d.mts +15 -15
- package/dist/date-picker/generatePicker/interface.d.mts +37 -10
- package/dist/date-picker/hooks/useMergedPickerSemantic.mjs +2 -2
- package/dist/date-picker/index.d.mts +25 -25
- package/dist/descriptions/Cell.mjs +5 -5
- package/dist/descriptions/DescriptionsContext.d.mts +13 -0
- package/dist/descriptions/Item.d.mts +3 -3
- package/dist/descriptions/hooks/useRow.mjs +7 -7
- package/dist/descriptions/index.d.mts +22 -7
- package/dist/divider/index.d.mts +15 -5
- package/dist/drawer/DrawerPanel.d.mts +28 -3
- package/dist/drawer/DrawerPanel.mjs +3 -3
- package/dist/drawer/index.d.mts +4 -4
- package/dist/drawer/index.mjs +4 -0
- package/dist/drawer/style/index.mjs +9 -2
- package/dist/dropdown/dropdown.d.mts +20 -7
- package/dist/empty/index.d.mts +18 -7
- package/dist/flex/index.d.mts +3 -3
- package/dist/float-button/FloatButton.d.mts +3 -4
- package/dist/float-button/FloatButtonGroup.d.mts +22 -3
- package/dist/form/Form.d.mts +16 -7
- package/dist/form/FormItem/index.d.mts +3 -3
- package/dist/form/FormItem/index.mjs +1 -1
- package/dist/form/FormItemInput.d.mts +0 -1
- package/dist/image/PreviewGroup.d.mts +3 -5
- package/dist/image/index.d.mts +34 -14
- package/dist/index.d.mts +3 -4
- package/dist/input/Input.d.mts +17 -4
- package/dist/input/Input.mjs +2 -2
- package/dist/input/OTP/index.d.mts +13 -4
- package/dist/input/Password.mjs +3 -3
- package/dist/input/Search.d.mts +21 -9
- package/dist/input/TextArea.d.mts +16 -7
- package/dist/input/TextArea.mjs +2 -2
- package/dist/input/index.d.mts +11 -11
- package/dist/input/style/index.mjs +5 -2
- package/dist/input/style/variants.mjs +2 -1
- package/dist/input-number/index.d.mts +20 -7
- package/dist/layout/index.d.mts +6 -6
- package/dist/layout/layout.d.mts +0 -1
- package/dist/locale/index.d.mts +0 -1
- package/dist/masonry/Masonry.d.mts +14 -7
- package/dist/masonry/MasonryItem.mjs +2 -2
- package/dist/mentions/index.d.mts +18 -7
- package/dist/mentions/index.mjs +2 -2
- package/dist/mentions/style/index.mjs +2 -2
- package/dist/menu/MenuContext.d.mts +0 -1
- package/dist/menu/MenuDivider.d.mts +2 -2
- package/dist/menu/MenuItem.d.mts +3 -3
- package/dist/menu/MenuItem.mjs +4 -3
- package/dist/menu/SubMenu.d.mts +3 -3
- package/dist/menu/SubMenu.mjs +5 -0
- package/dist/menu/index.d.mts +5 -5
- package/dist/menu/menu.d.mts +42 -10
- package/dist/menu/menu.mjs +2 -2
- package/dist/menu/style/index.d.mts +1 -1
- package/dist/menu/style/vertical.mjs +1 -1
- package/dist/message/PurePanel.d.mts +5 -7
- package/dist/message/index.mjs +2 -2
- package/dist/message/interface.d.mts +20 -4
- package/dist/message/useMessage.d.mts +0 -1
- package/dist/modal/Modal.d.mts +3 -3
- package/dist/modal/confirm.mjs +8 -4
- package/dist/modal/interface.d.mts +22 -3
- package/dist/modal/style/index.mjs +11 -8
- package/dist/notification/PurePanel.d.mts +8 -8
- package/dist/notification/index.mjs +2 -2
- package/dist/notification/interface.d.mts +18 -5
- package/dist/notification/style/index.mjs +8 -8
- package/dist/notification/useNotification.d.mts +2 -3
- package/dist/package.d.mts +4 -0
- package/dist/package.mjs +1 -1
- package/dist/pagination/Pagination.d.mts +3 -3
- package/dist/pagination/Pagination.mjs +11 -10
- package/dist/pagination/interface.d.mts +14 -5
- package/dist/pagination/style/bordered.mjs +2 -2
- package/dist/pagination/style/index.d.mts +10 -5
- package/dist/pagination/style/index.mjs +52 -103
- package/dist/popconfirm/PurePanel.d.mts +5 -7
- package/dist/popconfirm/index.d.mts +8 -6
- package/dist/popconfirm/index.mjs +7 -3
- package/dist/popover/index.d.mts +16 -9
- package/dist/popover/index.mjs +8 -5
- package/dist/progress/Line.mjs +3 -3
- package/dist/progress/progress.d.mts +20 -7
- package/dist/qrcode/index.d.mts +3 -3
- package/dist/qrcode/index.mjs +2 -1
- package/dist/qrcode/interface.d.mts +11 -3
- package/dist/radio/group.mjs +3 -3
- package/dist/radio/index.d.mts +5 -5
- package/dist/radio/interface.d.mts +13 -3
- package/dist/radio/radio.d.mts +3 -3
- package/dist/radio/radio.mjs +1 -1
- package/dist/rate/index.d.mts +3 -3
- package/dist/result/index.d.mts +22 -7
- package/dist/result/index.mjs +11 -6
- package/dist/result/noFound.d.mts +2 -2
- package/dist/result/serverError.d.mts +2 -2
- package/dist/result/unauthorized.d.mts +2 -2
- package/dist/segmented/index.d.mts +18 -7
- package/dist/select/index.d.mts +48 -20
- package/dist/skeleton/Avatar.d.mts +2 -2
- package/dist/skeleton/Button.d.mts +2 -2
- package/dist/skeleton/Image.d.mts +2 -2
- package/dist/skeleton/Input.d.mts +2 -2
- package/dist/skeleton/Node.d.mts +3 -3
- package/dist/skeleton/Skeleton.d.mts +22 -7
- package/dist/slider/index.d.mts +19 -6
- package/dist/slider/index.mjs +4 -4
- package/dist/space/index.d.mts +18 -9
- package/dist/spin/Indicator/Progress.mjs +3 -3
- package/dist/spin/index.d.mts +19 -6
- package/dist/splitter/SplitBar.mjs +12 -12
- package/dist/splitter/Splitter.d.mts +3 -3
- package/dist/splitter/Splitter.mjs +1 -1
- package/dist/splitter/hooks/useItems.mjs +2 -2
- package/dist/splitter/hooks/useResizable.mjs +5 -5
- package/dist/splitter/hooks/useResize.mjs +2 -2
- package/dist/splitter/index.d.mts +2 -2
- package/dist/splitter/interface.d.mts +21 -7
- package/dist/splitter/style/index.mjs +2 -28
- package/dist/statistic/Statistic.d.mts +21 -6
- package/dist/statistic/Statistic.mjs +1 -1
- package/dist/statistic/Timer.d.mts +5 -5
- package/dist/statistic/index.d.mts +5 -5
- package/dist/steps/context.mjs +5 -2
- package/dist/steps/index.d.mts +31 -9
- package/dist/steps/index.mjs +3 -3
- package/dist/style/motion/fade.mjs +25 -0
- package/dist/switch/index.d.mts +14 -7
- package/dist/switch/index.mjs +2 -2
- package/dist/table/Column.d.mts +3 -3
- package/dist/table/ColumnGroup.d.mts +3 -3
- package/dist/table/InternalTable.d.mts +35 -13
- package/dist/table/InternalTable.mjs +12 -6
- package/dist/table/Table.d.mts +3 -3
- package/dist/table/TableMeasureRowContext.mjs +20 -0
- package/dist/table/hooks/useFilter/FilterDropdown.mjs +17 -12
- package/dist/table/hooks/useSelection.mjs +1 -1
- package/dist/table/interface.d.mts +1 -2
- package/dist/table/style/virtual.mjs +1 -1
- package/dist/tabs/TabPane.d.mts +3 -3
- package/dist/tabs/index.d.mts +27 -11
- package/dist/tabs/index.mjs +5 -5
- package/dist/tag/CheckableTag.d.mts +3 -3
- package/dist/tag/CheckableTagGroup.d.mts +3 -3
- package/dist/tag/index.d.mts +16 -7
- package/dist/tag/index.mjs +1 -1
- package/dist/tag/style/index.mjs +1 -1
- package/dist/theme/index.d.mts +1 -2
- package/dist/theme/interface/maps/index.d.mts +0 -1
- package/dist/theme/useToken.mjs +3 -3
- package/dist/theme/util/genStyleUtils.mjs +3 -2
- package/dist/time-picker/index.d.mts +38 -14
- package/dist/time-picker/index.mjs +1 -1
- package/dist/timeline/Timeline.d.mts +49 -14
- package/dist/timeline/Timeline.mjs +82 -11
- package/dist/timeline/index.d.mts +1 -2
- package/dist/timeline/style/horizontal.mjs +73 -0
- package/dist/timeline/style/index.d.mts +10 -5
- package/dist/timeline/style/index.mjs +93 -137
- package/dist/timeline/useItems.mjs +52 -0
- package/dist/tooltip/PurePanel.d.mts +2 -2
- package/dist/tooltip/UniqueProvider/index.d.mts +2 -2
- package/dist/tooltip/index.d.mts +17 -8
- package/dist/tooltip/index.mjs +11 -3
- package/dist/tooltip/style/index.d.mts +7 -1
- package/dist/tooltip/style/index.mjs +3 -2
- package/dist/tour/index.d.mts +3 -3
- package/dist/tour/index.mjs +1 -1
- package/dist/tour/interface.d.mts +29 -3
- package/dist/transfer/Actions.d.mts +2 -2
- package/dist/transfer/ListItem.mjs +4 -4
- package/dist/transfer/Section.d.mts +2 -2
- package/dist/transfer/Transfer.d.mts +3 -3
- package/dist/transfer/Transfer.mjs +4 -4
- package/dist/transfer/index.d.mts +1 -1
- package/dist/transfer/interface.d.mts +32 -7
- package/dist/transfer/search.d.mts +3 -3
- package/dist/tree/DirectoryTree.d.mts +3 -3
- package/dist/tree/Tree.d.mts +18 -7
- package/dist/tree/index.d.mts +0 -1
- package/dist/tree-select/index.d.mts +41 -12
- package/dist/tree-select/style/index.d.mts +1 -1
- package/dist/typography/Editable.mjs +4 -4
- package/dist/typography/Link.d.mts +3 -3
- package/dist/typography/Paragraph.d.mts +3 -3
- package/dist/typography/Text.d.mts +3 -3
- package/dist/typography/Title.d.mts +3 -3
- package/dist/typography/Typography.d.mts +3 -3
- package/dist/typography/Typography.mjs +2 -12
- package/dist/typography/index.d.mts +9 -10
- package/dist/typography/interface.d.mts +0 -2
- package/dist/typography/style/mixins.mjs +3 -3
- package/dist/upload/Dragger.d.mts +3 -3
- package/dist/upload/Upload.d.mts +3 -4
- package/dist/upload/index.d.mts +3 -3
- package/dist/upload/interface.d.mts +13 -4
- package/dist/watermark/index.d.mts +2 -2
- package/dist/watermark/index.mjs +3 -3
- package/package.json +45 -41
- package/web-tags.json +1108 -1067
- package/web-types.json +3861 -4257
- package/dist/timeline/TimelineItem.d.mts +0 -20
- package/dist/timeline/TimelineItem.mjs +0 -115
- package/dist/timeline/TimelineItemList.mjs +0 -158
- /package/dist/{reset.css/reset.css → reset.css} +0 -0
|
@@ -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 "../_util/hooks/index.mjs";
|
|
4
4
|
import { InputStatus } from "../_util/statusUtils.mjs";
|
|
5
5
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
@@ -56,14 +56,39 @@ interface TransferSearchOption {
|
|
|
56
56
|
placeholder?: string;
|
|
57
57
|
defaultValue?: string;
|
|
58
58
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
interface TransferSemanticClassNames {
|
|
60
|
+
root?: string;
|
|
61
|
+
section?: string;
|
|
62
|
+
header?: string;
|
|
63
|
+
title?: string;
|
|
64
|
+
body?: string;
|
|
65
|
+
list?: string;
|
|
66
|
+
item?: string;
|
|
67
|
+
itemIcon?: string;
|
|
68
|
+
itemContent?: string;
|
|
69
|
+
footer?: string;
|
|
70
|
+
actions?: string;
|
|
71
|
+
}
|
|
72
|
+
interface TransferSemanticStyles {
|
|
73
|
+
root?: CSSProperties;
|
|
74
|
+
section?: CSSProperties;
|
|
75
|
+
header?: CSSProperties;
|
|
76
|
+
title?: CSSProperties;
|
|
77
|
+
body?: CSSProperties;
|
|
78
|
+
list?: CSSProperties;
|
|
79
|
+
item?: CSSProperties;
|
|
80
|
+
itemIcon?: CSSProperties;
|
|
81
|
+
itemContent?: CSSProperties;
|
|
82
|
+
footer?: CSSProperties;
|
|
83
|
+
actions?: CSSProperties;
|
|
84
|
+
}
|
|
85
|
+
type TransferClassNamesType = SemanticClassNamesType<TransferProps, TransferSemanticClassNames>;
|
|
86
|
+
type TransferStylesType = SemanticStylesType<TransferProps, TransferSemanticStyles>;
|
|
62
87
|
interface TransferListProps<RecordType> extends TransferLocale {
|
|
63
88
|
prefixCls: string;
|
|
64
89
|
style?: CSSProperties;
|
|
65
|
-
classes?:
|
|
66
|
-
styles?:
|
|
90
|
+
classes?: TransferSemanticClassNames;
|
|
91
|
+
styles?: TransferSemanticStyles;
|
|
67
92
|
titleText: VueNode;
|
|
68
93
|
dataSource: RecordType[];
|
|
69
94
|
filterOption?: (filterText: string, item: RecordType, direction: TransferDirection) => boolean;
|
|
@@ -158,4 +183,4 @@ interface TransferSlots<RecordType = any> {
|
|
|
158
183
|
actions?: () => any;
|
|
159
184
|
}
|
|
160
185
|
//#endregion
|
|
161
|
-
export { KeyWise, KeyWiseTransferItem, ListStyle, PaginationType, RenderResult, RenderResultObject, SelectAllLabel, TransferClassNamesType, TransferCustomListBodyProps, TransferDirection, TransferEmits, TransferItem, TransferKey, TransferListBodyProps, TransferListProps, TransferLocale, TransferProps, TransferRender, TransferSearchOption,
|
|
186
|
+
export { KeyWise, KeyWiseTransferItem, ListStyle, PaginationType, RenderResult, RenderResultObject, SelectAllLabel, TransferClassNamesType, TransferCustomListBodyProps, TransferDirection, TransferEmits, TransferItem, TransferKey, TransferListBodyProps, TransferListProps, TransferLocale, TransferProps, TransferRender, TransferSearchOption, TransferSlots, TransferStylesType };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VueNode } from "../_util/type.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue217 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/transfer/search.d.ts
|
|
@@ -17,8 +17,8 @@ interface TransferSearchEmits {
|
|
|
17
17
|
interface TransferSearchSlots {
|
|
18
18
|
prefix?: () => VueNode;
|
|
19
19
|
}
|
|
20
|
-
declare const Search:
|
|
20
|
+
declare const Search: vue217.DefineSetupFnComponent<TransferSearchProps, TransferSearchEmits, SlotsType<TransferSearchSlots>, TransferSearchProps & {
|
|
21
21
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
22
|
-
},
|
|
22
|
+
}, vue217.PublicProps>;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { Search, TransferSearchEmits, TransferSearchProps, TransferSearchSlots };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TreeEmits, TreeProps as TreeProps$1, TreeSlots } from "./Tree.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue354 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
import { BasicDataNode, DataNode } from "@v-c/tree";
|
|
5
5
|
|
|
@@ -10,8 +10,8 @@ interface DirectoryTreeProps<T extends BasicDataNode = DataNode> extends TreePro
|
|
|
10
10
|
}
|
|
11
11
|
interface DirectoryTreeEmits extends TreeEmits {}
|
|
12
12
|
interface DirectoryTreeSlots extends TreeSlots {}
|
|
13
|
-
declare const DirectoryTree:
|
|
13
|
+
declare const DirectoryTree: vue354.DefineSetupFnComponent<DirectoryTreeProps<DataNode>, DirectoryTreeEmits, SlotsType<DirectoryTreeSlots>, DirectoryTreeProps<DataNode> & {
|
|
14
14
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
15
|
-
},
|
|
15
|
+
}, vue354.PublicProps>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { DirectoryTree, DirectoryTreeEmits, DirectoryTreeProps, DirectoryTreeSlots, ExpandAction };
|
package/dist/tree/Tree.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VueNode } from "../_util/type.mjs";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
|
|
3
3
|
import "../_util/hooks/index.mjs";
|
|
4
|
-
import * as
|
|
5
|
-
import { SlotsType } from "vue";
|
|
4
|
+
import * as vue356 from "vue";
|
|
5
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
6
6
|
import { BasicDataNode, DataNode, TreeProps } from "@v-c/tree";
|
|
7
7
|
import { Key } from "@v-c/util/dist/type";
|
|
8
8
|
|
|
@@ -74,9 +74,20 @@ interface DraggableConfig {
|
|
|
74
74
|
icon?: VueNode;
|
|
75
75
|
nodeDraggable?: DraggableFn;
|
|
76
76
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
interface TreeSemanticClassNames {
|
|
78
|
+
root?: string;
|
|
79
|
+
item?: string;
|
|
80
|
+
itemIcon?: string;
|
|
81
|
+
itemTitle?: string;
|
|
82
|
+
}
|
|
83
|
+
interface TreeSemanticStyles {
|
|
84
|
+
root?: CSSProperties;
|
|
85
|
+
item?: CSSProperties;
|
|
86
|
+
itemIcon?: CSSProperties;
|
|
87
|
+
itemTitle?: CSSProperties;
|
|
88
|
+
}
|
|
89
|
+
type TreeClassNamesType = SemanticClassNamesType<TreeProps$1, TreeSemanticClassNames>;
|
|
90
|
+
type TreeStylesType = SemanticStylesType<TreeProps$1, TreeSemanticStyles>;
|
|
80
91
|
interface TreeProps$1<T extends BasicDataNode = DataNode> extends Omit<TreeProps<T>, 'prefixCls' | 'showLine' | 'direction' | 'draggable' | 'className' | 'icon' | 'switcherIcon' | 'classNames' | 'rootClassName' | 'styles' | 'onCheck' | 'onClick' | 'onBlur' | 'onDrop' | 'onLoad' | 'onActiveChange' | 'onContextMenu' | 'onDoubleClick' | 'onExpand' | 'onKeyDown' | 'onDragEnd' | 'onDragOver' | 'onDragStart' | 'onDragLeave' | 'onDragEnter' | 'tabIndex' | 'onSelect' | 'onFocus' | 'onMouseEnter' | 'onMouseLeave' | 'onRightClick' | 'onScroll' | 'style'> {
|
|
81
92
|
rootClass?: string;
|
|
82
93
|
showLine?: boolean | {
|
|
@@ -166,8 +177,8 @@ interface TreeSlots {
|
|
|
166
177
|
icon: (props: AntdTreeNodeAttribute) => any;
|
|
167
178
|
titleRender: TreeProps['titleRender'];
|
|
168
179
|
}
|
|
169
|
-
declare const Tree:
|
|
180
|
+
declare const Tree: vue356.DefineSetupFnComponent<TreeProps$1<DataNode>, TreeEmits, SlotsType<TreeSlots>, TreeProps$1<DataNode> & {
|
|
170
181
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
171
|
-
},
|
|
182
|
+
}, vue356.PublicProps>;
|
|
172
183
|
//#endregion
|
|
173
184
|
export { AntTreeNode, AntTreeNodeCheckedEvent, AntTreeNodeExpandedEvent, AntTreeNodeMouseEvent, AntTreeNodeProps, AntTreeNodeSelectedEvent, AntdTreeNodeAttribute, SwitcherIcon, Tree, TreeEmits, TreeProps$1 as TreeProps, TreeSlots };
|
package/dist/tree/index.d.mts
CHANGED
|
@@ -3,7 +3,6 @@ import { DirectoryTree, DirectoryTreeEmits, DirectoryTreeProps, DirectoryTreeSlo
|
|
|
3
3
|
import { BasicDataNode as BasicDataNode$1, DataNode as DataNode$1, TreeNode } from "@v-c/tree";
|
|
4
4
|
|
|
5
5
|
//#region src/tree/index.d.ts
|
|
6
|
-
|
|
7
6
|
declare const Tree: typeof Tree$1 & {
|
|
8
7
|
DirectoryTree: typeof DirectoryTree;
|
|
9
8
|
TreeNode: typeof TreeNode;
|
|
@@ -1,25 +1,54 @@
|
|
|
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 { SwitcherIcon, TreeProps } from "../tree/Tree.mjs";
|
|
8
8
|
import "../tree/index.mjs";
|
|
9
9
|
import { Variant } from "../config-provider/context.mjs";
|
|
10
|
-
import * as
|
|
10
|
+
import * as vue180 from "vue";
|
|
11
11
|
import { App, CSSProperties, SlotsType } from "vue";
|
|
12
12
|
import { DataNode, SHOW_ALL, SHOW_CHILD, SHOW_PARENT, TreeNode, TreeSelectProps } from "@v-c/tree-select";
|
|
13
13
|
|
|
14
14
|
//#region src/tree-select/index.d.ts
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
interface TreeSelectSemanticClassNames {
|
|
16
|
+
root?: string;
|
|
17
|
+
prefix?: string;
|
|
18
|
+
input?: string;
|
|
19
|
+
suffix?: string;
|
|
20
|
+
content?: string;
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
item?: string;
|
|
23
|
+
itemContent?: string;
|
|
24
|
+
itemRemove?: string;
|
|
25
|
+
}
|
|
26
|
+
interface TreeSelectSemanticStyles {
|
|
27
|
+
root?: CSSProperties;
|
|
28
|
+
prefix?: CSSProperties;
|
|
29
|
+
input?: CSSProperties;
|
|
30
|
+
suffix?: CSSProperties;
|
|
31
|
+
content?: CSSProperties;
|
|
32
|
+
placeholder?: CSSProperties;
|
|
33
|
+
item?: CSSProperties;
|
|
34
|
+
itemContent?: CSSProperties;
|
|
35
|
+
itemRemove?: CSSProperties;
|
|
36
|
+
}
|
|
37
|
+
interface TreeSelectPopupSemanticClassNames {
|
|
38
|
+
root?: string;
|
|
39
|
+
item?: string;
|
|
40
|
+
itemTitle?: string;
|
|
41
|
+
}
|
|
42
|
+
interface TreeSelectPopupSemanticStyles {
|
|
43
|
+
root?: CSSProperties;
|
|
44
|
+
item?: CSSProperties;
|
|
45
|
+
itemTitle?: CSSProperties;
|
|
46
|
+
}
|
|
47
|
+
type TreeSelectClassNamesType = SemanticClassNamesType<TreeSelectProps$1, TreeSelectSemanticClassNames> & {
|
|
48
|
+
popup?: TreeSelectPopupSemanticClassNames;
|
|
20
49
|
};
|
|
21
|
-
type TreeSelectStylesType = SemanticStylesType<TreeSelectProps$1,
|
|
22
|
-
popup?:
|
|
50
|
+
type TreeSelectStylesType = SemanticStylesType<TreeSelectProps$1, TreeSelectSemanticStyles> & {
|
|
51
|
+
popup?: TreeSelectPopupSemanticStyles;
|
|
23
52
|
};
|
|
24
53
|
interface BaseTreeSelectProps<ValueType = any, OptionType extends DataNode = DataNode> extends Omit<TreeSelectProps<ValueType, OptionType>, 'showTreeIcon' | 'treeMotion' | 'mode' | 'getInputElement' | 'backfill' | 'treeLine' | 'switcherIcon' | 'classNames' | 'styles' | 'style' | 'onSelect' | 'onTreeExpand' | 'onTreeLoad' | 'onChange' | 'onDeselect' | 'onPopupScroll' | 'onPopupVisibleChange' | 'onSearch'> {
|
|
25
54
|
size?: SizeType;
|
|
@@ -83,9 +112,9 @@ interface TreeSelectSlots {
|
|
|
83
112
|
switcherIcon?: () => any;
|
|
84
113
|
treeTitleRender?: (nodeData: DataNode) => any;
|
|
85
114
|
}
|
|
86
|
-
declare const InternalTreeSelect:
|
|
115
|
+
declare const InternalTreeSelect: vue180.DefineSetupFnComponent<TreeSelectProps$1<any, DataNode>, TreeSelectEmits, SlotsType<TreeSelectSlots>, TreeSelectProps$1<any, DataNode> & {
|
|
87
116
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
88
|
-
},
|
|
117
|
+
}, vue180.PublicProps>;
|
|
89
118
|
declare const TreeSelect: typeof InternalTreeSelect & {
|
|
90
119
|
install: (app: App) => void;
|
|
91
120
|
TreeNode: typeof TreeNode;
|
|
@@ -94,6 +123,6 @@ declare const TreeSelect: typeof InternalTreeSelect & {
|
|
|
94
123
|
SHOW_CHILD: typeof SHOW_CHILD;
|
|
95
124
|
_InternalPanelDoNotUseOrYouWillBeFired: any;
|
|
96
125
|
};
|
|
97
|
-
declare const TreeSelectNode:
|
|
126
|
+
declare const TreeSelectNode: vue180.DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any>, vue180.PublicProps>;
|
|
98
127
|
//#endregion
|
|
99
128
|
export { TreeSelect, TreeSelectEmits, TreeSelectNode, TreeSelectProps$1 as TreeSelectProps, TreeSelectSlots };
|
|
@@ -11,7 +11,7 @@ import KeyCode from "@v-c/util/dist/KeyCode";
|
|
|
11
11
|
const defaults = { autoSize: true };
|
|
12
12
|
const Editable = /* @__PURE__ */ defineComponent((props) => {
|
|
13
13
|
const { prefixCls, direction, maxLength, autoSize } = toPropsRefs(props, "prefixCls", "direction", "maxLength", "autoSize");
|
|
14
|
-
const ref
|
|
14
|
+
const ref = shallowRef();
|
|
15
15
|
const inComposition = shallowRef(false);
|
|
16
16
|
const lastKeyCode = shallowRef(null);
|
|
17
17
|
const current = shallowRef(props.value);
|
|
@@ -19,8 +19,8 @@ const Editable = /* @__PURE__ */ defineComponent((props) => {
|
|
|
19
19
|
current.value = val;
|
|
20
20
|
});
|
|
21
21
|
onMounted(() => {
|
|
22
|
-
if (ref
|
|
23
|
-
const { textArea } = ref
|
|
22
|
+
if (ref.value?.resizableTextArea) {
|
|
23
|
+
const { textArea } = ref.value.resizableTextArea;
|
|
24
24
|
textArea.focus();
|
|
25
25
|
const { length } = textArea.value;
|
|
26
26
|
textArea.setSelectionRange(length, length);
|
|
@@ -64,7 +64,7 @@ const Editable = /* @__PURE__ */ defineComponent((props) => {
|
|
|
64
64
|
"class": textAreaClassName,
|
|
65
65
|
"style": props.style
|
|
66
66
|
}, [createVNode(TextArea_default, {
|
|
67
|
-
"ref": ref
|
|
67
|
+
"ref": ref,
|
|
68
68
|
"maxlength": maxLength.value,
|
|
69
69
|
"value": current.value,
|
|
70
70
|
"onChange": onChange,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BlockProps, TypographyBaseEmits, TypographySlots } from "./interface.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue413 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/typography/Link.d.ts
|
|
@@ -9,8 +9,8 @@ interface LinkProps extends BlockProps {
|
|
|
9
9
|
target?: string;
|
|
10
10
|
rel?: string;
|
|
11
11
|
}
|
|
12
|
-
declare const Link:
|
|
12
|
+
declare const Link: vue413.DefineSetupFnComponent<LinkProps, TypographyBaseEmits, SlotsType<TypographySlots>, LinkProps & {
|
|
13
13
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
14
|
-
},
|
|
14
|
+
}, vue413.PublicProps>;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { Link, LinkProps };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BlockProps, TypographyBaseEmits, TypographySlots } from "./interface.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue417 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/typography/Paragraph.d.ts
|
|
6
6
|
interface ParagraphProps extends BlockProps {}
|
|
7
|
-
declare const Paragraph:
|
|
7
|
+
declare const Paragraph: vue417.DefineSetupFnComponent<ParagraphProps, TypographyBaseEmits, SlotsType<TypographySlots>, ParagraphProps & {
|
|
8
8
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
9
|
-
},
|
|
9
|
+
}, vue417.PublicProps>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Paragraph, ParagraphProps };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BlockProps, EllipsisConfig, TypographyBaseEmits, TypographySlots } from "./interface.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue411 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/typography/Text.d.ts
|
|
6
6
|
interface TextProps extends BlockProps {
|
|
7
7
|
ellipsis?: boolean | Omit<EllipsisConfig, 'expandable' | 'rows' | 'onExpand'>;
|
|
8
8
|
}
|
|
9
|
-
declare const Text$1:
|
|
9
|
+
declare const Text$1: vue411.DefineSetupFnComponent<TextProps, TypographyBaseEmits, SlotsType<TypographySlots>, TextProps & {
|
|
10
10
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
11
|
-
},
|
|
11
|
+
}, vue411.PublicProps>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Text$1 as Text, TextProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BlockProps, TypographyBaseEmits, TypographySlots } from "./interface.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue415 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/typography/Title.d.ts
|
|
@@ -7,8 +7,8 @@ declare const TITLE_ELE_LIST: readonly [1, 2, 3, 4, 5];
|
|
|
7
7
|
interface TitleProps extends Omit<BlockProps, 'strong'> {
|
|
8
8
|
level?: (typeof TITLE_ELE_LIST)[number];
|
|
9
9
|
}
|
|
10
|
-
declare const Title:
|
|
10
|
+
declare const Title: vue415.DefineSetupFnComponent<TitleProps, TypographyBaseEmits, SlotsType<TypographySlots>, TitleProps & {
|
|
11
11
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
12
|
-
},
|
|
12
|
+
}, vue415.PublicProps>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { Title, TitleProps };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { EmptyEmit } from "../_util/type.mjs";
|
|
2
2
|
import { TypographyBaseProps, TypographySlots } from "./interface.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue409 from "vue";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/typography/Typography.d.ts
|
|
7
|
-
declare const Typography:
|
|
7
|
+
declare const Typography: vue409.DefineSetupFnComponent<TypographyBaseProps, EmptyEmit, SlotsType<TypographySlots>, TypographyBaseProps & {
|
|
8
8
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
9
|
-
},
|
|
9
|
+
}, vue409.PublicProps>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Typography };
|
|
@@ -14,7 +14,7 @@ const Typography = /* @__PURE__ */ defineComponent((props, { slots, attrs, expos
|
|
|
14
14
|
const elementRef = shallowRef();
|
|
15
15
|
expose({ el: elementRef });
|
|
16
16
|
return () => {
|
|
17
|
-
const Component
|
|
17
|
+
const Component = resolveDynamicComponent(props.component || "article");
|
|
18
18
|
const direction = typographyDirection.value || contextDirection.value;
|
|
19
19
|
const { className, restAttrs, style } = getAttrStyleAndClass(attrs);
|
|
20
20
|
const componentClassName = classNames(prefixCls.value, contextClassName.value, { [`${prefixCls.value}-rtl`]: direction === "rtl" }, props.rootClass, className, hashId.value, cssVarCls.value);
|
|
@@ -22,7 +22,7 @@ const Typography = /* @__PURE__ */ defineComponent((props, { slots, attrs, expos
|
|
|
22
22
|
...contextStyle.value,
|
|
23
23
|
...style
|
|
24
24
|
};
|
|
25
|
-
return createVNode(Component
|
|
25
|
+
return createVNode(Component, mergeProps({
|
|
26
26
|
"class": componentClassName,
|
|
27
27
|
"style": mergedStyle,
|
|
28
28
|
"ref": elementRef,
|
|
@@ -50,16 +50,6 @@ const Typography = /* @__PURE__ */ defineComponent((props, { slots, attrs, expos
|
|
|
50
50
|
required: false,
|
|
51
51
|
default: void 0
|
|
52
52
|
},
|
|
53
|
-
classes: {
|
|
54
|
-
type: [Object, Function],
|
|
55
|
-
required: false,
|
|
56
|
-
default: void 0
|
|
57
|
-
},
|
|
58
|
-
styles: {
|
|
59
|
-
type: [Object, Function],
|
|
60
|
-
required: false,
|
|
61
|
-
default: void 0
|
|
62
|
-
},
|
|
63
53
|
title: {
|
|
64
54
|
type: String,
|
|
65
55
|
required: false,
|
|
@@ -4,22 +4,21 @@ import { Link, LinkProps } from "./Link.mjs";
|
|
|
4
4
|
import { Title, TitleProps } from "./Title.mjs";
|
|
5
5
|
import { Paragraph, ParagraphProps } from "./Paragraph.mjs";
|
|
6
6
|
import { Typography as Typography$1 } from "./Typography.mjs";
|
|
7
|
-
import * as
|
|
7
|
+
import * as vue184 from "vue";
|
|
8
8
|
|
|
9
9
|
//#region src/typography/index.d.ts
|
|
10
|
-
|
|
11
|
-
declare const TypographyText: vue188.DefineSetupFnComponent<TextProps, TypographyBaseEmits, vue188.SlotsType<TypographySlots>, TextProps & {
|
|
10
|
+
declare const TypographyText: vue184.DefineSetupFnComponent<TextProps, TypographyBaseEmits, vue184.SlotsType<TypographySlots>, TextProps & {
|
|
12
11
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
13
|
-
},
|
|
14
|
-
declare const TypographyLink:
|
|
12
|
+
}, vue184.PublicProps>;
|
|
13
|
+
declare const TypographyLink: vue184.DefineSetupFnComponent<LinkProps, TypographyBaseEmits, vue184.SlotsType<TypographySlots>, LinkProps & {
|
|
15
14
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
16
|
-
},
|
|
17
|
-
declare const TypographyTitle:
|
|
15
|
+
}, vue184.PublicProps>;
|
|
16
|
+
declare const TypographyTitle: vue184.DefineSetupFnComponent<TitleProps, TypographyBaseEmits, vue184.SlotsType<TypographySlots>, TitleProps & {
|
|
18
17
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
19
|
-
},
|
|
20
|
-
declare const TypographyParagraph:
|
|
18
|
+
}, vue184.PublicProps>;
|
|
19
|
+
declare const TypographyParagraph: vue184.DefineSetupFnComponent<ParagraphProps, TypographyBaseEmits, vue184.SlotsType<TypographySlots>, ParagraphProps & {
|
|
21
20
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
22
|
-
},
|
|
21
|
+
}, vue184.PublicProps>;
|
|
23
22
|
declare const Typography: typeof Typography$1 & {
|
|
24
23
|
Text: typeof Text$1;
|
|
25
24
|
Link: typeof Link;
|
|
@@ -87,8 +87,6 @@ interface TypographyBaseProps extends ComponentBaseProps {
|
|
|
87
87
|
rootClass?: string;
|
|
88
88
|
component?: keyof HTMLElementTagNameMap | string;
|
|
89
89
|
direction?: DirectionType;
|
|
90
|
-
classes?: TypographyClassNamesType;
|
|
91
|
-
styles?: TypographyStylesType;
|
|
92
90
|
title?: string;
|
|
93
91
|
}
|
|
94
92
|
//#endregion
|
|
@@ -32,10 +32,10 @@ const getTitleStyles = (token) => {
|
|
|
32
32
|
return styles;
|
|
33
33
|
};
|
|
34
34
|
const getLinkStyles = (token) => {
|
|
35
|
-
const { componentCls } = token;
|
|
36
|
-
|
|
35
|
+
const { componentCls, antCls } = token;
|
|
36
|
+
const btnCls = `${antCls}-btn`;
|
|
37
|
+
return { [`a&:not(${btnCls}), a:not(${btnCls})`]: {
|
|
37
38
|
...operationUnit(token),
|
|
38
|
-
userSelect: "text",
|
|
39
39
|
[`&[disabled], &${componentCls}-disabled`]: {
|
|
40
40
|
"color": token.colorTextDisabled,
|
|
41
41
|
"cursor": "not-allowed",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { EmptyEmit } from "../_util/type.mjs";
|
|
2
2
|
import { UploadProps, UploadSlots } from "./interface.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue305 from "vue";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/upload/Dragger.d.ts
|
|
7
7
|
type DraggerProps<T = any> = UploadProps<T> & {
|
|
8
8
|
height?: number;
|
|
9
9
|
};
|
|
10
|
-
declare const Dragger:
|
|
10
|
+
declare const Dragger: vue305.DefineSetupFnComponent<DraggerProps<any>, EmptyEmit, SlotsType<UploadSlots<any>>, UploadProps<any> & {
|
|
11
11
|
height?: number;
|
|
12
12
|
} & {
|
|
13
13
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
14
|
-
},
|
|
14
|
+
}, vue305.PublicProps>;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { Dragger, DraggerProps };
|
package/dist/upload/Upload.d.mts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { UploadEmits, UploadProps, UploadSlots } from "./interface.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue303 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
import "@v-c/upload";
|
|
5
5
|
|
|
6
6
|
//#region src/upload/Upload.d.ts
|
|
7
|
-
|
|
8
|
-
declare const InternalUpload: vue336.DefineSetupFnComponent<UploadProps<any>, UploadEmits<any>, SlotsType<UploadSlots<any>>, UploadProps<any> & {
|
|
7
|
+
declare const InternalUpload: vue303.DefineSetupFnComponent<UploadProps<any>, UploadEmits<any>, SlotsType<UploadSlots<any>>, UploadProps<any> & {
|
|
9
8
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
10
|
-
},
|
|
9
|
+
}, vue303.PublicProps>;
|
|
11
10
|
//#endregion
|
|
12
11
|
export { InternalUpload };
|
package/dist/upload/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { EmptyEmit } from "../_util/type.mjs";
|
|
|
2
2
|
import { UploadChangeParam, UploadEmits, UploadFile, UploadProps, UploadSlots } from "./interface.mjs";
|
|
3
3
|
import { Dragger, DraggerProps } from "./Dragger.mjs";
|
|
4
4
|
import { InternalUpload } from "./Upload.mjs";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue196 from "vue";
|
|
6
6
|
import { App } from "vue";
|
|
7
7
|
|
|
8
8
|
//#region src/upload/index.d.ts
|
|
@@ -11,10 +11,10 @@ declare const Upload: typeof InternalUpload & {
|
|
|
11
11
|
Dragger: typeof Dragger;
|
|
12
12
|
LIST_IGNORE: string;
|
|
13
13
|
};
|
|
14
|
-
declare const UploadDragger:
|
|
14
|
+
declare const UploadDragger: vue196.DefineSetupFnComponent<DraggerProps<any>, EmptyEmit, vue196.SlotsType<UploadSlots<any>>, UploadProps<any> & {
|
|
15
15
|
height?: number;
|
|
16
16
|
} & {
|
|
17
17
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
18
|
-
},
|
|
18
|
+
}, vue196.PublicProps>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { Upload, UploadDragger };
|
|
@@ -2,7 +2,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
2
2
|
import "../_util/hooks/index.mjs";
|
|
3
3
|
import { ProgressAriaProps, ProgressProps } from "../progress/progress.mjs";
|
|
4
4
|
import "../progress/index.mjs";
|
|
5
|
-
import { ImgHTMLAttributes } from "vue";
|
|
5
|
+
import { CSSProperties, ImgHTMLAttributes } from "vue";
|
|
6
6
|
import { AcceptConfig, UploadRequestOption, VcFile } from "@v-c/upload";
|
|
7
7
|
|
|
8
8
|
//#region src/upload/interface.d.ts
|
|
@@ -66,9 +66,18 @@ type ItemRender<T = any> = (originNode: any, file: UploadFile<T>, fileList: Arra
|
|
|
66
66
|
}) => any;
|
|
67
67
|
type PreviewFileHandler = (file: File | Blob) => PromiseLike<string>;
|
|
68
68
|
type BeforeUploadValueType = void | boolean | string | Blob | File;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
interface UploadSemanticClassNames {
|
|
70
|
+
root?: string;
|
|
71
|
+
list?: string;
|
|
72
|
+
item?: string;
|
|
73
|
+
}
|
|
74
|
+
interface UploadSemanticStyles {
|
|
75
|
+
root?: CSSProperties;
|
|
76
|
+
list?: CSSProperties;
|
|
77
|
+
item?: CSSProperties;
|
|
78
|
+
}
|
|
79
|
+
type UploadClassNamesType<T = any> = SemanticClassNamesType<UploadProps<T>, UploadSemanticClassNames>;
|
|
80
|
+
type UploadStylesType<T = any> = SemanticStylesType<UploadProps<T>, UploadSemanticStyles>;
|
|
72
81
|
interface UploadProps<T = any> {
|
|
73
82
|
type?: UploadType;
|
|
74
83
|
name?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue199 from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/watermark/index.d.ts
|
|
4
4
|
interface WatermarkProps {
|
|
@@ -21,6 +21,6 @@ interface WatermarkProps {
|
|
|
21
21
|
offset?: [number, number];
|
|
22
22
|
inherit?: boolean;
|
|
23
23
|
}
|
|
24
|
-
declare const Watermark:
|
|
24
|
+
declare const Watermark: vue199.DefineSetupFnComponent<WatermarkProps, {}, {}, WatermarkProps & {}, vue199.PublicProps>;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { Watermark, WatermarkProps };
|
package/dist/watermark/index.mjs
CHANGED
|
@@ -154,9 +154,9 @@ const Watermark = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
154
154
|
};
|
|
155
155
|
const syncWatermark = useRafDebounce(renderWatermark);
|
|
156
156
|
const [appendWatermark, removeWatermark, isWatermarkEle] = useWatermark(markStyle);
|
|
157
|
-
watch([watermarkInfo, targetElements], ([watermarkInfo
|
|
158
|
-
if (watermarkInfo
|
|
159
|
-
appendWatermark(watermarkInfo
|
|
157
|
+
watch([watermarkInfo, targetElements], ([watermarkInfo, targetElements]) => {
|
|
158
|
+
if (watermarkInfo) targetElements.forEach((holder) => {
|
|
159
|
+
appendWatermark(watermarkInfo[0], watermarkInfo[1], holder);
|
|
160
160
|
});
|
|
161
161
|
});
|
|
162
162
|
const onMutate = (mutations) => {
|