@dao-style/core 1.4.2-beta.1 → 1.4.2-beta.10
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/components/button/button.d.ts +7 -18
- package/dist/components/button/button.vue.d.ts +2 -5
- package/dist/components/button/props.d.ts +0 -4
- package/dist/components/tabs/props.d.ts +14 -2
- package/dist/components/tabs/tab-item.d.ts +12 -1
- package/dist/components/tabs/tab-item.vue.d.ts +3 -0
- package/dist/components/tabs/tab-nav.d.ts +12 -3
- package/dist/components/tabs/tab-nav.vue.d.ts +12 -4
- package/dist/components/tabs/tabs.d.ts +23 -1
- package/dist/components/tabs/tabs.vue.d.ts +10 -0
- package/dist/components/tabs/types.d.ts +5 -2
- package/dist/dao-style.js +6 -6
- package/dist/dao-style.mjs +2743 -2709
- package/dist/style.css +1 -1
- package/dist/utils/constant.d.ts +1 -0
- package/package.json +1 -1
|
@@ -53,9 +53,7 @@ declare const DaoButton: {
|
|
|
53
53
|
type: StringConstructor;
|
|
54
54
|
default: undefined;
|
|
55
55
|
};
|
|
56
|
-
}>> &
|
|
57
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
58
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "disabled" | "useFont" | "size" | "block" | "tooltipContent" | "loading" | "iconLeft" | "iconRight">;
|
|
56
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "disabled" | "useFont" | "size" | "block" | "tooltipContent" | "loading" | "iconLeft" | "iconRight">;
|
|
59
57
|
$attrs: {
|
|
60
58
|
[x: string]: unknown;
|
|
61
59
|
};
|
|
@@ -67,7 +65,7 @@ declare const DaoButton: {
|
|
|
67
65
|
}>;
|
|
68
66
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
69
67
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
70
|
-
$emit: (event:
|
|
68
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
71
69
|
$el: any;
|
|
72
70
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
73
71
|
type: {
|
|
@@ -108,11 +106,8 @@ declare const DaoButton: {
|
|
|
108
106
|
type: StringConstructor;
|
|
109
107
|
default: undefined;
|
|
110
108
|
};
|
|
111
|
-
}
|
|
112
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
113
|
-
}, {
|
|
109
|
+
}>>, {
|
|
114
110
|
classList: import("vue").ComputedRef<string[]>;
|
|
115
|
-
handleClick: (event: MouseEvent) => void;
|
|
116
111
|
realDisabled: import("vue").ComputedRef<boolean>;
|
|
117
112
|
isSimpleButton: import("vue").ComputedRef<boolean | undefined>;
|
|
118
113
|
isIconLeftFont: import("vue").ComputedRef<boolean>;
|
|
@@ -124,7 +119,7 @@ declare const DaoButton: {
|
|
|
124
119
|
onMouseEnter: () => void;
|
|
125
120
|
onMouseLeave: () => void;
|
|
126
121
|
showTip: import("vue").Ref<boolean>;
|
|
127
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
122
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
128
123
|
type: import("./props").ButtonType;
|
|
129
124
|
disabled: boolean;
|
|
130
125
|
useFont: boolean;
|
|
@@ -193,11 +188,8 @@ declare const DaoButton: {
|
|
|
193
188
|
type: StringConstructor;
|
|
194
189
|
default: undefined;
|
|
195
190
|
};
|
|
196
|
-
}>> & {
|
|
197
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
198
|
-
} & import("vue").ShallowUnwrapRef<{
|
|
191
|
+
}>> & import("vue").ShallowUnwrapRef<{
|
|
199
192
|
classList: import("vue").ComputedRef<string[]>;
|
|
200
|
-
handleClick: (event: MouseEvent) => void;
|
|
201
193
|
realDisabled: import("vue").ComputedRef<boolean>;
|
|
202
194
|
isSimpleButton: import("vue").ComputedRef<boolean | undefined>;
|
|
203
195
|
isIconLeftFont: import("vue").ComputedRef<boolean>;
|
|
@@ -252,11 +244,8 @@ declare const DaoButton: {
|
|
|
252
244
|
type: StringConstructor;
|
|
253
245
|
default: undefined;
|
|
254
246
|
};
|
|
255
|
-
}
|
|
256
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
257
|
-
}, {
|
|
247
|
+
}>>, {
|
|
258
248
|
classList: import("vue").ComputedRef<string[]>;
|
|
259
|
-
handleClick: (event: MouseEvent) => void;
|
|
260
249
|
realDisabled: import("vue").ComputedRef<boolean>;
|
|
261
250
|
isSimpleButton: import("vue").ComputedRef<boolean | undefined>;
|
|
262
251
|
isIconLeftFont: import("vue").ComputedRef<boolean>;
|
|
@@ -268,7 +257,7 @@ declare const DaoButton: {
|
|
|
268
257
|
onMouseEnter: () => void;
|
|
269
258
|
onMouseLeave: () => void;
|
|
270
259
|
showTip: import("vue").Ref<boolean>;
|
|
271
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
260
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
272
261
|
type: import("./props").ButtonType;
|
|
273
262
|
disabled: boolean;
|
|
274
263
|
useFont: boolean;
|
|
@@ -39,7 +39,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
39
|
};
|
|
40
40
|
}, {
|
|
41
41
|
classList: import("vue").ComputedRef<string[]>;
|
|
42
|
-
handleClick: (event: MouseEvent) => void;
|
|
43
42
|
realDisabled: import("vue").ComputedRef<boolean>;
|
|
44
43
|
isSimpleButton: import("vue").ComputedRef<boolean | undefined>;
|
|
45
44
|
isIconLeftFont: import("vue").ComputedRef<boolean>;
|
|
@@ -51,7 +50,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
50
|
onMouseEnter: () => void;
|
|
52
51
|
onMouseLeave: () => void;
|
|
53
52
|
showTip: import("vue").Ref<boolean>;
|
|
54
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
53
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
54
|
type: {
|
|
56
55
|
type: import("vue").PropType<import("./props").ButtonType>;
|
|
57
56
|
default: string;
|
|
@@ -90,9 +89,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
90
89
|
type: StringConstructor;
|
|
91
90
|
default: undefined;
|
|
92
91
|
};
|
|
93
|
-
}
|
|
94
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
95
|
-
}, {
|
|
92
|
+
}>>, {
|
|
96
93
|
type: import("./props").ButtonType;
|
|
97
94
|
disabled: boolean;
|
|
98
95
|
useFont: boolean;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
export type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'danger';
|
|
3
3
|
export declare const BUTTON_TYPES: ButtonType[];
|
|
4
|
-
export declare const buttonEmits: {
|
|
5
|
-
click: (event: MouseEvent) => void;
|
|
6
|
-
};
|
|
7
|
-
export type ButtonEmits = typeof buttonEmits;
|
|
8
4
|
export declare const buttonProps: {
|
|
9
5
|
type: {
|
|
10
6
|
type: PropType<ButtonType>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
-
import { DaoTabItemLabel } from './types';
|
|
2
|
+
import { DaoTabItemLabel, TabItemInfo } from './types';
|
|
3
3
|
declare const tabsType: readonly ["card", "line", "pill"];
|
|
4
4
|
type TabsType = typeof tabsType[number];
|
|
5
5
|
declare const tabsDirection: readonly ["left", "right"];
|
|
@@ -20,6 +20,10 @@ export declare const tabsProps: {
|
|
|
20
20
|
type: StringConstructor;
|
|
21
21
|
default: null;
|
|
22
22
|
};
|
|
23
|
+
vertical: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
23
27
|
};
|
|
24
28
|
type modelValueType = string;
|
|
25
29
|
export declare const tabsEmit: {
|
|
@@ -48,6 +52,10 @@ export declare const tabItemProps: {
|
|
|
48
52
|
export type TabItemProp = Pick<ExtractPropTypes<typeof tabItemProps>, 'label' | 'value'> & {
|
|
49
53
|
disabled?: boolean;
|
|
50
54
|
};
|
|
55
|
+
export interface LabelSlotMap {
|
|
56
|
+
value: string;
|
|
57
|
+
hasSlot: boolean;
|
|
58
|
+
}
|
|
51
59
|
export declare const tabNavProps: {
|
|
52
60
|
type: {
|
|
53
61
|
type: StringConstructor;
|
|
@@ -58,10 +66,14 @@ export declare const tabNavProps: {
|
|
|
58
66
|
default: null;
|
|
59
67
|
};
|
|
60
68
|
tabList: {
|
|
61
|
-
type: PropType<
|
|
69
|
+
type: PropType<TabItemInfo[]>;
|
|
62
70
|
required: boolean;
|
|
63
71
|
default: () => never[];
|
|
64
72
|
};
|
|
73
|
+
vertical: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
65
77
|
};
|
|
66
78
|
export declare const tabNavEmit: {
|
|
67
79
|
updateValue: (content: modelValueType) => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { SlotFn } from '../../utils/types';
|
|
1
|
+
import { ParamsSlotFn, SlotFn } from '../../utils/types';
|
|
2
|
+
import { TabItemProp } from './props';
|
|
2
3
|
declare const DaoTabItem: {
|
|
3
4
|
new (...args: any[]): {
|
|
4
5
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -54,6 +55,9 @@ declare const DaoTabItem: {
|
|
|
54
55
|
}>>, {
|
|
55
56
|
active: import("vue").ComputedRef<boolean>;
|
|
56
57
|
tabItem: import("vue").Ref<HTMLElement | undefined>;
|
|
58
|
+
tabLabelTargets: import("vue").Ref<Record<string, HTMLLIElement>> | undefined;
|
|
59
|
+
targetRef: import("vue").Ref<HTMLLIElement | undefined>;
|
|
60
|
+
checkSlot: (isLabelSlotExist: boolean) => boolean;
|
|
57
61
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
58
62
|
label: import("./types").DaoTabItemLabel;
|
|
59
63
|
value: string;
|
|
@@ -96,6 +100,9 @@ declare const DaoTabItem: {
|
|
|
96
100
|
}>> & import("vue").ShallowUnwrapRef<{
|
|
97
101
|
active: import("vue").ComputedRef<boolean>;
|
|
98
102
|
tabItem: import("vue").Ref<HTMLElement | undefined>;
|
|
103
|
+
tabLabelTargets: import("vue").Ref<Record<string, HTMLLIElement>> | undefined;
|
|
104
|
+
targetRef: import("vue").Ref<HTMLLIElement | undefined>;
|
|
105
|
+
checkSlot: (isLabelSlotExist: boolean) => boolean;
|
|
99
106
|
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
100
107
|
__isFragment?: undefined;
|
|
101
108
|
__isTeleport?: undefined;
|
|
@@ -118,6 +125,9 @@ declare const DaoTabItem: {
|
|
|
118
125
|
}>>, {
|
|
119
126
|
active: import("vue").ComputedRef<boolean>;
|
|
120
127
|
tabItem: import("vue").Ref<HTMLElement | undefined>;
|
|
128
|
+
tabLabelTargets: import("vue").Ref<Record<string, HTMLLIElement>> | undefined;
|
|
129
|
+
targetRef: import("vue").Ref<HTMLLIElement | undefined>;
|
|
130
|
+
checkSlot: (isLabelSlotExist: boolean) => boolean;
|
|
121
131
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
122
132
|
label: import("./types").DaoTabItemLabel;
|
|
123
133
|
value: string;
|
|
@@ -125,6 +135,7 @@ declare const DaoTabItem: {
|
|
|
125
135
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
126
136
|
$slots: {
|
|
127
137
|
default: SlotFn;
|
|
138
|
+
label: ParamsSlotFn<TabItemProp>;
|
|
128
139
|
};
|
|
129
140
|
});
|
|
130
141
|
export default DaoTabItem;
|
|
@@ -16,6 +16,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
16
|
}, {
|
|
17
17
|
active: import("vue").ComputedRef<boolean>;
|
|
18
18
|
tabItem: import("vue").Ref<HTMLElement | undefined>;
|
|
19
|
+
tabLabelTargets: import("vue").Ref<Record<string, HTMLLIElement>> | undefined;
|
|
20
|
+
targetRef: import("vue").Ref<HTMLLIElement | undefined>;
|
|
21
|
+
checkSlot: (isLabelSlotExist: boolean) => boolean;
|
|
19
22
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
23
|
label: {
|
|
21
24
|
type: import("vue").PropType<import("./types").DaoTabItemLabel>;
|
|
@@ -8,10 +8,14 @@ declare const DaoTabNav: import("vue").DefineComponent<{
|
|
|
8
8
|
default: null;
|
|
9
9
|
};
|
|
10
10
|
tabList: {
|
|
11
|
-
type: import("vue").PropType<import("./
|
|
11
|
+
type: import("vue").PropType<import("./types").TabItemInfo[]>;
|
|
12
12
|
required: boolean;
|
|
13
13
|
default: () => never[];
|
|
14
14
|
};
|
|
15
|
+
vertical: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
15
19
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
16
20
|
[key: string]: any;
|
|
17
21
|
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "updateValue")[], "click" | "updateValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -24,16 +28,21 @@ declare const DaoTabNav: import("vue").DefineComponent<{
|
|
|
24
28
|
default: null;
|
|
25
29
|
};
|
|
26
30
|
tabList: {
|
|
27
|
-
type: import("vue").PropType<import("./
|
|
31
|
+
type: import("vue").PropType<import("./types").TabItemInfo[]>;
|
|
28
32
|
required: boolean;
|
|
29
33
|
default: () => never[];
|
|
30
34
|
};
|
|
35
|
+
vertical: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
31
39
|
}>> & {
|
|
32
40
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
33
41
|
onUpdateValue?: ((...args: any[]) => any) | undefined;
|
|
34
42
|
}, {
|
|
35
43
|
type: string;
|
|
44
|
+
vertical: boolean;
|
|
36
45
|
currentTab: string;
|
|
37
|
-
tabList: import("./
|
|
46
|
+
tabList: import("./types").TabItemInfo[];
|
|
38
47
|
}>;
|
|
39
48
|
export default DaoTabNav;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { TabItemProp } from './props';
|
|
2
1
|
declare const _default: import("vue").DefineComponent<{
|
|
3
2
|
type: {
|
|
4
3
|
type: StringConstructor;
|
|
@@ -9,10 +8,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
8
|
default: null;
|
|
10
9
|
};
|
|
11
10
|
tabList: {
|
|
12
|
-
type: import("vue").PropType<
|
|
11
|
+
type: import("vue").PropType<import("./types").TabItemInfo[]>;
|
|
13
12
|
required: boolean;
|
|
14
13
|
default: () => never[];
|
|
15
14
|
};
|
|
15
|
+
vertical: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
16
19
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
17
20
|
[key: string]: any;
|
|
18
21
|
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "updateValue")[], "click" | "updateValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -25,16 +28,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
28
|
default: null;
|
|
26
29
|
};
|
|
27
30
|
tabList: {
|
|
28
|
-
type: import("vue").PropType<
|
|
31
|
+
type: import("vue").PropType<import("./types").TabItemInfo[]>;
|
|
29
32
|
required: boolean;
|
|
30
33
|
default: () => never[];
|
|
31
34
|
};
|
|
35
|
+
vertical: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
32
39
|
}>> & {
|
|
33
40
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
34
41
|
onUpdateValue?: ((...args: any[]) => any) | undefined;
|
|
35
42
|
}, {
|
|
36
43
|
type: string;
|
|
44
|
+
vertical: boolean;
|
|
37
45
|
currentTab: string;
|
|
38
|
-
tabList:
|
|
46
|
+
tabList: import("./types").TabItemInfo[];
|
|
39
47
|
}>;
|
|
40
48
|
export default _default;
|
|
@@ -7,6 +7,7 @@ declare const DaoTabs: {
|
|
|
7
7
|
type: string;
|
|
8
8
|
direction: string;
|
|
9
9
|
modelValue: string;
|
|
10
|
+
vertical: boolean;
|
|
10
11
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
11
12
|
type: {
|
|
12
13
|
type: StringConstructor;
|
|
@@ -23,11 +24,15 @@ declare const DaoTabs: {
|
|
|
23
24
|
type: StringConstructor;
|
|
24
25
|
default: null;
|
|
25
26
|
};
|
|
27
|
+
vertical: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
26
31
|
}>> & {
|
|
27
32
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
28
33
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
29
34
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
30
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "direction" | "modelValue">;
|
|
35
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "direction" | "modelValue" | "vertical">;
|
|
31
36
|
$attrs: {
|
|
32
37
|
[x: string]: unknown;
|
|
33
38
|
};
|
|
@@ -57,6 +62,10 @@ declare const DaoTabs: {
|
|
|
57
62
|
type: StringConstructor;
|
|
58
63
|
default: null;
|
|
59
64
|
};
|
|
65
|
+
vertical: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
60
69
|
}>> & {
|
|
61
70
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
62
71
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -66,6 +75,7 @@ declare const DaoTabs: {
|
|
|
66
75
|
label: import("./types").DaoTabItemLabel;
|
|
67
76
|
value: string;
|
|
68
77
|
disabled?: boolean | undefined;
|
|
78
|
+
hasSlot: boolean;
|
|
69
79
|
}[];
|
|
70
80
|
tabBody: import("vue").Ref<HTMLElement | undefined>;
|
|
71
81
|
onClick: (e: MouseEvent, tabValue: string) => void;
|
|
@@ -74,6 +84,7 @@ declare const DaoTabs: {
|
|
|
74
84
|
type: string;
|
|
75
85
|
direction: string;
|
|
76
86
|
modelValue: string;
|
|
87
|
+
vertical: boolean;
|
|
77
88
|
}, {}, string> & {
|
|
78
89
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
79
90
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -110,6 +121,10 @@ declare const DaoTabs: {
|
|
|
110
121
|
type: StringConstructor;
|
|
111
122
|
default: null;
|
|
112
123
|
};
|
|
124
|
+
vertical: {
|
|
125
|
+
type: BooleanConstructor;
|
|
126
|
+
default: boolean;
|
|
127
|
+
};
|
|
113
128
|
}>> & {
|
|
114
129
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
115
130
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -119,6 +134,7 @@ declare const DaoTabs: {
|
|
|
119
134
|
label: import("./types").DaoTabItemLabel;
|
|
120
135
|
value: string;
|
|
121
136
|
disabled?: boolean | undefined;
|
|
137
|
+
hasSlot: boolean;
|
|
122
138
|
}[];
|
|
123
139
|
tabBody: import("vue").Ref<HTMLElement | undefined>;
|
|
124
140
|
onClick: (e: MouseEvent, tabValue: string) => void;
|
|
@@ -143,6 +159,10 @@ declare const DaoTabs: {
|
|
|
143
159
|
type: StringConstructor;
|
|
144
160
|
default: null;
|
|
145
161
|
};
|
|
162
|
+
vertical: {
|
|
163
|
+
type: BooleanConstructor;
|
|
164
|
+
default: boolean;
|
|
165
|
+
};
|
|
146
166
|
}>> & {
|
|
147
167
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
148
168
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -152,6 +172,7 @@ declare const DaoTabs: {
|
|
|
152
172
|
label: import("./types").DaoTabItemLabel;
|
|
153
173
|
value: string;
|
|
154
174
|
disabled?: boolean | undefined;
|
|
175
|
+
hasSlot: boolean;
|
|
155
176
|
}[];
|
|
156
177
|
tabBody: import("vue").Ref<HTMLElement | undefined>;
|
|
157
178
|
onClick: (e: MouseEvent, tabValue: string) => void;
|
|
@@ -160,6 +181,7 @@ declare const DaoTabs: {
|
|
|
160
181
|
type: string;
|
|
161
182
|
direction: string;
|
|
162
183
|
modelValue: string;
|
|
184
|
+
vertical: boolean;
|
|
163
185
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
164
186
|
$slots: {
|
|
165
187
|
action: SlotFn;
|
|
@@ -14,11 +14,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
type: StringConstructor;
|
|
15
15
|
default: null;
|
|
16
16
|
};
|
|
17
|
+
vertical: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
17
21
|
}, {
|
|
18
22
|
tabList: {
|
|
19
23
|
label: import("./types").DaoTabItemLabel;
|
|
20
24
|
value: string;
|
|
21
25
|
disabled?: boolean | undefined;
|
|
26
|
+
hasSlot: boolean;
|
|
22
27
|
}[];
|
|
23
28
|
tabBody: import("vue").Ref<HTMLElement | undefined>;
|
|
24
29
|
onClick: (e: MouseEvent, tabValue: string) => void;
|
|
@@ -39,6 +44,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
44
|
type: StringConstructor;
|
|
40
45
|
default: null;
|
|
41
46
|
};
|
|
47
|
+
vertical: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
42
51
|
}>> & {
|
|
43
52
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
44
53
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -47,5 +56,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
56
|
type: string;
|
|
48
57
|
direction: string;
|
|
49
58
|
modelValue: string;
|
|
59
|
+
vertical: boolean;
|
|
50
60
|
}>;
|
|
51
61
|
export default _default;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { VNode, Ref } from 'vue';
|
|
2
2
|
import { TabItemProp } from './props';
|
|
3
3
|
export type DaoTabItemLabel = string | (() => VNode);
|
|
4
|
-
export type
|
|
5
|
-
|
|
4
|
+
export type TabItemInfo = TabItemProp & {
|
|
5
|
+
hasSlot: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type AddTabFn = (tab: TabItemInfo, itemDom: Ref<HTMLElement | undefined>) => void;
|
|
8
|
+
export type RemoveTabFn = (tab: TabItemInfo) => void;
|