cnhis-design-vue 3.1.42-release.6 → 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.
Files changed (52) hide show
  1. package/es/components/button-print/src/utils/print.js +1 -1
  2. package/es/components/classification/index.d.ts +12 -12
  3. package/es/components/classification/src/components/set-classification/index.vue.d.ts +9 -9
  4. package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
  5. package/es/components/classification/src/components/table-modal/index.vue.d.ts +9 -9
  6. package/es/components/classification/src/components/table-modal/index.vue.js +1 -1
  7. package/es/components/classification/src/index.vue.d.ts +12 -12
  8. package/es/components/classification/src/index.vue.js +1 -1
  9. package/es/components/fabric-chart/index.d.ts +2 -2
  10. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  11. package/es/components/form-config/index.d.ts +10 -10
  12. package/es/components/form-config/src/FormConfig.vue.d.ts +10 -10
  13. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +5 -5
  14. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +5 -5
  15. package/es/components/form-render/index.d.ts +5 -5
  16. package/es/components/form-render/src/FormRender.vue.d.ts +5 -5
  17. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +5 -5
  18. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  19. package/es/components/iho-table/index.d.ts +2 -0
  20. package/es/components/iho-table/src/IhoTable.vue.d.ts +2 -0
  21. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +3 -1
  22. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.d.ts +0 -0
  23. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.js +1 -0
  24. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  25. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -1
  26. package/es/components/iho-table/src/plugins/rowClickPlugin/index.js +1 -1
  27. package/es/components/iho-table/src/types/index.d.ts +4 -0
  28. package/es/components/info-header/index.d.ts +13 -13
  29. package/es/components/info-header/src/InfoHeader.vue.d.ts +13 -13
  30. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +3 -3
  31. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -3
  32. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
  33. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
  34. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +8 -8
  35. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +5 -5
  36. package/es/components/scale-view/src/hooks/use-component.d.ts +1 -1
  37. package/es/components/select-label/index.d.ts +1 -1
  38. package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
  39. package/es/components/select-person/index.d.ts +141 -0
  40. package/es/components/select-person/src/SearchMultiple.vue.d.ts +14 -8
  41. package/es/components/select-person/src/SearchMultiple.vue.js +1 -0
  42. package/es/components/select-person/src/SearchMultiple.vue2.js +1 -0
  43. package/es/components/select-person/src/SelectPerson.vue.d.ts +143 -2
  44. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  45. package/es/components/shortcut-setter/index.d.ts +5 -5
  46. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +5 -5
  47. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +3 -3
  48. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -1
  49. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +4 -4
  50. package/es/shared/package.json.js +1 -1
  51. package/es/shared/utils/index.js +1 -1
  52. package/package.json +2 -2
@@ -1742,8 +1742,8 @@ declare const _default: import("vue").DefineComponent<{
1742
1742
  default: () => {};
1743
1743
  };
1744
1744
  }>>, {
1745
- contentStyle: CSSProperties;
1746
1745
  content: string;
1746
+ contentStyle: CSSProperties;
1747
1747
  }>;
1748
1748
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1749
1749
  content: {
@@ -1759,8 +1759,8 @@ declare const _default: import("vue").DefineComponent<{
1759
1759
  default: () => {};
1760
1760
  };
1761
1761
  }>>, {
1762
- contentStyle: CSSProperties;
1763
1762
  content: string;
1763
+ contentStyle: CSSProperties;
1764
1764
  }>;
