@dao-style/core 1.11.2-beta.1 → 1.11.2-beta.2
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/tabs/props.d.ts +6 -2
- package/dist/components/tabs/tabs.d.ts +37 -18
- package/dist/components/tabs/tabs.vue.d.ts +16 -7
- package/dist/components/text-button/props.d.ts +7 -2
- package/dist/components/text-button/text-button.d.ts +14 -14
- package/dist/components/text-button/text-button.vue.d.ts +7 -6
- package/dist/components/virtual-select/props.d.ts +0 -8
- package/dist/components/virtual-select/types.d.ts +7 -3
- package/dist/components/virtual-select/virtual-option.vue.d.ts +0 -19
- package/dist/components/virtual-select/virtual-select.d.ts +9 -9
- package/dist/components/virtual-select/virtual-select.vue.d.ts +5 -5
- package/dist/dao-style.js +7 -7
- package/dist/dao-style.mjs +3241 -3220
- package/dist/style.css +1 -1
- package/dist/styles/color/var.css +32 -32
- package/dist/styles/color/var.json +9 -9
- package/dist/styles/color/var.scss +8 -8
- package/package.json +1 -1
|
@@ -6,12 +6,12 @@ declare const tabsDirection: readonly ["left", "right"];
|
|
|
6
6
|
type TabsDirection = typeof tabsDirection[number];
|
|
7
7
|
export declare const tabsProps: {
|
|
8
8
|
type: {
|
|
9
|
-
type:
|
|
9
|
+
type: PropType<"card" | "line" | "pill">;
|
|
10
10
|
default: string;
|
|
11
11
|
validator: (value: TabsType) => boolean;
|
|
12
12
|
};
|
|
13
13
|
direction: {
|
|
14
|
-
type:
|
|
14
|
+
type: PropType<"left" | "right">;
|
|
15
15
|
required: boolean;
|
|
16
16
|
default: string;
|
|
17
17
|
validator: (value: TabsDirection) => boolean;
|
|
@@ -28,6 +28,10 @@ export declare const tabsProps: {
|
|
|
28
28
|
type: BooleanConstructor;
|
|
29
29
|
default: boolean;
|
|
30
30
|
};
|
|
31
|
+
nested: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
31
35
|
};
|
|
32
36
|
type modelValueType = string;
|
|
33
37
|
export declare const tabsEmit: {
|
|
@@ -4,19 +4,20 @@ declare const DaoTabs: {
|
|
|
4
4
|
$: import("vue").ComponentInternalInstance;
|
|
5
5
|
$data: {};
|
|
6
6
|
$props: Partial<{
|
|
7
|
-
type:
|
|
8
|
-
direction:
|
|
7
|
+
type: "card" | "line" | "pill";
|
|
8
|
+
direction: "left" | "right";
|
|
9
9
|
modelValue: string;
|
|
10
10
|
vertical: boolean;
|
|
11
11
|
compact: boolean;
|
|
12
|
+
nested: boolean;
|
|
12
13
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
13
14
|
type: {
|
|
14
|
-
type:
|
|
15
|
+
type: import("vue").PropType<"card" | "line" | "pill">;
|
|
15
16
|
default: string;
|
|
16
17
|
validator: (value: "card" | "line" | "pill") => boolean;
|
|
17
18
|
};
|
|
18
19
|
direction: {
|
|
19
|
-
type:
|
|
20
|
+
type: import("vue").PropType<"left" | "right">;
|
|
20
21
|
required: boolean;
|
|
21
22
|
default: string;
|
|
22
23
|
validator: (value: "left" | "right") => boolean;
|
|
@@ -33,11 +34,15 @@ declare const DaoTabs: {
|
|
|
33
34
|
type: BooleanConstructor;
|
|
34
35
|
default: boolean;
|
|
35
36
|
};
|
|
37
|
+
nested: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
36
41
|
}>> & {
|
|
37
42
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
38
43
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
39
44
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
40
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "direction" | "modelValue" | "vertical" | "compact">;
|
|
45
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "direction" | "modelValue" | "vertical" | "compact" | "nested">;
|
|
41
46
|
$attrs: {
|
|
42
47
|
[x: string]: unknown;
|
|
43
48
|
};
|
|
@@ -53,12 +58,12 @@ declare const DaoTabs: {
|
|
|
53
58
|
$el: any;
|
|
54
59
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
55
60
|
type: {
|
|
56
|
-
type:
|
|
61
|
+
type: import("vue").PropType<"card" | "line" | "pill">;
|
|
57
62
|
default: string;
|
|
58
63
|
validator: (value: "card" | "line" | "pill") => boolean;
|
|
59
64
|
};
|
|
60
65
|
direction: {
|
|
61
|
-
type:
|
|
66
|
+
type: import("vue").PropType<"left" | "right">;
|
|
62
67
|
required: boolean;
|
|
63
68
|
default: string;
|
|
64
69
|
validator: (value: "left" | "right") => boolean;
|
|
@@ -75,6 +80,10 @@ declare const DaoTabs: {
|
|
|
75
80
|
type: BooleanConstructor;
|
|
76
81
|
default: boolean;
|
|
77
82
|
};
|
|
83
|
+
nested: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
78
87
|
}>> & {
|
|
79
88
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
80
89
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -87,17 +96,18 @@ declare const DaoTabs: {
|
|
|
87
96
|
hasSlot: boolean;
|
|
88
97
|
}[];
|
|
89
98
|
tabBody: import("vue").Ref<HTMLElement | undefined>;
|
|
90
|
-
tabsType: import("vue").ComputedRef<
|
|
99
|
+
tabsType: import("vue").ComputedRef<"card" | "line" | "pill">;
|
|
91
100
|
tabsWrapperClass: import("vue").ComputedRef<string[]>;
|
|
92
101
|
tabsHeaderClass: import("vue").ComputedRef<string[] | "">;
|
|
93
102
|
onClick: (e: MouseEvent, tabValue: string) => void;
|
|
94
103
|
updateValue: (tabValue: string) => void;
|
|
95
104
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "change" | "update:modelValue")[], string, {
|
|
96
|
-
type:
|
|
97
|
-
direction:
|
|
105
|
+
type: "card" | "line" | "pill";
|
|
106
|
+
direction: "left" | "right";
|
|
98
107
|
modelValue: string;
|
|
99
108
|
vertical: boolean;
|
|
100
109
|
compact: boolean;
|
|
110
|
+
nested: boolean;
|
|
101
111
|
}, {}, string> & {
|
|
102
112
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
103
113
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -120,12 +130,12 @@ declare const DaoTabs: {
|
|
|
120
130
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
121
131
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
122
132
|
type: {
|
|
123
|
-
type:
|
|
133
|
+
type: import("vue").PropType<"card" | "line" | "pill">;
|
|
124
134
|
default: string;
|
|
125
135
|
validator: (value: "card" | "line" | "pill") => boolean;
|
|
126
136
|
};
|
|
127
137
|
direction: {
|
|
128
|
-
type:
|
|
138
|
+
type: import("vue").PropType<"left" | "right">;
|
|
129
139
|
required: boolean;
|
|
130
140
|
default: string;
|
|
131
141
|
validator: (value: "left" | "right") => boolean;
|
|
@@ -142,6 +152,10 @@ declare const DaoTabs: {
|
|
|
142
152
|
type: BooleanConstructor;
|
|
143
153
|
default: boolean;
|
|
144
154
|
};
|
|
155
|
+
nested: {
|
|
156
|
+
type: BooleanConstructor;
|
|
157
|
+
default: boolean;
|
|
158
|
+
};
|
|
145
159
|
}>> & {
|
|
146
160
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
147
161
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -154,7 +168,7 @@ declare const DaoTabs: {
|
|
|
154
168
|
hasSlot: boolean;
|
|
155
169
|
}[];
|
|
156
170
|
tabBody: import("vue").Ref<HTMLElement | undefined>;
|
|
157
|
-
tabsType: import("vue").ComputedRef<
|
|
171
|
+
tabsType: import("vue").ComputedRef<"card" | "line" | "pill">;
|
|
158
172
|
tabsWrapperClass: import("vue").ComputedRef<string[]>;
|
|
159
173
|
tabsHeaderClass: import("vue").ComputedRef<string[] | "">;
|
|
160
174
|
onClick: (e: MouseEvent, tabValue: string) => void;
|
|
@@ -165,12 +179,12 @@ declare const DaoTabs: {
|
|
|
165
179
|
__isSuspense?: undefined;
|
|
166
180
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
167
181
|
type: {
|
|
168
|
-
type:
|
|
182
|
+
type: import("vue").PropType<"card" | "line" | "pill">;
|
|
169
183
|
default: string;
|
|
170
184
|
validator: (value: "card" | "line" | "pill") => boolean;
|
|
171
185
|
};
|
|
172
186
|
direction: {
|
|
173
|
-
type:
|
|
187
|
+
type: import("vue").PropType<"left" | "right">;
|
|
174
188
|
required: boolean;
|
|
175
189
|
default: string;
|
|
176
190
|
validator: (value: "left" | "right") => boolean;
|
|
@@ -187,6 +201,10 @@ declare const DaoTabs: {
|
|
|
187
201
|
type: BooleanConstructor;
|
|
188
202
|
default: boolean;
|
|
189
203
|
};
|
|
204
|
+
nested: {
|
|
205
|
+
type: BooleanConstructor;
|
|
206
|
+
default: boolean;
|
|
207
|
+
};
|
|
190
208
|
}>> & {
|
|
191
209
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
192
210
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -199,17 +217,18 @@ declare const DaoTabs: {
|
|
|
199
217
|
hasSlot: boolean;
|
|
200
218
|
}[];
|
|
201
219
|
tabBody: import("vue").Ref<HTMLElement | undefined>;
|
|
202
|
-
tabsType: import("vue").ComputedRef<
|
|
220
|
+
tabsType: import("vue").ComputedRef<"card" | "line" | "pill">;
|
|
203
221
|
tabsWrapperClass: import("vue").ComputedRef<string[]>;
|
|
204
222
|
tabsHeaderClass: import("vue").ComputedRef<string[] | "">;
|
|
205
223
|
onClick: (e: MouseEvent, tabValue: string) => void;
|
|
206
224
|
updateValue: (tabValue: string) => void;
|
|
207
225
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "change" | "update:modelValue")[], "click" | "change" | "update:modelValue", {
|
|
208
|
-
type:
|
|
209
|
-
direction:
|
|
226
|
+
type: "card" | "line" | "pill";
|
|
227
|
+
direction: "left" | "right";
|
|
210
228
|
modelValue: string;
|
|
211
229
|
vertical: boolean;
|
|
212
230
|
compact: boolean;
|
|
231
|
+
nested: boolean;
|
|
213
232
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
214
233
|
$slots: {
|
|
215
234
|
action: SlotFn;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
type: {
|
|
3
|
-
type:
|
|
3
|
+
type: import("vue").PropType<"card" | "line" | "pill">;
|
|
4
4
|
default: string;
|
|
5
5
|
validator: (value: "card" | "line" | "pill") => boolean;
|
|
6
6
|
};
|
|
7
7
|
direction: {
|
|
8
|
-
type:
|
|
8
|
+
type: import("vue").PropType<"left" | "right">;
|
|
9
9
|
required: boolean;
|
|
10
10
|
default: string;
|
|
11
11
|
validator: (value: "left" | "right") => boolean;
|
|
@@ -22,6 +22,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
22
|
type: BooleanConstructor;
|
|
23
23
|
default: boolean;
|
|
24
24
|
};
|
|
25
|
+
nested: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
25
29
|
}, {
|
|
26
30
|
tabList: {
|
|
27
31
|
label: import("./types").DaoTabItemLabel;
|
|
@@ -30,19 +34,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
34
|
hasSlot: boolean;
|
|
31
35
|
}[];
|
|
32
36
|
tabBody: import("vue").Ref<HTMLElement | undefined>;
|
|
33
|
-
tabsType: import("vue").ComputedRef<
|
|
37
|
+
tabsType: import("vue").ComputedRef<"card" | "line" | "pill">;
|
|
34
38
|
tabsWrapperClass: import("vue").ComputedRef<string[]>;
|
|
35
39
|
tabsHeaderClass: import("vue").ComputedRef<string[] | "">;
|
|
36
40
|
onClick: (e: MouseEvent, tabValue: string) => void;
|
|
37
41
|
updateValue: (tabValue: string) => void;
|
|
38
42
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "change" | "update:modelValue")[], "click" | "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
43
|
type: {
|
|
40
|
-
type:
|
|
44
|
+
type: import("vue").PropType<"card" | "line" | "pill">;
|
|
41
45
|
default: string;
|
|
42
46
|
validator: (value: "card" | "line" | "pill") => boolean;
|
|
43
47
|
};
|
|
44
48
|
direction: {
|
|
45
|
-
type:
|
|
49
|
+
type: import("vue").PropType<"left" | "right">;
|
|
46
50
|
required: boolean;
|
|
47
51
|
default: string;
|
|
48
52
|
validator: (value: "left" | "right") => boolean;
|
|
@@ -59,15 +63,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
63
|
type: BooleanConstructor;
|
|
60
64
|
default: boolean;
|
|
61
65
|
};
|
|
66
|
+
nested: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
62
70
|
}>> & {
|
|
63
71
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
64
72
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
65
73
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
66
74
|
}, {
|
|
67
|
-
type:
|
|
68
|
-
direction:
|
|
75
|
+
type: "card" | "line" | "pill";
|
|
76
|
+
direction: "left" | "right";
|
|
69
77
|
modelValue: string;
|
|
70
78
|
vertical: boolean;
|
|
71
79
|
compact: boolean;
|
|
80
|
+
nested: boolean;
|
|
72
81
|
}>;
|
|
73
82
|
export default _default;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import type { PropType, Component, ExtractPropTypes } from 'vue';
|
|
2
2
|
export type TagType = Element['tagName'] | Component;
|
|
3
3
|
export declare const textButtonType: readonly ["default", "action", "link", "link-primary", "custom"];
|
|
4
|
+
export type IconProp = string | {
|
|
5
|
+
name: string;
|
|
6
|
+
mode?: 'stable' | 'hover' | 'inherit';
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
4
9
|
type ThePropType = {
|
|
5
10
|
type?: typeof textButtonType[number];
|
|
6
|
-
iconLeft?:
|
|
7
|
-
iconRight?:
|
|
11
|
+
iconLeft?: IconProp;
|
|
12
|
+
iconRight?: IconProp;
|
|
8
13
|
dark?: boolean;
|
|
9
14
|
};
|
|
10
15
|
export declare const textButtonProps: {
|
|
@@ -7,8 +7,8 @@ declare const DaoTextButton: {
|
|
|
7
7
|
tag: import("./props").TagType;
|
|
8
8
|
prop: {
|
|
9
9
|
type?: "link" | "default" | "action" | "link-primary" | "custom" | undefined;
|
|
10
|
-
iconLeft?:
|
|
11
|
-
iconRight?:
|
|
10
|
+
iconLeft?: import("./props").IconProp | undefined;
|
|
11
|
+
iconRight?: import("./props").IconProp | undefined;
|
|
12
12
|
dark?: boolean | undefined;
|
|
13
13
|
};
|
|
14
14
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -19,8 +19,8 @@ declare const DaoTextButton: {
|
|
|
19
19
|
prop: {
|
|
20
20
|
type: import("vue").PropType<{
|
|
21
21
|
type?: "link" | "default" | "action" | "link-primary" | "custom" | undefined;
|
|
22
|
-
iconLeft?:
|
|
23
|
-
iconRight?:
|
|
22
|
+
iconLeft?: import("./props").IconProp | undefined;
|
|
23
|
+
iconRight?: import("./props").IconProp | undefined;
|
|
24
24
|
dark?: boolean | undefined;
|
|
25
25
|
}>;
|
|
26
26
|
default: () => {
|
|
@@ -49,8 +49,8 @@ declare const DaoTextButton: {
|
|
|
49
49
|
prop: {
|
|
50
50
|
type: import("vue").PropType<{
|
|
51
51
|
type?: "link" | "default" | "action" | "link-primary" | "custom" | undefined;
|
|
52
|
-
iconLeft?:
|
|
53
|
-
iconRight?:
|
|
52
|
+
iconLeft?: import("./props").IconProp | undefined;
|
|
53
|
+
iconRight?: import("./props").IconProp | undefined;
|
|
54
54
|
dark?: boolean | undefined;
|
|
55
55
|
}>;
|
|
56
56
|
default: () => {
|
|
@@ -63,8 +63,8 @@ declare const DaoTextButton: {
|
|
|
63
63
|
tag: import("./props").TagType;
|
|
64
64
|
prop: {
|
|
65
65
|
type?: "link" | "default" | "action" | "link-primary" | "custom" | undefined;
|
|
66
|
-
iconLeft?:
|
|
67
|
-
iconRight?:
|
|
66
|
+
iconLeft?: import("./props").IconProp | undefined;
|
|
67
|
+
iconRight?: import("./props").IconProp | undefined;
|
|
68
68
|
dark?: boolean | undefined;
|
|
69
69
|
};
|
|
70
70
|
}, {}, string> & {
|
|
@@ -95,8 +95,8 @@ declare const DaoTextButton: {
|
|
|
95
95
|
prop: {
|
|
96
96
|
type: import("vue").PropType<{
|
|
97
97
|
type?: "link" | "default" | "action" | "link-primary" | "custom" | undefined;
|
|
98
|
-
iconLeft?:
|
|
99
|
-
iconRight?:
|
|
98
|
+
iconLeft?: import("./props").IconProp | undefined;
|
|
99
|
+
iconRight?: import("./props").IconProp | undefined;
|
|
100
100
|
dark?: boolean | undefined;
|
|
101
101
|
}>;
|
|
102
102
|
default: () => {
|
|
@@ -117,8 +117,8 @@ declare const DaoTextButton: {
|
|
|
117
117
|
prop: {
|
|
118
118
|
type: import("vue").PropType<{
|
|
119
119
|
type?: "link" | "default" | "action" | "link-primary" | "custom" | undefined;
|
|
120
|
-
iconLeft?:
|
|
121
|
-
iconRight?:
|
|
120
|
+
iconLeft?: import("./props").IconProp | undefined;
|
|
121
|
+
iconRight?: import("./props").IconProp | undefined;
|
|
122
122
|
dark?: boolean | undefined;
|
|
123
123
|
}>;
|
|
124
124
|
default: () => {
|
|
@@ -131,8 +131,8 @@ declare const DaoTextButton: {
|
|
|
131
131
|
tag: import("./props").TagType;
|
|
132
132
|
prop: {
|
|
133
133
|
type?: "link" | "default" | "action" | "link-primary" | "custom" | undefined;
|
|
134
|
-
iconLeft?:
|
|
135
|
-
iconRight?:
|
|
134
|
+
iconLeft?: import("./props").IconProp | undefined;
|
|
135
|
+
iconRight?: import("./props").IconProp | undefined;
|
|
136
136
|
dark?: boolean | undefined;
|
|
137
137
|
};
|
|
138
138
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new <Tag extends import("./props").TagType>(props: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VNode } from 'vue';
|
|
2
|
+
import { IconProp } from './props';
|
|
2
3
|
declare const _default: import("vue").DefineComponent<{
|
|
3
4
|
tag: {
|
|
4
5
|
type: import("vue").PropType<import("./props").TagType>;
|
|
@@ -7,8 +8,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
8
|
prop: {
|
|
8
9
|
type: import("vue").PropType<{
|
|
9
10
|
type?: "link" | "default" | "action" | "link-primary" | "custom" | undefined;
|
|
10
|
-
iconLeft?:
|
|
11
|
-
iconRight?:
|
|
11
|
+
iconLeft?: IconProp | undefined;
|
|
12
|
+
iconRight?: IconProp | undefined;
|
|
12
13
|
dark?: boolean | undefined;
|
|
13
14
|
}>;
|
|
14
15
|
default: () => {
|
|
@@ -25,8 +26,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
26
|
prop: {
|
|
26
27
|
type: import("vue").PropType<{
|
|
27
28
|
type?: "link" | "default" | "action" | "link-primary" | "custom" | undefined;
|
|
28
|
-
iconLeft?:
|
|
29
|
-
iconRight?:
|
|
29
|
+
iconLeft?: IconProp | undefined;
|
|
30
|
+
iconRight?: IconProp | undefined;
|
|
30
31
|
dark?: boolean | undefined;
|
|
31
32
|
}>;
|
|
32
33
|
default: () => {
|
|
@@ -37,8 +38,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
38
|
tag: import("./props").TagType;
|
|
38
39
|
prop: {
|
|
39
40
|
type?: "link" | "default" | "action" | "link-primary" | "custom" | undefined;
|
|
40
|
-
iconLeft?:
|
|
41
|
-
iconRight?:
|
|
41
|
+
iconLeft?: IconProp | undefined;
|
|
42
|
+
iconRight?: IconProp | undefined;
|
|
42
43
|
dark?: boolean | undefined;
|
|
43
44
|
};
|
|
44
45
|
}>;
|
|
@@ -91,14 +91,6 @@ export declare const virtualOptionProps: {
|
|
|
91
91
|
type: BooleanConstructor;
|
|
92
92
|
default: boolean;
|
|
93
93
|
};
|
|
94
|
-
labelKey: {
|
|
95
|
-
type: StringConstructor;
|
|
96
|
-
default: string;
|
|
97
|
-
};
|
|
98
|
-
valueKey: {
|
|
99
|
-
type: StringConstructor;
|
|
100
|
-
default: string;
|
|
101
|
-
};
|
|
102
94
|
multiple: {
|
|
103
95
|
type: BooleanConstructor;
|
|
104
96
|
default: boolean;
|
|
@@ -7,11 +7,15 @@ export type OptionType = {
|
|
|
7
7
|
} & {
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
};
|
|
10
|
+
export type CachedOptionType = {
|
|
11
|
+
label: Option;
|
|
12
|
+
value: Option;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
[key: symbol]: Option;
|
|
15
|
+
origin?: OptionType;
|
|
16
|
+
};
|
|
10
17
|
export type DaoVirtualSelectSearchFn = (keyword: string, value: OptionValue, option: OptionType) => boolean;
|
|
11
18
|
export interface DaoVirtualSelectState {
|
|
12
19
|
searchText: string;
|
|
13
20
|
visible: boolean;
|
|
14
21
|
}
|
|
15
|
-
export type SymbolOptionType = OptionType & {
|
|
16
|
-
[key: symbol]: Option;
|
|
17
|
-
};
|
|
@@ -7,20 +7,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: BooleanConstructor;
|
|
8
8
|
default: boolean;
|
|
9
9
|
};
|
|
10
|
-
labelKey: {
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
|
-
valueKey: {
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
default: string;
|
|
17
|
-
};
|
|
18
10
|
multiple: {
|
|
19
11
|
type: BooleanConstructor;
|
|
20
12
|
default: boolean;
|
|
21
13
|
};
|
|
22
14
|
}, {
|
|
23
|
-
labelValue: import("vue").ComputedRef<import("./types").Option>;
|
|
24
15
|
isDisabled: import("vue").ComputedRef<boolean>;
|
|
25
16
|
onClick: () => void;
|
|
26
17
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -34,14 +25,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
25
|
type: BooleanConstructor;
|
|
35
26
|
default: boolean;
|
|
36
27
|
};
|
|
37
|
-
labelKey: {
|
|
38
|
-
type: StringConstructor;
|
|
39
|
-
default: string;
|
|
40
|
-
};
|
|
41
|
-
valueKey: {
|
|
42
|
-
type: StringConstructor;
|
|
43
|
-
default: string;
|
|
44
|
-
};
|
|
45
28
|
multiple: {
|
|
46
29
|
type: BooleanConstructor;
|
|
47
30
|
default: boolean;
|
|
@@ -52,7 +35,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
35
|
option: import("./types").OptionType;
|
|
53
36
|
multiple: boolean;
|
|
54
37
|
active: boolean;
|
|
55
|
-
valueKey: string;
|
|
56
|
-
labelKey: string;
|
|
57
38
|
}>;
|
|
58
39
|
export default _default;
|
|
@@ -608,15 +608,15 @@ declare const DaoVirtualSelect: {
|
|
|
608
608
|
onSearchClear: () => void;
|
|
609
609
|
selectedOptions: import("vue").ComputedRef<OptionType[]>;
|
|
610
610
|
selectedOptionsLabels: import("vue").ComputedRef<import("./types").Option[]>;
|
|
611
|
+
selectedOptionsValues: import("vue").ComputedRef<import("./types").Option[]>;
|
|
611
612
|
isActive: (item: OptionType) => boolean;
|
|
612
|
-
computedOptions: import("vue").ComputedRef<import("./types").
|
|
613
|
+
computedOptions: import("vue").ComputedRef<import("./types").CachedOptionType[]>;
|
|
613
614
|
OptionLoadingFlag: symbol;
|
|
615
|
+
optionListHeight: import("vue").ComputedRef<string>;
|
|
614
616
|
selectableOptions: import("vue").ComputedRef<OptionType[]>;
|
|
615
617
|
isCheckedAllChecked: import("vue").ComputedRef<boolean>;
|
|
616
618
|
isCheckedAllIndeterminate: import("vue").ComputedRef<boolean>;
|
|
617
619
|
onSearchTextChange: () => void;
|
|
618
|
-
optionsValueMap: import("vue").ComputedRef<WeakMap<OptionType, import("./types").Option>>;
|
|
619
|
-
optionsShowLabelMap: import("vue").ComputedRef<WeakMap<OptionType, import("./types").Option>>;
|
|
620
620
|
onSelect: (option: OptionType) => void;
|
|
621
621
|
handleCheckAll: (checked: boolean) => void;
|
|
622
622
|
isDisabled: import("vue").ComputedRef<boolean>;
|
|
@@ -1143,15 +1143,15 @@ declare const DaoVirtualSelect: {
|
|
|
1143
1143
|
onSearchClear: () => void;
|
|
1144
1144
|
selectedOptions: import("vue").ComputedRef<OptionType[]>;
|
|
1145
1145
|
selectedOptionsLabels: import("vue").ComputedRef<import("./types").Option[]>;
|
|
1146
|
+
selectedOptionsValues: import("vue").ComputedRef<import("./types").Option[]>;
|
|
1146
1147
|
isActive: (item: OptionType) => boolean;
|
|
1147
|
-
computedOptions: import("vue").ComputedRef<import("./types").
|
|
1148
|
+
computedOptions: import("vue").ComputedRef<import("./types").CachedOptionType[]>;
|
|
1148
1149
|
OptionLoadingFlag: symbol;
|
|
1150
|
+
optionListHeight: import("vue").ComputedRef<string>;
|
|
1149
1151
|
selectableOptions: import("vue").ComputedRef<OptionType[]>;
|
|
1150
1152
|
isCheckedAllChecked: import("vue").ComputedRef<boolean>;
|
|
1151
1153
|
isCheckedAllIndeterminate: import("vue").ComputedRef<boolean>;
|
|
1152
1154
|
onSearchTextChange: () => void;
|
|
1153
|
-
optionsValueMap: import("vue").ComputedRef<WeakMap<OptionType, import("./types").Option>>;
|
|
1154
|
-
optionsShowLabelMap: import("vue").ComputedRef<WeakMap<OptionType, import("./types").Option>>;
|
|
1155
1155
|
onSelect: (option: OptionType) => void;
|
|
1156
1156
|
handleCheckAll: (checked: boolean) => void;
|
|
1157
1157
|
isDisabled: import("vue").ComputedRef<boolean>;
|
|
@@ -1642,15 +1642,15 @@ declare const DaoVirtualSelect: {
|
|
|
1642
1642
|
onSearchClear: () => void;
|
|
1643
1643
|
selectedOptions: import("vue").ComputedRef<OptionType[]>;
|
|
1644
1644
|
selectedOptionsLabels: import("vue").ComputedRef<import("./types").Option[]>;
|
|
1645
|
+
selectedOptionsValues: import("vue").ComputedRef<import("./types").Option[]>;
|
|
1645
1646
|
isActive: (item: OptionType) => boolean;
|
|
1646
|
-
computedOptions: import("vue").ComputedRef<import("./types").
|
|
1647
|
+
computedOptions: import("vue").ComputedRef<import("./types").CachedOptionType[]>;
|
|
1647
1648
|
OptionLoadingFlag: symbol;
|
|
1649
|
+
optionListHeight: import("vue").ComputedRef<string>;
|
|
1648
1650
|
selectableOptions: import("vue").ComputedRef<OptionType[]>;
|
|
1649
1651
|
isCheckedAllChecked: import("vue").ComputedRef<boolean>;
|
|
1650
1652
|
isCheckedAllIndeterminate: import("vue").ComputedRef<boolean>;
|
|
1651
1653
|
onSearchTextChange: () => void;
|
|
1652
|
-
optionsValueMap: import("vue").ComputedRef<WeakMap<OptionType, import("./types").Option>>;
|
|
1653
|
-
optionsShowLabelMap: import("vue").ComputedRef<WeakMap<OptionType, import("./types").Option>>;
|
|
1654
1654
|
onSelect: (option: OptionType) => void;
|
|
1655
1655
|
handleCheckAll: (checked: boolean) => void;
|
|
1656
1656
|
isDisabled: import("vue").ComputedRef<boolean>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Options as PopperOptions } from '@popperjs/core';
|
|
2
2
|
import 'vue-virtual-scroller/dist/vue-virtual-scroller.css';
|
|
3
|
-
import type {
|
|
3
|
+
import type { CachedOptionType, OptionType } from './types';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
search: {
|
|
6
6
|
type: import("vue").PropType<boolean | import("./types").DaoVirtualSelectSearchFn>;
|
|
@@ -477,16 +477,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
477
477
|
}>;
|
|
478
478
|
onSearchClear: () => void;
|
|
479
479
|
selectedOptions: import("vue").ComputedRef<OptionType[]>;
|
|
480
|
-
selectedOptionsLabels: import("vue").ComputedRef<Option[]>;
|
|
480
|
+
selectedOptionsLabels: import("vue").ComputedRef<import("./types").Option[]>;
|
|
481
|
+
selectedOptionsValues: import("vue").ComputedRef<import("./types").Option[]>;
|
|
481
482
|
isActive: (item: OptionType) => boolean;
|
|
482
|
-
computedOptions: import("vue").ComputedRef<
|
|
483
|
+
computedOptions: import("vue").ComputedRef<CachedOptionType[]>;
|
|
483
484
|
OptionLoadingFlag: symbol;
|
|
485
|
+
optionListHeight: import("vue").ComputedRef<string>;
|
|
484
486
|
selectableOptions: import("vue").ComputedRef<OptionType[]>;
|
|
485
487
|
isCheckedAllChecked: import("vue").ComputedRef<boolean>;
|
|
486
488
|
isCheckedAllIndeterminate: import("vue").ComputedRef<boolean>;
|
|
487
489
|
onSearchTextChange: () => void;
|
|
488
|
-
optionsValueMap: import("vue").ComputedRef<WeakMap<OptionType, Option>>;
|
|
489
|
-
optionsShowLabelMap: import("vue").ComputedRef<WeakMap<OptionType, Option>>;
|
|
490
490
|
onSelect: (option: OptionType) => void;
|
|
491
491
|
handleCheckAll: (checked: boolean) => void;
|
|
492
492
|
isDisabled: import("vue").ComputedRef<boolean>;
|