cnhis-design-vue 3.1.46-release.3 → 3.1.46
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/README.md +87 -87
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/form-config/index.d.ts +67 -16
- package/es/components/form-config/src/FormConfig.vue.d.ts +67 -16
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +5 -4
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +29 -7
- package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
- package/es/components/form-config/src/hooks/useDataNormalize.js +1 -1
- package/es/components/form-config/src/types/index.d.ts +1 -1
- package/es/components/form-render/index.d.ts +5 -4
- package/es/components/form-render/src/FormRender.vue.d.ts +4 -3
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +5 -4
- package/es/components/form-render/src/components/renderer/levelSearchCascader.d.ts +16 -2
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +32 -4
- package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +3 -0
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
- package/es/components/form-render/src/components/renderer/select.d.ts +16 -2
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/hooks/useOperationalForm.d.ts +1 -1
- package/es/components/form-render/src/hooks/useOperationalForm.js +1 -1
- package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +5 -0
- package/es/components/form-render/src/hooks/useWordbookSetting.js +1 -0
- package/es/components/form-render/src/types/fieldItem.d.ts +8 -1
- package/es/components/form-render/src/types/index.d.ts +1 -7
- package/es/components/iho-table/index.d.ts +12 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +12 -0
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/operationalFormPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +5 -3
- package/es/components/iho-table/src/utils/index.d.ts +1 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +14 -12
- package/es/components/info-header/src/InfoHeader.vue.d.ts +14 -12
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +5 -4
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +5 -4
- package/es/components/scale-view/index.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +1 -1
- package/es/components/scale-view/src/components/AnswerParse.vue2.js +1 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +1 -1
- package/es/components/scale-view/src/components/EvaluatePage.vue2.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
- package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
- package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-person/index.d.ts +153 -14
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
- package/es/components/select-person/src/SearchMultiple.vue2.js +1 -1
- package/es/components/select-person/src/SearchOrgAndStaff.vue.d.ts +106 -0
- package/es/components/select-person/src/SearchOrgAndStaff.vue.js +1 -0
- package/es/components/select-person/src/SearchOrgAndStaff.vue2.js +1 -0
- package/es/components/select-person/src/SelectPerson.vue.d.ts +150 -12
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/src/types/enums.d.ts +4 -0
- package/es/components/select-person/src/types/enums.js +1 -0
- package/es/components/select-person/src/utils/index.d.ts +1 -1
- package/es/components/select-person/src/utils/index.js +1 -1
- package/es/components/select-person/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +13 -5
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +13 -5
- package/es/components/steps-wheel/index.d.ts +16 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +16 -0
- package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -1
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +3 -0
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +6 -0
- package/es/shared/utils/business.d.ts +6 -1
- package/es/shared/utils/business.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/index.js +1 -1
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/es/shared/utils/tapableLess.d.ts +28 -0
- package/es/shared/utils/tapableLess.js +1 -0
- package/package.json +2 -2
|
@@ -34,6 +34,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
34
34
|
type: import("vue").PropType<{
|
|
35
35
|
user_id_obj: string | number;
|
|
36
36
|
user_name_obj: string | number;
|
|
37
|
+
user_expand_keys?: string[] | undefined;
|
|
37
38
|
}>;
|
|
38
39
|
default: () => {};
|
|
39
40
|
};
|
|
@@ -53,9 +54,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
53
54
|
type: BooleanConstructor;
|
|
54
55
|
default: boolean;
|
|
55
56
|
};
|
|
56
|
-
|
|
57
|
-
type:
|
|
58
|
-
default:
|
|
57
|
+
searchFilter: {
|
|
58
|
+
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
59
|
+
default: () => {};
|
|
59
60
|
};
|
|
60
61
|
treeSetting: {
|
|
61
62
|
type: import("vue").PropType<import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
@@ -72,6 +73,12 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
72
73
|
default: () => Promise<never[]>;
|
|
73
74
|
};
|
|
74
75
|
}, {
|
|
76
|
+
searchFilterBase: {
|
|
77
|
+
isOpen: boolean;
|
|
78
|
+
multiple: boolean;
|
|
79
|
+
customTitles: string[];
|
|
80
|
+
itemHeight: number;
|
|
81
|
+
};
|
|
75
82
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
76
83
|
defaultList: {
|
|
77
84
|
type: import("vue").PropType<((string | number) | {
|
|
@@ -107,6 +114,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
107
114
|
type: import("vue").PropType<{
|
|
108
115
|
user_id_obj: string | number;
|
|
109
116
|
user_name_obj: string | number;
|
|
117
|
+
user_expand_keys?: string[] | undefined;
|
|
110
118
|
}>;
|
|
111
119
|
default: () => {};
|
|
112
120
|
};
|
|
@@ -126,9 +134,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
126
134
|
type: BooleanConstructor;
|
|
127
135
|
default: boolean;
|
|
128
136
|
};
|
|
129
|
-
|
|
130
|
-
type:
|
|
131
|
-
default:
|
|
137
|
+
searchFilter: {
|
|
138
|
+
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
139
|
+
default: () => {};
|
|
132
140
|
};
|
|
133
141
|
treeSetting: {
|
|
134
142
|
type: import("vue").PropType<import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
@@ -179,9 +187,15 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
179
187
|
allCheckedKeys: (string | number)[];
|
|
180
188
|
isRemote: import("vue").ComputedRef<boolean>;
|
|
181
189
|
checkStrategyResult: import("vue").ComputedRef<any>;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
190
|
+
isSearchFilter: import("vue").ComputedRef<boolean>;
|
|
191
|
+
mergeSearchFilter: import("vue").ComputedRef<{
|
|
192
|
+
isOpen: boolean;
|
|
193
|
+
multiple: boolean;
|
|
194
|
+
customTitles: string[];
|
|
195
|
+
itemHeight: number;
|
|
196
|
+
}>;
|
|
197
|
+
wordbookChildExpandkeys: import("vue").ComputedRef<string[]>;
|
|
198
|
+
caculateTagData: import("vue").ComputedRef<any[]>;
|
|
185
199
|
init: () => void;
|
|
186
200
|
getallCheckedKeysWithChild: (item: import("naive-ui").TreeOption) => void;
|
|
187
201
|
getallCheckedKeysWithParent: (item: import("naive-ui").TreeOption) => void;
|
|
@@ -197,8 +211,8 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
197
211
|
setAllCheckedKeys: (tree: import("naive-ui").TreeOption[]) => void;
|
|
198
212
|
setAllCheckedKeysWithChild: (tree: import("naive-ui").TreeOption[]) => void;
|
|
199
213
|
setAllCheckedKeysWithParent: (tree: import("naive-ui").TreeOption[]) => void;
|
|
214
|
+
searchSetting: () => string;
|
|
200
215
|
onSearch: () => Promise<void>;
|
|
201
|
-
onClear: () => void;
|
|
202
216
|
setTreeCheckd: (tree: import("naive-ui").TreeOption[], checked: boolean) => void;
|
|
203
217
|
setCheckdWithChild: (tree: import("naive-ui").TreeOption[], checked: boolean) => void;
|
|
204
218
|
setCheckdWithParent: (tree: import("naive-ui").TreeOption[], checked: boolean) => void;
|
|
@@ -222,6 +236,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
222
236
|
name: string;
|
|
223
237
|
}) => void;
|
|
224
238
|
notifyCheck: (keys: (string | number)[]) => void;
|
|
239
|
+
notifySearchClear: () => void;
|
|
225
240
|
getCheckWithLevel: () => {
|
|
226
241
|
[x: string]: any;
|
|
227
242
|
key: string | number;
|
|
@@ -437,6 +452,128 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
437
452
|
treeData: any[];
|
|
438
453
|
checkedKeys: (string | number)[];
|
|
439
454
|
}>;
|
|
455
|
+
SearchOrgAndStaff: import("vue").DefineComponent<{
|
|
456
|
+
treeData: {
|
|
457
|
+
type: import("vue").PropType<any[]>;
|
|
458
|
+
default: () => never[];
|
|
459
|
+
};
|
|
460
|
+
checkedKeys: {
|
|
461
|
+
type: import("vue").PropType<(string | number)[]>;
|
|
462
|
+
default: () => never[];
|
|
463
|
+
};
|
|
464
|
+
searchFilter: {
|
|
465
|
+
type: ObjectConstructor;
|
|
466
|
+
default: () => {};
|
|
467
|
+
};
|
|
468
|
+
}, {
|
|
469
|
+
$message: import("naive-ui").MessageApi;
|
|
470
|
+
virtualItemHeight: number;
|
|
471
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
472
|
+
treeData: {
|
|
473
|
+
type: import("vue").PropType<any[]>;
|
|
474
|
+
default: () => never[];
|
|
475
|
+
};
|
|
476
|
+
checkedKeys: {
|
|
477
|
+
type: import("vue").PropType<(string | number)[]>;
|
|
478
|
+
default: () => never[];
|
|
479
|
+
};
|
|
480
|
+
searchFilter: {
|
|
481
|
+
type: ObjectConstructor;
|
|
482
|
+
default: () => {};
|
|
483
|
+
};
|
|
484
|
+
}>> & {
|
|
485
|
+
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
486
|
+
onNotifyClear?: ((...args: any[]) => any) | undefined;
|
|
487
|
+
}>>;
|
|
488
|
+
emit: (event: "notifyCheck" | "notifyClear", ...args: any[]) => void;
|
|
489
|
+
moduleHeight: import("vue").ComputedRef<any>;
|
|
490
|
+
showNums: import("vue").ComputedRef<number>;
|
|
491
|
+
staffDataRef: import("vue").ComputedRef<any[]>;
|
|
492
|
+
staffList: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
|
|
493
|
+
staffContainerProps: {
|
|
494
|
+
ref: import("vue").Ref<any>;
|
|
495
|
+
onScroll: () => void;
|
|
496
|
+
style: Partial<CSSStyleDeclaration>;
|
|
497
|
+
};
|
|
498
|
+
staffWrapperProps: import("vue").ComputedRef<{
|
|
499
|
+
style: {
|
|
500
|
+
width: string;
|
|
501
|
+
height: string;
|
|
502
|
+
marginTop: string;
|
|
503
|
+
};
|
|
504
|
+
}>;
|
|
505
|
+
staffContainerStyleWithHeight: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
506
|
+
orgDataRef: import("vue").ComputedRef<any[]>;
|
|
507
|
+
orgList: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
|
|
508
|
+
orgContainerProps: {
|
|
509
|
+
ref: import("vue").Ref<any>;
|
|
510
|
+
onScroll: () => void;
|
|
511
|
+
style: Partial<CSSStyleDeclaration>;
|
|
512
|
+
};
|
|
513
|
+
orgWrapperProps: import("vue").ComputedRef<{
|
|
514
|
+
style: {
|
|
515
|
+
width: string;
|
|
516
|
+
height: string;
|
|
517
|
+
marginTop: string;
|
|
518
|
+
};
|
|
519
|
+
}>;
|
|
520
|
+
orgContainerStyleWithHeight: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
521
|
+
searchCheckKeys: import("vue").Ref<(string | number)[]>;
|
|
522
|
+
showSelectKeys: import("vue").Ref<(string | number)[]>;
|
|
523
|
+
handleClick: (tree: any) => void;
|
|
524
|
+
handleStaffClick: (baseKeys: (string | number)[], currentTree: {
|
|
525
|
+
[key: string]: any;
|
|
526
|
+
key: string | number;
|
|
527
|
+
children: any[];
|
|
528
|
+
parentNode: any;
|
|
529
|
+
}, value: string | number) => false | undefined;
|
|
530
|
+
findParent: (baseKeys: (string | number)[], currentTree: {
|
|
531
|
+
[key: string]: any;
|
|
532
|
+
key: string | number;
|
|
533
|
+
children: any[];
|
|
534
|
+
parentNode: any;
|
|
535
|
+
}) => false | undefined;
|
|
536
|
+
handleOrgClick: (baseKeys: (string | number)[], currentTree: {
|
|
537
|
+
[key: string]: any;
|
|
538
|
+
key: string | number;
|
|
539
|
+
children: any[];
|
|
540
|
+
parentNode: any;
|
|
541
|
+
}, value: string | number) => void;
|
|
542
|
+
handleFindChildren: (treeList: {
|
|
543
|
+
[key: string]: any;
|
|
544
|
+
key: string | number;
|
|
545
|
+
children: any[];
|
|
546
|
+
parentNode: any;
|
|
547
|
+
}[]) => void;
|
|
548
|
+
checkInitTree: (tree: {
|
|
549
|
+
[key: string]: any;
|
|
550
|
+
key: string | number;
|
|
551
|
+
children: any[];
|
|
552
|
+
parentNode: any;
|
|
553
|
+
}, baseKey: string | number) => false | undefined;
|
|
554
|
+
ref: typeof import("vue").ref;
|
|
555
|
+
NEmpty: any;
|
|
556
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("notifyCheck" | "notifyClear")[], "notifyCheck" | "notifyClear", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
557
|
+
treeData: {
|
|
558
|
+
type: import("vue").PropType<any[]>;
|
|
559
|
+
default: () => never[];
|
|
560
|
+
};
|
|
561
|
+
checkedKeys: {
|
|
562
|
+
type: import("vue").PropType<(string | number)[]>;
|
|
563
|
+
default: () => never[];
|
|
564
|
+
};
|
|
565
|
+
searchFilter: {
|
|
566
|
+
type: ObjectConstructor;
|
|
567
|
+
default: () => {};
|
|
568
|
+
};
|
|
569
|
+
}>> & {
|
|
570
|
+
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
571
|
+
onNotifyClear?: ((...args: any[]) => any) | undefined;
|
|
572
|
+
}, {
|
|
573
|
+
searchFilter: Record<string, any>;
|
|
574
|
+
treeData: any[];
|
|
575
|
+
checkedKeys: (string | number)[];
|
|
576
|
+
}>;
|
|
440
577
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("check" | "checkWithLevel")[], "check" | "checkWithLevel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
441
578
|
defaultList: {
|
|
442
579
|
type: import("vue").PropType<((string | number) | {
|
|
@@ -472,6 +609,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
472
609
|
type: import("vue").PropType<{
|
|
473
610
|
user_id_obj: string | number;
|
|
474
611
|
user_name_obj: string | number;
|
|
612
|
+
user_expand_keys?: string[] | undefined;
|
|
475
613
|
}>;
|
|
476
614
|
default: () => {};
|
|
477
615
|
};
|
|
@@ -491,9 +629,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
491
629
|
type: BooleanConstructor;
|
|
492
630
|
default: boolean;
|
|
493
631
|
};
|
|
494
|
-
|
|
495
|
-
type:
|
|
496
|
-
default:
|
|
632
|
+
searchFilter: {
|
|
633
|
+
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
634
|
+
default: () => {};
|
|
497
635
|
};
|
|
498
636
|
treeSetting: {
|
|
499
637
|
type: import("vue").PropType<import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
@@ -531,12 +669,13 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
531
669
|
wordbookChild: {
|
|
532
670
|
user_id_obj: string | number;
|
|
533
671
|
user_name_obj: string | number;
|
|
672
|
+
user_expand_keys?: string[] | undefined;
|
|
534
673
|
};
|
|
535
674
|
showCount: boolean;
|
|
536
675
|
showClear: boolean;
|
|
537
676
|
multiple: boolean;
|
|
538
677
|
searchInner: boolean;
|
|
539
|
-
|
|
678
|
+
searchFilter: import("../../../es/shared/types").AnyObject;
|
|
540
679
|
treeSetting: import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
541
680
|
[k: string]: unknown;
|
|
542
681
|
} & import("../../../es/shared/types").AnyObject;
|
|
@@ -95,12 +95,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
95
95
|
};
|
|
96
96
|
readonly 'onUpdate:value': PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
97
97
|
actionType: "check" | "uncheck";
|
|
98
|
-
/**
|
|
99
|
-
* 取消勾选树节点
|
|
100
|
-
* baseKeys:基准值
|
|
101
|
-
* currentTree:当前树节点
|
|
102
|
-
* value:树节点的key值
|
|
103
|
-
*/
|
|
104
98
|
value: string | number;
|
|
105
99
|
}) => void>>;
|
|
106
100
|
readonly onUpdateValue: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as t,ref as a,watch as r,openBlock as
|
|
1
|
+
import{defineComponent as e,computed as t,ref as a,watch as r,openBlock as n,createBlock as l,unref as i,withCtx as o,createElementVNode as u,normalizeStyle as s,createElementBlock as c,Fragment as d,renderList as p,createVNode as f,createTextVNode as v,toDisplayString as y}from"vue";import{NCheckboxGroup as h,NCheckbox as k}from"naive-ui";import{isEqual as m}from"lodash-es";import{useVirtualList as N}from"@vueuse/core";const _={class:"user_item"},g=["title"];var x=e({__name:"SearchMultiple",props:{treeData:{type:Array,default:()=>[]},checkedKeys:{type:Array,default:()=>[]}},emits:["notifyCheck"],setup(e,{emit:x}){const D=e,b=t((()=>D.treeData)),{list:A,containerProps:K,wrapperProps:S}=N(b,{itemHeight:30,overscan:5}),w=t((()=>({...K.style,height:"308px"}))),C=a(D.checkedKeys),E=a([]);function P(e,t){const{actionType:a,value:r}=t,n=D.treeData.find((e=>e.key===r));if(n){switch(a){case"check":H(C.value.filter((e=>e!==r)),n,r);break;case"uncheck":O(C.value,n,r)}x("notifyCheck",C.value)}}function H(e,t,a){var r;if(!(null==t?void 0:t.parentNode))return C.value=[...e,a],!1;const n=null==(r=t.parentNode)?void 0:r.key;if(e.includes(n))return C.value=e,!1;if(t.parentNode.children){const r=t.parentNode.children.every((t=>[...e,a].includes(t.key)));if(r){const a=null==t?void 0:t.parentNode.children.map((e=>e.key)),n=e.filter((e=>!a.includes(e)));return r&&M(n,t.parentNode),!1}}H(e,t.parentNode,a)}function M(e,t){if(!t.parentNode||t.parentNode.children.length>1)return C.value=[...e,t.key],!1;M(e,t.parentNode)}function O(e,t,a){var r,n;if(e.includes(a)){const t=e.filter((e=>e!==a));return C.value=t,!1}if(!(null==t?void 0:t.parentNode))return C.value=e,!1;const l=null==(r=t.parentNode)?void 0:r.key,i=e.indexOf(l);if(i>-1){const r=null==(n=t.parentNode)?void 0:n.children;return e.splice(i,1),T(e,r,a),!1}O(e,t.parentNode,a)}function T(e,t,a){if(!Array.isArray(t))return C.value=e,!1;if(t.length>1){const r=t.filter((e=>e.key!==a)).map((e=>e.key));return C.value=[...e,...r],!1}T(e,t[0].children,a)}function U(e,t){const a=D.checkedKeys;return!!e&&(a.includes(e.key)?(E.value.push(t),!1):void U(e.parentNode,t))}return r((()=>D.treeData),(e=>{e&&e.length>0&&(E.value=[],e.forEach((e=>{U(e,e.key)})))}),{deep:!0,immediate:!0}),r((()=>D.checkedKeys),((e,t)=>{m(e,t)||D.treeData.length>0&&(E.value=[],C.value=e,D.treeData.forEach((e=>{U(e,e.key)})))}),{immediate:!0}),(e,t)=>(n(),l(i(h),{value:E.value,"onUpdate:value":[t[1]||(t[1]=e=>E.value=e),P]},{default:o((()=>[u("section",{class:"select-person__multipleWrapper",ref:i(K).ref,style:s(i(w)),onScroll:t[0]||(t[0]=(...e)=>i(K).onScroll&&i(K).onScroll(...e))},[u("section",{style:s(i(S).style)},[(n(!0),c(d,null,p(i(A),(e=>(n(),c("div",{class:"select-person__multiple-search",key:e.data.key},[f(i(k),{value:e.data.key,disabled:e.data.disabled},{default:o((()=>[u("p",_,[v(y(e.data.title)+" ",1),u("span",{class:"user_item_expand",title:e.data.title_expand_strs},y(e.data.title_expand_strs),9,g)])])),_:2},1032,["value","disabled"])])))),128))],4)],36)])),_:1},8,["value"]))}});export{x as default};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { ref, PropType, CSSProperties } from 'vue';
|
|
2
|
+
declare type IKey = string | number;
|
|
3
|
+
declare type ITreeOption = {
|
|
4
|
+
key: IKey;
|
|
5
|
+
children: any[];
|
|
6
|
+
parentNode: any;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import("vue").DefineComponent<{
|
|
10
|
+
treeData: {
|
|
11
|
+
type: PropType<any[]>;
|
|
12
|
+
default: () => never[];
|
|
13
|
+
};
|
|
14
|
+
checkedKeys: {
|
|
15
|
+
type: PropType<IKey[]>;
|
|
16
|
+
default: () => never[];
|
|
17
|
+
};
|
|
18
|
+
searchFilter: {
|
|
19
|
+
type: ObjectConstructor;
|
|
20
|
+
default: () => {};
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
$message: import("naive-ui").MessageApi;
|
|
24
|
+
virtualItemHeight: number;
|
|
25
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
treeData: {
|
|
27
|
+
type: PropType<any[]>;
|
|
28
|
+
default: () => never[];
|
|
29
|
+
};
|
|
30
|
+
checkedKeys: {
|
|
31
|
+
type: PropType<IKey[]>;
|
|
32
|
+
default: () => never[];
|
|
33
|
+
};
|
|
34
|
+
searchFilter: {
|
|
35
|
+
type: ObjectConstructor;
|
|
36
|
+
default: () => {};
|
|
37
|
+
};
|
|
38
|
+
}>> & {
|
|
39
|
+
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
40
|
+
onNotifyClear?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
}>>;
|
|
42
|
+
emit: (event: "notifyCheck" | "notifyClear", ...args: any[]) => void;
|
|
43
|
+
moduleHeight: import("vue").ComputedRef<any>;
|
|
44
|
+
showNums: import("vue").ComputedRef<number>;
|
|
45
|
+
staffDataRef: import("vue").ComputedRef<any[]>;
|
|
46
|
+
staffList: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
|
|
47
|
+
staffContainerProps: {
|
|
48
|
+
ref: import("vue").Ref<any>;
|
|
49
|
+
onScroll: () => void;
|
|
50
|
+
style: Partial<CSSStyleDeclaration>;
|
|
51
|
+
};
|
|
52
|
+
staffWrapperProps: import("vue").ComputedRef<{
|
|
53
|
+
style: {
|
|
54
|
+
width: string;
|
|
55
|
+
height: string;
|
|
56
|
+
marginTop: string;
|
|
57
|
+
};
|
|
58
|
+
}>;
|
|
59
|
+
staffContainerStyleWithHeight: import("vue").ComputedRef<CSSProperties>;
|
|
60
|
+
orgDataRef: import("vue").ComputedRef<any[]>;
|
|
61
|
+
orgList: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
|
|
62
|
+
orgContainerProps: {
|
|
63
|
+
ref: import("vue").Ref<any>;
|
|
64
|
+
onScroll: () => void;
|
|
65
|
+
style: Partial<CSSStyleDeclaration>;
|
|
66
|
+
};
|
|
67
|
+
orgWrapperProps: import("vue").ComputedRef<{
|
|
68
|
+
style: {
|
|
69
|
+
width: string;
|
|
70
|
+
height: string;
|
|
71
|
+
marginTop: string;
|
|
72
|
+
};
|
|
73
|
+
}>;
|
|
74
|
+
orgContainerStyleWithHeight: import("vue").ComputedRef<CSSProperties>;
|
|
75
|
+
searchCheckKeys: import("vue").Ref<IKey[]>;
|
|
76
|
+
showSelectKeys: import("vue").Ref<(string | number)[]>;
|
|
77
|
+
handleClick: (tree: any) => void;
|
|
78
|
+
handleStaffClick: (baseKeys: (string | number)[], currentTree: ITreeOption, value: string | number) => false | undefined;
|
|
79
|
+
findParent: (baseKeys: (string | number)[], currentTree: ITreeOption) => false | undefined;
|
|
80
|
+
handleOrgClick: (baseKeys: (string | number)[], currentTree: ITreeOption, value: string | number) => void;
|
|
81
|
+
handleFindChildren: (treeList: ITreeOption[]) => void;
|
|
82
|
+
checkInitTree: (tree: ITreeOption, baseKey: string | number) => false | undefined;
|
|
83
|
+
ref: typeof ref;
|
|
84
|
+
NEmpty: any;
|
|
85
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("notifyCheck" | "notifyClear")[], "notifyCheck" | "notifyClear", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
86
|
+
treeData: {
|
|
87
|
+
type: PropType<any[]>;
|
|
88
|
+
default: () => never[];
|
|
89
|
+
};
|
|
90
|
+
checkedKeys: {
|
|
91
|
+
type: PropType<IKey[]>;
|
|
92
|
+
default: () => never[];
|
|
93
|
+
};
|
|
94
|
+
searchFilter: {
|
|
95
|
+
type: ObjectConstructor;
|
|
96
|
+
default: () => {};
|
|
97
|
+
};
|
|
98
|
+
}>> & {
|
|
99
|
+
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
100
|
+
onNotifyClear?: ((...args: any[]) => any) | undefined;
|
|
101
|
+
}, {
|
|
102
|
+
searchFilter: Record<string, any>;
|
|
103
|
+
treeData: any[];
|
|
104
|
+
checkedKeys: IKey[];
|
|
105
|
+
}>;
|
|
106
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import r from"./SearchOrgAndStaff.vue2.js";import e from"../../../_virtual/_plugin-vue_export-helper.js";var a=e(r,[["__file","SearchOrgAndStaff.vue"]]);export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,computed as t,ref as l,watch as a,openBlock as r,createElementBlock as i,Fragment as n,unref as s,createElementVNode as c,toDisplayString as o,normalizeStyle as d,renderList as u,normalizeClass as h,createTextVNode as p,createCommentVNode as f,createBlock as v}from"vue";import{useMessage as y,NEmpty as m}from"naive-ui";import{isEqual as k}from"lodash-es";import{useVirtualList as _}from"@vueuse/core";const g={class:"searchOrgAndStaff"},N={key:0,class:"searchOption"},S={class:"search_title"},C=["onClick"],b={class:"title"},x=["title"],D={class:"desc"},O={key:1,class:"SearchOption"},$={class:"search_title"},F=["onClick"],T={class:"title"},A={class:"desc"};var K=e({__name:"SearchOrgAndStaff",props:{treeData:{type:Array,default:()=>[]},checkedKeys:{type:Array,default:()=>[]},searchFilter:{type:Object,default:()=>({})}},emits:["notifyCheck","notifyClear"],setup(e,{emit:K}){var P;const w=e,E=y(),H=t((()=>{var e;return null!=(e=w.searchFilter.itemHeight)?e:300})),W=t((()=>Math.floor(H.value/50))),j=null!=(P=t((()=>w.treeData.filter((e=>!e.children)))))?P:[],{list:I,containerProps:M,wrapperProps:q}=_(j,{itemHeight:50,overscan:W.value}),z=t((()=>({...M.style,height:`${H.value}px`}))),B=t((()=>w.treeData.filter((e=>e.children&&e.children.length>0)))),{list:G,containerProps:J,wrapperProps:L}=_(B,{itemHeight:50,overscan:W.value}),Q=t((()=>({...J.style,height:`${H.value}px`}))),R=l(w.checkedKeys),U=l([]);function V(e){var t;if(R.value.find((t=>t===e.key)))return void E.info(`${e.title}已被选择`);if(e.disabled)return void E.info(`${e.title}已被禁用`);switch((null==(t=e.children)?void 0:t.length)>0?"org":"staff"){case"org":!function(e,t,l){t.children.length>0&&Z(t.children);X(e,t,l)}(R.value,e,e.key);break;case"staff":X(R.value,e,e.key)}K("notifyCheck",R.value),(null==w?void 0:w.searchFilter.multiple)||K("notifyClear")}function X(e,t,l){var a;if(!(null==t?void 0:t.parentNode))return R.value=[...e,l],!1;const r=null==(a=t.parentNode)?void 0:a.key;if(e.includes(r))return R.value=e,E.info(`${t.title}已存在于${t.tempTitle}中`),!1;if(t.parentNode.children){const a=t.parentNode.children.every((t=>[...e,l].includes(t.key)));if(a){const l=null==t?void 0:t.parentNode.children.map((e=>e.key)),r=e.filter((e=>!l.includes(e)));return a&&Y(r,t.parentNode),!1}}X(e,t.parentNode,l)}function Y(e,t){if(!t.parentNode||t.parentNode.children.length>1)return R.value=[...e,t.key],!1;Y(e,t.parentNode)}function Z(e){e.forEach((e=>{var t;if(R.value.includes(e.key)){const t=R.value.indexOf(e.key);R.value.splice(t,1)}(null==(t=e.children)?void 0:t.length)>0&&Z(e.children)}))}function ee(e,t){const l=w.checkedKeys;return!!e&&(l.includes(e.key)?(U.value.push(t),!1):void ee(e.parentNode,t))}return a((()=>w.treeData),(e=>{e&&e.length>0&&(U.value=[],e.forEach((e=>{ee(e,e.key)})))}),{deep:!0,immediate:!0}),a((()=>w.checkedKeys),((e,t)=>{k(e,t)||w.treeData.length>0&&(U.value=[],R.value=e,w.treeData.forEach((e=>{ee(e,e.key)})))}),{immediate:!0}),(t,l)=>{var a,y;return r(),i("div",g,[e.treeData.length>0?(r(),i(n,{key:0},[s(j).length>0?(r(),i("div",N,[c("h4",S,o(null==(a=e.searchFilter)?void 0:a.customTitles[0]),1),c("section",{class:"select-person__multipleWrapper",ref:s(M).ref,style:d(s(I).length>s(W)?s(z):{}),onScroll:l[0]||(l[0]=(...e)=>s(M).onScroll&&s(M).onScroll(...e))},[c("section",{style:d(s(q).style)},[(r(!0),i(n,null,u(s(I),(e=>(r(),i("div",{class:"select-person__multiple-search",key:e.data.key},[c("div",{class:h(["search_item user_item",e.data.disabled?"search_disabled":""]),onClick:t=>V(e.data)},[c("span",b,[p(o(e.data.title)+" ",1),c("span",{class:"user_item_expand",title:e.data.title_expand_strs},o(e.data.title_expand_strs),9,x)]),c("p",D,o(e.data.tempTitle),1)],10,C)])))),128))],4)],36)])):f("v-if",!0),s(B).length>0?(r(),i("div",O,[c("h4",$,o(null==(y=e.searchFilter)?void 0:y.customTitles[1]),1),c("section",{class:"person__OrgWrapper",ref:s(J).ref,style:d(s(G).length>s(W)?s(Q):{}),onScroll:l[1]||(l[1]=(...e)=>s(J).onScroll&&s(J).onScroll(...e))},[c("section",{style:d(s(L).style)},[(r(!0),i(n,null,u(s(G),(e=>(r(),i("div",{class:"select-person__multiple-search",key:e.data.key},[c("div",{class:h(["search_item",e.data.disabled?"search_disabled":""]),onClick:t=>V(e.data)},[c("span",T,o(e.data.title)+"("+o(e.data.innerItemsNum)+"人)",1),c("p",A,o(e.data.tempTitle),1)],10,F)])))),128))],4)],36)])):f("v-if",!0)],64)):(r(),v(s(m),{key:1,description:"暂无数据"}))])}}});export{K as default};
|
|
@@ -11,6 +11,7 @@ declare type IWordBook<T> = {
|
|
|
11
11
|
declare type IWordBookChild<T> = {
|
|
12
12
|
user_id_obj: keyof T;
|
|
13
13
|
user_name_obj: keyof T;
|
|
14
|
+
user_expand_keys?: string[];
|
|
14
15
|
};
|
|
15
16
|
declare type ITag = {
|
|
16
17
|
key: IKey;
|
|
@@ -58,9 +59,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
58
59
|
type: BooleanConstructor;
|
|
59
60
|
default: boolean;
|
|
60
61
|
};
|
|
61
|
-
|
|
62
|
-
type:
|
|
63
|
-
default:
|
|
62
|
+
searchFilter: {
|
|
63
|
+
type: PropType<AnyObject>;
|
|
64
|
+
default: () => {};
|
|
64
65
|
};
|
|
65
66
|
treeSetting: {
|
|
66
67
|
type: PropType<ITreeOption>;
|
|
@@ -75,6 +76,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
75
76
|
default: () => Promise<never[]>;
|
|
76
77
|
};
|
|
77
78
|
}, {
|
|
79
|
+
searchFilterBase: {
|
|
80
|
+
isOpen: boolean;
|
|
81
|
+
multiple: boolean;
|
|
82
|
+
customTitles: string[];
|
|
83
|
+
itemHeight: number;
|
|
84
|
+
};
|
|
78
85
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
79
86
|
defaultList: {
|
|
80
87
|
type: PropType<(IKey | ITag)[]>;
|
|
@@ -116,9 +123,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
116
123
|
type: BooleanConstructor;
|
|
117
124
|
default: boolean;
|
|
118
125
|
};
|
|
119
|
-
|
|
120
|
-
type:
|
|
121
|
-
default:
|
|
126
|
+
searchFilter: {
|
|
127
|
+
type: PropType<AnyObject>;
|
|
128
|
+
default: () => {};
|
|
122
129
|
};
|
|
123
130
|
treeSetting: {
|
|
124
131
|
type: PropType<ITreeOption>;
|
|
@@ -167,7 +174,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
167
174
|
allCheckedKeys: IKey[];
|
|
168
175
|
isRemote: import("vue").ComputedRef<boolean>;
|
|
169
176
|
checkStrategyResult: import("vue").ComputedRef<any>;
|
|
170
|
-
|
|
177
|
+
isSearchFilter: import("vue").ComputedRef<boolean>;
|
|
178
|
+
mergeSearchFilter: import("vue").ComputedRef<{
|
|
179
|
+
isOpen: boolean;
|
|
180
|
+
multiple: boolean;
|
|
181
|
+
customTitles: string[];
|
|
182
|
+
itemHeight: number;
|
|
183
|
+
}>;
|
|
184
|
+
wordbookChildExpandkeys: import("vue").ComputedRef<string[]>;
|
|
185
|
+
caculateTagData: import("vue").ComputedRef<any[]>;
|
|
171
186
|
init: () => void;
|
|
172
187
|
getallCheckedKeysWithChild: (item: TreeOption) => void;
|
|
173
188
|
getallCheckedKeysWithParent: (item: TreeOption) => void;
|
|
@@ -183,8 +198,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
183
198
|
setAllCheckedKeys: (tree: TreeOption[]) => void;
|
|
184
199
|
setAllCheckedKeysWithChild: (tree: TreeOption[]) => void;
|
|
185
200
|
setAllCheckedKeysWithParent: (tree: TreeOption[]) => void;
|
|
201
|
+
searchSetting: () => string;
|
|
186
202
|
onSearch: () => Promise<void>;
|
|
187
|
-
onClear: () => void;
|
|
188
203
|
setTreeCheckd: (tree: TreeOption[], checked: boolean) => void;
|
|
189
204
|
setCheckdWithChild: (tree: TreeOption[], checked: boolean) => void;
|
|
190
205
|
setCheckdWithParent: (tree: TreeOption[], checked: boolean) => void;
|
|
@@ -196,6 +211,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
196
211
|
clearAll: () => void;
|
|
197
212
|
closeTag: (tag: ITag) => void;
|
|
198
213
|
notifyCheck: (keys: IKey[]) => void;
|
|
214
|
+
notifySearchClear: () => void;
|
|
199
215
|
getCheckWithLevel: () => {
|
|
200
216
|
[x: string]: any;
|
|
201
217
|
key: IKey;
|
|
@@ -411,6 +427,128 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
411
427
|
treeData: any[];
|
|
412
428
|
checkedKeys: (string | number)[];
|
|
413
429
|
}>;
|
|
430
|
+
SearchOrgAndStaff: import("vue").DefineComponent<{
|
|
431
|
+
treeData: {
|
|
432
|
+
type: PropType<any[]>;
|
|
433
|
+
default: () => never[];
|
|
434
|
+
};
|
|
435
|
+
checkedKeys: {
|
|
436
|
+
type: PropType<(string | number)[]>;
|
|
437
|
+
default: () => never[];
|
|
438
|
+
};
|
|
439
|
+
searchFilter: {
|
|
440
|
+
type: ObjectConstructor;
|
|
441
|
+
default: () => {};
|
|
442
|
+
};
|
|
443
|
+
}, {
|
|
444
|
+
$message: import("naive-ui").MessageApi;
|
|
445
|
+
virtualItemHeight: number;
|
|
446
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
447
|
+
treeData: {
|
|
448
|
+
type: PropType<any[]>;
|
|
449
|
+
default: () => never[];
|
|
450
|
+
};
|
|
451
|
+
checkedKeys: {
|
|
452
|
+
type: PropType<(string | number)[]>;
|
|
453
|
+
default: () => never[];
|
|
454
|
+
};
|
|
455
|
+
searchFilter: {
|
|
456
|
+
type: ObjectConstructor;
|
|
457
|
+
default: () => {};
|
|
458
|
+
};
|
|
459
|
+
}>> & {
|
|
460
|
+
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
461
|
+
onNotifyClear?: ((...args: any[]) => any) | undefined;
|
|
462
|
+
}>>;
|
|
463
|
+
emit: (event: "notifyCheck" | "notifyClear", ...args: any[]) => void;
|
|
464
|
+
moduleHeight: import("vue").ComputedRef<any>;
|
|
465
|
+
showNums: import("vue").ComputedRef<number>;
|
|
466
|
+
staffDataRef: import("vue").ComputedRef<any[]>;
|
|
467
|
+
staffList: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
|
|
468
|
+
staffContainerProps: {
|
|
469
|
+
ref: import("vue").Ref<any>;
|
|
470
|
+
onScroll: () => void;
|
|
471
|
+
style: Partial<CSSStyleDeclaration>;
|
|
472
|
+
};
|
|
473
|
+
staffWrapperProps: import("vue").ComputedRef<{
|
|
474
|
+
style: {
|
|
475
|
+
width: string;
|
|
476
|
+
height: string;
|
|
477
|
+
marginTop: string;
|
|
478
|
+
};
|
|
479
|
+
}>;
|
|
480
|
+
staffContainerStyleWithHeight: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
481
|
+
orgDataRef: import("vue").ComputedRef<any[]>;
|
|
482
|
+
orgList: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
|
|
483
|
+
orgContainerProps: {
|
|
484
|
+
ref: import("vue").Ref<any>;
|
|
485
|
+
onScroll: () => void;
|
|
486
|
+
style: Partial<CSSStyleDeclaration>;
|
|
487
|
+
};
|
|
488
|
+
orgWrapperProps: import("vue").ComputedRef<{
|
|
489
|
+
style: {
|
|
490
|
+
width: string;
|
|
491
|
+
height: string;
|
|
492
|
+
marginTop: string;
|
|
493
|
+
};
|
|
494
|
+
}>;
|
|
495
|
+
orgContainerStyleWithHeight: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
496
|
+
searchCheckKeys: import("vue").Ref<(string | number)[]>;
|
|
497
|
+
showSelectKeys: import("vue").Ref<(string | number)[]>;
|
|
498
|
+
handleClick: (tree: any) => void;
|
|
499
|
+
handleStaffClick: (baseKeys: (string | number)[], currentTree: {
|
|
500
|
+
[key: string]: any;
|
|
501
|
+
key: string | number;
|
|
502
|
+
children: any[];
|
|
503
|
+
parentNode: any;
|
|
504
|
+
}, value: string | number) => false | undefined;
|
|
505
|
+
findParent: (baseKeys: (string | number)[], currentTree: {
|
|
506
|
+
[key: string]: any;
|
|
507
|
+
key: string | number;
|
|
508
|
+
children: any[];
|
|
509
|
+
parentNode: any;
|
|
510
|
+
}) => false | undefined;
|
|
511
|
+
handleOrgClick: (baseKeys: (string | number)[], currentTree: {
|
|
512
|
+
[key: string]: any;
|
|
513
|
+
key: string | number;
|
|
514
|
+
children: any[];
|
|
515
|
+
parentNode: any;
|
|
516
|
+
}, value: string | number) => void;
|
|
517
|
+
handleFindChildren: (treeList: {
|
|
518
|
+
[key: string]: any;
|
|
519
|
+
key: string | number;
|
|
520
|
+
children: any[];
|
|
521
|
+
parentNode: any;
|
|
522
|
+
}[]) => void;
|
|
523
|
+
checkInitTree: (tree: {
|
|
524
|
+
[key: string]: any;
|
|
525
|
+
key: string | number;
|
|
526
|
+
children: any[];
|
|
527
|
+
parentNode: any;
|
|
528
|
+
}, baseKey: string | number) => false | undefined;
|
|
529
|
+
ref: typeof ref;
|
|
530
|
+
NEmpty: any;
|
|
531
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("notifyCheck" | "notifyClear")[], "notifyCheck" | "notifyClear", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
532
|
+
treeData: {
|
|
533
|
+
type: PropType<any[]>;
|
|
534
|
+
default: () => never[];
|
|
535
|
+
};
|
|
536
|
+
checkedKeys: {
|
|
537
|
+
type: PropType<(string | number)[]>;
|
|
538
|
+
default: () => never[];
|
|
539
|
+
};
|
|
540
|
+
searchFilter: {
|
|
541
|
+
type: ObjectConstructor;
|
|
542
|
+
default: () => {};
|
|
543
|
+
};
|
|
544
|
+
}>> & {
|
|
545
|
+
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
546
|
+
onNotifyClear?: ((...args: any[]) => any) | undefined;
|
|
547
|
+
}, {
|
|
548
|
+
searchFilter: Record<string, any>;
|
|
549
|
+
treeData: any[];
|
|
550
|
+
checkedKeys: (string | number)[];
|
|
551
|
+
}>;
|
|
414
552
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("check" | "checkWithLevel")[], "check" | "checkWithLevel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
415
553
|
defaultList: {
|
|
416
554
|
type: PropType<(IKey | ITag)[]>;
|
|
@@ -452,9 +590,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
452
590
|
type: BooleanConstructor;
|
|
453
591
|
default: boolean;
|
|
454
592
|
};
|
|
455
|
-
|
|
456
|
-
type:
|
|
457
|
-
default:
|
|
593
|
+
searchFilter: {
|
|
594
|
+
type: PropType<AnyObject>;
|
|
595
|
+
default: () => {};
|
|
458
596
|
};
|
|
459
597
|
treeSetting: {
|
|
460
598
|
type: PropType<ITreeOption>;
|
|
@@ -482,7 +620,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
482
620
|
showClear: boolean;
|
|
483
621
|
multiple: boolean;
|
|
484
622
|
searchInner: boolean;
|
|
485
|
-
|
|
623
|
+
searchFilter: AnyObject;
|
|
486
624
|
treeSetting: ITreeOption;
|
|
487
625
|
queryLoadChildData: (node: TreeOption) => Promise<AnyObject>;
|
|
488
626
|
queryTreeSearch: (keyWork: string) => Promise<Array<AnyObject>>;
|