cnhis-design-vue 3.1.42-release.5 → 3.1.42-release.7
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/button-print/src/utils/print.js +1 -1
- package/es/components/classification/index.d.ts +12 -12
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +9 -9
- package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +9 -9
- package/es/components/classification/src/components/table-modal/index.vue.js +1 -1
- package/es/components/classification/src/index.vue.d.ts +12 -12
- package/es/components/classification/src/index.vue.js +1 -1
- package/es/components/fabric-chart/index.d.ts +2 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
- package/es/components/form-config/index.d.ts +22 -17
- package/es/components/form-config/src/FormConfig.vue.d.ts +22 -17
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +6 -6
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +12 -9
- package/es/components/form-config/src/constants/index.d.ts +8 -1
- package/es/components/form-config/src/constants/index.js +1 -1
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
- package/es/components/form-render/index.d.ts +6 -6
- package/es/components/form-render/src/FormRender.vue.d.ts +6 -6
- package/es/components/form-render/src/FormRender.vue.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +6 -6
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/searchCascade.d.ts +18 -0
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -0
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
- 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/types/fieldItem.d.ts +5 -1
- package/es/components/form-render/src/types/index.d.ts +1 -1
- package/es/components/iho-table/index.d.ts +2 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +2 -0
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +3 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +48 -0
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.js +1 -0
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rowClickPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rowDragPlugin/index.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 +8 -0
- package/es/components/iho-table/src/types/pluginType.d.ts +7 -2
- package/es/components/iho-table/src/utils/index.d.ts +1 -0
- 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 +15 -15
- package/es/components/info-header/src/InfoHeader.vue.d.ts +15 -15
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +3 -3
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -3
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +9 -9
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +6 -6
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +1 -1
- package/es/components/search-cascader/src/constants/index.d.ts +1 -1
- package/es/components/select-label/index.d.ts +1 -1
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
- package/es/components/select-person/index.d.ts +183 -2
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +131 -0
- package/es/components/select-person/src/SearchMultiple.vue.js +1 -0
- package/es/components/select-person/src/SearchMultiple.vue2.js +1 -0
- package/es/components/select-person/src/SelectPerson.vue.d.ts +176 -3
- package/es/components/select-person/src/SelectPerson.vue2.js +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 +8 -7
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +8 -7
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +3 -3
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +4 -4
- package/es/env.d.ts +25 -25
- package/es/shared/package.json.js +1 -0
- package/es/shared/utils/index.js +1 -1
- package/package.json +2 -2
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/tapable/index.d.ts +0 -139
- /package/es/components/{bpmn-workflow/src/BpmnWorkflow.d.ts → iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.d.ts} +0 -0
|
@@ -49,6 +49,12 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
49
49
|
type: BooleanConstructor;
|
|
50
50
|
default: boolean;
|
|
51
51
|
};
|
|
52
|
+
treeSetting: {
|
|
53
|
+
type: import("vue").PropType<import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
54
|
+
[k: string]: unknown;
|
|
55
|
+
} & import("../../../es/shared/types").AnyObject>;
|
|
56
|
+
default: () => {};
|
|
57
|
+
};
|
|
52
58
|
queryLoadChildData: {
|
|
53
59
|
type: import("vue").PropType<(node: import("naive-ui").TreeOption) => Promise<import("../../../es/shared/types").AnyObject>>;
|
|
54
60
|
default: undefined;
|
|
@@ -108,6 +114,12 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
108
114
|
type: BooleanConstructor;
|
|
109
115
|
default: boolean;
|
|
110
116
|
};
|
|
117
|
+
treeSetting: {
|
|
118
|
+
type: import("vue").PropType<import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
119
|
+
[k: string]: unknown;
|
|
120
|
+
} & import("../../../es/shared/types").AnyObject>;
|
|
121
|
+
default: () => {};
|
|
122
|
+
};
|
|
111
123
|
queryLoadChildData: {
|
|
112
124
|
type: import("vue").PropType<(node: import("naive-ui").TreeOption) => Promise<import("../../../es/shared/types").AnyObject>>;
|
|
113
125
|
default: undefined;
|
|
@@ -118,8 +130,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
118
130
|
};
|
|
119
131
|
}>> & {
|
|
120
132
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
133
|
+
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
|
121
134
|
}>>;
|
|
122
|
-
emit: (event: "check", ...args: any[]) => void;
|
|
135
|
+
emit: (event: "check" | "checkWithLevel", ...args: any[]) => void;
|
|
123
136
|
keyword: import("vue").Ref<string>;
|
|
124
137
|
checkedAll: import("vue").Ref<boolean>;
|
|
125
138
|
checkedKeys: import("vue").Ref<(string | number)[]>;
|
|
@@ -140,20 +153,36 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
140
153
|
key: string | number;
|
|
141
154
|
name: string;
|
|
142
155
|
}[]>;
|
|
156
|
+
initTagData: import("vue").Ref<{
|
|
157
|
+
[x: string]: any;
|
|
158
|
+
key: string | number;
|
|
159
|
+
name: string;
|
|
160
|
+
}[]>;
|
|
161
|
+
isSearch: import("vue").Ref<boolean>;
|
|
143
162
|
temp: import("naive-ui").TreeOption[];
|
|
144
163
|
allCheckedKeys: (string | number)[];
|
|
145
164
|
isRemote: import("vue").ComputedRef<boolean>;
|
|
165
|
+
checkStrategyResult: import("vue").ComputedRef<any>;
|
|
146
166
|
init: () => void;
|
|
167
|
+
getallCheckedKeysWithChild: (item: import("naive-ui").TreeOption) => void;
|
|
168
|
+
getallCheckedKeysWithParent: (item: import("naive-ui").TreeOption) => void;
|
|
147
169
|
queryLoadChildNode: (node: import("naive-ui").TreeOption) => Promise<import("../../../es/shared/types").AnyObject>;
|
|
148
170
|
setDisabled: (data: import("naive-ui").TreeOption) => void;
|
|
149
171
|
renderLabel: ({ option }: {
|
|
150
172
|
option: import("naive-ui").TreeOption;
|
|
151
173
|
}) => JSX.Element;
|
|
152
174
|
getLabelName: (option: import("naive-ui").TreeOption) => unknown;
|
|
175
|
+
transformData: (trees: import("naive-ui").TreeOption[]) => import("naive-ui").TreeOption[];
|
|
176
|
+
calculateRootItems: (trees: import("naive-ui").TreeOption[], items: import("naive-ui").TreeOption[]) => import("naive-ui").TreeOption[];
|
|
153
177
|
transformParentNodeName: (trees: import("naive-ui").TreeOption[], temp: any) => import("naive-ui").TreeOption[];
|
|
154
178
|
setAllCheckedKeys: (tree: import("naive-ui").TreeOption[]) => void;
|
|
179
|
+
setAllCheckedKeysWithChild: (tree: import("naive-ui").TreeOption[]) => void;
|
|
180
|
+
setAllCheckedKeysWithParent: (tree: import("naive-ui").TreeOption[]) => void;
|
|
155
181
|
onSearch: () => Promise<void>;
|
|
182
|
+
onClear: () => void;
|
|
156
183
|
setTreeCheckd: (tree: import("naive-ui").TreeOption[], checked: boolean) => void;
|
|
184
|
+
setCheckdWithChild: (tree: import("naive-ui").TreeOption[], checked: boolean) => void;
|
|
185
|
+
setCheckdWithParent: (tree: import("naive-ui").TreeOption[], checked: boolean) => void;
|
|
157
186
|
checkedAllChange: (checked: boolean) => void;
|
|
158
187
|
uniq: (arr: {
|
|
159
188
|
[key: string]: any;
|
|
@@ -173,6 +202,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
173
202
|
key: string | number;
|
|
174
203
|
name: string;
|
|
175
204
|
}) => void;
|
|
205
|
+
notifyCheck: (keys: (string | number)[]) => void;
|
|
176
206
|
NButton: any;
|
|
177
207
|
NInput: any;
|
|
178
208
|
NInputGroup: import("vue").DefineComponent<{
|
|
@@ -242,7 +272,148 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
242
272
|
readonly privateShow: boolean;
|
|
243
273
|
}>;
|
|
244
274
|
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<{}>>, {}>;
|
|
245
|
-
|
|
275
|
+
SearchMultiple: import("vue").DefineComponent<{
|
|
276
|
+
treeData: {
|
|
277
|
+
type: import("vue").PropType<any[]>;
|
|
278
|
+
default: () => never[];
|
|
279
|
+
};
|
|
280
|
+
checkedKeys: {
|
|
281
|
+
type: import("vue").PropType<(string | number)[]>;
|
|
282
|
+
default: () => never[];
|
|
283
|
+
};
|
|
284
|
+
}, {
|
|
285
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
286
|
+
treeData: {
|
|
287
|
+
type: import("vue").PropType<any[]>;
|
|
288
|
+
default: () => never[];
|
|
289
|
+
};
|
|
290
|
+
checkedKeys: {
|
|
291
|
+
type: import("vue").PropType<(string | number)[]>;
|
|
292
|
+
default: () => never[];
|
|
293
|
+
};
|
|
294
|
+
}>> & {
|
|
295
|
+
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
296
|
+
}>>;
|
|
297
|
+
emit: (event: "notifyCheck", ...args: any[]) => void;
|
|
298
|
+
optionsRef: import("vue").ComputedRef<any[]>;
|
|
299
|
+
list: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
|
|
300
|
+
containerProps: {
|
|
301
|
+
ref: import("vue").Ref<any>;
|
|
302
|
+
onScroll: () => void;
|
|
303
|
+
style: Partial<CSSStyleDeclaration>;
|
|
304
|
+
};
|
|
305
|
+
wrapperProps: import("vue").ComputedRef<{
|
|
306
|
+
style: {
|
|
307
|
+
width: string;
|
|
308
|
+
height: string;
|
|
309
|
+
marginTop: string;
|
|
310
|
+
};
|
|
311
|
+
}>;
|
|
312
|
+
containerStyleWithHeight: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
313
|
+
searchCheckKeys: import("vue").Ref<(string | number)[]>;
|
|
314
|
+
showSelectKeys: import("vue").Ref<(string | number)[]>;
|
|
315
|
+
checkedChange: (checkList: (string | number)[], meta: {
|
|
316
|
+
actionType: "check" | "uncheck";
|
|
317
|
+
value: string | number;
|
|
318
|
+
}) => void;
|
|
319
|
+
handleCheckKey: (baseKeys: (string | number)[], currentTree: {
|
|
320
|
+
[key: string]: any;
|
|
321
|
+
key: string | number;
|
|
322
|
+
children: any[];
|
|
323
|
+
parentNode: any;
|
|
324
|
+
} | null, value: string | number) => false | undefined;
|
|
325
|
+
findParent: (baseKeys: (string | number)[], currentTree: {
|
|
326
|
+
[key: string]: any;
|
|
327
|
+
key: string | number;
|
|
328
|
+
children: any[];
|
|
329
|
+
parentNode: any;
|
|
330
|
+
}) => false | undefined;
|
|
331
|
+
handleUnCheckKey: (baseKeys: (string | number)[], currentTree: {
|
|
332
|
+
[key: string]: any;
|
|
333
|
+
key: string | number;
|
|
334
|
+
children: any[];
|
|
335
|
+
parentNode: any;
|
|
336
|
+
}, value: string | number) => false | undefined;
|
|
337
|
+
findChild: (baseKeys: (string | number)[], children: {
|
|
338
|
+
[key: string]: any;
|
|
339
|
+
key: string | number;
|
|
340
|
+
children: any[];
|
|
341
|
+
parentNode: any;
|
|
342
|
+
}[], value: string | number) => false | undefined;
|
|
343
|
+
checkInitTree: (tree: {
|
|
344
|
+
[key: string]: any;
|
|
345
|
+
key: string | number;
|
|
346
|
+
children: any[];
|
|
347
|
+
parentNode: any;
|
|
348
|
+
}, baseKey: string | number) => false | undefined;
|
|
349
|
+
ref: typeof import("vue").ref;
|
|
350
|
+
NCheckboxGroup: import("vue").DefineComponent<{
|
|
351
|
+
readonly min: NumberConstructor;
|
|
352
|
+
readonly max: NumberConstructor;
|
|
353
|
+
readonly size: import("vue").PropType<"small" | "medium" | "large">;
|
|
354
|
+
readonly value: import("vue").PropType<(string | number)[] | null>;
|
|
355
|
+
readonly defaultValue: {
|
|
356
|
+
readonly type: import("vue").PropType<(string | number)[] | null>;
|
|
357
|
+
readonly default: null;
|
|
358
|
+
};
|
|
359
|
+
readonly disabled: {
|
|
360
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
361
|
+
readonly default: undefined;
|
|
362
|
+
};
|
|
363
|
+
readonly 'onUpdate:value': import("vue").PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
364
|
+
actionType: "check" | "uncheck";
|
|
365
|
+
value: string | number;
|
|
366
|
+
}) => void>>;
|
|
367
|
+
readonly onUpdateValue: import("vue").PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
368
|
+
actionType: "check" | "uncheck";
|
|
369
|
+
value: string | number;
|
|
370
|
+
}) => void>>;
|
|
371
|
+
readonly onChange: import("vue").PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[]) => void> | undefined>;
|
|
372
|
+
}, {
|
|
373
|
+
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
374
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
375
|
+
readonly min: NumberConstructor;
|
|
376
|
+
readonly max: NumberConstructor;
|
|
377
|
+
readonly size: import("vue").PropType<"small" | "medium" | "large">;
|
|
378
|
+
readonly value: import("vue").PropType<(string | number)[] | null>;
|
|
379
|
+
readonly defaultValue: {
|
|
380
|
+
readonly type: import("vue").PropType<(string | number)[] | null>;
|
|
381
|
+
readonly default: null;
|
|
382
|
+
};
|
|
383
|
+
readonly disabled: {
|
|
384
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
385
|
+
readonly default: undefined;
|
|
386
|
+
};
|
|
387
|
+
readonly 'onUpdate:value': import("vue").PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
388
|
+
actionType: "check" | "uncheck";
|
|
389
|
+
value: string | number;
|
|
390
|
+
}) => void>>;
|
|
391
|
+
readonly onUpdateValue: import("vue").PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
392
|
+
actionType: "check" | "uncheck";
|
|
393
|
+
value: string | number;
|
|
394
|
+
}) => void>>;
|
|
395
|
+
readonly onChange: import("vue").PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[]) => void> | undefined>;
|
|
396
|
+
}>>, {
|
|
397
|
+
readonly disabled: boolean | undefined;
|
|
398
|
+
readonly defaultValue: (string | number)[] | null;
|
|
399
|
+
}>;
|
|
400
|
+
NCheckbox: any;
|
|
401
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "notifyCheck"[], "notifyCheck", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
402
|
+
treeData: {
|
|
403
|
+
type: import("vue").PropType<any[]>;
|
|
404
|
+
default: () => never[];
|
|
405
|
+
};
|
|
406
|
+
checkedKeys: {
|
|
407
|
+
type: import("vue").PropType<(string | number)[]>;
|
|
408
|
+
default: () => never[];
|
|
409
|
+
};
|
|
410
|
+
}>> & {
|
|
411
|
+
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
412
|
+
}, {
|
|
413
|
+
treeData: any[];
|
|
414
|
+
checkedKeys: (string | number)[];
|
|
415
|
+
}>;
|
|
416
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("check" | "checkWithLevel")[], "check" | "checkWithLevel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
246
417
|
defaultList: {
|
|
247
418
|
type: import("vue").PropType<((string | number) | {
|
|
248
419
|
[key: string]: any;
|
|
@@ -292,6 +463,12 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
292
463
|
type: BooleanConstructor;
|
|
293
464
|
default: boolean;
|
|
294
465
|
};
|
|
466
|
+
treeSetting: {
|
|
467
|
+
type: import("vue").PropType<import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
468
|
+
[k: string]: unknown;
|
|
469
|
+
} & import("../../../es/shared/types").AnyObject>;
|
|
470
|
+
default: () => {};
|
|
471
|
+
};
|
|
295
472
|
queryLoadChildData: {
|
|
296
473
|
type: import("vue").PropType<(node: import("naive-ui").TreeOption) => Promise<import("../../../es/shared/types").AnyObject>>;
|
|
297
474
|
default: undefined;
|
|
@@ -302,6 +479,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
302
479
|
};
|
|
303
480
|
}>> & {
|
|
304
481
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
482
|
+
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
|
305
483
|
}, {
|
|
306
484
|
data: (import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
307
485
|
[k: string]: unknown;
|
|
@@ -325,6 +503,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
325
503
|
showCount: boolean;
|
|
326
504
|
showClear: boolean;
|
|
327
505
|
multiple: boolean;
|
|
506
|
+
treeSetting: import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
507
|
+
[k: string]: unknown;
|
|
508
|
+
} & import("../../../es/shared/types").AnyObject;
|
|
328
509
|
queryLoadChildData: (node: import("naive-ui").TreeOption) => Promise<import("../../../es/shared/types").AnyObject>;
|
|
329
510
|
queryTreeSearch: (keyWork: string) => Promise<import("../../../es/shared/types").AnyObject[]>;
|
|
330
511
|
}>>;
|
|
@@ -0,0 +1,131 @@
|
|
|
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
|
+
}, {
|
|
19
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
treeData: {
|
|
21
|
+
type: PropType<any[]>;
|
|
22
|
+
default: () => never[];
|
|
23
|
+
};
|
|
24
|
+
checkedKeys: {
|
|
25
|
+
type: PropType<IKey[]>;
|
|
26
|
+
default: () => never[];
|
|
27
|
+
};
|
|
28
|
+
}>> & {
|
|
29
|
+
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
}>>;
|
|
31
|
+
emit: (event: "notifyCheck", ...args: any[]) => void;
|
|
32
|
+
optionsRef: import("vue").ComputedRef<any[]>;
|
|
33
|
+
list: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
|
|
34
|
+
containerProps: {
|
|
35
|
+
ref: import("vue").Ref<any>;
|
|
36
|
+
onScroll: () => void;
|
|
37
|
+
style: Partial<CSSStyleDeclaration>;
|
|
38
|
+
};
|
|
39
|
+
wrapperProps: import("vue").ComputedRef<{
|
|
40
|
+
style: {
|
|
41
|
+
width: string;
|
|
42
|
+
height: string;
|
|
43
|
+
marginTop: string;
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
containerStyleWithHeight: import("vue").ComputedRef<CSSProperties>;
|
|
47
|
+
searchCheckKeys: import("vue").Ref<IKey[]>;
|
|
48
|
+
showSelectKeys: import("vue").Ref<(string | number)[]>;
|
|
49
|
+
checkedChange: (checkList: (string | number)[], meta: {
|
|
50
|
+
actionType: 'check' | 'uncheck';
|
|
51
|
+
value: string | number;
|
|
52
|
+
}) => void;
|
|
53
|
+
handleCheckKey: (baseKeys: (string | number)[], currentTree: ITreeOption | null, value: string | number) => false | undefined;
|
|
54
|
+
findParent: (baseKeys: (string | number)[], currentTree: ITreeOption) => false | undefined;
|
|
55
|
+
handleUnCheckKey: (baseKeys: (string | number)[], currentTree: ITreeOption, value: string | number) => false | undefined;
|
|
56
|
+
findChild: (baseKeys: (string | number)[], children: ITreeOption[], value: string | number) => false | undefined;
|
|
57
|
+
checkInitTree: (tree: ITreeOption, baseKey: string | number) => false | undefined;
|
|
58
|
+
ref: typeof ref;
|
|
59
|
+
NCheckboxGroup: import("vue").DefineComponent<{
|
|
60
|
+
readonly min: NumberConstructor;
|
|
61
|
+
readonly max: NumberConstructor;
|
|
62
|
+
readonly size: PropType<"small" | "medium" | "large">;
|
|
63
|
+
readonly value: PropType<(string | number)[] | null>;
|
|
64
|
+
readonly defaultValue: {
|
|
65
|
+
readonly type: PropType<(string | number)[] | null>;
|
|
66
|
+
readonly default: null;
|
|
67
|
+
};
|
|
68
|
+
readonly disabled: {
|
|
69
|
+
readonly type: PropType<boolean | undefined>;
|
|
70
|
+
readonly default: undefined;
|
|
71
|
+
};
|
|
72
|
+
readonly 'onUpdate:value': PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
73
|
+
actionType: "check" | "uncheck";
|
|
74
|
+
value: string | number;
|
|
75
|
+
}) => void>>;
|
|
76
|
+
readonly onUpdateValue: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
77
|
+
actionType: "check" | "uncheck";
|
|
78
|
+
value: string | number;
|
|
79
|
+
}) => void>>;
|
|
80
|
+
readonly onChange: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[]) => void> | undefined>;
|
|
81
|
+
}, {
|
|
82
|
+
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
83
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
84
|
+
readonly min: NumberConstructor;
|
|
85
|
+
readonly max: NumberConstructor;
|
|
86
|
+
readonly size: PropType<"small" | "medium" | "large">;
|
|
87
|
+
readonly value: PropType<(string | number)[] | null>;
|
|
88
|
+
readonly defaultValue: {
|
|
89
|
+
readonly type: PropType<(string | number)[] | null>;
|
|
90
|
+
readonly default: null;
|
|
91
|
+
};
|
|
92
|
+
readonly disabled: {
|
|
93
|
+
readonly type: PropType<boolean | undefined>;
|
|
94
|
+
readonly default: undefined;
|
|
95
|
+
};
|
|
96
|
+
readonly 'onUpdate:value': PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
97
|
+
actionType: "check" | "uncheck";
|
|
98
|
+
/**
|
|
99
|
+
* 取消勾选树节点
|
|
100
|
+
* baseKeys:基准值
|
|
101
|
+
* currentTree:当前树节点
|
|
102
|
+
* value:树节点的key值
|
|
103
|
+
*/
|
|
104
|
+
value: string | number;
|
|
105
|
+
}) => void>>;
|
|
106
|
+
readonly onUpdateValue: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
107
|
+
actionType: "check" | "uncheck";
|
|
108
|
+
value: string | number;
|
|
109
|
+
}) => void>>;
|
|
110
|
+
readonly onChange: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[]) => void> | undefined>;
|
|
111
|
+
}>>, {
|
|
112
|
+
readonly disabled: boolean | undefined;
|
|
113
|
+
readonly defaultValue: (string | number)[] | null;
|
|
114
|
+
}>;
|
|
115
|
+
NCheckbox: any;
|
|
116
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "notifyCheck"[], "notifyCheck", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
117
|
+
treeData: {
|
|
118
|
+
type: PropType<any[]>;
|
|
119
|
+
default: () => never[];
|
|
120
|
+
};
|
|
121
|
+
checkedKeys: {
|
|
122
|
+
type: PropType<IKey[]>;
|
|
123
|
+
default: () => never[];
|
|
124
|
+
};
|
|
125
|
+
}>> & {
|
|
126
|
+
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
127
|
+
}, {
|
|
128
|
+
treeData: any[];
|
|
129
|
+
checkedKeys: IKey[];
|
|
130
|
+
}>;
|
|
131
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./SearchMultiple.vue2.js";import r from"../../../_virtual/plugin-vue_export-helper.js";var l=r(e,[["__file","SearchMultiple.vue"]]);export{l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,computed as t,ref as a,watch as r,openBlock as l,createBlock as n,unref as i,withCtx as o,createElementVNode as u,normalizeStyle as c,createElementBlock as d,Fragment as s,renderList as p,createVNode as v}from"vue";import{NCheckboxGroup as f,NCheckbox as y}from"naive-ui";import{isEqual as h}from"lodash-es";import{useVirtualList as k}from"@vueuse/core";var m=e({__name:"SearchMultiple",props:{treeData:{type:Array,default:()=>[]},checkedKeys:{type:Array,default:()=>[]}},emits:["notifyCheck"],setup(e,{emit:m}){const N=e,_=t((()=>N.treeData)),{list:b,containerProps:g,wrapperProps:D}=k(_,{itemHeight:30,overscan:5}),A=t((()=>({...g.style,height:"308px"}))),K=a(N.checkedKeys),S=a([]);function x(e,t){const{actionType:a,value:r}=t,l=N.treeData.find((e=>e.key===r));if(l){switch(a){case"check":w(K.value.filter((e=>e!==r)),l,r);break;case"uncheck":E(K.value,l,r)}m("notifyCheck",K.value)}}function w(e,t,a){var r;if(!(null==t?void 0:t.parentNode))return K.value=[...e,a],!1;const l=null==(r=t.parentNode)?void 0:r.key;if(e.includes(l))return K.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)),l=e.filter((e=>!a.includes(e)));return r&&C(l,t.parentNode),!1}}w(e,t.parentNode,a)}function C(e,t){if(!t.parentNode||t.parentNode.children.length>1)return K.value=[...e,t.key],!1;C(e,t.parentNode)}function E(e,t,a){var r,l;if(e.includes(a)){const t=e.filter((e=>e!==a));return K.value=t,!1}if(!(null==t?void 0:t.parentNode))return K.value=e,!1;const n=null==(r=t.parentNode)?void 0:r.key,i=e.indexOf(n);if(i>-1){const r=null==(l=t.parentNode)?void 0:l.children;return e.splice(i,1),P(e,r,a),!1}E(e,t.parentNode,a)}function P(e,t,a){if(!Array.isArray(t))return K.value=e,!1;if(t.length>1){const r=t.filter((e=>e.key!==a)).map((e=>e.key));return K.value=[...e,...r],!1}P(e,t[0].children,a)}function H(e,t){const a=N.checkedKeys;return!!e&&(a.includes(e.key)?(S.value.push(t),!1):void H(e.parentNode,t))}return r((()=>N.treeData),(e=>{e&&e.length>0&&(S.value=[],e.forEach((e=>{H(e,e.key)})))}),{deep:!0,immediate:!0}),r((()=>N.checkedKeys),((e,t)=>{h(e,t)||N.treeData.length>0&&(S.value=[],K.value=e,N.treeData.forEach((e=>{H(e,e.key)})))}),{immediate:!0}),(e,t)=>(l(),n(i(f),{value:S.value,"onUpdate:value":[t[1]||(t[1]=e=>S.value=e),x]},{default:o((()=>[u("section",{class:"select-person__multipleWrapper",ref:i(g).ref,style:c(i(A)),onScroll:t[0]||(t[0]=(...e)=>i(g).onScroll&&i(g).onScroll(...e))},[u("section",{style:c(i(D).style)},[(l(!0),d(s,null,p(i(b),(e=>(l(),d("div",{class:"select-person__multiple-search",key:e.data.key},[v(i(y),{value:e.data.key,label:e.data.title,disabled:e.data.disabled},null,8,["value","label","disabled"])])))),128))],4)],36)])),_:1},8,["value"]))}});export{m as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { ref, PropType } from 'vue';
|
|
2
2
|
import { type TreeOption } from 'naive-ui';
|
|
3
3
|
import { AnyObject } from '../../../../es/shared/types';
|
|
4
4
|
declare type IKey = string | number;
|
|
@@ -54,6 +54,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
54
|
type: BooleanConstructor;
|
|
55
55
|
default: boolean;
|
|
56
56
|
};
|
|
57
|
+
treeSetting: {
|
|
58
|
+
type: PropType<ITreeOption>;
|
|
59
|
+
default: () => {};
|
|
60
|
+
};
|
|
57
61
|
queryLoadChildData: {
|
|
58
62
|
type: PropType<(node: TreeOption) => Promise<AnyObject>>;
|
|
59
63
|
default: undefined;
|
|
@@ -100,6 +104,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
100
104
|
type: BooleanConstructor;
|
|
101
105
|
default: boolean;
|
|
102
106
|
};
|
|
107
|
+
treeSetting: {
|
|
108
|
+
type: PropType<ITreeOption>;
|
|
109
|
+
default: () => {};
|
|
110
|
+
};
|
|
103
111
|
queryLoadChildData: {
|
|
104
112
|
type: PropType<(node: TreeOption) => Promise<AnyObject>>;
|
|
105
113
|
default: undefined;
|
|
@@ -110,8 +118,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
110
118
|
};
|
|
111
119
|
}>> & {
|
|
112
120
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
121
|
+
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
|
113
122
|
}>>;
|
|
114
|
-
emit: (event: "check", ...args: any[]) => void;
|
|
123
|
+
emit: (event: "check" | "checkWithLevel", ...args: any[]) => void;
|
|
115
124
|
keyword: import("vue").Ref<string>;
|
|
116
125
|
checkedAll: import("vue").Ref<boolean>;
|
|
117
126
|
checkedKeys: import("vue").Ref<IKey[]>;
|
|
@@ -132,20 +141,36 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
132
141
|
key: IKey;
|
|
133
142
|
name: string;
|
|
134
143
|
}[]>;
|
|
144
|
+
initTagData: import("vue").Ref<{
|
|
145
|
+
[x: string]: any;
|
|
146
|
+
key: IKey;
|
|
147
|
+
name: string;
|
|
148
|
+
}[]>;
|
|
149
|
+
isSearch: import("vue").Ref<boolean>;
|
|
135
150
|
temp: TreeOption[];
|
|
136
151
|
allCheckedKeys: IKey[];
|
|
137
152
|
isRemote: import("vue").ComputedRef<boolean>;
|
|
153
|
+
checkStrategyResult: import("vue").ComputedRef<any>;
|
|
138
154
|
init: () => void;
|
|
155
|
+
getallCheckedKeysWithChild: (item: TreeOption) => void;
|
|
156
|
+
getallCheckedKeysWithParent: (item: TreeOption) => void;
|
|
139
157
|
queryLoadChildNode: (node: TreeOption) => Promise<AnyObject>;
|
|
140
158
|
setDisabled: (data: TreeOption) => void;
|
|
141
159
|
renderLabel: ({ option }: {
|
|
142
160
|
option: TreeOption;
|
|
143
161
|
}) => JSX.Element;
|
|
144
162
|
getLabelName: (option: TreeOption) => unknown;
|
|
163
|
+
transformData: (trees: TreeOption[]) => TreeOption[];
|
|
164
|
+
calculateRootItems: (trees: TreeOption[], items: TreeOption[]) => TreeOption[];
|
|
145
165
|
transformParentNodeName: (trees: TreeOption[], temp: any) => TreeOption[];
|
|
146
166
|
setAllCheckedKeys: (tree: TreeOption[]) => void;
|
|
167
|
+
setAllCheckedKeysWithChild: (tree: TreeOption[]) => void;
|
|
168
|
+
setAllCheckedKeysWithParent: (tree: TreeOption[]) => void;
|
|
147
169
|
onSearch: () => Promise<void>;
|
|
170
|
+
onClear: () => void;
|
|
148
171
|
setTreeCheckd: (tree: TreeOption[], checked: boolean) => void;
|
|
172
|
+
setCheckdWithChild: (tree: TreeOption[], checked: boolean) => void;
|
|
173
|
+
setCheckdWithParent: (tree: TreeOption[], checked: boolean) => void;
|
|
149
174
|
checkedAllChange: (checked: boolean) => void;
|
|
150
175
|
uniq: (arr: ITag[]) => ITag[];
|
|
151
176
|
setTagData: (tree: TreeOption[]) => void;
|
|
@@ -153,6 +178,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
153
178
|
setCheckedAll: () => void;
|
|
154
179
|
clearAll: () => void;
|
|
155
180
|
closeTag: (tag: ITag) => void;
|
|
181
|
+
notifyCheck: (keys: IKey[]) => void;
|
|
156
182
|
NButton: any;
|
|
157
183
|
NInput: any;
|
|
158
184
|
NInputGroup: import("vue").DefineComponent<{
|
|
@@ -222,7 +248,148 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
222
248
|
readonly privateShow: boolean;
|
|
223
249
|
}>;
|
|
224
250
|
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<{}>>, {}>;
|
|
225
|
-
|
|
251
|
+
SearchMultiple: import("vue").DefineComponent<{
|
|
252
|
+
treeData: {
|
|
253
|
+
type: PropType<any[]>;
|
|
254
|
+
default: () => never[];
|
|
255
|
+
};
|
|
256
|
+
checkedKeys: {
|
|
257
|
+
type: PropType<(string | number)[]>;
|
|
258
|
+
default: () => never[];
|
|
259
|
+
};
|
|
260
|
+
}, {
|
|
261
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
262
|
+
treeData: {
|
|
263
|
+
type: PropType<any[]>;
|
|
264
|
+
default: () => never[];
|
|
265
|
+
};
|
|
266
|
+
checkedKeys: {
|
|
267
|
+
type: PropType<(string | number)[]>;
|
|
268
|
+
default: () => never[];
|
|
269
|
+
};
|
|
270
|
+
}>> & {
|
|
271
|
+
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
272
|
+
}>>;
|
|
273
|
+
emit: (event: "notifyCheck", ...args: any[]) => void;
|
|
274
|
+
optionsRef: import("vue").ComputedRef<any[]>;
|
|
275
|
+
list: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
|
|
276
|
+
containerProps: {
|
|
277
|
+
ref: import("vue").Ref<any>;
|
|
278
|
+
onScroll: () => void;
|
|
279
|
+
style: Partial<CSSStyleDeclaration>;
|
|
280
|
+
};
|
|
281
|
+
wrapperProps: import("vue").ComputedRef<{
|
|
282
|
+
style: {
|
|
283
|
+
width: string;
|
|
284
|
+
height: string;
|
|
285
|
+
marginTop: string;
|
|
286
|
+
};
|
|
287
|
+
}>;
|
|
288
|
+
containerStyleWithHeight: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
289
|
+
searchCheckKeys: import("vue").Ref<(string | number)[]>;
|
|
290
|
+
showSelectKeys: import("vue").Ref<(string | number)[]>;
|
|
291
|
+
checkedChange: (checkList: (string | number)[], meta: {
|
|
292
|
+
actionType: "check" | "uncheck";
|
|
293
|
+
value: string | number;
|
|
294
|
+
}) => void;
|
|
295
|
+
handleCheckKey: (baseKeys: (string | number)[], currentTree: {
|
|
296
|
+
[key: string]: any;
|
|
297
|
+
key: string | number;
|
|
298
|
+
children: any[];
|
|
299
|
+
parentNode: any;
|
|
300
|
+
} | null, value: string | number) => false | undefined;
|
|
301
|
+
findParent: (baseKeys: (string | number)[], currentTree: {
|
|
302
|
+
[key: string]: any;
|
|
303
|
+
key: string | number;
|
|
304
|
+
children: any[];
|
|
305
|
+
parentNode: any;
|
|
306
|
+
}) => false | undefined;
|
|
307
|
+
handleUnCheckKey: (baseKeys: (string | number)[], currentTree: {
|
|
308
|
+
[key: string]: any;
|
|
309
|
+
key: string | number;
|
|
310
|
+
children: any[];
|
|
311
|
+
parentNode: any;
|
|
312
|
+
}, value: string | number) => false | undefined;
|
|
313
|
+
findChild: (baseKeys: (string | number)[], children: {
|
|
314
|
+
[key: string]: any;
|
|
315
|
+
key: string | number;
|
|
316
|
+
children: any[];
|
|
317
|
+
parentNode: any;
|
|
318
|
+
}[], value: string | number) => false | undefined;
|
|
319
|
+
checkInitTree: (tree: {
|
|
320
|
+
[key: string]: any;
|
|
321
|
+
key: string | number;
|
|
322
|
+
children: any[];
|
|
323
|
+
parentNode: any;
|
|
324
|
+
}, baseKey: string | number) => false | undefined;
|
|
325
|
+
ref: typeof ref;
|
|
326
|
+
NCheckboxGroup: import("vue").DefineComponent<{
|
|
327
|
+
readonly min: NumberConstructor;
|
|
328
|
+
readonly max: NumberConstructor;
|
|
329
|
+
readonly size: PropType<"small" | "medium" | "large">;
|
|
330
|
+
readonly value: PropType<(string | number)[] | null>;
|
|
331
|
+
readonly defaultValue: {
|
|
332
|
+
readonly type: PropType<(string | number)[] | null>;
|
|
333
|
+
readonly default: null;
|
|
334
|
+
};
|
|
335
|
+
readonly disabled: {
|
|
336
|
+
readonly type: PropType<boolean | undefined>;
|
|
337
|
+
readonly default: undefined;
|
|
338
|
+
};
|
|
339
|
+
readonly 'onUpdate:value': PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
340
|
+
actionType: "check" | "uncheck";
|
|
341
|
+
value: string | number;
|
|
342
|
+
}) => void>>;
|
|
343
|
+
readonly onUpdateValue: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
344
|
+
actionType: "check" | "uncheck";
|
|
345
|
+
value: string | number;
|
|
346
|
+
}) => void>>;
|
|
347
|
+
readonly onChange: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[]) => void> | undefined>;
|
|
348
|
+
}, {
|
|
349
|
+
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
350
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
351
|
+
readonly min: NumberConstructor;
|
|
352
|
+
readonly max: NumberConstructor;
|
|
353
|
+
readonly size: PropType<"small" | "medium" | "large">;
|
|
354
|
+
readonly value: PropType<(string | number)[] | null>;
|
|
355
|
+
readonly defaultValue: {
|
|
356
|
+
readonly type: PropType<(string | number)[] | null>;
|
|
357
|
+
readonly default: null;
|
|
358
|
+
};
|
|
359
|
+
readonly disabled: {
|
|
360
|
+
readonly type: PropType<boolean | undefined>;
|
|
361
|
+
readonly default: undefined;
|
|
362
|
+
};
|
|
363
|
+
readonly 'onUpdate:value': PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
364
|
+
actionType: "check" | "uncheck";
|
|
365
|
+
value: string | number;
|
|
366
|
+
}) => void>>;
|
|
367
|
+
readonly onUpdateValue: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
368
|
+
actionType: "check" | "uncheck";
|
|
369
|
+
value: string | number;
|
|
370
|
+
}) => void>>;
|
|
371
|
+
readonly onChange: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[]) => void> | undefined>;
|
|
372
|
+
}>>, {
|
|
373
|
+
readonly disabled: boolean | undefined;
|
|
374
|
+
readonly defaultValue: (string | number)[] | null;
|
|
375
|
+
}>;
|
|
376
|
+
NCheckbox: any;
|
|
377
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "notifyCheck"[], "notifyCheck", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
378
|
+
treeData: {
|
|
379
|
+
type: PropType<any[]>;
|
|
380
|
+
default: () => never[];
|
|
381
|
+
};
|
|
382
|
+
checkedKeys: {
|
|
383
|
+
type: PropType<(string | number)[]>;
|
|
384
|
+
default: () => never[];
|
|
385
|
+
};
|
|
386
|
+
}>> & {
|
|
387
|
+
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
388
|
+
}, {
|
|
389
|
+
treeData: any[];
|
|
390
|
+
checkedKeys: (string | number)[];
|
|
391
|
+
}>;
|
|
392
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("check" | "checkWithLevel")[], "check" | "checkWithLevel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
226
393
|
defaultList: {
|
|
227
394
|
type: PropType<(IKey | ITag)[]>;
|
|
228
395
|
default: () => never[];
|
|
@@ -259,6 +426,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
259
426
|
type: BooleanConstructor;
|
|
260
427
|
default: boolean;
|
|
261
428
|
};
|
|
429
|
+
treeSetting: {
|
|
430
|
+
type: PropType<ITreeOption>;
|
|
431
|
+
default: () => {};
|
|
432
|
+
};
|
|
262
433
|
queryLoadChildData: {
|
|
263
434
|
type: PropType<(node: TreeOption) => Promise<AnyObject>>;
|
|
264
435
|
default: undefined;
|
|
@@ -269,6 +440,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
269
440
|
};
|
|
270
441
|
}>> & {
|
|
271
442
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
443
|
+
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
|
272
444
|
}, {
|
|
273
445
|
data: ITreeOption[];
|
|
274
446
|
defaultList: (IKey | ITag)[];
|
|
@@ -279,6 +451,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
279
451
|
showCount: boolean;
|
|
280
452
|
showClear: boolean;
|
|
281
453
|
multiple: boolean;
|
|
454
|
+
treeSetting: ITreeOption;
|
|
282
455
|
queryLoadChildData: (node: TreeOption) => Promise<AnyObject>;
|
|
283
456
|
queryTreeSearch: (keyWork: string) => Promise<Array<AnyObject>>;
|
|
284
457
|
}>;
|