@94ai/nf-variable-select 9.0.0 → 10.0.0
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/lib/index.d.ts +593 -593
- package/lib/nf-variable-select.cjs.js +1 -1
- package/lib/nf-variable-select.esm-bundler.js +1 -1
- package/lib/nf-variable-select.vue.d.ts +149 -149
- package/lib/style/css.d.ts +1 -0
- package/lib/style/index.d.ts +1 -0
- package/lib/types.d.ts +10 -10
- package/package/nf-variable-select.vue +1 -1
- package/package.json +8 -8
|
@@ -199,7 +199,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
199
199
|
return result;
|
|
200
200
|
});
|
|
201
201
|
const hasGroupData = vueDemi.computed(() => {
|
|
202
|
-
return groupedList.value.some((group) => group.list
|
|
202
|
+
return groupedList.value.some((group) => group.list.length > 0);
|
|
203
203
|
});
|
|
204
204
|
vueDemi.watch(() => {
|
|
205
205
|
return props.data;
|
|
@@ -197,7 +197,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
197
197
|
return result;
|
|
198
198
|
});
|
|
199
199
|
const hasGroupData = computed(() => {
|
|
200
|
-
return groupedList.value.some((group) => group.list
|
|
200
|
+
return groupedList.value.some((group) => group.list.length > 0);
|
|
201
201
|
});
|
|
202
202
|
watch(() => {
|
|
203
203
|
return props.data;
|
|
@@ -1,149 +1,149 @@
|
|
|
1
|
-
import { VariableItem } from './types';
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
noMatchDesc?: string | undefined;
|
|
4
|
-
placeholder?: string | undefined;
|
|
5
|
-
keyAlias?: string | undefined;
|
|
6
|
-
valueAlias?: string | undefined;
|
|
7
|
-
data?: VariableItem[] | undefined;
|
|
8
|
-
placement?: string | undefined;
|
|
9
|
-
width?: string | number | undefined;
|
|
10
|
-
trigger?: "click" | "focus" | "hover" | "manual" | undefined;
|
|
11
|
-
popperClass?: string | undefined;
|
|
12
|
-
disabled?: boolean | undefined;
|
|
13
|
-
offset?: number | undefined;
|
|
14
|
-
transition?: string | undefined;
|
|
15
|
-
visibleArrow?: boolean | undefined;
|
|
16
|
-
popperOptions?: Record<string, any> | undefined;
|
|
17
|
-
openDelay?: number | undefined;
|
|
18
|
-
closeDelay?: number | undefined;
|
|
19
|
-
tabindex?: number | undefined;
|
|
20
|
-
size?: "
|
|
21
|
-
groupable?: boolean | undefined;
|
|
22
|
-
groupKey?: string | undefined;
|
|
23
|
-
groupLabels?: Record<string, string> | undefined;
|
|
24
|
-
}>, {
|
|
25
|
-
noMatchDesc: undefined;
|
|
26
|
-
placeholder: undefined;
|
|
27
|
-
keyAlias: string;
|
|
28
|
-
placement: string;
|
|
29
|
-
valueAlias: string;
|
|
30
|
-
width: string;
|
|
31
|
-
trigger: string;
|
|
32
|
-
popperClass: string;
|
|
33
|
-
disabled: boolean;
|
|
34
|
-
offset: number;
|
|
35
|
-
transition: string;
|
|
36
|
-
visibleArrow: boolean;
|
|
37
|
-
popperOptions: () => {
|
|
38
|
-
boundariesElement: string;
|
|
39
|
-
gpuAcceleration: boolean;
|
|
40
|
-
};
|
|
41
|
-
data: () => never[];
|
|
42
|
-
openDelay: undefined;
|
|
43
|
-
closeDelay: number;
|
|
44
|
-
tabindex: number;
|
|
45
|
-
size: string;
|
|
46
|
-
groupable: boolean;
|
|
47
|
-
groupKey: string;
|
|
48
|
-
groupLabels: () => {};
|
|
49
|
-
}>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
50
|
-
"variate-click": (event: VariableItem) => void;
|
|
51
|
-
hidden: () => void;
|
|
52
|
-
show: () => void;
|
|
53
|
-
"after-enter": () => void;
|
|
54
|
-
"after-leave": () => void;
|
|
55
|
-
}, string, Readonly<import("vue-demi").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
56
|
-
noMatchDesc?: string | undefined;
|
|
57
|
-
placeholder?: string | undefined;
|
|
58
|
-
keyAlias?: string | undefined;
|
|
59
|
-
valueAlias?: string | undefined;
|
|
60
|
-
data?: VariableItem[] | undefined;
|
|
61
|
-
placement?: string | undefined;
|
|
62
|
-
width?: string | number | undefined;
|
|
63
|
-
trigger?: "click" | "focus" | "hover" | "manual" | undefined;
|
|
64
|
-
popperClass?: string | undefined;
|
|
65
|
-
disabled?: boolean | undefined;
|
|
66
|
-
offset?: number | undefined;
|
|
67
|
-
transition?: string | undefined;
|
|
68
|
-
visibleArrow?: boolean | undefined;
|
|
69
|
-
popperOptions?: Record<string, any> | undefined;
|
|
70
|
-
openDelay?: number | undefined;
|
|
71
|
-
closeDelay?: number | undefined;
|
|
72
|
-
tabindex?: number | undefined;
|
|
73
|
-
size?: "
|
|
74
|
-
groupable?: boolean | undefined;
|
|
75
|
-
groupKey?: string | undefined;
|
|
76
|
-
groupLabels?: Record<string, string> | undefined;
|
|
77
|
-
}>, {
|
|
78
|
-
noMatchDesc: undefined;
|
|
79
|
-
placeholder: undefined;
|
|
80
|
-
keyAlias: string;
|
|
81
|
-
placement: string;
|
|
82
|
-
valueAlias: string;
|
|
83
|
-
width: string;
|
|
84
|
-
trigger: string;
|
|
85
|
-
popperClass: string;
|
|
86
|
-
disabled: boolean;
|
|
87
|
-
offset: number;
|
|
88
|
-
transition: string;
|
|
89
|
-
visibleArrow: boolean;
|
|
90
|
-
popperOptions: () => {
|
|
91
|
-
boundariesElement: string;
|
|
92
|
-
gpuAcceleration: boolean;
|
|
93
|
-
};
|
|
94
|
-
data: () => never[];
|
|
95
|
-
openDelay: undefined;
|
|
96
|
-
closeDelay: number;
|
|
97
|
-
tabindex: number;
|
|
98
|
-
size: string;
|
|
99
|
-
groupable: boolean;
|
|
100
|
-
groupKey: string;
|
|
101
|
-
groupLabels: () => {};
|
|
102
|
-
}>>>, {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
visibleArrow: boolean;
|
|
116
|
-
popperOptions: Record<string, any>;
|
|
117
|
-
openDelay: number;
|
|
118
|
-
closeDelay: number;
|
|
119
|
-
tabindex: number;
|
|
120
|
-
size: "mini" | "medium" | "small";
|
|
121
|
-
groupable: boolean;
|
|
122
|
-
groupKey: string;
|
|
123
|
-
groupLabels: Record<string, string>;
|
|
124
|
-
}>, {
|
|
125
|
-
default?(_: {}): any;
|
|
126
|
-
}>;
|
|
127
|
-
export default _default;
|
|
128
|
-
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
129
|
-
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
130
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
131
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
132
|
-
} : {
|
|
133
|
-
type: import('vue').PropType<T[K]>;
|
|
134
|
-
required: true;
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
declare type __VLS_WithDefaults<P, D> = {
|
|
138
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
139
|
-
default: D[K];
|
|
140
|
-
}> : P[K];
|
|
141
|
-
};
|
|
142
|
-
declare type __VLS_Prettify<T> = {
|
|
143
|
-
[K in keyof T]: T[K];
|
|
144
|
-
} & {};
|
|
145
|
-
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
146
|
-
new (): {
|
|
147
|
-
$scopedSlots: S;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
1
|
+
import { VariableItem } from './types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
noMatchDesc?: string | undefined;
|
|
4
|
+
placeholder?: string | undefined;
|
|
5
|
+
keyAlias?: string | undefined;
|
|
6
|
+
valueAlias?: string | undefined;
|
|
7
|
+
data?: VariableItem[] | undefined;
|
|
8
|
+
placement?: string | undefined;
|
|
9
|
+
width?: string | number | undefined;
|
|
10
|
+
trigger?: "click" | "focus" | "hover" | "manual" | undefined;
|
|
11
|
+
popperClass?: string | undefined;
|
|
12
|
+
disabled?: boolean | undefined;
|
|
13
|
+
offset?: number | undefined;
|
|
14
|
+
transition?: string | undefined;
|
|
15
|
+
visibleArrow?: boolean | undefined;
|
|
16
|
+
popperOptions?: Record<string, any> | undefined;
|
|
17
|
+
openDelay?: number | undefined;
|
|
18
|
+
closeDelay?: number | undefined;
|
|
19
|
+
tabindex?: number | undefined;
|
|
20
|
+
size?: "mini" | "medium" | "small" | undefined;
|
|
21
|
+
groupable?: boolean | undefined;
|
|
22
|
+
groupKey?: string | undefined;
|
|
23
|
+
groupLabels?: Record<string, string> | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
noMatchDesc: undefined;
|
|
26
|
+
placeholder: undefined;
|
|
27
|
+
keyAlias: string;
|
|
28
|
+
placement: string;
|
|
29
|
+
valueAlias: string;
|
|
30
|
+
width: string;
|
|
31
|
+
trigger: string;
|
|
32
|
+
popperClass: string;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
offset: number;
|
|
35
|
+
transition: string;
|
|
36
|
+
visibleArrow: boolean;
|
|
37
|
+
popperOptions: () => {
|
|
38
|
+
boundariesElement: string;
|
|
39
|
+
gpuAcceleration: boolean;
|
|
40
|
+
};
|
|
41
|
+
data: () => never[];
|
|
42
|
+
openDelay: undefined;
|
|
43
|
+
closeDelay: number;
|
|
44
|
+
tabindex: number;
|
|
45
|
+
size: string;
|
|
46
|
+
groupable: boolean;
|
|
47
|
+
groupKey: string;
|
|
48
|
+
groupLabels: () => {};
|
|
49
|
+
}>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
50
|
+
"variate-click": (event: VariableItem) => void;
|
|
51
|
+
hidden: () => void;
|
|
52
|
+
show: () => void;
|
|
53
|
+
"after-enter": () => void;
|
|
54
|
+
"after-leave": () => void;
|
|
55
|
+
}, string, Readonly<import("vue-demi").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
56
|
+
noMatchDesc?: string | undefined;
|
|
57
|
+
placeholder?: string | undefined;
|
|
58
|
+
keyAlias?: string | undefined;
|
|
59
|
+
valueAlias?: string | undefined;
|
|
60
|
+
data?: VariableItem[] | undefined;
|
|
61
|
+
placement?: string | undefined;
|
|
62
|
+
width?: string | number | undefined;
|
|
63
|
+
trigger?: "click" | "focus" | "hover" | "manual" | undefined;
|
|
64
|
+
popperClass?: string | undefined;
|
|
65
|
+
disabled?: boolean | undefined;
|
|
66
|
+
offset?: number | undefined;
|
|
67
|
+
transition?: string | undefined;
|
|
68
|
+
visibleArrow?: boolean | undefined;
|
|
69
|
+
popperOptions?: Record<string, any> | undefined;
|
|
70
|
+
openDelay?: number | undefined;
|
|
71
|
+
closeDelay?: number | undefined;
|
|
72
|
+
tabindex?: number | undefined;
|
|
73
|
+
size?: "mini" | "medium" | "small" | undefined;
|
|
74
|
+
groupable?: boolean | undefined;
|
|
75
|
+
groupKey?: string | undefined;
|
|
76
|
+
groupLabels?: Record<string, string> | undefined;
|
|
77
|
+
}>, {
|
|
78
|
+
noMatchDesc: undefined;
|
|
79
|
+
placeholder: undefined;
|
|
80
|
+
keyAlias: string;
|
|
81
|
+
placement: string;
|
|
82
|
+
valueAlias: string;
|
|
83
|
+
width: string;
|
|
84
|
+
trigger: string;
|
|
85
|
+
popperClass: string;
|
|
86
|
+
disabled: boolean;
|
|
87
|
+
offset: number;
|
|
88
|
+
transition: string;
|
|
89
|
+
visibleArrow: boolean;
|
|
90
|
+
popperOptions: () => {
|
|
91
|
+
boundariesElement: string;
|
|
92
|
+
gpuAcceleration: boolean;
|
|
93
|
+
};
|
|
94
|
+
data: () => never[];
|
|
95
|
+
openDelay: undefined;
|
|
96
|
+
closeDelay: number;
|
|
97
|
+
tabindex: number;
|
|
98
|
+
size: string;
|
|
99
|
+
groupable: boolean;
|
|
100
|
+
groupKey: string;
|
|
101
|
+
groupLabels: () => {};
|
|
102
|
+
}>>>, {
|
|
103
|
+
noMatchDesc: string;
|
|
104
|
+
placeholder: string;
|
|
105
|
+
keyAlias: string;
|
|
106
|
+
valueAlias: string;
|
|
107
|
+
data: VariableItem[];
|
|
108
|
+
placement: string;
|
|
109
|
+
width: string | number;
|
|
110
|
+
trigger: 'click' | 'focus' | 'hover' | 'manual';
|
|
111
|
+
popperClass: string;
|
|
112
|
+
disabled: boolean;
|
|
113
|
+
offset: number;
|
|
114
|
+
transition: string;
|
|
115
|
+
visibleArrow: boolean;
|
|
116
|
+
popperOptions: Record<string, any>;
|
|
117
|
+
openDelay: number;
|
|
118
|
+
closeDelay: number;
|
|
119
|
+
tabindex: number;
|
|
120
|
+
size: "mini" | "medium" | "small";
|
|
121
|
+
groupable: boolean;
|
|
122
|
+
groupKey: string;
|
|
123
|
+
groupLabels: Record<string, string>;
|
|
124
|
+
}>, {
|
|
125
|
+
default?(_: {}): any;
|
|
126
|
+
}>;
|
|
127
|
+
export default _default;
|
|
128
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
129
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
130
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
131
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
132
|
+
} : {
|
|
133
|
+
type: import('vue').PropType<T[K]>;
|
|
134
|
+
required: true;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
138
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
139
|
+
default: D[K];
|
|
140
|
+
}> : P[K];
|
|
141
|
+
};
|
|
142
|
+
declare type __VLS_Prettify<T> = {
|
|
143
|
+
[K in keyof T]: T[K];
|
|
144
|
+
} & {};
|
|
145
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
146
|
+
new (): {
|
|
147
|
+
$scopedSlots: S;
|
|
148
|
+
};
|
|
149
|
+
};
|
package/lib/style/css.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/lib/style/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/lib/types.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare type VariableItem = {
|
|
2
|
-
name?: string;
|
|
3
|
-
paramId?: string;
|
|
4
|
-
[index: string]: any;
|
|
5
|
-
};
|
|
6
|
-
export declare type GroupItem = {
|
|
7
|
-
type: string;
|
|
8
|
-
label: string;
|
|
9
|
-
list: VariableItem[];
|
|
10
|
-
};
|
|
1
|
+
export declare type VariableItem = {
|
|
2
|
+
name?: string;
|
|
3
|
+
paramId?: string;
|
|
4
|
+
[index: string]: any;
|
|
5
|
+
};
|
|
6
|
+
export declare type GroupItem = {
|
|
7
|
+
type: string;
|
|
8
|
+
label: string;
|
|
9
|
+
list: VariableItem[];
|
|
10
|
+
};
|
|
@@ -201,7 +201,7 @@ const groupedList = computed<GroupItem[]>(() => {
|
|
|
201
201
|
})
|
|
202
202
|
|
|
203
203
|
const hasGroupData = computed(() => {
|
|
204
|
-
return groupedList.value.some(group => group.list
|
|
204
|
+
return groupedList.value.some(group => group.list.length > 0)
|
|
205
205
|
})
|
|
206
206
|
|
|
207
207
|
watch(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-variable-select",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "zoujiahe <zoujiahe@94ai.com>",
|
|
@@ -14,9 +14,10 @@
|
|
|
14
14
|
"url": "http://gitlab.94ai.pro/ui/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/common-utils": "^
|
|
18
|
-
"@94ai/nf-theme-chalk": "^
|
|
19
|
-
"vue-demi": "^0.14.5"
|
|
17
|
+
"@94ai/common-utils": "^10.0.0",
|
|
18
|
+
"@94ai/nf-theme-chalk": "^10.0.0",
|
|
19
|
+
"vue-demi": "^0.14.5",
|
|
20
|
+
"@94ai/vue2-runtime-helpers": "1.0.1"
|
|
20
21
|
},
|
|
21
22
|
"peerDependenciesMeta": {
|
|
22
23
|
"@vue/composition-api": {
|
|
@@ -25,11 +26,10 @@
|
|
|
25
26
|
},
|
|
26
27
|
"peerDependencies": {
|
|
27
28
|
"@vue/composition-api": "^1.0.0-rc.1",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
29
|
+
"vue": "^2.0.0 || >=3.0.0",
|
|
30
|
+
"element-ui": ">=2.13.2"
|
|
30
31
|
},
|
|
31
32
|
"types": "lib/index.d.ts",
|
|
32
33
|
"main": "lib/nf-variable-select.cjs.js",
|
|
33
|
-
"module": "lib/nf-variable-select.esm-bundler.js"
|
|
34
|
-
"gitHead": "afe3016f0e42dfb7fedf6cbbe400ec08bf4b8662"
|
|
34
|
+
"module": "lib/nf-variable-select.esm-bundler.js"
|
|
35
35
|
}
|