@dao-style/core 1.9.1-beta.2 → 1.9.1-beta.4
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/text-button/props.d.ts +2 -5
- package/dist/components/text-button/text-button.d.ts +14 -14
- package/dist/components/text-button/text-button.vue.d.ts +6 -6
- package/dist/components/virtual-select/types.d.ts +1 -2
- package/dist/components/virtual-select/uilts.d.ts +3 -75
- package/dist/components/virtual-select/virtual-option.vue.d.ts +1 -3
- package/dist/components/virtual-select/virtual-select.d.ts +9 -27
- package/dist/components/virtual-select/virtual-select.vue.d.ts +4 -11
- package/dist/dao-style.js +6 -6
- package/dist/dao-style.mjs +1435 -1424
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import type { PropType, Component, ExtractPropTypes } from 'vue';
|
|
2
2
|
export type TagType = Element['tagName'] | Component;
|
|
3
|
-
export declare const textButtonType: readonly ["default", "action", "link", "custom"];
|
|
3
|
+
export declare const textButtonType: readonly ["default", "action", "link", "link-primary", "custom"];
|
|
4
4
|
type ThePropType = {
|
|
5
5
|
type?: typeof textButtonType[number];
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated icon 后续将被弃用,请将icon替换为iconLeft
|
|
8
|
-
*/
|
|
9
|
-
icon?: string;
|
|
10
6
|
iconLeft?: string;
|
|
11
7
|
iconRight?: string;
|
|
8
|
+
dark?: boolean;
|
|
12
9
|
};
|
|
13
10
|
export declare const textButtonProps: {
|
|
14
11
|
tag: {
|
|
@@ -6,10 +6,10 @@ declare const DaoTextButton: {
|
|
|
6
6
|
$props: Partial<{
|
|
7
7
|
tag: import("./props").TagType;
|
|
8
8
|
prop: {
|
|
9
|
-
type?: "link" | "default" | "action" | "custom" | undefined;
|
|
10
|
-
icon?: string | undefined;
|
|
9
|
+
type?: "link" | "default" | "action" | "link-primary" | "custom" | undefined;
|
|
11
10
|
iconLeft?: string | undefined;
|
|
12
11
|
iconRight?: string | undefined;
|
|
12
|
+
dark?: boolean | undefined;
|
|
13
13
|
};
|
|
14
14
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
15
15
|
tag: {
|
|
@@ -18,10 +18,10 @@ declare const DaoTextButton: {
|
|
|
18
18
|
};
|
|
19
19
|
prop: {
|
|
20
20
|
type: import("vue").PropType<{
|
|
21
|
-
type?: "link" | "default" | "action" | "custom" | undefined;
|
|
22
|
-
icon?: string | undefined;
|
|
21
|
+
type?: "link" | "default" | "action" | "link-primary" | "custom" | undefined;
|
|
23
22
|
iconLeft?: string | undefined;
|
|
24
23
|
iconRight?: string | undefined;
|
|
24
|
+
dark?: boolean | undefined;
|
|
25
25
|
}>;
|
|
26
26
|
default: () => {
|
|
27
27
|
type: string;
|
|
@@ -48,10 +48,10 @@ declare const DaoTextButton: {
|
|
|
48
48
|
};
|
|
49
49
|
prop: {
|
|
50
50
|
type: import("vue").PropType<{
|
|
51
|
-
type?: "link" | "default" | "action" | "custom" | undefined;
|
|
52
|
-
icon?: string | undefined;
|
|
51
|
+
type?: "link" | "default" | "action" | "link-primary" | "custom" | undefined;
|
|
53
52
|
iconLeft?: string | undefined;
|
|
54
53
|
iconRight?: string | undefined;
|
|
54
|
+
dark?: boolean | undefined;
|
|
55
55
|
}>;
|
|
56
56
|
default: () => {
|
|
57
57
|
type: string;
|
|
@@ -62,10 +62,10 @@ declare const DaoTextButton: {
|
|
|
62
62
|
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
63
63
|
tag: import("./props").TagType;
|
|
64
64
|
prop: {
|
|
65
|
-
type?: "link" | "default" | "action" | "custom" | undefined;
|
|
66
|
-
icon?: string | undefined;
|
|
65
|
+
type?: "link" | "default" | "action" | "link-primary" | "custom" | undefined;
|
|
67
66
|
iconLeft?: string | undefined;
|
|
68
67
|
iconRight?: string | undefined;
|
|
68
|
+
dark?: boolean | undefined;
|
|
69
69
|
};
|
|
70
70
|
}, {}, string> & {
|
|
71
71
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -94,10 +94,10 @@ declare const DaoTextButton: {
|
|
|
94
94
|
};
|
|
95
95
|
prop: {
|
|
96
96
|
type: import("vue").PropType<{
|
|
97
|
-
type?: "link" | "default" | "action" | "custom" | undefined;
|
|
98
|
-
icon?: string | undefined;
|
|
97
|
+
type?: "link" | "default" | "action" | "link-primary" | "custom" | undefined;
|
|
99
98
|
iconLeft?: string | undefined;
|
|
100
99
|
iconRight?: string | undefined;
|
|
100
|
+
dark?: boolean | undefined;
|
|
101
101
|
}>;
|
|
102
102
|
default: () => {
|
|
103
103
|
type: string;
|
|
@@ -116,10 +116,10 @@ declare const DaoTextButton: {
|
|
|
116
116
|
};
|
|
117
117
|
prop: {
|
|
118
118
|
type: import("vue").PropType<{
|
|
119
|
-
type?: "link" | "default" | "action" | "custom" | undefined;
|
|
120
|
-
icon?: string | undefined;
|
|
119
|
+
type?: "link" | "default" | "action" | "link-primary" | "custom" | undefined;
|
|
121
120
|
iconLeft?: string | undefined;
|
|
122
121
|
iconRight?: string | undefined;
|
|
122
|
+
dark?: boolean | undefined;
|
|
123
123
|
}>;
|
|
124
124
|
default: () => {
|
|
125
125
|
type: string;
|
|
@@ -130,10 +130,10 @@ declare const DaoTextButton: {
|
|
|
130
130
|
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
131
131
|
tag: import("./props").TagType;
|
|
132
132
|
prop: {
|
|
133
|
-
type?: "link" | "default" | "action" | "custom" | undefined;
|
|
134
|
-
icon?: string | undefined;
|
|
133
|
+
type?: "link" | "default" | "action" | "link-primary" | "custom" | undefined;
|
|
135
134
|
iconLeft?: string | undefined;
|
|
136
135
|
iconRight?: string | undefined;
|
|
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: {
|
|
139
139
|
tag: Tag;
|
|
@@ -6,10 +6,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6
6
|
};
|
|
7
7
|
prop: {
|
|
8
8
|
type: import("vue").PropType<{
|
|
9
|
-
type?: "link" | "default" | "action" | "custom" | undefined;
|
|
10
|
-
icon?: string | undefined;
|
|
9
|
+
type?: "link" | "default" | "action" | "link-primary" | "custom" | undefined;
|
|
11
10
|
iconLeft?: string | undefined;
|
|
12
11
|
iconRight?: string | undefined;
|
|
12
|
+
dark?: boolean | undefined;
|
|
13
13
|
}>;
|
|
14
14
|
default: () => {
|
|
15
15
|
type: string;
|
|
@@ -24,10 +24,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
};
|
|
25
25
|
prop: {
|
|
26
26
|
type: import("vue").PropType<{
|
|
27
|
-
type?: "link" | "default" | "action" | "custom" | undefined;
|
|
28
|
-
icon?: string | undefined;
|
|
27
|
+
type?: "link" | "default" | "action" | "link-primary" | "custom" | undefined;
|
|
29
28
|
iconLeft?: string | undefined;
|
|
30
29
|
iconRight?: string | undefined;
|
|
30
|
+
dark?: boolean | undefined;
|
|
31
31
|
}>;
|
|
32
32
|
default: () => {
|
|
33
33
|
type: string;
|
|
@@ -36,10 +36,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
36
|
}>>, {
|
|
37
37
|
tag: import("./props").TagType;
|
|
38
38
|
prop: {
|
|
39
|
-
type?: "link" | "default" | "action" | "custom" | undefined;
|
|
40
|
-
icon?: string | undefined;
|
|
39
|
+
type?: "link" | "default" | "action" | "link-primary" | "custom" | undefined;
|
|
41
40
|
iconLeft?: string | undefined;
|
|
42
41
|
iconRight?: string | undefined;
|
|
42
|
+
dark?: boolean | undefined;
|
|
43
43
|
};
|
|
44
44
|
}>;
|
|
45
45
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OptionValue } from '../select/types';
|
|
2
|
-
type Option = OptionValue | {
|
|
2
|
+
export type Option = OptionValue | {
|
|
3
3
|
[key: string]: Option;
|
|
4
4
|
} | Option[];
|
|
5
5
|
export type OptionType = {
|
|
@@ -12,4 +12,3 @@ export interface DaoVirtualSelectState {
|
|
|
12
12
|
searchText: string;
|
|
13
13
|
visible: boolean;
|
|
14
14
|
}
|
|
15
|
-
export {};
|
|
@@ -1,77 +1,5 @@
|
|
|
1
1
|
import { type OptionType } from './types';
|
|
2
2
|
import { type virtualSelectProps } from './props';
|
|
3
|
-
export declare const getLabel: (option: OptionType, key: string) => import("
|
|
4
|
-
|
|
5
|
-
} |
|
|
6
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
7
|
-
} | (import("..").OptionValue | {
|
|
8
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
9
|
-
} | (import("..").OptionValue | {
|
|
10
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
11
|
-
} | (import("..").OptionValue | {
|
|
12
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
13
|
-
} | (import("..").OptionValue | {
|
|
14
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
15
|
-
} | (import("..").OptionValue | {
|
|
16
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
17
|
-
} | (import("..").OptionValue | {
|
|
18
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
19
|
-
} | (import("..").OptionValue | {
|
|
20
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
21
|
-
} | (import("..").OptionValue | {
|
|
22
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
23
|
-
} | (import("..").OptionValue | {
|
|
24
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
25
|
-
} | (import("..").OptionValue | {
|
|
26
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
27
|
-
} | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
28
|
-
export declare const getValue: (option: OptionType, key: string) => import("..").OptionValue | {
|
|
29
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
30
|
-
} | (import("..").OptionValue | {
|
|
31
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
32
|
-
} | (import("..").OptionValue | {
|
|
33
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
34
|
-
} | (import("..").OptionValue | {
|
|
35
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
36
|
-
} | (import("..").OptionValue | {
|
|
37
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
38
|
-
} | (import("..").OptionValue | {
|
|
39
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
40
|
-
} | (import("..").OptionValue | {
|
|
41
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
42
|
-
} | (import("..").OptionValue | {
|
|
43
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
44
|
-
} | (import("..").OptionValue | {
|
|
45
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
46
|
-
} | (import("..").OptionValue | {
|
|
47
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
48
|
-
} | (import("..").OptionValue | {
|
|
49
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
50
|
-
} | (import("..").OptionValue | {
|
|
51
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
52
|
-
} | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
53
|
-
export declare const getShowLabel: (option: OptionType, { labelKey, valueKey }: Pick<virtualSelectProps, 'labelKey' | 'valueKey'>) => import("..").OptionValue | {
|
|
54
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
55
|
-
} | (import("..").OptionValue | {
|
|
56
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
57
|
-
} | (import("..").OptionValue | {
|
|
58
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
59
|
-
} | (import("..").OptionValue | {
|
|
60
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
61
|
-
} | (import("..").OptionValue | {
|
|
62
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
63
|
-
} | (import("..").OptionValue | {
|
|
64
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
65
|
-
} | (import("..").OptionValue | {
|
|
66
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
67
|
-
} | (import("..").OptionValue | {
|
|
68
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
69
|
-
} | (import("..").OptionValue | {
|
|
70
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
71
|
-
} | (import("..").OptionValue | {
|
|
72
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
73
|
-
} | (import("..").OptionValue | {
|
|
74
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
75
|
-
} | (import("..").OptionValue | {
|
|
76
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
77
|
-
} | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
3
|
+
export declare const getLabel: (option: OptionType, key: string) => import("./types").Option;
|
|
4
|
+
export declare const getValue: (option: OptionType, key: string) => import("./types").Option;
|
|
5
|
+
export declare const getShowLabel: (option: OptionType, { labelKey, valueKey }: Pick<virtualSelectProps, 'labelKey' | 'valueKey'>) => import("./types").Option;
|
|
@@ -20,9 +20,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
default: boolean;
|
|
21
21
|
};
|
|
22
22
|
}, {
|
|
23
|
-
labelValue: import("vue").ComputedRef<import("
|
|
24
|
-
[key: string]: import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
25
|
-
} | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | (import("..").OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[]>;
|
|
23
|
+
labelValue: import("vue").ComputedRef<import("./types").Option>;
|
|
26
24
|
isDisabled: import("vue").ComputedRef<boolean>;
|
|
27
25
|
onClick: () => void;
|
|
28
26
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -598,21 +598,15 @@ declare const DaoVirtualSelect: {
|
|
|
598
598
|
}>;
|
|
599
599
|
onSearchClear: () => void;
|
|
600
600
|
selectedOptions: import("vue").ComputedRef<OptionType[]>;
|
|
601
|
+
selectedOptionsLabels: import("vue").ComputedRef<import("./types").Option[]>;
|
|
601
602
|
isActive: (item: OptionType) => boolean;
|
|
602
603
|
computedOptions: import("vue").ComputedRef<OptionType[]>;
|
|
603
604
|
selectableOptions: import("vue").ComputedRef<OptionType[]>;
|
|
604
605
|
isCheckedAllChecked: import("vue").ComputedRef<boolean>;
|
|
605
606
|
isCheckedAllIndeterminate: import("vue").ComputedRef<boolean>;
|
|
606
607
|
onSearchTextChange: () => void;
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
} | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
610
|
-
getOptionValue: (option: OptionType) => OptionValue | {
|
|
611
|
-
[key: string]: OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
612
|
-
} | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
613
|
-
getOptionShowLabel: (option: OptionType) => OptionValue | {
|
|
614
|
-
[key: string]: OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
615
|
-
} | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
608
|
+
optionsValueMap: import("vue").ComputedRef<WeakMap<OptionType, import("./types").Option>>;
|
|
609
|
+
optionsShowLabelMap: import("vue").ComputedRef<WeakMap<OptionType, import("./types").Option>>;
|
|
616
610
|
onSelect: (option: OptionType) => void;
|
|
617
611
|
handleCheckAll: (checked: boolean) => void;
|
|
618
612
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "change" | "update:modelValue" | "search-change")[], string, {
|
|
@@ -1132,21 +1126,15 @@ declare const DaoVirtualSelect: {
|
|
|
1132
1126
|
}>;
|
|
1133
1127
|
onSearchClear: () => void;
|
|
1134
1128
|
selectedOptions: import("vue").ComputedRef<OptionType[]>;
|
|
1129
|
+
selectedOptionsLabels: import("vue").ComputedRef<import("./types").Option[]>;
|
|
1135
1130
|
isActive: (item: OptionType) => boolean;
|
|
1136
1131
|
computedOptions: import("vue").ComputedRef<OptionType[]>;
|
|
1137
1132
|
selectableOptions: import("vue").ComputedRef<OptionType[]>;
|
|
1138
1133
|
isCheckedAllChecked: import("vue").ComputedRef<boolean>;
|
|
1139
1134
|
isCheckedAllIndeterminate: import("vue").ComputedRef<boolean>;
|
|
1140
1135
|
onSearchTextChange: () => void;
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
} | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
1144
|
-
getOptionValue: (option: OptionType) => OptionValue | {
|
|
1145
|
-
[key: string]: OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
1146
|
-
} | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
1147
|
-
getOptionShowLabel: (option: OptionType) => OptionValue | {
|
|
1148
|
-
[key: string]: OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
1149
|
-
} | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
1136
|
+
optionsValueMap: import("vue").ComputedRef<WeakMap<OptionType, import("./types").Option>>;
|
|
1137
|
+
optionsShowLabelMap: import("vue").ComputedRef<WeakMap<OptionType, import("./types").Option>>;
|
|
1150
1138
|
onSelect: (option: OptionType) => void;
|
|
1151
1139
|
handleCheckAll: (checked: boolean) => void;
|
|
1152
1140
|
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
@@ -1631,21 +1619,15 @@ declare const DaoVirtualSelect: {
|
|
|
1631
1619
|
}>;
|
|
1632
1620
|
onSearchClear: () => void;
|
|
1633
1621
|
selectedOptions: import("vue").ComputedRef<OptionType[]>;
|
|
1622
|
+
selectedOptionsLabels: import("vue").ComputedRef<import("./types").Option[]>;
|
|
1634
1623
|
isActive: (item: OptionType) => boolean;
|
|
1635
1624
|
computedOptions: import("vue").ComputedRef<OptionType[]>;
|
|
1636
1625
|
selectableOptions: import("vue").ComputedRef<OptionType[]>;
|
|
1637
1626
|
isCheckedAllChecked: import("vue").ComputedRef<boolean>;
|
|
1638
1627
|
isCheckedAllIndeterminate: import("vue").ComputedRef<boolean>;
|
|
1639
1628
|
onSearchTextChange: () => void;
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
} | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
1643
|
-
getOptionValue: (option: OptionType) => OptionValue | {
|
|
1644
|
-
[key: string]: OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
1645
|
-
} | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
1646
|
-
getOptionShowLabel: (option: OptionType) => OptionValue | {
|
|
1647
|
-
[key: string]: OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
1648
|
-
} | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
1629
|
+
optionsValueMap: import("vue").ComputedRef<WeakMap<OptionType, import("./types").Option>>;
|
|
1630
|
+
optionsShowLabelMap: import("vue").ComputedRef<WeakMap<OptionType, import("./types").Option>>;
|
|
1649
1631
|
onSelect: (option: OptionType) => void;
|
|
1650
1632
|
handleCheckAll: (checked: boolean) => void;
|
|
1651
1633
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "change" | "update:modelValue" | "search-change")[], "open" | "close" | "change" | "update:modelValue" | "search-change", {
|
|
@@ -1,7 +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 { OptionType } from './types';
|
|
4
|
-
import type { OptionValue } from '../select/types';
|
|
3
|
+
import type { OptionType, Option } from './types';
|
|
5
4
|
declare const _default: import("vue").DefineComponent<{
|
|
6
5
|
search: {
|
|
7
6
|
type: import("vue").PropType<boolean | import("./types").DaoVirtualSelectSearchFn>;
|
|
@@ -474,21 +473,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
474
473
|
}>;
|
|
475
474
|
onSearchClear: () => void;
|
|
476
475
|
selectedOptions: import("vue").ComputedRef<OptionType[]>;
|
|
476
|
+
selectedOptionsLabels: import("vue").ComputedRef<Option[]>;
|
|
477
477
|
isActive: (item: OptionType) => boolean;
|
|
478
478
|
computedOptions: import("vue").ComputedRef<OptionType[]>;
|
|
479
479
|
selectableOptions: import("vue").ComputedRef<OptionType[]>;
|
|
480
480
|
isCheckedAllChecked: import("vue").ComputedRef<boolean>;
|
|
481
481
|
isCheckedAllIndeterminate: import("vue").ComputedRef<boolean>;
|
|
482
482
|
onSearchTextChange: () => void;
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
} | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
486
|
-
getOptionValue: (option: OptionType) => OptionValue | {
|
|
487
|
-
[key: string]: OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
488
|
-
} | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
489
|
-
getOptionShowLabel: (option: OptionType) => OptionValue | {
|
|
490
|
-
[key: string]: OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
491
|
-
} | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | (OptionValue | any | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
483
|
+
optionsValueMap: import("vue").ComputedRef<WeakMap<OptionType, Option>>;
|
|
484
|
+
optionsShowLabelMap: import("vue").ComputedRef<WeakMap<OptionType, Option>>;
|
|
492
485
|
onSelect: (option: OptionType) => void;
|
|
493
486
|
handleCheckAll: (checked: boolean) => void;
|
|
494
487
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "change" | "update:modelValue" | "search-change")[], "open" | "close" | "change" | "update:modelValue" | "search-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|