cnhis-design-vue 3.1.46-beta.31 → 3.1.46-beta.33
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/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +77 -0
- package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +93 -0
- package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +3 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +3 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +3 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +3 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +3 -0
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +3 -0
- package/es/components/iho-table/src/utils/dist/index.d.ts +44 -0
- package/es/components/index.css +1 -1
- package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +36 -0
- package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +36 -0
- package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +82 -0
- package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +57 -0
- package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +57 -0
- package/es/components/select-person/index.d.ts +45 -13
- package/es/components/select-person/src/SearchOrgAndStaff.vue.d.ts +20 -2
- package/es/components/select-person/src/SearchOrgAndStaff.vue2.js +1 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +45 -13
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/style/index.css +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/shared/utils/tapableLess.d.ts +0 -28
- package/es/shared/utils/tapableLess.js +0 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export const __esModule: true;
|
|
2
|
+
declare const _default: vue_1.DefineComponent<{
|
|
3
|
+
form: {
|
|
4
|
+
type: ObjectConstructor;
|
|
5
|
+
default: () => void;
|
|
6
|
+
};
|
|
7
|
+
item: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
default: () => void;
|
|
10
|
+
};
|
|
11
|
+
isLock: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
}, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, "scaleChange"[], "scaleChange", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
|
|
16
|
+
form: {
|
|
17
|
+
type: ObjectConstructor;
|
|
18
|
+
default: () => void;
|
|
19
|
+
};
|
|
20
|
+
item: {
|
|
21
|
+
type: ObjectConstructor;
|
|
22
|
+
default: () => void;
|
|
23
|
+
};
|
|
24
|
+
isLock: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
}>> & {
|
|
29
|
+
onScaleChange?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
item: Record<string, any>;
|
|
32
|
+
isLock: boolean;
|
|
33
|
+
form: Record<string, any>;
|
|
34
|
+
}>;
|
|
35
|
+
export default _default;
|
|
36
|
+
import vue_1 = require("vue");
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export const __esModule: true;
|
|
2
|
+
declare const _default: vue_1.DefineComponent<{
|
|
3
|
+
form: {
|
|
4
|
+
type: ObjectConstructor;
|
|
5
|
+
default: () => {};
|
|
6
|
+
};
|
|
7
|
+
item: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
default: () => {};
|
|
10
|
+
};
|
|
11
|
+
isLock: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
}, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, "scaleChange"[], "scaleChange", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
|
|
16
|
+
form: {
|
|
17
|
+
type: ObjectConstructor;
|
|
18
|
+
default: () => {};
|
|
19
|
+
};
|
|
20
|
+
item: {
|
|
21
|
+
type: ObjectConstructor;
|
|
22
|
+
default: () => {};
|
|
23
|
+
};
|
|
24
|
+
isLock: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
}>> & {
|
|
29
|
+
onScaleChange?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
item: Record<string, any>;
|
|
32
|
+
isLock: boolean;
|
|
33
|
+
form: Record<string, any>;
|
|
34
|
+
}>;
|
|
35
|
+
export default _default;
|
|
36
|
+
import vue_1 = require("vue");
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export const __esModule: true;
|
|
2
|
+
declare const _default: vue_1.DefineComponent<{
|
|
3
|
+
title: {
|
|
4
|
+
type: (StringConstructor | FunctionConstructor)[];
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
changeSize: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
closable: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
modalWidth: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
modalHeight: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
handleOk: {
|
|
24
|
+
type: FunctionConstructor;
|
|
25
|
+
default: () => {};
|
|
26
|
+
};
|
|
27
|
+
cancel: {
|
|
28
|
+
type: FunctionConstructor;
|
|
29
|
+
default: () => {};
|
|
30
|
+
};
|
|
31
|
+
visible: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
}, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, ("update:visible" | "onClose")[], "onClose" | "update:visible", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
|
|
36
|
+
title: {
|
|
37
|
+
type: (StringConstructor | FunctionConstructor)[];
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
changeSize: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
closable: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
modalWidth: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
modalHeight: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
handleOk: {
|
|
57
|
+
type: FunctionConstructor;
|
|
58
|
+
default: () => {};
|
|
59
|
+
};
|
|
60
|
+
cancel: {
|
|
61
|
+
type: FunctionConstructor;
|
|
62
|
+
default: () => {};
|
|
63
|
+
};
|
|
64
|
+
visible: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
}>> & {
|
|
69
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
70
|
+
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
71
|
+
}, {
|
|
72
|
+
closable: boolean;
|
|
73
|
+
title: string | Function;
|
|
74
|
+
visible: boolean;
|
|
75
|
+
modalWidth: string;
|
|
76
|
+
modalHeight: string;
|
|
77
|
+
handleOk: Function;
|
|
78
|
+
cancel: Function;
|
|
79
|
+
changeSize: boolean;
|
|
80
|
+
}>;
|
|
81
|
+
export default _default;
|
|
82
|
+
import vue_1 = require("vue");
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export const __esModule: true;
|
|
2
|
+
export const SearchMenu: vue_1.DefineComponent<{
|
|
3
|
+
childKey: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
options: {
|
|
8
|
+
type: ArrayConstructor;
|
|
9
|
+
default: () => never[];
|
|
10
|
+
};
|
|
11
|
+
labelKey: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
valueKey: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
currentNode: {
|
|
20
|
+
type: ObjectConstructor;
|
|
21
|
+
};
|
|
22
|
+
cursorNode: {
|
|
23
|
+
type: ObjectConstructor;
|
|
24
|
+
};
|
|
25
|
+
}, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, ("nodeClick" | "changeCursor")[], "nodeClick" | "changeCursor", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
|
|
26
|
+
childKey: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
options: {
|
|
31
|
+
type: ArrayConstructor;
|
|
32
|
+
default: () => never[];
|
|
33
|
+
};
|
|
34
|
+
labelKey: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
valueKey: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
currentNode: {
|
|
43
|
+
type: ObjectConstructor;
|
|
44
|
+
};
|
|
45
|
+
cursorNode: {
|
|
46
|
+
type: ObjectConstructor;
|
|
47
|
+
};
|
|
48
|
+
}>> & {
|
|
49
|
+
onNodeClick?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
onChangeCursor?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
}, {
|
|
52
|
+
options: unknown[];
|
|
53
|
+
valueKey: string;
|
|
54
|
+
childKey: string;
|
|
55
|
+
labelKey: string;
|
|
56
|
+
}>;
|
|
57
|
+
import vue_1 = require("vue");
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export const __esModule: true;
|
|
2
|
+
export const SearchMenu: vue_1.DefineComponent<{
|
|
3
|
+
childKey: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
options: {
|
|
8
|
+
type: ArrayConstructor;
|
|
9
|
+
default: () => never[];
|
|
10
|
+
};
|
|
11
|
+
labelKey: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
valueKey: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
currentNode: {
|
|
20
|
+
type: ObjectConstructor;
|
|
21
|
+
};
|
|
22
|
+
cursorNode: {
|
|
23
|
+
type: ObjectConstructor;
|
|
24
|
+
};
|
|
25
|
+
}, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, ("nodeClick" | "changeCursor")[], "nodeClick" | "changeCursor", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
|
|
26
|
+
childKey: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
options: {
|
|
31
|
+
type: ArrayConstructor;
|
|
32
|
+
default: () => never[];
|
|
33
|
+
};
|
|
34
|
+
labelKey: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
valueKey: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
currentNode: {
|
|
43
|
+
type: ObjectConstructor;
|
|
44
|
+
};
|
|
45
|
+
cursorNode: {
|
|
46
|
+
type: ObjectConstructor;
|
|
47
|
+
};
|
|
48
|
+
}>> & {
|
|
49
|
+
onNodeClick?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
onChangeCursor?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
}, {
|
|
52
|
+
options: unknown[];
|
|
53
|
+
valueKey: string;
|
|
54
|
+
childKey: string;
|
|
55
|
+
labelKey: string;
|
|
56
|
+
}>;
|
|
57
|
+
import vue_1 = require("vue");
|
|
@@ -53,9 +53,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
53
53
|
type: BooleanConstructor;
|
|
54
54
|
default: boolean;
|
|
55
55
|
};
|
|
56
|
-
|
|
57
|
-
type:
|
|
58
|
-
default:
|
|
56
|
+
searchFilter: {
|
|
57
|
+
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
58
|
+
default: () => {};
|
|
59
59
|
};
|
|
60
60
|
treeSetting: {
|
|
61
61
|
type: import("vue").PropType<import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
@@ -72,6 +72,12 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
72
72
|
default: () => Promise<never[]>;
|
|
73
73
|
};
|
|
74
74
|
}, {
|
|
75
|
+
searchFilterBase: {
|
|
76
|
+
isOpen: boolean;
|
|
77
|
+
multiple: boolean;
|
|
78
|
+
customTitles: string[];
|
|
79
|
+
itemHeight: number;
|
|
80
|
+
};
|
|
75
81
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
76
82
|
defaultList: {
|
|
77
83
|
type: import("vue").PropType<((string | number) | {
|
|
@@ -126,9 +132,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
126
132
|
type: BooleanConstructor;
|
|
127
133
|
default: boolean;
|
|
128
134
|
};
|
|
129
|
-
|
|
130
|
-
type:
|
|
131
|
-
default:
|
|
135
|
+
searchFilter: {
|
|
136
|
+
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
137
|
+
default: () => {};
|
|
132
138
|
};
|
|
133
139
|
treeSetting: {
|
|
134
140
|
type: import("vue").PropType<import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
@@ -179,6 +185,14 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
179
185
|
allCheckedKeys: (string | number)[];
|
|
180
186
|
isRemote: import("vue").ComputedRef<boolean>;
|
|
181
187
|
checkStrategyResult: import("vue").ComputedRef<any>;
|
|
188
|
+
mergeSearchFilter: import("vue").ComputedRef<{
|
|
189
|
+
isOpen: boolean;
|
|
190
|
+
multiple: boolean;
|
|
191
|
+
customTitles: string[];
|
|
192
|
+
itemHeight: number;
|
|
193
|
+
}>;
|
|
194
|
+
isSearchFilter: import("vue").ComputedRef<boolean>;
|
|
195
|
+
caculateTagData: import("vue").ComputedRef<any[]>;
|
|
182
196
|
init: () => void;
|
|
183
197
|
getallCheckedKeysWithChild: (item: import("naive-ui").TreeOption) => void;
|
|
184
198
|
getallCheckedKeysWithParent: (item: import("naive-ui").TreeOption) => void;
|
|
@@ -196,7 +210,6 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
196
210
|
setAllCheckedKeysWithParent: (tree: import("naive-ui").TreeOption[]) => void;
|
|
197
211
|
searchSetting: () => string;
|
|
198
212
|
onSearch: () => Promise<void>;
|
|
199
|
-
onClear: () => void;
|
|
200
213
|
setTreeCheckd: (tree: import("naive-ui").TreeOption[], checked: boolean) => void;
|
|
201
214
|
setCheckdWithChild: (tree: import("naive-ui").TreeOption[], checked: boolean) => void;
|
|
202
215
|
setCheckdWithParent: (tree: import("naive-ui").TreeOption[], checked: boolean) => void;
|
|
@@ -220,6 +233,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
220
233
|
name: string;
|
|
221
234
|
}) => void;
|
|
222
235
|
notifyCheck: (keys: (string | number)[]) => void;
|
|
236
|
+
notifySearchClear: () => void;
|
|
223
237
|
getCheckWithLevel: () => {
|
|
224
238
|
[x: string]: any;
|
|
225
239
|
key: string | number;
|
|
@@ -444,8 +458,13 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
444
458
|
type: import("vue").PropType<(string | number)[]>;
|
|
445
459
|
default: () => never[];
|
|
446
460
|
};
|
|
461
|
+
searchFilter: {
|
|
462
|
+
type: ObjectConstructor;
|
|
463
|
+
default: () => {};
|
|
464
|
+
};
|
|
447
465
|
}, {
|
|
448
466
|
$message: import("naive-ui").MessageApi;
|
|
467
|
+
virtualItemHeight: number;
|
|
449
468
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
450
469
|
treeData: {
|
|
451
470
|
type: import("vue").PropType<any[]>;
|
|
@@ -455,10 +474,17 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
455
474
|
type: import("vue").PropType<(string | number)[]>;
|
|
456
475
|
default: () => never[];
|
|
457
476
|
};
|
|
477
|
+
searchFilter: {
|
|
478
|
+
type: ObjectConstructor;
|
|
479
|
+
default: () => {};
|
|
480
|
+
};
|
|
458
481
|
}>> & {
|
|
459
482
|
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
483
|
+
onNotifyClear?: ((...args: any[]) => any) | undefined;
|
|
460
484
|
}>>;
|
|
461
|
-
emit: (event: "notifyCheck", ...args: any[]) => void;
|
|
485
|
+
emit: (event: "notifyCheck" | "notifyClear", ...args: any[]) => void;
|
|
486
|
+
moduleHeight: import("vue").ComputedRef<any>;
|
|
487
|
+
showNums: import("vue").ComputedRef<number>;
|
|
462
488
|
staffDataRef: import("vue").ComputedRef<any[]>;
|
|
463
489
|
staffList: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
|
|
464
490
|
staffContainerProps: {
|
|
@@ -524,7 +550,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
524
550
|
}, baseKey: string | number) => false | undefined;
|
|
525
551
|
ref: typeof import("vue").ref;
|
|
526
552
|
NEmpty: any;
|
|
527
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "notifyCheck"[], "notifyCheck", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
553
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("notifyCheck" | "notifyClear")[], "notifyCheck" | "notifyClear", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
528
554
|
treeData: {
|
|
529
555
|
type: import("vue").PropType<any[]>;
|
|
530
556
|
default: () => never[];
|
|
@@ -533,9 +559,15 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
533
559
|
type: import("vue").PropType<(string | number)[]>;
|
|
534
560
|
default: () => never[];
|
|
535
561
|
};
|
|
562
|
+
searchFilter: {
|
|
563
|
+
type: ObjectConstructor;
|
|
564
|
+
default: () => {};
|
|
565
|
+
};
|
|
536
566
|
}>> & {
|
|
537
567
|
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
568
|
+
onNotifyClear?: ((...args: any[]) => any) | undefined;
|
|
538
569
|
}, {
|
|
570
|
+
searchFilter: Record<string, any>;
|
|
539
571
|
treeData: any[];
|
|
540
572
|
checkedKeys: (string | number)[];
|
|
541
573
|
}>;
|
|
@@ -593,9 +625,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
593
625
|
type: BooleanConstructor;
|
|
594
626
|
default: boolean;
|
|
595
627
|
};
|
|
596
|
-
|
|
597
|
-
type:
|
|
598
|
-
default:
|
|
628
|
+
searchFilter: {
|
|
629
|
+
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
630
|
+
default: () => {};
|
|
599
631
|
};
|
|
600
632
|
treeSetting: {
|
|
601
633
|
type: import("vue").PropType<import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
@@ -638,7 +670,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
638
670
|
showClear: boolean;
|
|
639
671
|
multiple: boolean;
|
|
640
672
|
searchInner: boolean;
|
|
641
|
-
|
|
673
|
+
searchFilter: import("../../../es/shared/types").AnyObject;
|
|
642
674
|
treeSetting: import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
643
675
|
[k: string]: unknown;
|
|
644
676
|
} & import("../../../es/shared/types").AnyObject;
|
|
@@ -15,8 +15,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
type: PropType<IKey[]>;
|
|
16
16
|
default: () => never[];
|
|
17
17
|
};
|
|
18
|
+
searchFilter: {
|
|
19
|
+
type: ObjectConstructor;
|
|
20
|
+
default: () => {};
|
|
21
|
+
};
|
|
18
22
|
}, {
|
|
19
23
|
$message: import("naive-ui").MessageApi;
|
|
24
|
+
virtualItemHeight: number;
|
|
20
25
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
21
26
|
treeData: {
|
|
22
27
|
type: PropType<any[]>;
|
|
@@ -26,10 +31,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
31
|
type: PropType<IKey[]>;
|
|
27
32
|
default: () => never[];
|
|
28
33
|
};
|
|
34
|
+
searchFilter: {
|
|
35
|
+
type: ObjectConstructor;
|
|
36
|
+
default: () => {};
|
|
37
|
+
};
|
|
29
38
|
}>> & {
|
|
30
39
|
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
40
|
+
onNotifyClear?: ((...args: any[]) => any) | undefined;
|
|
31
41
|
}>>;
|
|
32
|
-
emit: (event: "notifyCheck", ...args: any[]) => void;
|
|
42
|
+
emit: (event: "notifyCheck" | "notifyClear", ...args: any[]) => void;
|
|
43
|
+
moduleHeight: import("vue").ComputedRef<any>;
|
|
44
|
+
showNums: import("vue").ComputedRef<number>;
|
|
33
45
|
staffDataRef: import("vue").ComputedRef<any[]>;
|
|
34
46
|
staffList: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
|
|
35
47
|
staffContainerProps: {
|
|
@@ -70,7 +82,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
70
82
|
checkInitTree: (tree: ITreeOption, baseKey: string | number) => false | undefined;
|
|
71
83
|
ref: typeof ref;
|
|
72
84
|
NEmpty: any;
|
|
73
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "notifyCheck"[], "notifyCheck", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
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<{
|
|
74
86
|
treeData: {
|
|
75
87
|
type: PropType<any[]>;
|
|
76
88
|
default: () => never[];
|
|
@@ -79,9 +91,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
79
91
|
type: PropType<IKey[]>;
|
|
80
92
|
default: () => never[];
|
|
81
93
|
};
|
|
94
|
+
searchFilter: {
|
|
95
|
+
type: ObjectConstructor;
|
|
96
|
+
default: () => {};
|
|
97
|
+
};
|
|
82
98
|
}>> & {
|
|
83
99
|
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
100
|
+
onNotifyClear?: ((...args: any[]) => any) | undefined;
|
|
84
101
|
}, {
|
|
102
|
+
searchFilter: Record<string, any>;
|
|
85
103
|
treeData: any[];
|
|
86
104
|
checkedKeys: IKey[];
|
|
87
105
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as t,ref as l,watch as a,openBlock as r,createElementBlock as
|
|
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,createCommentVNode as p,createBlock as f}from"vue";import{useMessage as v,NEmpty as y}from"naive-ui";import{isEqual as m}from"lodash-es";import{useVirtualList as k}from"@vueuse/core";const g={class:"searchOrgAndStaff"},_={key:0,class:"searchOption"},N={class:"search_title"},S=["onClick"],C={class:"title"},b={class:"desc"},D={key:1,class:"SearchOption"},O={class:"search_title"},$=["onClick"],F={class:"title"},T={class:"desc"};var x=e({__name:"SearchOrgAndStaff",props:{treeData:{type:Array,default:()=>[]},checkedKeys:{type:Array,default:()=>[]},searchFilter:{type:Object,default:()=>({})}},emits:["notifyCheck","notifyClear"],setup(e,{emit:x}){var A;const K=e,P=v(),w=t((()=>{var e;return null!=(e=K.searchFilter.itemHeight)?e:300})),E=t((()=>Math.floor(w.value/50))),H=null!=(A=t((()=>K.treeData.filter((e=>!e.children)))))?A:[],{list:W,containerProps:j,wrapperProps:I}=k(H,{itemHeight:50,overscan:E.value}),M=t((()=>({...j.style,height:`${w.value}px`}))),q=t((()=>K.treeData.filter((e=>e.children&&e.children.length>0)))),{list:z,containerProps:B,wrapperProps:G}=k(q,{itemHeight:50,overscan:E.value}),J=t((()=>({...B.style,height:`${w.value}px`}))),L=l(K.checkedKeys),Q=l([]);function R(e){var t;if(L.value.find((t=>t===e.key)))return void P.info(`${e.title}已被选择`);if(e.disabled)return void P.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&&X(t.children);U(e,t,l)}(L.value,e,e.key);break;case"staff":U(L.value,e,e.key)}x("notifyCheck",L.value),(null==K?void 0:K.searchFilter.multiple)||x("notifyClear")}function U(e,t,l){var a;if(!(null==t?void 0:t.parentNode))return L.value=[...e,l],!1;const r=null==(a=t.parentNode)?void 0:a.key;if(e.includes(r))return L.value=e,P.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&&V(r,t.parentNode),!1}}U(e,t.parentNode,l)}function V(e,t){if(!t.parentNode||t.parentNode.children.length>1)return L.value=[...e,t.key],!1;V(e,t.parentNode)}function X(e){e.forEach((e=>{var t;if(L.value.includes(e.key)){const t=L.value.indexOf(e.key);L.value.splice(t,1)}(null==(t=e.children)?void 0:t.length)>0&&X(e.children)}))}function Y(e,t){const l=K.checkedKeys;return!!e&&(l.includes(e.key)?(Q.value.push(t),!1):void Y(e.parentNode,t))}return a((()=>K.treeData),(e=>{e&&e.length>0&&(Q.value=[],e.forEach((e=>{Y(e,e.key)})))}),{deep:!0,immediate:!0}),a((()=>K.checkedKeys),((e,t)=>{m(e,t)||K.treeData.length>0&&(Q.value=[],L.value=e,K.treeData.forEach((e=>{Y(e,e.key)})))}),{immediate:!0}),(t,l)=>{var a,v;return r(),i("div",g,[e.treeData.length>0?(r(),i(n,{key:0},[s(H).length>0?(r(),i("div",_,[c("h4",N,o(null==(a=e.searchFilter)?void 0:a.customTitles[0]),1),c("section",{class:"select-person__multipleWrapper",ref:s(j).ref,style:d(s(W).length>s(E)?s(M):{}),onScroll:l[0]||(l[0]=(...e)=>s(j).onScroll&&s(j).onScroll(...e))},[c("section",{style:d(s(I).style)},[(r(!0),i(n,null,u(s(W),(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=>R(e.data)},[c("span",C,o(e.data.title),1),c("p",b,o(e.data.tempTitle),1)],10,S)])))),128))],4)],36)])):p("v-if",!0),s(q).length>0?(r(),i("div",D,[c("h4",O,o(null==(v=e.searchFilter)?void 0:v.customTitles[1]),1),c("section",{class:"person__OrgWrapper",ref:s(B).ref,style:d(s(z).length>s(E)?s(J):{}),onScroll:l[1]||(l[1]=(...e)=>s(B).onScroll&&s(B).onScroll(...e))},[c("section",{style:d(s(G).style)},[(r(!0),i(n,null,u(s(z),(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=>R(e.data)},[c("span",F,o(e.data.title)+"("+o(e.data.innerItemsNum)+"人)",1),c("p",T,o(e.data.tempTitle),1)],10,$)])))),128))],4)],36)])):p("v-if",!0)],64)):(r(),f(s(y),{key:1,description:"暂无数据"}))])}}});export{x as default};
|
|
@@ -58,9 +58,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
58
58
|
type: BooleanConstructor;
|
|
59
59
|
default: boolean;
|
|
60
60
|
};
|
|
61
|
-
|
|
62
|
-
type:
|
|
63
|
-
default:
|
|
61
|
+
searchFilter: {
|
|
62
|
+
type: PropType<AnyObject>;
|
|
63
|
+
default: () => {};
|
|
64
64
|
};
|
|
65
65
|
treeSetting: {
|
|
66
66
|
type: PropType<ITreeOption>;
|
|
@@ -75,6 +75,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
75
75
|
default: () => Promise<never[]>;
|
|
76
76
|
};
|
|
77
77
|
}, {
|
|
78
|
+
searchFilterBase: {
|
|
79
|
+
isOpen: boolean;
|
|
80
|
+
multiple: boolean;
|
|
81
|
+
customTitles: string[];
|
|
82
|
+
itemHeight: number;
|
|
83
|
+
};
|
|
78
84
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
79
85
|
defaultList: {
|
|
80
86
|
type: PropType<(IKey | ITag)[]>;
|
|
@@ -116,9 +122,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
116
122
|
type: BooleanConstructor;
|
|
117
123
|
default: boolean;
|
|
118
124
|
};
|
|
119
|
-
|
|
120
|
-
type:
|
|
121
|
-
default:
|
|
125
|
+
searchFilter: {
|
|
126
|
+
type: PropType<AnyObject>;
|
|
127
|
+
default: () => {};
|
|
122
128
|
};
|
|
123
129
|
treeSetting: {
|
|
124
130
|
type: PropType<ITreeOption>;
|
|
@@ -167,6 +173,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
167
173
|
allCheckedKeys: IKey[];
|
|
168
174
|
isRemote: import("vue").ComputedRef<boolean>;
|
|
169
175
|
checkStrategyResult: import("vue").ComputedRef<any>;
|
|
176
|
+
mergeSearchFilter: import("vue").ComputedRef<{
|
|
177
|
+
isOpen: boolean;
|
|
178
|
+
multiple: boolean;
|
|
179
|
+
customTitles: string[];
|
|
180
|
+
itemHeight: number;
|
|
181
|
+
}>;
|
|
182
|
+
isSearchFilter: import("vue").ComputedRef<boolean>;
|
|
183
|
+
caculateTagData: import("vue").ComputedRef<any[]>;
|
|
170
184
|
init: () => void;
|
|
171
185
|
getallCheckedKeysWithChild: (item: TreeOption) => void;
|
|
172
186
|
getallCheckedKeysWithParent: (item: TreeOption) => void;
|
|
@@ -184,7 +198,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
184
198
|
setAllCheckedKeysWithParent: (tree: TreeOption[]) => void;
|
|
185
199
|
searchSetting: () => string;
|
|
186
200
|
onSearch: () => Promise<void>;
|
|
187
|
-
onClear: () => void;
|
|
188
201
|
setTreeCheckd: (tree: TreeOption[], checked: boolean) => void;
|
|
189
202
|
setCheckdWithChild: (tree: TreeOption[], checked: boolean) => void;
|
|
190
203
|
setCheckdWithParent: (tree: TreeOption[], checked: boolean) => void;
|
|
@@ -196,6 +209,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
196
209
|
clearAll: () => void;
|
|
197
210
|
closeTag: (tag: ITag) => void;
|
|
198
211
|
notifyCheck: (keys: IKey[]) => void;
|
|
212
|
+
notifySearchClear: () => void;
|
|
199
213
|
getCheckWithLevel: () => {
|
|
200
214
|
[x: string]: any;
|
|
201
215
|
key: IKey;
|
|
@@ -420,8 +434,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
420
434
|
type: PropType<(string | number)[]>;
|
|
421
435
|
default: () => never[];
|
|
422
436
|
};
|
|
437
|
+
searchFilter: {
|
|
438
|
+
type: ObjectConstructor;
|
|
439
|
+
default: () => {};
|
|
440
|
+
};
|
|
423
441
|
}, {
|
|
424
442
|
$message: import("naive-ui").MessageApi;
|
|
443
|
+
virtualItemHeight: number;
|
|
425
444
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
426
445
|
treeData: {
|
|
427
446
|
type: PropType<any[]>;
|
|
@@ -431,10 +450,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
431
450
|
type: PropType<(string | number)[]>;
|
|
432
451
|
default: () => never[];
|
|
433
452
|
};
|
|
453
|
+
searchFilter: {
|
|
454
|
+
type: ObjectConstructor;
|
|
455
|
+
default: () => {};
|
|
456
|
+
};
|
|
434
457
|
}>> & {
|
|
435
458
|
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
459
|
+
onNotifyClear?: ((...args: any[]) => any) | undefined;
|
|
436
460
|
}>>;
|
|
437
|
-
emit: (event: "notifyCheck", ...args: any[]) => void;
|
|
461
|
+
emit: (event: "notifyCheck" | "notifyClear", ...args: any[]) => void;
|
|
462
|
+
moduleHeight: import("vue").ComputedRef<any>;
|
|
463
|
+
showNums: import("vue").ComputedRef<number>;
|
|
438
464
|
staffDataRef: import("vue").ComputedRef<any[]>;
|
|
439
465
|
staffList: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
|
|
440
466
|
staffContainerProps: {
|
|
@@ -500,7 +526,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
500
526
|
}, baseKey: string | number) => false | undefined;
|
|
501
527
|
ref: typeof ref;
|
|
502
528
|
NEmpty: any;
|
|
503
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "notifyCheck"[], "notifyCheck", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
529
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("notifyCheck" | "notifyClear")[], "notifyCheck" | "notifyClear", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
504
530
|
treeData: {
|
|
505
531
|
type: PropType<any[]>;
|
|
506
532
|
default: () => never[];
|
|
@@ -509,9 +535,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
509
535
|
type: PropType<(string | number)[]>;
|
|
510
536
|
default: () => never[];
|
|
511
537
|
};
|
|
538
|
+
searchFilter: {
|
|
539
|
+
type: ObjectConstructor;
|
|
540
|
+
default: () => {};
|
|
541
|
+
};
|
|
512
542
|
}>> & {
|
|
513
543
|
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
544
|
+
onNotifyClear?: ((...args: any[]) => any) | undefined;
|
|
514
545
|
}, {
|
|
546
|
+
searchFilter: Record<string, any>;
|
|
515
547
|
treeData: any[];
|
|
516
548
|
checkedKeys: (string | number)[];
|
|
517
549
|
}>;
|
|
@@ -556,9 +588,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
556
588
|
type: BooleanConstructor;
|
|
557
589
|
default: boolean;
|
|
558
590
|
};
|
|
559
|
-
|
|
560
|
-
type:
|
|
561
|
-
default:
|
|
591
|
+
searchFilter: {
|
|
592
|
+
type: PropType<AnyObject>;
|
|
593
|
+
default: () => {};
|
|
562
594
|
};
|
|
563
595
|
treeSetting: {
|
|
564
596
|
type: PropType<ITreeOption>;
|
|
@@ -586,7 +618,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
586
618
|
showClear: boolean;
|
|
587
619
|
multiple: boolean;
|
|
588
620
|
searchInner: boolean;
|
|
589
|
-
|
|
621
|
+
searchFilter: AnyObject;
|
|
590
622
|
treeSetting: ITreeOption;
|
|
591
623
|
queryLoadChildData: (node: TreeOption) => Promise<AnyObject>;
|
|
592
624
|
queryTreeSearch: (keyWork: string) => Promise<Array<AnyObject>>;
|