bkui-vue 0.0.1-beta.180 → 0.0.1-beta.183
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/index.cjs.js +33 -33
- package/dist/index.esm.js +942 -782
- package/dist/index.umd.js +33 -33
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/cascader/cascader-panel.d.ts +38 -4
- package/lib/cascader/cascader.css +23 -0
- package/lib/cascader/cascader.d.ts +19 -5
- package/lib/cascader/cascader.less +26 -0
- package/lib/cascader/cascader.variable.css +23 -0
- package/lib/cascader/index.d.ts +93 -17
- package/lib/cascader/index.js +1 -1
- package/lib/cascader/interface.d.ts +4 -0
- package/lib/cascader/node.d.ts +7 -1
- package/lib/cascader/store.d.ts +5 -1
- package/lib/components.d.ts +1 -1
- package/lib/components.js +1 -1
- package/lib/date-picker/index.js +1 -1
- package/lib/directives/index.js +1 -1
- package/lib/icon/help.js +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/plugin-popover/index.d.ts +27 -0
- package/lib/plugin-popover/index.js +1 -0
- package/lib/plugins/index.d.ts +1 -1
- package/lib/plugins/index.js +1 -1
- package/lib/shared/index.d.ts +1 -1
- package/lib/shared/index.js +1 -1
- package/lib/shared/utils.d.ts +1 -0
- package/lib/table/index.js +1 -1
- package/lib/tag-input/index.d.ts +4 -4
- package/lib/tag-input/tag-input.d.ts +1 -1
- package/package.json +1 -1
@@ -17,7 +17,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
17
17
|
[key: string]: any;
|
18
18
|
};
|
19
19
|
};
|
20
|
-
|
20
|
+
separator: import("vue-types").VueTypeValidableDef<string> & {
|
21
|
+
default: string;
|
22
|
+
} & {
|
23
|
+
default: string;
|
24
|
+
};
|
25
|
+
suggestions: import("vue-types").VueTypeDef<INode[]>;
|
26
|
+
isFiltering: import("vue-types").VueTypeValidableDef<boolean> & {
|
27
|
+
default: boolean;
|
28
|
+
} & {
|
29
|
+
default: boolean;
|
30
|
+
};
|
31
|
+
searchKey: import("vue-types").VueTypeDef<string | number> & {
|
32
|
+
default: string | number;
|
33
|
+
};
|
34
|
+
modelValue: import("vue-types").VueTypeDef<(string | number | string[])[]>;
|
21
35
|
}, {
|
22
36
|
menus: {
|
23
37
|
list: any[];
|
@@ -29,12 +43,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
29
43
|
onClick: (e: Event) => void;
|
30
44
|
onMouseenter: () => void;
|
31
45
|
};
|
32
|
-
isCheckedNode: (node: INode, checkValue: string[]) =>
|
33
|
-
checkValue: import("vue").Ref<
|
46
|
+
isCheckedNode: (node: INode, checkValue: (string | number | string[])[]) => any;
|
47
|
+
checkValue: import("vue").Ref<(string | number | string[])[]>;
|
34
48
|
checkNode: (node: INode, value: boolean) => void;
|
35
49
|
iconRender: (node: any) => JSX.Element;
|
36
50
|
panelWidth: string;
|
37
51
|
panelHeight: string;
|
52
|
+
searchPanelEvents: (node: INode) => {
|
53
|
+
onClick: (e: Event) => void;
|
54
|
+
};
|
38
55
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
39
56
|
width: import("vue-types").VueTypeDef<string | number> & {
|
40
57
|
default: string | number;
|
@@ -53,14 +70,31 @@ declare const _default: import("vue").DefineComponent<{
|
|
53
70
|
[key: string]: any;
|
54
71
|
};
|
55
72
|
};
|
56
|
-
|
73
|
+
separator: import("vue-types").VueTypeValidableDef<string> & {
|
74
|
+
default: string;
|
75
|
+
} & {
|
76
|
+
default: string;
|
77
|
+
};
|
78
|
+
suggestions: import("vue-types").VueTypeDef<INode[]>;
|
79
|
+
isFiltering: import("vue-types").VueTypeValidableDef<boolean> & {
|
80
|
+
default: boolean;
|
81
|
+
} & {
|
82
|
+
default: boolean;
|
83
|
+
};
|
84
|
+
searchKey: import("vue-types").VueTypeDef<string | number> & {
|
85
|
+
default: string | number;
|
86
|
+
};
|
87
|
+
modelValue: import("vue-types").VueTypeDef<(string | number | string[])[]>;
|
57
88
|
}>> & {
|
58
89
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
59
90
|
}, {
|
60
91
|
width: string | number;
|
61
92
|
height: string | number;
|
93
|
+
separator: string;
|
62
94
|
store: {
|
63
95
|
[key: string]: any;
|
64
96
|
};
|
97
|
+
isFiltering: boolean;
|
98
|
+
searchKey: string | number;
|
65
99
|
}>;
|
66
100
|
export default _default;
|
@@ -33,6 +33,9 @@
|
|
33
33
|
pointer-events: none;
|
34
34
|
content: attr(data-placeholder);
|
35
35
|
}
|
36
|
+
.bk-cascader.is-filterable:before {
|
37
|
+
display: none;
|
38
|
+
}
|
36
39
|
.bk-cascader .bk-icon-angle-up,
|
37
40
|
.bk-cascader .bk-icon-clear-icon {
|
38
41
|
position: absolute;
|
@@ -66,9 +69,20 @@
|
|
66
69
|
text-overflow: ellipsis;
|
67
70
|
white-space: nowrap;
|
68
71
|
}
|
72
|
+
.bk-cascader .bk-cascader-name .bk-cascader-search-input {
|
73
|
+
width: 100%;
|
74
|
+
font-size: 12px;
|
75
|
+
cursor: text;
|
76
|
+
border: none;
|
77
|
+
outline: 0;
|
78
|
+
}
|
79
|
+
.bk-cascader .bk-cascader-name .bk-cascader-search-input::placeholder {
|
80
|
+
color: #c3cdd7;
|
81
|
+
}
|
69
82
|
.bk-cascader .bk-cascader-name .cascader-tag-list {
|
70
83
|
display: flex;
|
71
84
|
min-height: 30px;
|
85
|
+
padding-top: 5px;
|
72
86
|
box-sizing: border-box;
|
73
87
|
flex-wrap: wrap;
|
74
88
|
}
|
@@ -111,12 +125,14 @@
|
|
111
125
|
}
|
112
126
|
.bk-cascader-panel-wrapper .bk-cascader-panel .bk-cascader-node {
|
113
127
|
position: relative;
|
128
|
+
display: flex;
|
114
129
|
padding: 0 16px;
|
115
130
|
overflow: hidden;
|
116
131
|
line-height: 32px;
|
117
132
|
text-overflow: ellipsis;
|
118
133
|
white-space: nowrap;
|
119
134
|
cursor: pointer;
|
135
|
+
align-items: center;
|
120
136
|
}
|
121
137
|
.bk-cascader-panel-wrapper .bk-cascader-panel .bk-cascader-node:hover {
|
122
138
|
background: #f5f7fa;
|
@@ -148,3 +164,10 @@
|
|
148
164
|
font-size: 12px;
|
149
165
|
color: #979ba5;
|
150
166
|
}
|
167
|
+
.bk-cascader-panel-wrapper .bk-cascader-search-empty {
|
168
|
+
display: flex;
|
169
|
+
align-items: center;
|
170
|
+
justify-content: center;
|
171
|
+
height: 56px;
|
172
|
+
color: #63656e;
|
173
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { INode } from './interface';
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
3
|
-
modelValue: import("vue-types").VueTypeDef<string
|
3
|
+
modelValue: import("vue-types").VueTypeDef<(string | number | string[])[]>;
|
4
4
|
list: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
5
5
|
default: () => unknown[];
|
6
6
|
} & {
|
@@ -110,6 +110,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
110
110
|
nameKey: string;
|
111
111
|
showCompleteName: boolean;
|
112
112
|
trigger: string;
|
113
|
+
separator: string;
|
113
114
|
remoteMethod: Function;
|
114
115
|
};
|
115
116
|
nodes: {
|
@@ -126,6 +127,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
126
127
|
nameKey: string;
|
127
128
|
showCompleteName: boolean;
|
128
129
|
trigger: string;
|
130
|
+
separator: string;
|
129
131
|
remoteMethod: Function;
|
130
132
|
};
|
131
133
|
data: {
|
@@ -143,23 +145,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
143
145
|
name: string;
|
144
146
|
parent?: any;
|
145
147
|
isDisabled: boolean;
|
148
|
+
isIndeterminate: boolean;
|
146
149
|
isLeaf: boolean;
|
147
150
|
pathNames: string[];
|
148
151
|
path: string[];
|
149
152
|
setNodeCheck: (status: boolean) => void;
|
153
|
+
broadcast: (event: string, check: boolean) => void;
|
154
|
+
emit: (event: string) => void;
|
150
155
|
}[];
|
151
156
|
getNodes: () => INode[];
|
157
|
+
clearChecked: () => void;
|
158
|
+
removeTag: (tag: string[]) => void;
|
152
159
|
getFlattedNodes: (leafOnly?: boolean) => any;
|
153
160
|
getCheckedNodes: () => any;
|
154
|
-
getNodeByValue: (value: (string | number)[]) => INode;
|
161
|
+
getNodeByValue: (value: (string | number | string[])[]) => INode;
|
155
162
|
getNodeById: (id: string | number) => INode;
|
156
163
|
appendNode: (nodeData: import("./interface").IData, parentNode: import("./interface").IData) => void;
|
157
164
|
appendNodes: (nodeDataList: import("./interface").IData[], parentNode: import("./interface").IData) => void;
|
158
165
|
}>;
|
159
|
-
updateValue: (val: Array<string | number>) => void;
|
166
|
+
updateValue: (val: Array<string | number | string[]>) => void;
|
160
167
|
panelShow: import("vue").Ref<boolean>;
|
161
168
|
selectedText: import("vue").Ref<string | number>;
|
162
|
-
checkedValue: import("vue").WritableComputedRef<string
|
169
|
+
checkedValue: import("vue").WritableComputedRef<(string | number | string[])[]>;
|
163
170
|
handleClear: (e: Event) => void;
|
164
171
|
isHover: import("vue").Ref<boolean>;
|
165
172
|
setHover: () => void;
|
@@ -169,8 +176,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
169
176
|
removeTag: (value: any, index: any, e: any) => void;
|
170
177
|
cascaderPanel: import("vue").Ref<any>;
|
171
178
|
popoverChangeEmitter: (val: any) => void;
|
179
|
+
searchKey: import("vue").Ref<string | number>;
|
180
|
+
suggestions: import("vue").Ref<any[]>;
|
181
|
+
isFiltering: import("vue").Ref<boolean>;
|
182
|
+
searchInputHandler: {
|
183
|
+
(this: any): any;
|
184
|
+
cancel(): void; /** 根据val的值,设置selectedText显示内容 */
|
185
|
+
};
|
172
186
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "toggle" | "clear" | "update:modelValue")[], "change" | "toggle" | "clear" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
173
|
-
modelValue: import("vue-types").VueTypeDef<string
|
187
|
+
modelValue: import("vue-types").VueTypeDef<(string | number | string[])[]>;
|
174
188
|
list: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
175
189
|
default: () => unknown[];
|
176
190
|
} & {
|
@@ -40,6 +40,10 @@
|
|
40
40
|
pointer-events: none;
|
41
41
|
content: attr(data-placeholder);
|
42
42
|
}
|
43
|
+
|
44
|
+
&.is-filterable:before {
|
45
|
+
display: none;
|
46
|
+
}
|
43
47
|
.@{bk-prefix}-icon-angle-up, .@{bk-prefix}-icon-clear-icon {
|
44
48
|
position: absolute;
|
45
49
|
right: 2px;
|
@@ -73,9 +77,22 @@
|
|
73
77
|
text-overflow: ellipsis;
|
74
78
|
white-space: nowrap;
|
75
79
|
|
80
|
+
.bk-cascader-search-input {
|
81
|
+
width: 100%;
|
82
|
+
font-size: 12px;
|
83
|
+
cursor: text;
|
84
|
+
border: none;
|
85
|
+
outline: 0;
|
86
|
+
|
87
|
+
&::placeholder {
|
88
|
+
color: #c3cdd7;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
76
92
|
.cascader-tag-list {
|
77
93
|
display: flex;
|
78
94
|
min-height: 30px;
|
95
|
+
padding-top: 5px;
|
79
96
|
box-sizing: border-box;
|
80
97
|
flex-wrap: wrap;
|
81
98
|
|
@@ -123,12 +140,14 @@
|
|
123
140
|
}
|
124
141
|
.@{bk-prefix}-cascader-node {
|
125
142
|
position: relative;
|
143
|
+
display: flex;
|
126
144
|
padding: 0 16px;
|
127
145
|
overflow: hidden;
|
128
146
|
line-height: 32px;
|
129
147
|
text-overflow: ellipsis;
|
130
148
|
white-space: nowrap;
|
131
149
|
cursor: pointer;
|
150
|
+
align-items: center;
|
132
151
|
|
133
152
|
&:hover {
|
134
153
|
background: @cascader-panel-hover;
|
@@ -167,4 +186,11 @@
|
|
167
186
|
}
|
168
187
|
}
|
169
188
|
}
|
189
|
+
.@{bk-prefix}-cascader-search-empty {
|
190
|
+
display: flex;
|
191
|
+
align-items: center;
|
192
|
+
justify-content: center;
|
193
|
+
height: 56px;
|
194
|
+
color: #63656e
|
195
|
+
}
|
170
196
|
}
|
@@ -146,6 +146,9 @@
|
|
146
146
|
pointer-events: none;
|
147
147
|
content: attr(data-placeholder);
|
148
148
|
}
|
149
|
+
.bk-cascader.is-filterable:before {
|
150
|
+
display: none;
|
151
|
+
}
|
149
152
|
.bk-cascader .bk-icon-angle-up,
|
150
153
|
.bk-cascader .bk-icon-clear-icon {
|
151
154
|
position: absolute;
|
@@ -179,9 +182,20 @@
|
|
179
182
|
text-overflow: ellipsis;
|
180
183
|
white-space: nowrap;
|
181
184
|
}
|
185
|
+
.bk-cascader .bk-cascader-name .bk-cascader-search-input {
|
186
|
+
width: 100%;
|
187
|
+
font-size: 12px;
|
188
|
+
cursor: text;
|
189
|
+
border: none;
|
190
|
+
outline: 0;
|
191
|
+
}
|
192
|
+
.bk-cascader .bk-cascader-name .bk-cascader-search-input::placeholder {
|
193
|
+
color: #c3cdd7;
|
194
|
+
}
|
182
195
|
.bk-cascader .bk-cascader-name .cascader-tag-list {
|
183
196
|
display: flex;
|
184
197
|
min-height: 30px;
|
198
|
+
padding-top: 5px;
|
185
199
|
box-sizing: border-box;
|
186
200
|
flex-wrap: wrap;
|
187
201
|
}
|
@@ -224,12 +238,14 @@
|
|
224
238
|
}
|
225
239
|
.bk-cascader-panel-wrapper .bk-cascader-panel .bk-cascader-node {
|
226
240
|
position: relative;
|
241
|
+
display: flex;
|
227
242
|
padding: 0 16px;
|
228
243
|
overflow: hidden;
|
229
244
|
line-height: 32px;
|
230
245
|
text-overflow: ellipsis;
|
231
246
|
white-space: nowrap;
|
232
247
|
cursor: pointer;
|
248
|
+
align-items: center;
|
233
249
|
}
|
234
250
|
.bk-cascader-panel-wrapper .bk-cascader-panel .bk-cascader-node:hover {
|
235
251
|
background: var(--cascader-panel-hover);
|
@@ -261,3 +277,10 @@
|
|
261
277
|
font-size: 12px;
|
262
278
|
color: var(--gray-color);
|
263
279
|
}
|
280
|
+
.bk-cascader-panel-wrapper .bk-cascader-search-empty {
|
281
|
+
display: flex;
|
282
|
+
align-items: center;
|
283
|
+
justify-content: center;
|
284
|
+
height: 56px;
|
285
|
+
color: #63656e;
|
286
|
+
}
|
package/lib/cascader/index.d.ts
CHANGED
@@ -24,7 +24,7 @@ declare const BkCascader: {
|
|
24
24
|
scrollHeight: string | number;
|
25
25
|
scrollWidth: string | number;
|
26
26
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
27
|
-
modelValue: import("vue-types").VueTypeDef<string
|
27
|
+
modelValue: import("vue-types").VueTypeDef<(string | number | string[])[]>;
|
28
28
|
list: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
29
29
|
default: () => unknown[];
|
30
30
|
} & {
|
@@ -134,7 +134,7 @@ declare const BkCascader: {
|
|
134
134
|
$emit: (event: "change" | "toggle" | "clear" | "update:modelValue", ...args: any[]) => void;
|
135
135
|
$el: any;
|
136
136
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
137
|
-
modelValue: import("vue-types").VueTypeDef<string
|
137
|
+
modelValue: import("vue-types").VueTypeDef<(string | number | string[])[]>;
|
138
138
|
list: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
139
139
|
default: () => unknown[];
|
140
140
|
} & {
|
@@ -249,6 +249,7 @@ declare const BkCascader: {
|
|
249
249
|
nameKey: string;
|
250
250
|
showCompleteName: boolean;
|
251
251
|
trigger: string;
|
252
|
+
separator: string;
|
252
253
|
remoteMethod: Function;
|
253
254
|
};
|
254
255
|
nodes: {
|
@@ -265,6 +266,7 @@ declare const BkCascader: {
|
|
265
266
|
nameKey: string;
|
266
267
|
showCompleteName: boolean;
|
267
268
|
trigger: string;
|
269
|
+
separator: string;
|
268
270
|
remoteMethod: Function;
|
269
271
|
};
|
270
272
|
data: {
|
@@ -282,23 +284,28 @@ declare const BkCascader: {
|
|
282
284
|
name: string;
|
283
285
|
parent?: any;
|
284
286
|
isDisabled: boolean;
|
287
|
+
isIndeterminate: boolean;
|
285
288
|
isLeaf: boolean;
|
286
289
|
pathNames: string[];
|
287
290
|
path: string[];
|
288
291
|
setNodeCheck: (status: boolean) => void;
|
292
|
+
broadcast: (event: string, check: boolean) => void;
|
293
|
+
emit: (event: string) => void;
|
289
294
|
}[];
|
290
295
|
getNodes: () => import("./interface").INode[];
|
296
|
+
clearChecked: () => void;
|
297
|
+
removeTag: (tag: string[]) => void;
|
291
298
|
getFlattedNodes: (leafOnly?: boolean) => any;
|
292
299
|
getCheckedNodes: () => any;
|
293
|
-
getNodeByValue: (value: (string | number)[]) => import("./interface").INode;
|
300
|
+
getNodeByValue: (value: (string | number | string[])[]) => import("./interface").INode;
|
294
301
|
getNodeById: (id: string | number) => import("./interface").INode;
|
295
302
|
appendNode: (nodeData: import("./interface").IData, parentNode: import("./interface").IData) => void;
|
296
303
|
appendNodes: (nodeDataList: import("./interface").IData[], parentNode: import("./interface").IData) => void;
|
297
304
|
}>;
|
298
|
-
updateValue: (val: (string | number)[]) => void;
|
305
|
+
updateValue: (val: (string | number | string[])[]) => void;
|
299
306
|
panelShow: import("vue").Ref<boolean>;
|
300
307
|
selectedText: import("vue").Ref<string | number>;
|
301
|
-
checkedValue: import("vue").WritableComputedRef<string
|
308
|
+
checkedValue: import("vue").WritableComputedRef<(string | number | string[])[]>;
|
302
309
|
handleClear: (e: Event) => void;
|
303
310
|
isHover: import("vue").Ref<boolean>;
|
304
311
|
setHover: () => void;
|
@@ -308,6 +315,13 @@ declare const BkCascader: {
|
|
308
315
|
removeTag: (value: any, index: any, e: any) => void;
|
309
316
|
cascaderPanel: import("vue").Ref<any>;
|
310
317
|
popoverChangeEmitter: (val: any) => void;
|
318
|
+
searchKey: import("vue").Ref<string | number>;
|
319
|
+
suggestions: import("vue").Ref<any[]>;
|
320
|
+
isFiltering: import("vue").Ref<boolean>;
|
321
|
+
searchInputHandler: {
|
322
|
+
(this: any): any;
|
323
|
+
cancel(): void;
|
324
|
+
};
|
311
325
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "toggle" | "clear" | "update:modelValue")[], string, {
|
312
326
|
disabled: boolean;
|
313
327
|
trigger: string;
|
@@ -349,7 +363,7 @@ declare const BkCascader: {
|
|
349
363
|
$nextTick: typeof import("vue").nextTick;
|
350
364
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
351
365
|
} & Readonly<import("vue").ExtractPropTypes<{
|
352
|
-
modelValue: import("vue-types").VueTypeDef<string
|
366
|
+
modelValue: import("vue-types").VueTypeDef<(string | number | string[])[]>;
|
353
367
|
list: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
354
368
|
default: () => unknown[];
|
355
369
|
} & {
|
@@ -464,6 +478,7 @@ declare const BkCascader: {
|
|
464
478
|
nameKey: string;
|
465
479
|
showCompleteName: boolean;
|
466
480
|
trigger: string;
|
481
|
+
separator: string;
|
467
482
|
remoteMethod: Function;
|
468
483
|
};
|
469
484
|
nodes: {
|
@@ -480,6 +495,7 @@ declare const BkCascader: {
|
|
480
495
|
nameKey: string;
|
481
496
|
showCompleteName: boolean;
|
482
497
|
trigger: string;
|
498
|
+
separator: string;
|
483
499
|
remoteMethod: Function;
|
484
500
|
};
|
485
501
|
data: {
|
@@ -497,23 +513,28 @@ declare const BkCascader: {
|
|
497
513
|
name: string;
|
498
514
|
parent?: any;
|
499
515
|
isDisabled: boolean;
|
516
|
+
isIndeterminate: boolean;
|
500
517
|
isLeaf: boolean;
|
501
518
|
pathNames: string[];
|
502
519
|
path: string[];
|
503
520
|
setNodeCheck: (status: boolean) => void;
|
521
|
+
broadcast: (event: string, check: boolean) => void;
|
522
|
+
emit: (event: string) => void;
|
504
523
|
}[];
|
505
524
|
getNodes: () => import("./interface").INode[];
|
525
|
+
clearChecked: () => void;
|
526
|
+
removeTag: (tag: string[]) => void;
|
506
527
|
getFlattedNodes: (leafOnly?: boolean) => any;
|
507
528
|
getCheckedNodes: () => any;
|
508
|
-
getNodeByValue: (value: (string | number)[]) => import("./interface").INode;
|
529
|
+
getNodeByValue: (value: (string | number | string[])[]) => import("./interface").INode;
|
509
530
|
getNodeById: (id: string | number) => import("./interface").INode;
|
510
531
|
appendNode: (nodeData: import("./interface").IData, parentNode: import("./interface").IData) => void;
|
511
532
|
appendNodes: (nodeDataList: import("./interface").IData[], parentNode: import("./interface").IData) => void;
|
512
533
|
}>;
|
513
|
-
updateValue: (val: (string | number)[]) => void;
|
534
|
+
updateValue: (val: (string | number | string[])[]) => void;
|
514
535
|
panelShow: import("vue").Ref<boolean>;
|
515
536
|
selectedText: import("vue").Ref<string | number>;
|
516
|
-
checkedValue: import("vue").WritableComputedRef<string
|
537
|
+
checkedValue: import("vue").WritableComputedRef<(string | number | string[])[]>;
|
517
538
|
handleClear: (e: Event) => void;
|
518
539
|
isHover: import("vue").Ref<boolean>;
|
519
540
|
setHover: () => void;
|
@@ -523,12 +544,19 @@ declare const BkCascader: {
|
|
523
544
|
removeTag: (value: any, index: any, e: any) => void;
|
524
545
|
cascaderPanel: import("vue").Ref<any>;
|
525
546
|
popoverChangeEmitter: (val: any) => void;
|
547
|
+
searchKey: import("vue").Ref<string | number>;
|
548
|
+
suggestions: import("vue").Ref<any[]>;
|
549
|
+
isFiltering: import("vue").Ref<boolean>;
|
550
|
+
searchInputHandler: {
|
551
|
+
(this: any): any;
|
552
|
+
cancel(): void;
|
553
|
+
};
|
526
554
|
}> & {} & {} & import("vue").ComponentCustomProperties;
|
527
555
|
__isFragment?: never;
|
528
556
|
__isTeleport?: never;
|
529
557
|
__isSuspense?: never;
|
530
558
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
531
|
-
modelValue: import("vue-types").VueTypeDef<string
|
559
|
+
modelValue: import("vue-types").VueTypeDef<(string | number | string[])[]>;
|
532
560
|
list: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
533
561
|
default: () => unknown[];
|
534
562
|
} & {
|
@@ -643,6 +671,7 @@ declare const BkCascader: {
|
|
643
671
|
nameKey: string;
|
644
672
|
showCompleteName: boolean;
|
645
673
|
trigger: string;
|
674
|
+
separator: string;
|
646
675
|
remoteMethod: Function;
|
647
676
|
};
|
648
677
|
nodes: {
|
@@ -659,6 +688,7 @@ declare const BkCascader: {
|
|
659
688
|
nameKey: string;
|
660
689
|
showCompleteName: boolean;
|
661
690
|
trigger: string;
|
691
|
+
separator: string;
|
662
692
|
remoteMethod: Function;
|
663
693
|
};
|
664
694
|
data: {
|
@@ -676,23 +706,28 @@ declare const BkCascader: {
|
|
676
706
|
name: string;
|
677
707
|
parent?: any;
|
678
708
|
isDisabled: boolean;
|
709
|
+
isIndeterminate: boolean;
|
679
710
|
isLeaf: boolean;
|
680
711
|
pathNames: string[];
|
681
712
|
path: string[];
|
682
713
|
setNodeCheck: (status: boolean) => void;
|
714
|
+
broadcast: (event: string, check: boolean) => void;
|
715
|
+
emit: (event: string) => void;
|
683
716
|
}[];
|
684
717
|
getNodes: () => import("./interface").INode[];
|
718
|
+
clearChecked: () => void;
|
719
|
+
removeTag: (tag: string[]) => void;
|
685
720
|
getFlattedNodes: (leafOnly?: boolean) => any;
|
686
721
|
getCheckedNodes: () => any;
|
687
|
-
getNodeByValue: (value: (string | number)[]) => import("./interface").INode;
|
722
|
+
getNodeByValue: (value: (string | number | string[])[]) => import("./interface").INode;
|
688
723
|
getNodeById: (id: string | number) => import("./interface").INode;
|
689
724
|
appendNode: (nodeData: import("./interface").IData, parentNode: import("./interface").IData) => void;
|
690
725
|
appendNodes: (nodeDataList: import("./interface").IData[], parentNode: import("./interface").IData) => void;
|
691
726
|
}>;
|
692
|
-
updateValue: (val: (string | number)[]) => void;
|
727
|
+
updateValue: (val: (string | number | string[])[]) => void;
|
693
728
|
panelShow: import("vue").Ref<boolean>;
|
694
729
|
selectedText: import("vue").Ref<string | number>;
|
695
|
-
checkedValue: import("vue").WritableComputedRef<string
|
730
|
+
checkedValue: import("vue").WritableComputedRef<(string | number | string[])[]>;
|
696
731
|
handleClear: (e: Event) => void;
|
697
732
|
isHover: import("vue").Ref<boolean>;
|
698
733
|
setHover: () => void;
|
@@ -702,6 +737,13 @@ declare const BkCascader: {
|
|
702
737
|
removeTag: (value: any, index: any, e: any) => void;
|
703
738
|
cascaderPanel: import("vue").Ref<any>;
|
704
739
|
popoverChangeEmitter: (val: any) => void;
|
740
|
+
searchKey: import("vue").Ref<string | number>;
|
741
|
+
suggestions: import("vue").Ref<any[]>;
|
742
|
+
isFiltering: import("vue").Ref<boolean>;
|
743
|
+
searchInputHandler: {
|
744
|
+
(this: any): any;
|
745
|
+
cancel(): void;
|
746
|
+
};
|
705
747
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "toggle" | "clear" | "update:modelValue")[], "change" | "toggle" | "clear" | "update:modelValue", {
|
706
748
|
disabled: boolean;
|
707
749
|
trigger: string;
|
@@ -741,7 +783,21 @@ declare const BkCascader: {
|
|
741
783
|
[key: string]: any;
|
742
784
|
};
|
743
785
|
};
|
744
|
-
|
786
|
+
separator: import("vue-types").VueTypeValidableDef<string> & {
|
787
|
+
default: string;
|
788
|
+
} & {
|
789
|
+
default: string;
|
790
|
+
};
|
791
|
+
suggestions: import("vue-types").VueTypeDef<import("./interface").INode[]>;
|
792
|
+
isFiltering: import("vue-types").VueTypeValidableDef<boolean> & {
|
793
|
+
default: boolean;
|
794
|
+
} & {
|
795
|
+
default: boolean;
|
796
|
+
};
|
797
|
+
searchKey: import("vue-types").VueTypeDef<string | number> & {
|
798
|
+
default: string | number;
|
799
|
+
};
|
800
|
+
modelValue: import("vue-types").VueTypeDef<(string | number | string[])[]>;
|
745
801
|
}, {
|
746
802
|
menus: {
|
747
803
|
list: any[];
|
@@ -753,12 +809,15 @@ declare const BkCascader: {
|
|
753
809
|
onClick: (e: Event) => void;
|
754
810
|
onMouseenter: () => void;
|
755
811
|
};
|
756
|
-
isCheckedNode: (node: import("./interface").INode, checkValue: string[]) =>
|
757
|
-
checkValue: import("vue").Ref<
|
812
|
+
isCheckedNode: (node: import("./interface").INode, checkValue: (string | number | string[])[]) => any;
|
813
|
+
checkValue: import("vue").Ref<(string | number | string[])[]>;
|
758
814
|
checkNode: (node: import("./interface").INode, value: boolean) => void;
|
759
815
|
iconRender: (node: any) => JSX.Element;
|
760
816
|
panelWidth: string;
|
761
817
|
panelHeight: string;
|
818
|
+
searchPanelEvents: (node: import("./interface").INode) => {
|
819
|
+
onClick: (e: Event) => void;
|
820
|
+
};
|
762
821
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
763
822
|
width: import("vue-types").VueTypeDef<string | number> & {
|
764
823
|
default: string | number;
|
@@ -777,15 +836,32 @@ declare const BkCascader: {
|
|
777
836
|
[key: string]: any;
|
778
837
|
};
|
779
838
|
};
|
780
|
-
|
839
|
+
separator: import("vue-types").VueTypeValidableDef<string> & {
|
840
|
+
default: string;
|
841
|
+
} & {
|
842
|
+
default: string;
|
843
|
+
};
|
844
|
+
suggestions: import("vue-types").VueTypeDef<import("./interface").INode[]>;
|
845
|
+
isFiltering: import("vue-types").VueTypeValidableDef<boolean> & {
|
846
|
+
default: boolean;
|
847
|
+
} & {
|
848
|
+
default: boolean;
|
849
|
+
};
|
850
|
+
searchKey: import("vue-types").VueTypeDef<string | number> & {
|
851
|
+
default: string | number;
|
852
|
+
};
|
853
|
+
modelValue: import("vue-types").VueTypeDef<(string | number | string[])[]>;
|
781
854
|
}>> & {
|
782
855
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
783
856
|
}, {
|
784
857
|
width: string | number;
|
785
858
|
height: string | number;
|
859
|
+
separator: string;
|
786
860
|
store: {
|
787
861
|
[key: string]: any;
|
788
862
|
};
|
863
|
+
isFiltering: boolean;
|
864
|
+
searchKey: string | number;
|
789
865
|
}>;
|
790
866
|
}>;
|
791
867
|
export default BkCascader;
|