cnhis-design-vue 3.3.3-beta.13 → 3.3.3-beta.16

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.
@@ -1,555 +0,0 @@
1
- import { ref, PropType } from 'vue';
2
- import { type TreeOption } from 'naive-ui';
3
- import { AnyObject } from '../../../shared/types';
4
- type IKey = string | number;
5
- type ITreeOption = TreeOption & AnyObject;
6
- type IWordBook<T> = {
7
- parent_id_obj: keyof T;
8
- parent_name_obj: keyof T;
9
- user_count_obj?: keyof T;
10
- filter_key?: string;
11
- [key: string]: any;
12
- };
13
- type IWordBookChild<T> = {
14
- user_id_obj: keyof T;
15
- user_name_obj: keyof T;
16
- user_expand_keys?: string[];
17
- };
18
- type ITag = {
19
- key: IKey;
20
- [key: string]: any;
21
- };
22
- declare const _default: import("vue").DefineComponent<{
23
- defaultList: {
24
- type: PropType<(IKey | ITag)[]>;
25
- default: () => never[];
26
- };
27
- data: {
28
- type: PropType<ITreeOption[]>;
29
- default: () => never[];
30
- };
31
- searchPlaceholder: {
32
- type: StringConstructor;
33
- default: string;
34
- };
35
- searchButtonText: {
36
- type: StringConstructor;
37
- default: string;
38
- };
39
- wordbook: {
40
- type: PropType<IWordBook<ITreeOption>>;
41
- default: () => {};
42
- };
43
- wordbookChild: {
44
- type: PropType<IWordBookChild<ITreeOption>>;
45
- default: () => {};
46
- };
47
- showCount: {
48
- type: BooleanConstructor;
49
- default: boolean;
50
- };
51
- showClear: {
52
- type: BooleanConstructor;
53
- default: boolean;
54
- };
55
- multiple: {
56
- type: BooleanConstructor;
57
- default: boolean;
58
- };
59
- searchInner: {
60
- type: BooleanConstructor;
61
- default: boolean;
62
- };
63
- searchFilter: {
64
- type: PropType<AnyObject>;
65
- default: () => {};
66
- };
67
- treeSetting: {
68
- type: PropType<ITreeOption>;
69
- default: () => {};
70
- };
71
- queryLoadChildData: {
72
- type: PropType<(node: TreeOption) => Promise<AnyObject>>;
73
- default: undefined;
74
- };
75
- queryTreeSearch: {
76
- type: PropType<(keyWork: string) => Promise<Array<AnyObject>>>;
77
- default: () => Promise<never[]>;
78
- };
79
- forceShowSelectAll: {
80
- type: BooleanConstructor;
81
- };
82
- uncheckableField: {
83
- type: StringConstructor;
84
- };
85
- onlyForwardCascade: {
86
- type: BooleanConstructor;
87
- };
88
- }, {
89
- searchFilterBase: {
90
- isOpen: boolean;
91
- multiple: boolean;
92
- customTitles: string[];
93
- itemHeight: number;
94
- };
95
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
96
- defaultList: {
97
- type: PropType<(IKey | ITag)[]>;
98
- default: () => never[];
99
- };
100
- data: {
101
- type: PropType<ITreeOption[]>;
102
- default: () => never[];
103
- };
104
- searchPlaceholder: {
105
- type: StringConstructor;
106
- default: string;
107
- };
108
- searchButtonText: {
109
- type: StringConstructor;
110
- default: string;
111
- };
112
- wordbook: {
113
- type: PropType<IWordBook<ITreeOption>>;
114
- default: () => {};
115
- };
116
- wordbookChild: {
117
- type: PropType<IWordBookChild<ITreeOption>>;
118
- default: () => {};
119
- };
120
- showCount: {
121
- type: BooleanConstructor;
122
- default: boolean;
123
- };
124
- showClear: {
125
- type: BooleanConstructor;
126
- default: boolean;
127
- };
128
- multiple: {
129
- type: BooleanConstructor;
130
- default: boolean;
131
- };
132
- searchInner: {
133
- type: BooleanConstructor;
134
- default: boolean;
135
- };
136
- searchFilter: {
137
- type: PropType<AnyObject>;
138
- default: () => {};
139
- };
140
- treeSetting: {
141
- type: PropType<ITreeOption>;
142
- default: () => {};
143
- };
144
- queryLoadChildData: {
145
- type: PropType<(node: TreeOption) => Promise<AnyObject>>;
146
- default: undefined;
147
- };
148
- queryTreeSearch: {
149
- type: PropType<(keyWork: string) => Promise<Array<AnyObject>>>;
150
- default: () => Promise<never[]>;
151
- };
152
- forceShowSelectAll: {
153
- type: BooleanConstructor;
154
- };
155
- uncheckableField: {
156
- type: StringConstructor;
157
- };
158
- onlyForwardCascade: {
159
- type: BooleanConstructor;
160
- };
161
- }>> & {}>>;
162
- emit: any;
163
- keyword: import("vue").Ref<string>;
164
- checkedAll: import("vue").Ref<boolean>;
165
- checkedKeys: import("vue").Ref<IKey[]>;
166
- expandedKeys: import("vue").Ref<IKey[]>;
167
- treeData: import("vue").Ref<{
168
- [x: string]: unknown;
169
- key?: import("naive-ui/es/tree/src/interface").Key | undefined;
170
- label?: string | undefined;
171
- checkboxDisabled?: boolean | undefined;
172
- disabled?: boolean | undefined;
173
- isLeaf?: boolean | undefined;
174
- children?: any[] | undefined;
175
- prefix?: (() => import("vue").VNodeChild) | undefined;
176
- suffix?: (() => import("vue").VNodeChild) | undefined;
177
- }[]>;
178
- tagData: import("vue").Ref<{
179
- [x: string]: any;
180
- key: IKey;
181
- }[]>;
182
- initTagData: import("vue").Ref<{
183
- [x: string]: any;
184
- key: IKey;
185
- }[]>;
186
- isSearch: import("vue").Ref<boolean>;
187
- isRemote: import("vue").ComputedRef<boolean>;
188
- checkStrategyResult: import("vue").ComputedRef<any>;
189
- isSearchFilter: import("vue").ComputedRef<boolean>;
190
- mergeSearchFilter: import("vue").ComputedRef<{
191
- isOpen: boolean;
192
- multiple: boolean;
193
- customTitles: string[];
194
- itemHeight: number;
195
- }>;
196
- wordbookChildExpandkeys: import("vue").ComputedRef<string[]>;
197
- styleObject: import("vue").ComputedRef<{
198
- height: string;
199
- }>;
200
- caculateTagData: import("vue").ComputedRef<any[]>;
201
- originTreeData: any;
202
- initTreeData: () => void;
203
- queryLoadChildNode: (node: TreeOption) => Promise<AnyObject>;
204
- setDisabled: (data: TreeOption) => void;
205
- renderLabel: ({ option }: {
206
- option: TreeOption;
207
- }) => JSX.Element;
208
- getLabelName: (option: TreeOption) => {};
209
- transformData: (trees: TreeOption[], tempContent?: any) => TreeOption[];
210
- calculateRootItems: (trees: TreeOption[], items: TreeOption[]) => TreeOption[];
211
- searchSetting: () => string;
212
- onSearch: () => Promise<void>;
213
- setTreeCheckd: (tree: TreeOption[], checked: boolean) => void;
214
- setCheckdWithChild: (tree: TreeOption[], checked: boolean) => void;
215
- setCheckdWithParent: (tree: TreeOption[], checked: boolean) => void;
216
- setCheckdWithAll: (tree: TreeOption[], checked: boolean) => void;
217
- checkedAllChange: (checked: boolean) => void;
218
- setTagData: (tree: TreeOption[]) => void;
219
- getFlattenKeys: (tree: TreeOption[]) => any[];
220
- updateTreeChecked: (keys: Array<IKey>, _: any, meta: {
221
- node: TreeOption | null;
222
- action: 'check' | 'uncheck';
223
- }) => void;
224
- clearAll: () => void;
225
- closeTag: (tag: ITag) => void;
226
- notifyCheck: (keys: IKey[]) => void;
227
- notifySearchClear: () => void;
228
- getCheckWithLevel: () => {
229
- [x: string]: any;
230
- key: IKey;
231
- }[];
232
- resetParams: () => void;
233
- NButton: any;
234
- NInput: any;
235
- NInputGroup: any;
236
- NCheckbox: any;
237
- NTree: any;
238
- NIcon: any;
239
- NSpace: any;
240
- NGrid: any;
241
- NGi: any;
242
- NEmpty: any;
243
- CloseCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
244
- SearchMultiple: import("vue").DefineComponent<{
245
- treeData: {
246
- type: PropType<any[]>;
247
- default: () => never[];
248
- };
249
- checkedKeys: {
250
- type: PropType<(string | number)[]>;
251
- default: () => never[];
252
- };
253
- }, {
254
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
255
- treeData: {
256
- type: PropType<any[]>;
257
- default: () => never[];
258
- };
259
- checkedKeys: {
260
- type: PropType<(string | number)[]>;
261
- default: () => never[];
262
- };
263
- }>> & {
264
- onNotifyCheck?: ((...args: any[]) => any) | undefined;
265
- }>>;
266
- emit: (event: "notifyCheck", ...args: any[]) => void;
267
- optionsRef: import("vue").ComputedRef<any[]>;
268
- list: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
269
- containerProps: {
270
- ref: import("vue").Ref<any>;
271
- onScroll: () => void;
272
- style: Partial<CSSStyleDeclaration>;
273
- };
274
- wrapperProps: import("vue").ComputedRef<{
275
- style: {
276
- width: string;
277
- height: string;
278
- marginTop: string;
279
- };
280
- }>;
281
- containerStyleWithHeight: import("vue").ComputedRef<import("vue").CSSProperties>;
282
- searchCheckKeys: import("vue").Ref<(string | number)[]>;
283
- showSelectKeys: import("vue").Ref<(string | number)[]>;
284
- checkedChange: (checkList: (string | number)[], meta: {
285
- actionType: "check" | "uncheck";
286
- value: string | number;
287
- }) => void;
288
- handleCheckKey: (baseKeys: (string | number)[], currentTree: {
289
- [key: string]: any;
290
- key: string | number;
291
- children: any[];
292
- parentNode: any;
293
- } | null, value: string | number) => false | undefined;
294
- findParent: (baseKeys: (string | number)[], currentTree: {
295
- [key: string]: any;
296
- key: string | number;
297
- children: any[];
298
- parentNode: any;
299
- }) => false | undefined;
300
- handleUnCheckKey: (baseKeys: (string | number)[], currentTree: {
301
- [key: string]: any;
302
- key: string | number;
303
- children: any[];
304
- parentNode: any;
305
- }, value: string | number) => false | undefined;
306
- findChild: (baseKeys: (string | number)[], children: {
307
- [key: string]: any;
308
- key: string | number;
309
- children: any[];
310
- parentNode: any;
311
- }[], value: string | number) => false | undefined;
312
- checkInitTree: (tree: {
313
- [key: string]: any;
314
- key: string | number;
315
- children: any[];
316
- parentNode: any;
317
- }, baseKey: string | number) => false | undefined;
318
- ref: typeof ref;
319
- NCheckboxGroup: any;
320
- NCheckbox: any;
321
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "notifyCheck"[], "notifyCheck", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
322
- treeData: {
323
- type: PropType<any[]>;
324
- default: () => never[];
325
- };
326
- checkedKeys: {
327
- type: PropType<(string | number)[]>;
328
- default: () => never[];
329
- };
330
- }>> & {
331
- onNotifyCheck?: ((...args: any[]) => any) | undefined;
332
- }, {
333
- treeData: any[];
334
- checkedKeys: (string | number)[];
335
- }>;
336
- SearchOrgAndStaff: import("vue").DefineComponent<{
337
- treeData: {
338
- type: PropType<any[]>;
339
- default: () => never[];
340
- };
341
- checkedKeys: {
342
- type: PropType<(string | number)[]>;
343
- default: () => never[];
344
- };
345
- searchFilter: {
346
- type: ObjectConstructor;
347
- default: () => {};
348
- };
349
- isMultiple: {
350
- type: BooleanConstructor;
351
- default: boolean;
352
- };
353
- }, {
354
- $message: import("naive-ui").MessageApi;
355
- virtualItemHeight: number;
356
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
357
- treeData: {
358
- type: PropType<any[]>;
359
- default: () => never[];
360
- };
361
- checkedKeys: {
362
- type: PropType<(string | number)[]>;
363
- default: () => never[];
364
- };
365
- searchFilter: {
366
- type: ObjectConstructor;
367
- default: () => {};
368
- };
369
- isMultiple: {
370
- type: BooleanConstructor;
371
- default: boolean;
372
- };
373
- }>> & {
374
- onNotifyCheck?: ((...args: any[]) => any) | undefined;
375
- onNotifyClear?: ((...args: any[]) => any) | undefined;
376
- }>>;
377
- emit: (event: "notifyCheck" | "notifyClear", ...args: any[]) => void;
378
- moduleHeight: import("vue").ComputedRef<any>;
379
- showNums: import("vue").ComputedRef<number>;
380
- staffDataRef: import("vue").ComputedRef<any[]>;
381
- staffList: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
382
- staffContainerProps: {
383
- ref: import("vue").Ref<any>;
384
- onScroll: () => void;
385
- style: Partial<CSSStyleDeclaration>;
386
- };
387
- staffWrapperProps: import("vue").ComputedRef<{
388
- style: {
389
- width: string;
390
- height: string;
391
- marginTop: string;
392
- };
393
- }>;
394
- staffContainerStyleWithHeight: import("vue").ComputedRef<import("vue").CSSProperties>;
395
- orgDataRef: import("vue").ComputedRef<any[]>;
396
- orgList: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
397
- orgContainerProps: {
398
- ref: import("vue").Ref<any>;
399
- onScroll: () => void;
400
- style: Partial<CSSStyleDeclaration>;
401
- };
402
- orgWrapperProps: import("vue").ComputedRef<{
403
- style: {
404
- width: string;
405
- height: string;
406
- marginTop: string;
407
- };
408
- }>;
409
- orgContainerStyleWithHeight: import("vue").ComputedRef<import("vue").CSSProperties>;
410
- searchCheckKeys: import("vue").Ref<(string | number)[]>;
411
- showSelectKeys: import("vue").Ref<(string | number)[]>;
412
- handleClick: (tree: any) => void;
413
- handleStaffClick: (baseKeys: (string | number)[], currentTree: {
414
- [key: string]: any;
415
- key: string | number;
416
- children: any[];
417
- parentNode: any;
418
- }, value: string | number) => false | undefined;
419
- findParent: (baseKeys: (string | number)[], currentTree: {
420
- [key: string]: any;
421
- key: string | number;
422
- children: any[];
423
- parentNode: any;
424
- }) => false | undefined;
425
- handleOrgClick: (baseKeys: (string | number)[], currentTree: {
426
- [key: string]: any;
427
- key: string | number;
428
- children: any[];
429
- parentNode: any;
430
- }, value: string | number) => void;
431
- handleFindChildren: (treeList: {
432
- [key: string]: any;
433
- key: string | number;
434
- children: any[];
435
- parentNode: any;
436
- }[]) => void;
437
- checkInitTree: (tree: {
438
- [key: string]: any;
439
- key: string | number;
440
- children: any[];
441
- parentNode: any;
442
- }, baseKey: string | number) => false | undefined;
443
- ref: typeof ref;
444
- NEmpty: any;
445
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("notifyCheck" | "notifyClear")[], "notifyCheck" | "notifyClear", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
446
- treeData: {
447
- type: PropType<any[]>;
448
- default: () => never[];
449
- };
450
- checkedKeys: {
451
- type: PropType<(string | number)[]>;
452
- default: () => never[];
453
- };
454
- searchFilter: {
455
- type: ObjectConstructor;
456
- default: () => {};
457
- };
458
- isMultiple: {
459
- type: BooleanConstructor;
460
- default: boolean;
461
- };
462
- }>> & {
463
- onNotifyCheck?: ((...args: any[]) => any) | undefined;
464
- onNotifyClear?: ((...args: any[]) => any) | undefined;
465
- }, {
466
- searchFilter: Record<string, any>;
467
- treeData: any[];
468
- checkedKeys: (string | number)[];
469
- isMultiple: boolean;
470
- }>;
471
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
472
- defaultList: {
473
- type: PropType<(IKey | ITag)[]>;
474
- default: () => never[];
475
- };
476
- data: {
477
- type: PropType<ITreeOption[]>;
478
- default: () => never[];
479
- };
480
- searchPlaceholder: {
481
- type: StringConstructor;
482
- default: string;
483
- };
484
- searchButtonText: {
485
- type: StringConstructor;
486
- default: string;
487
- };
488
- wordbook: {
489
- type: PropType<IWordBook<ITreeOption>>;
490
- default: () => {};
491
- };
492
- wordbookChild: {
493
- type: PropType<IWordBookChild<ITreeOption>>;
494
- default: () => {};
495
- };
496
- showCount: {
497
- type: BooleanConstructor;
498
- default: boolean;
499
- };
500
- showClear: {
501
- type: BooleanConstructor;
502
- default: boolean;
503
- };
504
- multiple: {
505
- type: BooleanConstructor;
506
- default: boolean;
507
- };
508
- searchInner: {
509
- type: BooleanConstructor;
510
- default: boolean;
511
- };
512
- searchFilter: {
513
- type: PropType<AnyObject>;
514
- default: () => {};
515
- };
516
- treeSetting: {
517
- type: PropType<ITreeOption>;
518
- default: () => {};
519
- };
520
- queryLoadChildData: {
521
- type: PropType<(node: TreeOption) => Promise<AnyObject>>;
522
- default: undefined;
523
- };
524
- queryTreeSearch: {
525
- type: PropType<(keyWork: string) => Promise<Array<AnyObject>>>;
526
- default: () => Promise<never[]>;
527
- };
528
- forceShowSelectAll: {
529
- type: BooleanConstructor;
530
- };
531
- uncheckableField: {
532
- type: StringConstructor;
533
- };
534
- onlyForwardCascade: {
535
- type: BooleanConstructor;
536
- };
537
- }>>, {
538
- data: ITreeOption[];
539
- defaultList: (IKey | ITag)[];
540
- searchPlaceholder: string;
541
- searchButtonText: string;
542
- wordbook: IWordBook<ITreeOption>;
543
- wordbookChild: IWordBookChild<ITreeOption>;
544
- showCount: boolean;
545
- showClear: boolean;
546
- multiple: boolean;
547
- searchInner: boolean;
548
- searchFilter: AnyObject;
549
- treeSetting: ITreeOption;
550
- queryLoadChildData: (node: TreeOption) => Promise<AnyObject>;
551
- queryTreeSearch: (keyWork: string) => Promise<Array<AnyObject>>;
552
- forceShowSelectAll: boolean;
553
- onlyForwardCascade: boolean;
554
- }>;
555
- export default _default;