1765
1765
  InfoEllipsis: import("vue").DefineComponent<{
1766
1766
  content: {
@@ -1790,8 +1790,8 @@ declare const _default: import("vue").DefineComponent<{
1790
1790
  default: () => {};
1791
1791
  };
1792
1792
  }>>, {
1793
- contentStyle: CSSProperties;
1794
1793
  content: string;
1794
+ contentStyle: CSSProperties;
1795
1795
  }>;
1796
1796
  SlotRender: import("vue").DefineComponent<{
1797
1797
  renderer: {
@@ -1830,8 +1830,8 @@ declare const _default: import("vue").DefineComponent<{
1830
1830
  default: () => {};
1831
1831
  };
1832
1832
  }>>, {
1833
- contentStyle: import("vue").CSSProperties;
1834
1833
  content: string;
1834
+ contentStyle: import("vue").CSSProperties;
1835
1835
  }>;
1836
1836
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1837
1837
  content: {
@@ -1847,8 +1847,8 @@ declare const _default: import("vue").DefineComponent<{
1847
1847
  default: () => {};
1848
1848
  };
1849
1849
  }>>, {
1850
- contentStyle: import("vue").CSSProperties;
1851
1850
  content: string;
1851
+ contentStyle: import("vue").CSSProperties;
1852
1852
  }>;
1853
1853
  InfoEllipsis: import("vue").DefineComponent<{
1854
1854
  content: {
@@ -1878,8 +1878,8 @@ declare const _default: import("vue").DefineComponent<{
1878
1878
  default: () => {};
1879
1879
  };
1880
1880
  }>>, {
1881
- contentStyle: import("vue").CSSProperties;
1882
1881
  content: string;
1882
+ contentStyle: import("vue").CSSProperties;
1883
1883
  }>;
1884
1884
  SlotRender: import("vue").DefineComponent<{
1885
1885
  renderer: {
@@ -63,8 +63,8 @@ declare const _default: import("vue").DefineComponent<{
63
63
  default: () => {};
64
64
  };
65
65
  }>>, {
66
- contentStyle: CSSProperties;
67
66
  content: string;
67
+ contentStyle: CSSProperties;
68
68
  }>;
69
69
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
70
70
  content: {
@@ -80,7 +80,7 @@ declare const _default: import("vue").DefineComponent<{
80
80
  default: () => {};
81
81
  };
82
82
  }>>, {
83
- contentStyle: CSSProperties;
84
83
  content: string;
84
+ contentStyle: CSSProperties;
85
85
  }>;
86
86
  export default _default;
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<{
27
27
  default: () => {};
28
28
  };
29
29
  }>>, {
30
- contentStyle: CSSProperties;
31
30
  content: string;
31
+ contentStyle: CSSProperties;
32
32
  }>;
33
33
  export default _default;
@@ -1897,8 +1897,8 @@ declare const _default: import("vue").DefineComponent<{
1897
1897
  default: () => {};
1898
1898
  };
1899
1899
  }>>, {
1900
- contentStyle: import("vue").CSSProperties;
1901
1900
  content: string;
1901
+ contentStyle: import("vue").CSSProperties;
1902
1902
  }>;
1903
1903
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1904
1904
  content: {
@@ -1914,8 +1914,8 @@ declare const _default: import("vue").DefineComponent<{
1914
1914
  default: () => {};
1915
1915
  };
1916
1916
  }>>, {
1917
- contentStyle: import("vue").CSSProperties;
1918
1917
  content: string;
1918
+ contentStyle: import("vue").CSSProperties;
1919
1919
  }>;
1920
1920
  InfoEllipsis: import("vue").DefineComponent<{
1921
1921
  content: {
@@ -1945,8 +1945,8 @@ declare const _default: import("vue").DefineComponent<{
1945
1945
  default: () => {};
1946
1946
  };
1947
1947
  }>>, {
1948
- contentStyle: import("vue").CSSProperties;
1949
1948
  content: string;
1949
+ contentStyle: import("vue").CSSProperties;
1950
1950
  }>;
1951
1951
  SlotRender: import("vue").DefineComponent<{
1952
1952
  renderer: {
@@ -2310,7 +2310,7 @@ declare const _default: import("vue").DefineComponent<{
2310
2310
  onScroll?: ((...args: any[]) => any) | undefined;
2311
2311
  onAnnotationChange?: ((...args: any[]) => any) | undefined;
2312
2312
  }>>;
2313
- emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
2313
+ emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
2314
2314
  cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
2315
2315
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
2316
2316
  formRenderRef: import("vue").Ref<HTMLElement | undefined>;
@@ -2480,14 +2480,14 @@ declare const _default: import("vue").DefineComponent<{
2480
2480
  submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
2481
2481
  validator: import("../../../../../../es/components/form-render").FieldValidator;
2482
2482
  pattern: import("../../../../../../es/components/form-render").FieldPatternTypes;
2483
- form: import("../../../../../../es/components/form-render").Form<any>;
2484
2483
  content: any;
2484
+ display: import("../../../../../../es/components/form-render").FieldDisplayTypes;
2485
+ hidden: boolean;
2486
+ form: import("../../../../../../es/components/form-render").Form<any>;
2485
2487
  componentProps: Record<string, any>;
2486
2488
  decoratorProps: Record<string, any>;
2487
- display: import("../../../../../../es/components/form-render").FieldDisplayTypes;
2488
2489
  description: string;
2489
2490
  readOnly: boolean;
2490
- hidden: boolean;
2491
2491
  component: import("../../../../../../es/components/form-render").FieldComponent<any, any>;
2492
2492
  decorator: import("../../../../../../es/components/form-render").FieldDecorator<any, any>;
2493
2493
  validating: boolean;
@@ -2621,7 +2621,7 @@ declare const _default: import("vue").DefineComponent<{
2621
2621
  readonly displayDirective: "if" | "show" | "show:lazy";
2622
2622
  }>;
2623
2623
  NTabs: any;
2624
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2624
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2625
2625
  fieldList: {
2626
2626
  type: import("vue").PropType<import("../../../../../../es/components/form-render").FieldItem[]>;
2627
2627
  };
@@ -322,7 +322,7 @@ declare const _default: import("vue").DefineComponent<{
322
322
  onScroll?: ((...args: any[]) => any) | undefined;
323
323
  onAnnotationChange?: ((...args: any[]) => any) | undefined;
324
324
  }>>;
325
- emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
325
+ emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
326
326
  cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
327
327
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
328
328
  formRenderRef: import("vue").Ref<HTMLElement | undefined>;
@@ -492,14 +492,14 @@ declare const _default: import("vue").DefineComponent<{
492
492
  submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
493
493
  validator: import("../../../../../../es/components/form-render").FieldValidator;
494
494
  pattern: import("../../../../../../es/components/form-render").FieldPatternTypes;
495
- form: import("../../../../../../es/components/form-render").Form<any>;
496
495
  content: any;
496
+ display: import("../../../../../../es/components/form-render").FieldDisplayTypes;
497
+ hidden: boolean;
498
+ form: import("../../../../../../es/components/form-render").Form<any>;
497
499
  componentProps: Record<string, any>;
498
500
  decoratorProps: Record<string, any>;
499
- display: import("../../../../../../es/components/form-render").FieldDisplayTypes;
500
501
  description: string;
501
502
  readOnly: boolean;
502
- hidden: boolean;
503
503
  component: import("../../../../../../es/components/form-render").FieldComponent<any, any>;
504
504
  decorator: import("../../../../../../es/components/form-render").FieldDecorator<any, any>;
505
505
  validating: boolean;
@@ -633,7 +633,7 @@ declare const _default: import("vue").DefineComponent<{
633
633
  readonly displayDirective: "if" | "show" | "show:lazy";
634
634
  }>;
635
635
  NTabs: any;
636
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
636
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
637
637
  fieldList: {
638
638
  type: import("vue").PropType<FieldItem[]>;
639
639
  };
@@ -1007,8 +1007,8 @@ export declare const componentMap: {
1007
1007
  }>> & {
1008
1008
  onOnChange?: ((...args: any[]) => any) | undefined;
1009
1009
  }, {
1010
- selectedList: any[];
1011
1010
  item: any;
1011
+ selectedList: any[];
1012
1012
  isDetail: boolean;
1013
1013
  isLock: boolean;
1014
1014
  sourceType: string;
@@ -510,8 +510,8 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
510
510
  }>> & {
511
511
  onOnChange?: ((...args: any[]) => any) | undefined;
512
512
  }, {
513
- selectedList: any[];
514
513
  item: any;
514
+ selectedList: any[];
515
515
  isDetail: boolean;
516
516
  isLock: boolean;
517
517
  sourceType: string;
@@ -511,8 +511,8 @@ declare const _default: import("vue").DefineComponent<{
511
511
  }>> & {
512
512
  onOnChange?: ((...args: any[]) => any) | undefined;
513
513
  }, {
514
- selectedList: any[];
515
514
  item: any;
515
+ selectedList: any[];
516
516
  isDetail: boolean;
517
517
  isLock: boolean;
518
518
  sourceType: string;
@@ -272,6 +272,147 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
272
272
  readonly privateShow: boolean;
273
273
  }>;
274
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<{}>>, {}>;
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
+ }>;
275
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<{
276
417
  defaultList: {
277
418
  type: import("vue").PropType<((string | number) | {
@@ -2,13 +2,13 @@ import { ref, PropType, CSSProperties } from 'vue';
2
2
  declare type IKey = string | number;
3
3
  declare type ITreeOption = {
4
4
  key: IKey;
5
- children: ITreeOption[];
6
- parentNode: ITreeOption;
5
+ children: any[];
6
+ parentNode: any;
7
7
  [key: string]: any;
8
8
  };
9
9
  declare const _default: import("vue").DefineComponent<{
10
10
  treeData: {
11
- type: PropType<ITreeOption[]>;
11
+ type: PropType<any[]>;
12
12
  default: () => never[];
13
13
  };
14
14
  checkedKeys: {
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<{
18
18
  }, {
19
19
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
20
20
  treeData: {
21
- type: PropType<ITreeOption[]>;
21
+ type: PropType<any[]>;
22
22
  default: () => never[];
23
23
  };
24
24
  checkedKeys: {
@@ -29,8 +29,8 @@ declare const _default: import("vue").DefineComponent<{
29
29
  onNotifyCheck?: ((...args: any[]) => any) | undefined;
30
30
  }>>;
31
31
  emit: (event: "notifyCheck", ...args: any[]) => void;
32
- optionsRef: import("vue").ComputedRef<ITreeOption[]>;
33
- list: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<ITreeOption>[]>;
32
+ optionsRef: import("vue").ComputedRef<any[]>;
33
+ list: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
34
34
  containerProps: {
35
35
  ref: import("vue").Ref<any>;
36
36
  onScroll: () => void;
@@ -95,6 +95,12 @@ 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
+ */
98
104
  value: string | number;
99
105
  }) => void>>;
100
106
  readonly onUpdateValue: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
@@ -109,7 +115,7 @@ declare const _default: import("vue").DefineComponent<{
109
115
  NCheckbox: any;
110
116
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "notifyCheck"[], "notifyCheck", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
111
117
  treeData: {
112
- type: PropType<ITreeOption[]>;
118
+ type: PropType<any[]>;
113
119
  default: () => never[];
114
120
  };
115
121
  checkedKeys: {
@@ -119,7 +125,7 @@ declare const _default: import("vue").DefineComponent<{
119
125
  }>> & {
120
126
  onNotifyCheck?: ((...args: any[]) => any) | undefined;
121
127
  }, {
122
- treeData: ITreeOption[];
128
+ treeData: any[];
123
129
  checkedKeys: IKey[];
124
130
  }>;
125
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;
@@ -178,7 +178,7 @@ declare const _default: import("vue").DefineComponent<{
178
178
  setCheckedAll: () => void;
179
179
  clearAll: () => void;
180
180
  closeTag: (tag: ITag) => void;
181
- notifyCheck: (keys: Array<IKey>) => void;
181
+ notifyCheck: (keys: IKey[]) => void;
182
182
  NButton: any;
183
183
  NInput: any;
184
184
  NInputGroup: import("vue").DefineComponent<{
@@ -248,6 +248,147 @@ declare const _default: import("vue").DefineComponent<{
248
248
  readonly privateShow: boolean;
249
249
  }>;
250
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<{}>>, {}>;
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
+ }>;
251
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<{
252
393
  defaultList: {
253
394
  type: PropType<(IKey | ITag)[]>;