antdv-next 1.4.1 → 1.4.3
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/hooks/useClosable.d.ts +5 -5
- package/dist/_util/statusUtils.d.ts +1 -1
- package/dist/_util/vueNode.d.ts +8 -4
- package/dist/alert/Alert.d.ts +7 -7
- package/dist/antd-with-locales.esm.js +13344 -11050
- package/dist/antd-with-locales.js +80 -80
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +10337 -9090
- package/dist/antd.js +74 -74
- package/dist/auto-complete/index.d.ts +4 -4
- package/dist/avatar/Avatar.d.ts +3 -3
- package/dist/badge/Ribbon.d.ts +2 -2
- package/dist/badge/index.d.ts +3 -3
- package/dist/border-beam/style/index.js +2 -2
- package/dist/breadcrumb/Breadcrumb.d.ts +4 -4
- package/dist/breadcrumb/BreadcrumbItem.d.ts +4 -4
- package/dist/button/Button.d.ts +2 -2
- package/dist/button/buttonHelper.d.ts +1 -1
- package/dist/button/style/index.js +13 -0
- package/dist/calendar/generateCalendar.d.ts +8 -8
- package/dist/card/Card.d.ts +9 -9
- package/dist/card/CardMeta.d.ts +4 -4
- package/dist/carousel/index.d.ts +3 -3
- package/dist/cascader/Panel.js +26 -2
- package/dist/cascader/index.d.ts +53 -21
- package/dist/cascader/index.js +33 -5
- package/dist/checkbox/Checkbox.d.ts +1 -1
- package/dist/checkbox/Checkbox.js +4 -4
- package/dist/checkbox/Group.d.ts +2 -2
- package/dist/checkbox/style/index.js +3 -3
- package/dist/collapse/Collapse.d.ts +3 -3
- package/dist/collapse/CollapsePanel.d.ts +3 -3
- package/dist/color-picker/hooks/useModeColor.d.ts +2 -2
- package/dist/color-picker/interface.d.ts +2 -2
- package/dist/config-provider/context.d.ts +20 -14
- package/dist/config-provider/index.js +1 -1
- package/dist/date-picker/generatePicker/generateRangePicker.d.ts +2 -2
- package/dist/date-picker/generatePicker/generateRangePicker.js +112 -10
- package/dist/date-picker/generatePicker/generateSinglePicker.d.ts +2 -2
- package/dist/date-picker/generatePicker/generateSinglePicker.js +101 -11
- package/dist/date-picker/util.d.ts +10 -1
- package/dist/descriptions/Item.d.ts +3 -3
- package/dist/descriptions/hooks/useItems.d.ts +11 -11
- package/dist/descriptions/index.d.ts +3 -3
- package/dist/descriptions/style/index.js +2 -3
- package/dist/drawer/DrawerPanel.d.ts +5 -5
- package/dist/empty/index.d.ts +3 -3
- package/dist/float-button/FloatButton.d.ts +5 -5
- package/dist/float-button/FloatButton.js +1 -1
- package/dist/float-button/FloatButtonGroup.d.ts +2 -2
- package/dist/form/ErrorList.d.ts +2 -2
- package/dist/form/context.d.ts +1 -1
- package/dist/form/hooks/useVariant.d.ts +1 -1
- package/dist/image/index.d.ts +2 -2
- package/dist/input/Input.d.ts +5 -5
- package/dist/input/OTP/index.d.ts +2 -2
- package/dist/input/Password.d.ts +2 -2
- package/dist/input/Search.d.ts +3 -3
- package/dist/input/TextArea.js +1 -1
- package/dist/input/style/search.js +1 -0
- package/dist/input-number/index.d.ts +8 -8
- package/dist/input-number/index.js +0 -4
- package/dist/layout/layout.js +54 -48
- package/dist/locale/ar_EG.js +18 -4
- package/dist/locale/az_AZ.js +2 -1
- package/dist/locale/bg_BG.js +44 -3
- package/dist/locale/bn_BD.js +20 -4
- package/dist/locale/by_BY.js +17 -3
- package/dist/locale/ca_ES.js +22 -4
- package/dist/locale/cs_CZ.js +6 -3
- package/dist/locale/da_DK.js +34 -3
- package/dist/locale/de_DE.js +14 -4
- package/dist/locale/el_GR.js +4 -2
- package/dist/locale/en_GB.js +6 -3
- package/dist/locale/en_US.js +2 -1
- package/dist/locale/es_ES.js +17 -3
- package/dist/locale/et_EE.js +17 -3
- package/dist/locale/eu_ES.js +8 -4
- package/dist/locale/fa_IR.js +2 -1
- package/dist/locale/fi_FI.js +35 -4
- package/dist/locale/fr_BE.js +20 -3
- package/dist/locale/fr_CA.js +20 -3
- package/dist/locale/fr_FR.js +20 -3
- package/dist/locale/ga_IE.js +24 -5
- package/dist/locale/gl_ES.js +36 -5
- package/dist/locale/he_IL.js +30 -5
- package/dist/locale/hi_IN.js +20 -4
- package/dist/locale/hr_HR.js +21 -4
- package/dist/locale/hu_HU.js +43 -3
- package/dist/locale/hy_AM.js +33 -4
- package/dist/locale/id_ID.js +2 -1
- package/dist/locale/is_IS.js +44 -3
- package/dist/locale/it_IT.js +6 -3
- package/dist/locale/ja_JP.js +2 -1
- package/dist/locale/ka_GE.js +20 -4
- package/dist/locale/kk_KZ.js +22 -5
- package/dist/locale/km_KH.js +35 -4
- package/dist/locale/kmr_IQ.js +45 -4
- package/dist/locale/kn_IN.js +18 -3
- package/dist/locale/ko_KR.js +8 -4
- package/dist/locale/ku_IQ.js +45 -4
- package/dist/locale/lt_LT.js +8 -4
- package/dist/locale/lv_LV.js +45 -4
- package/dist/locale/mk_MK.js +36 -4
- package/dist/locale/ml_IN.js +20 -4
- package/dist/locale/mn_MN.js +17 -3
- package/dist/locale/mr_IN.js +13 -1
- package/dist/locale/ms_MY.js +8 -4
- package/dist/locale/my_MM.js +18 -5
- package/dist/locale/ne_NP.js +2 -1
- package/dist/locale/nl_BE.js +20 -4
- package/dist/locale/nl_NL.js +20 -4
- package/dist/locale/pl_PL.js +17 -3
- package/dist/locale/pt_BR.js +6 -3
- package/dist/locale/pt_PT.js +2 -1
- package/dist/locale/ro_RO.js +20 -4
- package/dist/locale/ru_RU.js +4 -2
- package/dist/locale/si_LK.js +17 -3
- package/dist/locale/sk_SK.js +17 -3
- package/dist/locale/sl_SI.js +45 -4
- package/dist/locale/sr_RS.js +20 -4
- package/dist/locale/sv_SE.js +14 -4
- package/dist/locale/ta_IN.js +23 -5
- package/dist/locale/th_TH.js +2 -1
- package/dist/locale/tk_TK.js +21 -5
- package/dist/locale/tr_TR.js +17 -2
- package/dist/locale/uk_UA.js +12 -3
- package/dist/locale/ur_PK.js +20 -4
- package/dist/locale/uz_UZ.js +14 -4
- package/dist/locale/vi_VN.js +2 -1
- package/dist/locale/zh_CN.js +2 -1
- package/dist/locale/zh_HK.js +4 -2
- package/dist/locale/zh_TW.js +4 -2
- package/dist/masonry/Masonry.d.ts +18 -10
- package/dist/masonry/MasonryItem.d.ts +2 -2
- package/dist/mentions/index.d.ts +4 -4
- package/dist/mentions/index.js +62 -1
- package/dist/menu/MenuItem.d.ts +3 -3
- package/dist/menu/MenuItem.js +1 -1
- package/dist/menu/MenuItemGroup.d.ts +2 -2
- package/dist/menu/OverrideContext.d.ts +2 -2
- package/dist/menu/SubMenu.d.ts +2 -2
- package/dist/message/PureList.d.ts +3 -1
- package/dist/message/PureList.js +4 -0
- package/dist/message/interface.d.ts +3 -3
- package/dist/modal/ConfirmDialog.d.ts +5 -1
- package/dist/modal/ConfirmDialog.js +40 -19
- package/dist/modal/Modal.d.ts +12 -3
- package/dist/modal/Modal.js +24 -7
- package/dist/modal/interface.d.ts +14 -14
- package/dist/notification/PureList.d.ts +3 -1
- package/dist/notification/PureList.js +4 -0
- package/dist/notification/interface.d.ts +8 -8
- package/dist/notification/util.d.ts +2 -2
- package/dist/package.js +1 -1
- package/dist/pagination/Pagination.js +1 -1
- package/dist/pagination/interface.d.ts +7 -7
- package/dist/pagination/style/index.js +1 -1
- package/dist/popconfirm/index.d.ts +6 -6
- package/dist/popover/index.d.ts +4 -4
- package/dist/radio/radio.js +4 -4
- package/dist/radio/radioButton.js +4 -4
- package/dist/radio/style/index.js +2 -2
- package/dist/result/index.d.ts +5 -5
- package/dist/segmented/index.d.ts +38 -20
- package/dist/segmented/index.js +5 -10
- package/dist/segmented/style/index.js +2 -2
- package/dist/select/index.d.ts +4 -4
- package/dist/select/style/select-input-customize.js +1 -0
- package/dist/slider/index.js +1 -1
- package/dist/space/Compact.d.ts +1 -1
- package/dist/space/index.d.ts +2 -2
- package/dist/spin/index.d.ts +5 -5
- package/dist/splitter/interface.d.ts +6 -6
- package/dist/statistic/Statistic.d.ts +4 -4
- package/dist/steps/index.d.ts +6 -6
- package/dist/style/motion/index.d.ts +2 -2
- package/dist/style/motion/index.js +2 -2
- package/dist/style/motion/util.d.ts +8 -1
- package/dist/style/motion/util.js +13 -1
- package/dist/switch/index.d.ts +4 -4
- package/dist/switch/index.js +7 -7
- package/dist/switch/style/index.js +5 -3
- package/dist/table/InternalTable.js +8 -25
- package/dist/table/Table.d.ts +20 -9
- package/dist/table/hooks/useColumnTitleProps.d.ts +8 -0
- package/dist/table/hooks/useColumnTitleProps.js +16 -0
- package/dist/table/hooks/useFilter/FilterDropdown.js +2 -1
- package/dist/table/hooks/useSpinProps.d.ts +7 -0
- package/dist/table/hooks/useSpinProps.js +14 -0
- package/dist/table/util.d.ts +5 -2
- package/dist/table/util.js +10 -1
- package/dist/tabs/index.d.ts +5 -5
- package/dist/tag/CheckableTag.d.ts +2 -2
- package/dist/tag/hooks/useColor.d.ts +1 -1
- package/dist/tag/index.d.ts +3 -3
- package/dist/time-picker/index.d.ts +2 -2
- package/dist/time-picker/index.js +211 -19
- package/dist/timeline/Timeline.d.ts +9 -9
- package/dist/tooltip/PurePanel.js +1 -1
- package/dist/tooltip/index.d.ts +3 -3
- package/dist/tour/interface.d.ts +4 -4
- package/dist/transfer/Actions.d.ts +2 -2
- package/dist/transfer/Transfer.d.ts +2 -2
- package/dist/transfer/index.d.ts +27 -6
- package/dist/transfer/interface.d.ts +17 -17
- package/dist/transfer/search.d.ts +2 -2
- package/dist/tree/Tree.d.ts +6 -6
- package/dist/tree-select/index.d.ts +57 -28
- package/dist/tree-select/index.js +4 -3
- package/dist/typography/Base/Ellipsis.d.ts +2 -2
- package/dist/typography/Editable.d.ts +2 -2
- package/dist/typography/interface.d.ts +8 -8
- package/dist/upload/UploadList/index.js +1 -1
- package/package.json +10 -10
- package/web-tags.json +1301 -1285
- package/web-types.json +3864 -3812
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VueNode
|
|
2
|
-
import {
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
|
+
import { Resolvable } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { InputStatus } from "../_util/statusUtils.js";
|
|
4
4
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
5
5
|
import { CSSProperties } from "vue";
|
|
@@ -14,10 +14,10 @@ type PaginationType = boolean | {
|
|
|
14
14
|
};
|
|
15
15
|
type TransferDirection = 'left' | 'right';
|
|
16
16
|
interface RenderResultObject {
|
|
17
|
-
label: VueNode
|
|
17
|
+
label: VueNode;
|
|
18
18
|
value: string;
|
|
19
19
|
}
|
|
20
|
-
type RenderResult = VueNode
|
|
20
|
+
type RenderResult = VueNode | RenderResultObject | string | null;
|
|
21
21
|
interface TransferItem {
|
|
22
22
|
key?: TransferKey;
|
|
23
23
|
title?: string;
|
|
@@ -33,13 +33,13 @@ type TransferRender<RecordType> = (item: RecordType) => RenderResult;
|
|
|
33
33
|
interface ListStyle {
|
|
34
34
|
direction: TransferDirection;
|
|
35
35
|
}
|
|
36
|
-
type SelectAllLabel = VueNode
|
|
36
|
+
type SelectAllLabel = VueNode | ((info: {
|
|
37
37
|
selectedCount: number;
|
|
38
38
|
totalCount: number;
|
|
39
|
-
}) => VueNode
|
|
39
|
+
}) => VueNode);
|
|
40
40
|
interface TransferLocale {
|
|
41
|
-
titles?: VueNode
|
|
42
|
-
notFoundContent?: VueNode
|
|
41
|
+
titles?: VueNode[];
|
|
42
|
+
notFoundContent?: VueNode | VueNode[];
|
|
43
43
|
searchPlaceholder: string;
|
|
44
44
|
itemUnit: string;
|
|
45
45
|
itemsUnit: string;
|
|
@@ -113,14 +113,14 @@ interface TransferSemanticStyles {
|
|
|
113
113
|
source?: TransferSectionSemanticStyles;
|
|
114
114
|
target?: TransferSectionSemanticStyles;
|
|
115
115
|
}
|
|
116
|
-
type TransferClassNamesType =
|
|
117
|
-
type TransferStylesType =
|
|
116
|
+
type TransferClassNamesType = Resolvable<Readonly<TransferSemanticClassNames>, TransferProps>;
|
|
117
|
+
type TransferStylesType = Resolvable<Readonly<TransferSemanticStyles>, TransferProps>;
|
|
118
118
|
interface TransferListProps<RecordType> extends TransferLocale {
|
|
119
119
|
prefixCls: string;
|
|
120
120
|
style?: CSSProperties;
|
|
121
121
|
classes?: TransferSemanticClassNames;
|
|
122
122
|
styles?: TransferSemanticStyles;
|
|
123
|
-
titleText: VueNode
|
|
123
|
+
titleText: VueNode;
|
|
124
124
|
dataSource: RecordType[];
|
|
125
125
|
filterOption?: (filterText: string, item: RecordType, direction: TransferDirection) => boolean;
|
|
126
126
|
checkedKeys: TransferKey[];
|
|
@@ -143,11 +143,11 @@ interface TransferListProps<RecordType> extends TransferLocale {
|
|
|
143
143
|
selectAllLabel?: SelectAllLabel;
|
|
144
144
|
showRemove?: boolean;
|
|
145
145
|
pagination?: PaginationType;
|
|
146
|
-
selectionsIcon?: VueNode
|
|
146
|
+
selectionsIcon?: VueNode;
|
|
147
147
|
}
|
|
148
148
|
interface RenderedItem<RecordType> {
|
|
149
149
|
renderedText: string;
|
|
150
|
-
renderedEl: VueNode
|
|
150
|
+
renderedEl: VueNode;
|
|
151
151
|
item: RecordType;
|
|
152
152
|
}
|
|
153
153
|
declare const OmitProps: readonly ["handleFilter", "handleClear", "checkedKeys"];
|
|
@@ -172,10 +172,10 @@ interface TransferProps<RecordType = any> extends ComponentBaseProps {
|
|
|
172
172
|
selectedKeys?: TransferKey[];
|
|
173
173
|
render?: TransferRender<RecordType>;
|
|
174
174
|
labelRender?: (item: RecordType) => any;
|
|
175
|
-
titles?: VueNode
|
|
175
|
+
titles?: VueNode[];
|
|
176
176
|
/** @deprecated Please use `actions` instead. */
|
|
177
|
-
operations?: VueNode
|
|
178
|
-
actions?: VueNode
|
|
177
|
+
operations?: VueNode[];
|
|
178
|
+
actions?: VueNode[];
|
|
179
179
|
showSearch?: boolean | TransferSearchOption;
|
|
180
180
|
filterOption?: (inputValue: string, item: RecordType, direction: TransferDirection) => boolean;
|
|
181
181
|
locale?: Partial<TransferLocale>;
|
|
@@ -188,7 +188,7 @@ interface TransferProps<RecordType = any> extends ComponentBaseProps {
|
|
|
188
188
|
oneWay?: boolean;
|
|
189
189
|
pagination?: PaginationType;
|
|
190
190
|
status?: InputStatus;
|
|
191
|
-
selectionsIcon?: VueNode
|
|
191
|
+
selectionsIcon?: VueNode;
|
|
192
192
|
}
|
|
193
193
|
interface TransferEmits {
|
|
194
194
|
'change': (targetKeys: TransferKey[], direction: TransferDirection, moveKeys: TransferKey[]) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VueNode
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { SlotsType } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/transfer/search.d.ts
|
|
@@ -17,7 +17,7 @@ interface TransferSearchEmitsProps {
|
|
|
17
17
|
onClear?: TransferSearchEmits['clear'];
|
|
18
18
|
}
|
|
19
19
|
interface TransferSearchSlots {
|
|
20
|
-
prefix?: () => VueNode
|
|
20
|
+
prefix?: () => VueNode;
|
|
21
21
|
}
|
|
22
22
|
declare const Search: import("vue").DefineSetupFnComponent<TransferSearchProps, TransferSearchEmits, SlotsType<TransferSearchSlots>, TransferSearchProps, import("vue").PublicProps>;
|
|
23
23
|
//#endregion
|
package/dist/tree/Tree.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VueNode
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { CSSProperties, SlotsType } from "vue";
|
|
4
4
|
import { BasicDataNode, DataNode, TreeProps as TreeProps$1, TreeRef } from "@v-c/tree";
|
|
@@ -16,8 +16,8 @@ interface AntdTreeNodeAttribute {
|
|
|
16
16
|
selected: boolean;
|
|
17
17
|
checked: boolean;
|
|
18
18
|
halfChecked: boolean;
|
|
19
|
-
title: VueNode
|
|
20
|
-
children: VueNode
|
|
19
|
+
title: VueNode;
|
|
20
|
+
children: VueNode;
|
|
21
21
|
pos: string;
|
|
22
22
|
dragOver: boolean;
|
|
23
23
|
dragOverGapTop: boolean;
|
|
@@ -42,7 +42,7 @@ interface AntTreeNodeProps {
|
|
|
42
42
|
selected?: boolean;
|
|
43
43
|
selectable?: boolean;
|
|
44
44
|
icon?: TreeIcon;
|
|
45
|
-
children?: VueNode
|
|
45
|
+
children?: VueNode;
|
|
46
46
|
[customProp: string]: any;
|
|
47
47
|
}
|
|
48
48
|
type AntTreeNode = AntTreeNodeProps;
|
|
@@ -81,7 +81,7 @@ interface AntTreeNodeDropEvent {
|
|
|
81
81
|
type TreeNodeNormal = DataNode;
|
|
82
82
|
type DraggableFn = (node: DataNode) => boolean;
|
|
83
83
|
interface DraggableConfig {
|
|
84
|
-
icon?: VueNode
|
|
84
|
+
icon?: VueNode;
|
|
85
85
|
nodeDraggable?: DraggableFn;
|
|
86
86
|
}
|
|
87
87
|
type TreeSemanticName = keyof TreeSemanticClassNames & keyof TreeSemanticStyles;
|
|
@@ -146,7 +146,7 @@ interface TreeProps<T extends BasicDataNode = DataNode> extends Omit<TreeProps$1
|
|
|
146
146
|
showIcon?: boolean;
|
|
147
147
|
icon?: TreeIcon;
|
|
148
148
|
switcherIcon?: SwitcherIcon;
|
|
149
|
-
switcherLoadingIcon?: VueNode
|
|
149
|
+
switcherLoadingIcon?: VueNode;
|
|
150
150
|
prefixCls?: string;
|
|
151
151
|
blockNode?: boolean;
|
|
152
152
|
tabindex?: number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { VueNode
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { SizeType } from "../config-provider/SizeContext.js";
|
|
4
4
|
import { InputStatus } from "../_util/statusUtils.js";
|
|
5
5
|
import { SelectCommonPlacement } from "../_util/motion.js";
|
|
6
6
|
import { SwitcherIcon, TreeProps } from "../tree/Tree.js";
|
|
7
7
|
import { Variant } from "../config-provider/context.js";
|
|
8
|
-
import { App, CSSProperties,
|
|
8
|
+
import { App, CSSProperties, PublicProps } from "vue";
|
|
9
9
|
import { DataNode, SHOW_ALL, SHOW_CHILD, SHOW_PARENT, TreeNode, TreeSelectProps as TreeSelectProps$1 } from "@v-c/tree-select";
|
|
10
10
|
|
|
11
11
|
//#region src/tree-select/index.d.ts
|
|
@@ -13,7 +13,7 @@ type RawValue = string | number;
|
|
|
13
13
|
interface LabeledValue {
|
|
14
14
|
key?: string;
|
|
15
15
|
value: RawValue;
|
|
16
|
-
label: VueNode
|
|
16
|
+
label: VueNode;
|
|
17
17
|
}
|
|
18
18
|
type SelectValue = RawValue | RawValue[] | LabeledValue | LabeledValue[];
|
|
19
19
|
type TreeSelectSemanticName = keyof TreeSelectSemanticClassNames & keyof TreeSelectSemanticStyles;
|
|
@@ -64,10 +64,10 @@ interface BaseTreeSelectProps<ValueType = any, OptionType extends DataNode = Dat
|
|
|
64
64
|
status?: InputStatus;
|
|
65
65
|
variant?: Variant;
|
|
66
66
|
}
|
|
67
|
-
interface TreeSelectProps<ValueType = any, OptionType extends DataNode = DataNode> extends BaseTreeSelectProps<ValueType, OptionType>, TreeSelectEmitsProps {
|
|
67
|
+
interface TreeSelectProps<ValueType = any, OptionType extends DataNode = DataNode> extends BaseTreeSelectProps<ValueType, OptionType>, TreeSelectEmitsProps<ValueType, OptionType> {
|
|
68
68
|
styles?: TreeSelectStylesType;
|
|
69
69
|
classes?: TreeSelectClassNamesType;
|
|
70
|
-
suffixIcon?: VueNode
|
|
70
|
+
suffixIcon?: VueNode;
|
|
71
71
|
size?: SizeType;
|
|
72
72
|
disabled?: boolean;
|
|
73
73
|
placement?: SelectCommonPlacement;
|
|
@@ -100,50 +100,79 @@ interface TreeSelectProps<ValueType = any, OptionType extends DataNode = DataNod
|
|
|
100
100
|
*/
|
|
101
101
|
variant?: Variant;
|
|
102
102
|
}
|
|
103
|
-
interface TreeSelectEmits {
|
|
103
|
+
interface TreeSelectEmits<ValueType = any, OptionType extends DataNode = DataNode> {
|
|
104
104
|
'focus': (e: FocusEvent) => void;
|
|
105
105
|
'blur': (e: FocusEvent) => void;
|
|
106
106
|
'openChange': (open: boolean) => void;
|
|
107
107
|
'dropdownVisibleChange': (open: boolean) => void;
|
|
108
|
-
'select': NonNullable<TreeSelectProps$1['onSelect']>;
|
|
109
|
-
'treeExpand': NonNullable<TreeSelectProps$1['onTreeExpand']>;
|
|
110
|
-
'treeLoad': NonNullable<TreeSelectProps$1['onTreeLoad']>;
|
|
111
|
-
'change': NonNullable<TreeSelectProps$1['onChange']>;
|
|
108
|
+
'select': NonNullable<TreeSelectProps$1<ValueType, OptionType>['onSelect']>;
|
|
109
|
+
'treeExpand': NonNullable<TreeSelectProps$1<ValueType, OptionType>['onTreeExpand']>;
|
|
110
|
+
'treeLoad': NonNullable<TreeSelectProps$1<ValueType, OptionType>['onTreeLoad']>;
|
|
111
|
+
'change': NonNullable<TreeSelectProps$1<ValueType, OptionType>['onChange']>;
|
|
112
112
|
'update:value': (value: any) => void;
|
|
113
|
-
'deselect': NonNullable<TreeSelectProps$1['onDeselect']>;
|
|
114
|
-
'popupScroll': NonNullable<TreeSelectProps$1['onPopupScroll']>;
|
|
115
|
-
'search': NonNullable<TreeSelectProps$1['onSearch']>;
|
|
113
|
+
'deselect': NonNullable<TreeSelectProps$1<ValueType, OptionType>['onDeselect']>;
|
|
114
|
+
'popupScroll': NonNullable<TreeSelectProps$1<ValueType, OptionType>['onPopupScroll']>;
|
|
115
|
+
'search': NonNullable<TreeSelectProps$1<ValueType, OptionType>['onSearch']>;
|
|
116
116
|
}
|
|
117
|
-
interface TreeSelectEmitsProps {
|
|
117
|
+
interface TreeSelectEmitsProps<ValueType = any, OptionType extends DataNode = DataNode> {
|
|
118
118
|
onFocus?: TreeSelectEmits['focus'];
|
|
119
119
|
onBlur?: TreeSelectEmits['blur'];
|
|
120
120
|
onOpenChange?: TreeSelectEmits['openChange'];
|
|
121
121
|
onDropdownVisibleChange?: TreeSelectEmits['dropdownVisibleChange'];
|
|
122
|
-
onSelect?: TreeSelectEmits['select'];
|
|
123
|
-
onTreeExpand?: TreeSelectEmits['treeExpand'];
|
|
124
|
-
onTreeLoad?: TreeSelectEmits['treeLoad'];
|
|
125
|
-
onChange?: TreeSelectEmits['change'];
|
|
122
|
+
onSelect?: TreeSelectEmits<ValueType, OptionType>['select'];
|
|
123
|
+
onTreeExpand?: TreeSelectEmits<ValueType, OptionType>['treeExpand'];
|
|
124
|
+
onTreeLoad?: TreeSelectEmits<ValueType, OptionType>['treeLoad'];
|
|
125
|
+
onChange?: TreeSelectEmits<ValueType, OptionType>['change'];
|
|
126
126
|
'onUpdate:value'?: TreeSelectEmits['update:value'];
|
|
127
|
-
onDeselect?: TreeSelectEmits['deselect'];
|
|
128
|
-
onPopupScroll?: TreeSelectEmits['popupScroll'];
|
|
129
|
-
onSearch?: TreeSelectEmits['search'];
|
|
127
|
+
onDeselect?: TreeSelectEmits<ValueType, OptionType>['deselect'];
|
|
128
|
+
onPopupScroll?: TreeSelectEmits<ValueType, OptionType>['popupScroll'];
|
|
129
|
+
onSearch?: TreeSelectEmits<ValueType, OptionType>['search'];
|
|
130
130
|
}
|
|
131
|
-
interface TreeSelectSlots {
|
|
131
|
+
interface TreeSelectSlots<OptionType extends DataNode = DataNode> {
|
|
132
132
|
suffixIcon?: () => any;
|
|
133
133
|
tagRender?: (props: any) => any;
|
|
134
134
|
notFoundContent?: () => any;
|
|
135
135
|
switcherIcon?: () => any;
|
|
136
|
-
treeTitleRender?: (nodeData:
|
|
136
|
+
treeTitleRender?: (nodeData: OptionType) => any;
|
|
137
137
|
}
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
interface TreeSelectInstance<ValueType = any, OptionType extends DataNode = DataNode> {
|
|
139
|
+
$props: TreeSelectProps<ValueType, OptionType> & PublicProps;
|
|
140
|
+
$emit: {
|
|
141
|
+
(event: 'focus', ...args: Parameters<TreeSelectEmits['focus']>): void;
|
|
142
|
+
(event: 'blur', ...args: Parameters<TreeSelectEmits['blur']>): void;
|
|
143
|
+
(event: 'openChange', ...args: Parameters<TreeSelectEmits['openChange']>): void;
|
|
144
|
+
(event: 'dropdownVisibleChange', ...args: Parameters<TreeSelectEmits['dropdownVisibleChange']>): void;
|
|
145
|
+
(event: 'select', ...args: Parameters<TreeSelectEmits<ValueType, OptionType>['select']>): void;
|
|
146
|
+
(event: 'treeExpand', ...args: Parameters<TreeSelectEmits<ValueType, OptionType>['treeExpand']>): void;
|
|
147
|
+
(event: 'treeLoad', ...args: Parameters<TreeSelectEmits<ValueType, OptionType>['treeLoad']>): void;
|
|
148
|
+
(event: 'change', ...args: Parameters<TreeSelectEmits<ValueType, OptionType>['change']>): void;
|
|
149
|
+
(event: 'update:value', ...args: Parameters<TreeSelectEmits['update:value']>): void;
|
|
150
|
+
(event: 'deselect', ...args: Parameters<TreeSelectEmits<ValueType, OptionType>['deselect']>): void;
|
|
151
|
+
(event: 'popupScroll', ...args: Parameters<TreeSelectEmits<ValueType, OptionType>['popupScroll']>): void;
|
|
152
|
+
(event: 'search', ...args: Parameters<TreeSelectEmits<ValueType, OptionType>['search']>): void;
|
|
153
|
+
};
|
|
154
|
+
$slots: TreeSelectSlots<OptionType>;
|
|
155
|
+
focus: () => void;
|
|
156
|
+
blur: () => void;
|
|
157
|
+
scrollTo: (arg: any) => void;
|
|
158
|
+
}
|
|
159
|
+
interface TreeSelectConstructor {
|
|
160
|
+
new <ValueType = any, OptionType extends DataNode = DataNode>(props: TreeSelectProps<ValueType, OptionType>): TreeSelectInstance<ValueType, OptionType>;
|
|
161
|
+
/**
|
|
162
|
+
* Non-generic fallback signature. TypeScript infers from the last overload,
|
|
163
|
+
* so this keeps render-function usage like `h(TreeSelect, props)` resolvable
|
|
164
|
+
* against Vue's `Constructor<P>` overload of `h` (see #634), while the
|
|
165
|
+
* generic signature above still drives template/Volar inference.
|
|
166
|
+
*/
|
|
167
|
+
new (props: TreeSelectProps<any, any>): TreeSelectInstance<any, any>;
|
|
140
168
|
install: (app: App) => void;
|
|
141
169
|
TreeNode: typeof TreeNode;
|
|
142
170
|
SHOW_ALL: typeof SHOW_ALL;
|
|
143
171
|
SHOW_PARENT: typeof SHOW_PARENT;
|
|
144
172
|
SHOW_CHILD: typeof SHOW_CHILD;
|
|
145
173
|
_InternalPanelDoNotUseOrYouWillBeFired: any;
|
|
146
|
-
}
|
|
147
|
-
declare const
|
|
174
|
+
}
|
|
175
|
+
declare const TreeSelect: TreeSelectConstructor;
|
|
176
|
+
declare const TreeSelectNode: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any>, PublicProps>;
|
|
148
177
|
//#endregion
|
|
149
|
-
export { LabeledValue, SelectValue, TreeSelectClassNamesType, TreeSelectEmits, TreeSelectEmitsProps, TreeSelectNode, TreeSelectPopupSemanticClassNames, TreeSelectPopupSemanticName, TreeSelectPopupSemanticStyles, TreeSelectProps, TreeSelectSemanticClassNames, TreeSelectSemanticName, TreeSelectSemanticStyles, TreeSelectSlots, TreeSelectStylesType, TreeSelect as default };
|
|
178
|
+
export { LabeledValue, SelectValue, TreeSelectClassNamesType, TreeSelectConstructor, TreeSelectEmits, TreeSelectEmitsProps, TreeSelectNode, TreeSelectPopupSemanticClassNames, TreeSelectPopupSemanticName, TreeSelectPopupSemanticStyles, TreeSelectProps, TreeSelectSemanticClassNames, TreeSelectSemanticName, TreeSelectSemanticStyles, TreeSelectSlots, TreeSelectStylesType, TreeSelect as default };
|
|
@@ -24,7 +24,7 @@ import { computed, createVNode, defineComponent, mergeDefaults, mergeProps, shal
|
|
|
24
24
|
import { clsx } from "@v-c/util";
|
|
25
25
|
import { getAttrStyleAndClass } from "@v-c/util/dist/props-util";
|
|
26
26
|
import { getTransitionName } from "@v-c/util/dist/utils/transition";
|
|
27
|
-
import { omit } from "es-toolkit";
|
|
27
|
+
import { omit } from "es-toolkit/compat";
|
|
28
28
|
import VcTreeSelect, { SHOW_ALL, SHOW_CHILD, SHOW_PARENT, TreeNode } from "@v-c/tree-select";
|
|
29
29
|
//#region src/tree-select/index.tsx
|
|
30
30
|
const defaults = {
|
|
@@ -71,7 +71,7 @@ const omitKeys = [
|
|
|
71
71
|
"styles",
|
|
72
72
|
"classes"
|
|
73
73
|
];
|
|
74
|
-
const
|
|
74
|
+
const InternalTreeSelect = /* @__PURE__ */ defineComponent((props, { slots, expose, emit, attrs }) => {
|
|
75
75
|
const { prefixCls: treeSelectPrefixCls, getPopupContainer: getContextPopupContainer, direction, styles: contextStyles, classes: contextClassNames, switcherIcon, virtual, getPrefixCls, rootPrefixCls } = useComponentBaseConfig("treeSelect", props, ["switcherIcon"], "tree-select");
|
|
76
76
|
const configCtx = useConfig();
|
|
77
77
|
const { prefixCls: customizePrefixCls, variant: customVariant, size: customizeSize, disabled: customDisabled, status: customStatus, classes, styles } = toPropsRefs$1(props, "prefixCls", "variant", "size", "disabled", "status", "classes", "styles");
|
|
@@ -768,13 +768,14 @@ const TreeSelect = /* @__PURE__ */ defineComponent((props, { slots, expose, emit
|
|
|
768
768
|
name: "ATreeSelect",
|
|
769
769
|
inheritAttrs: false
|
|
770
770
|
});
|
|
771
|
+
const TreeSelect = InternalTreeSelect;
|
|
771
772
|
const TreeSelectNode = TreeNode;
|
|
772
773
|
TreeSelect.TreeNode = TreeNode;
|
|
773
774
|
TreeSelect.SHOW_ALL = SHOW_ALL;
|
|
774
775
|
TreeSelect.SHOW_PARENT = SHOW_PARENT;
|
|
775
776
|
TreeSelect.SHOW_CHILD = SHOW_CHILD;
|
|
776
777
|
TreeSelect.install = (app) => {
|
|
777
|
-
app.component(
|
|
778
|
+
app.component(InternalTreeSelect.name, TreeSelect);
|
|
778
779
|
app.component("ATreeSelectOption", TreeSelectNode);
|
|
779
780
|
return app;
|
|
780
781
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { EmptyEmit, VueNode
|
|
1
|
+
import { EmptyEmit, VueNode } from "../../_util/type.js";
|
|
2
2
|
import { SlotsType } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/typography/Base/Ellipsis.d.ts
|
|
5
5
|
interface EllipsisProps {
|
|
6
6
|
enableMeasure?: boolean;
|
|
7
|
-
text?: VueNode
|
|
7
|
+
text?: VueNode;
|
|
8
8
|
width: number;
|
|
9
9
|
rows: number;
|
|
10
10
|
onEllipsis: (isEllipsis: boolean) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EmptyEmit, VueNode
|
|
1
|
+
import { EmptyEmit, VueNode } from "../_util/type.js";
|
|
2
2
|
import { TypographySemanticClassNames, TypographySemanticStyles } from "./interface.js";
|
|
3
3
|
import { DirectionType } from "../config-provider/context.js";
|
|
4
4
|
import { CSSProperties, SlotsType } from "vue";
|
|
@@ -16,7 +16,7 @@ interface EditableProps {
|
|
|
16
16
|
'direction'?: DirectionType;
|
|
17
17
|
'maxLength'?: number;
|
|
18
18
|
'autoSize'?: any;
|
|
19
|
-
'enterIcon'?: VueNode
|
|
19
|
+
'enterIcon'?: VueNode;
|
|
20
20
|
'component'?: string;
|
|
21
21
|
/**
|
|
22
22
|
* Semantic class names. `root` applies to the wrapper div, `textarea`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VueNode
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { TooltipProps } from "../tooltip/index.js";
|
|
4
4
|
import { ComponentBaseProps, DirectionType } from "../config-provider/context.js";
|
|
@@ -10,16 +10,16 @@ type BaseType = 'secondary' | 'success' | 'warning' | 'danger';
|
|
|
10
10
|
interface CopyConfig {
|
|
11
11
|
text?: string | (() => string | Promise<string>);
|
|
12
12
|
onCopy?: (event?: MouseEvent) => void;
|
|
13
|
-
icon?: VueNode
|
|
14
|
-
tooltips?: VueNode
|
|
13
|
+
icon?: VueNode | VueNode[];
|
|
14
|
+
tooltips?: VueNode | VueNode[] | false;
|
|
15
15
|
format?: 'text/plain' | 'text/html';
|
|
16
16
|
tabIndex?: number;
|
|
17
17
|
}
|
|
18
18
|
interface EditConfig {
|
|
19
19
|
text?: string;
|
|
20
20
|
editing?: boolean;
|
|
21
|
-
icon?: VueNode
|
|
22
|
-
tooltip?: VueNode
|
|
21
|
+
icon?: VueNode;
|
|
22
|
+
tooltip?: VueNode;
|
|
23
23
|
onStart?: () => void;
|
|
24
24
|
onChange?: (value: string) => void;
|
|
25
25
|
onCancel?: () => void;
|
|
@@ -27,21 +27,21 @@ interface EditConfig {
|
|
|
27
27
|
maxLength?: number;
|
|
28
28
|
autoSize?: boolean | TextAreaProps['autoSize'];
|
|
29
29
|
triggerType?: ('icon' | 'text')[];
|
|
30
|
-
enterIcon?: VueNode
|
|
30
|
+
enterIcon?: VueNode;
|
|
31
31
|
tabIndex?: number;
|
|
32
32
|
}
|
|
33
33
|
interface EllipsisConfig {
|
|
34
34
|
rows?: number;
|
|
35
35
|
expandable?: boolean | 'collapsible';
|
|
36
36
|
suffix?: string;
|
|
37
|
-
symbol?: VueNode
|
|
37
|
+
symbol?: VueNode | ((expanded: boolean) => VueNode);
|
|
38
38
|
defaultExpanded?: boolean;
|
|
39
39
|
expanded?: boolean;
|
|
40
40
|
onExpand?: (e: MouseEvent, info: {
|
|
41
41
|
expanded: boolean;
|
|
42
42
|
}) => void;
|
|
43
43
|
onEllipsis?: (ellipsis: boolean) => void;
|
|
44
|
-
tooltip?: VueNode
|
|
44
|
+
tooltip?: VueNode | TooltipProps;
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* @since 1.3.0 (mirrors ant-design 6.4 ActionsConfig)
|
|
@@ -53,7 +53,7 @@ const UploadList = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
53
53
|
const onInternalDownload = (file) => {
|
|
54
54
|
props?.onDownload?.(file);
|
|
55
55
|
};
|
|
56
|
-
const onInternalClose = (file) => {
|
|
56
|
+
const onInternalClose = (file, _e) => {
|
|
57
57
|
props.onRemove?.(file);
|
|
58
58
|
};
|
|
59
59
|
const internalIconRender = (file) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antdv-next",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.3",
|
|
5
5
|
"description": "Ant Design Vue3 Component Library",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "aibayanyu@gamil.com",
|
|
@@ -180,22 +180,22 @@
|
|
|
180
180
|
"@ant-design/fast-color": "^3.0.1",
|
|
181
181
|
"@antdv-next/icons": "^1.1.1",
|
|
182
182
|
"@v-c/async-validator": "^1.0.1",
|
|
183
|
-
"@v-c/cascader": "^1.1.
|
|
183
|
+
"@v-c/cascader": "^1.1.2",
|
|
184
184
|
"@v-c/checkbox": "^1.0.1",
|
|
185
|
-
"@v-c/collapse": "^1.0.
|
|
185
|
+
"@v-c/collapse": "^1.0.1",
|
|
186
186
|
"@v-c/color-picker": "^1.0.6",
|
|
187
187
|
"@v-c/dialog": "^1.2.0",
|
|
188
188
|
"@v-c/drawer": "^1.0.6",
|
|
189
|
-
"@v-c/dropdown": "^1.0.
|
|
189
|
+
"@v-c/dropdown": "^1.0.4",
|
|
190
190
|
"@v-c/image": "^1.0.12",
|
|
191
191
|
"@v-c/input": "^1.1.0",
|
|
192
|
-
"@v-c/input-number": "^1.0.
|
|
193
|
-
"@v-c/mentions": "^1.1.
|
|
192
|
+
"@v-c/input-number": "^1.0.6",
|
|
193
|
+
"@v-c/mentions": "^1.1.3",
|
|
194
194
|
"@v-c/menu": "^1.2.2",
|
|
195
195
|
"@v-c/mutate-observer": "^1.0.2",
|
|
196
196
|
"@v-c/notification": "^2.0.2",
|
|
197
197
|
"@v-c/pagination": "^1.0.1",
|
|
198
|
-
"@v-c/picker": "^1.2.
|
|
198
|
+
"@v-c/picker": "^1.2.2",
|
|
199
199
|
"@v-c/progress": "^1.0.1",
|
|
200
200
|
"@v-c/qrcode": "^1.0.1",
|
|
201
201
|
"@v-c/rate": "^1.0.1",
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
"@v-c/slider": "^1.1.0",
|
|
207
207
|
"@v-c/steps": "^1.0.0",
|
|
208
208
|
"@v-c/switch": "^1.0.1",
|
|
209
|
-
"@v-c/table": "^1.1.
|
|
209
|
+
"@v-c/table": "^1.1.8",
|
|
210
210
|
"@v-c/tabs": "^1.2.1",
|
|
211
211
|
"@v-c/textarea": "^1.1.0",
|
|
212
212
|
"@v-c/tooltip": "^1.0.4",
|
|
@@ -215,8 +215,8 @@
|
|
|
215
215
|
"@v-c/tree-select": "^1.1.1",
|
|
216
216
|
"@v-c/trigger": "^1.0.18",
|
|
217
217
|
"@v-c/upload": "^1.0.0",
|
|
218
|
-
"@v-c/util": "^1.0.
|
|
219
|
-
"@v-c/virtual-list": "^1.0
|
|
218
|
+
"@v-c/util": "^1.0.21",
|
|
219
|
+
"@v-c/virtual-list": "^1.1.0",
|
|
220
220
|
"@vueuse/core": "^14.3.0",
|
|
221
221
|
"dayjs": "^1.11.21",
|
|
222
222
|
"es-toolkit": "1.49.0",
|