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

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 (99) hide show
  1. package/README.md +87 -87
  2. package/es/components/audio-sdk/src/Index.vue2.js +7 -7
  3. package/es/components/audio-sdk/src/audioSDK.js +1 -1
  4. package/es/components/audio-sdk/src/components/recording.vue2.js +16 -2
  5. package/es/components/big-table/src/components/NoData.vue2.js +8 -1
  6. package/es/components/big-table/src/hooks/useTableParse.js +8 -1
  7. package/es/components/button-print/index.d.ts +2 -1
  8. package/es/components/button-print/src/ButtonPrint.vue.d.ts +2 -1
  9. package/es/components/button-print/src/ButtonPrint.vue2.js +6 -1
  10. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +1 -1
  11. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +8 -5
  12. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +4 -1
  13. package/es/components/button-print/src/utils/print.d.ts +2 -2
  14. package/es/components/button-print/src/utils/print.js +29 -20
  15. package/es/components/card-reader-sdk-cn/src/henan/index.js +8 -1
  16. package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
  17. package/es/components/expand-field/index.d.ts +710 -0
  18. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +710 -0
  19. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +710 -0
  20. package/es/components/expand-field/src/components/form.vue.d.ts +710 -0
  21. package/es/components/expand-field/src/components/form.vue2.js +8 -1
  22. package/es/components/expand-field/src/index.vue.d.ts +710 -0
  23. package/es/components/field-editor/src/FieldEditor.vue2.js +2 -1
  24. package/es/components/field-editor/src/fields.d.ts +1 -0
  25. package/es/components/field-editor/src/fields.js +6 -0
  26. package/es/components/field-set/src/FieldSet.vue.d.ts +31 -0
  27. package/es/components/field-set/src/FieldSet.vue2.js +112 -65
  28. package/es/components/field-set/src/Index.vue2.js +3 -2
  29. package/es/components/field-set/src/TableStyle.vue2.js +2 -2
  30. package/es/components/field-set/src/constants/index.d.ts +1 -1
  31. package/es/components/field-set/style/index.css +1 -1
  32. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +8 -1
  33. package/es/components/form-render/src/components/renderer/formItem.js +8 -1
  34. package/es/components/form-render/src/hooks/useFormValidator.js +8 -1
  35. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +8 -1
  36. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  37. package/es/components/iho-chat/style/index.css +1 -1
  38. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  39. package/es/components/index.css +1 -1
  40. package/es/components/info-header/src/components/patientInfo/index.vue2.js +16 -2
  41. package/es/components/scale-view/index.d.ts +26 -15
  42. package/es/components/scale-view/src/ScaleView.vue.d.ts +26 -15
  43. package/es/components/scale-view/src/ScaleView.vue2.js +13 -7
  44. package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +5 -0
  45. package/es/components/scale-view/src/components/AnswerParse.vue2.js +74 -8
  46. package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +10 -7
  47. package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +28 -4
  48. package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +10 -7
  49. package/es/components/scale-view/src/components/EvaluatePage.vue2.js +29 -8
  50. package/es/components/scale-view/src/components/NoData.vue2.js +9 -3
  51. package/es/components/scale-view/src/components/ScaleScore.d.ts +1 -1
  52. package/es/components/scale-view/src/components/ScaleScore.js +47 -4
  53. package/es/components/scale-view/src/components/formitem/r-checkbox.js +20 -2
  54. package/es/components/scale-view/src/components/formitem/r-radio.js +2 -0
  55. package/es/components/scale-view/src/components/formitem/r-sign.js +32 -4
  56. package/es/components/scale-view/src/components/formitem/r-upload.js +65 -7
  57. package/es/components/scale-view/src/components/formitem/sign-com.js +8 -1
  58. package/es/components/scale-view/src/hooks/scaleview-computed.js +20 -5
  59. package/es/components/scale-view/src/hooks/scaleview-init.js +24 -3
  60. package/es/components/scale-view/src/hooks/scaleview-methods.js +40 -5
  61. package/es/components/scale-view/src/hooks/scaleview-submit.js +64 -8
  62. package/es/components/scale-view/src/hooks/scaleview-validate.d.ts +1 -1
  63. package/es/components/scale-view/src/hooks/scaleview-validate.js +157 -24
  64. package/es/components/scale-view/src/hooks/use-evaluate.js +16 -2
  65. package/es/components/scale-view/src/hooks/use-noData.js +33 -5
  66. package/es/components/scale-view/style/index.css +1 -1
  67. package/es/components/select-person/index.d.ts +710 -0
  68. package/es/components/select-person/src/SelectPerson.vue.d.ts +356 -344
  69. package/es/components/select-person/src/SelectPerson.vue2.js +512 -678
  70. package/es/components/select-person/src/SelectPersonRole.vue.d.ts +630 -0
  71. package/es/components/select-person/src/SelectPersonRole.vue.js +6 -0
  72. package/es/components/select-person/src/SelectPersonRole.vue2.js +942 -0
  73. package/es/components/select-person/src/SelectPersonTest.vue.d.ts +555 -0
  74. package/es/components/select-person/src/components/SearchGroupList.vue.d.ts +132 -0
  75. package/es/components/select-person/src/components/SearchGroupList.vue.js +6 -0
  76. package/es/components/select-person/src/components/SearchGroupList.vue2.js +116 -0
  77. package/es/components/select-person/src/components/SearchMultiple.vue2.js +1 -1
  78. package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +21 -12
  79. package/es/components/select-person/src/components/TagItem.vue.d.ts +43 -0
  80. package/es/components/select-person/src/components/TagItem.vue.js +6 -0
  81. package/es/components/select-person/src/components/TagItem.vue2.js +40 -0
  82. package/es/components/select-person/src/index.vue.d.ts +710 -0
  83. package/es/components/select-person/src/index.vue2.js +19 -2
  84. package/es/components/select-person/src/types/index.d.ts +35 -0
  85. package/es/components/select-person/src/types/index.js +1 -0
  86. package/es/components/select-person/src/utils/index.d.ts +1 -0
  87. package/es/components/select-person/src/utils/index.js +6 -8
  88. package/es/components/select-person/style/index.css +1 -1
  89. package/es/components/vod-chunk-upload/index.d.ts +3 -0
  90. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +1 -29
  91. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +109 -11
  92. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +15 -1
  93. package/es/components/vod-chunk-upload/src/hooks/upload-data.js +72 -9
  94. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +3 -0
  95. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +75 -9
  96. package/es/env.d.ts +25 -25
  97. package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
  98. package/es/shared/package.json.js +1 -1
  99. package/package.json +2 -2
@@ -1,20 +1,9 @@
1
- import { ref, PropType } from 'vue';
1
+ import { PropType } from 'vue';
2
2
  import { type TreeOption } from 'naive-ui';
3
3
  import { AnyObject } from '../../../shared/types';
4
+ import { PTreeOption, IWordBook, IWordBookChild, Strategy } from './types';
4
5
  type IKey = string | number;
5
6
  type ITreeOption = TreeOption & AnyObject;
6
- type IWordBook<T> = {
7
- parent_id_obj: keyof T;
8
- parent_name_obj: keyof T;
9
- user_count_obj?: keyof T;
10
- filter_key?: string;
11
- [key: string]: any;
12
- };
13
- type IWordBookChild<T> = {
14
- user_id_obj: keyof T;
15
- user_name_obj: keyof T;
16
- user_expand_keys?: string[];
17
- };
18
7
  type ITag = {
19
8
  key: IKey;
20
9
  [key: string]: any;
@@ -73,25 +62,9 @@ declare const _default: import("vue").DefineComponent<{
73
62
  default: undefined;
74
63
  };
75
64
  queryTreeSearch: {
76
- type: PropType<(keyWork: string) => Promise<Array<AnyObject>>>;
65
+ type: PropType<(keyWork: string) => Promise<Array<PTreeOption>>>;
77
66
  default: () => Promise<never[]>;
78
67
  };
79
- showSelectType: {
80
- type: BooleanConstructor;
81
- default: boolean;
82
- };
83
- roleData: {
84
- type: PropType<ITreeOption[]>;
85
- default: () => never[];
86
- };
87
- roleFields: {
88
- type: ObjectConstructor;
89
- default: () => {
90
- label: string;
91
- key: string;
92
- children: string;
93
- };
94
- };
95
68
  forceShowSelectAll: {
96
69
  type: BooleanConstructor;
97
70
  };
@@ -101,18 +74,23 @@ declare const _default: import("vue").DefineComponent<{
101
74
  onlyForwardCascade: {
102
75
  type: BooleanConstructor;
103
76
  };
77
+ height: {
78
+ type: StringConstructor;
79
+ };
80
+ hideLeaf: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ };
84
+ itemKey: {
85
+ type: PropType<(node: ITreeOption) => IKey>;
86
+ default: undefined;
87
+ };
88
+ showTagHover: {
89
+ type: BooleanConstructor;
90
+ default: boolean;
91
+ };
104
92
  }, {
105
- searchFilterBase: {
106
- isOpen: boolean;
107
- multiple: boolean;
108
- customTitles: string[];
109
- itemHeight: number;
110
- };
111
- labelList: {
112
- key: string;
113
- label: string;
114
- }[];
115
- labelListName: any;
93
+ $message: import("naive-ui").MessageApi;
116
94
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
117
95
  defaultList: {
118
96
  type: PropType<(IKey | ITag)[]>;
@@ -167,25 +145,9 @@ declare const _default: import("vue").DefineComponent<{
167
145
  default: undefined;
168
146
  };
169
147
  queryTreeSearch: {
170
- type: PropType<(keyWork: string) => Promise<Array<AnyObject>>>;
148
+ type: PropType<(keyWork: string) => Promise<Array<PTreeOption>>>;
171
149
  default: () => Promise<never[]>;
172
150
  };
173
- showSelectType: {
174
- type: BooleanConstructor;
175
- default: boolean;
176
- };
177
- roleData: {
178
- type: PropType<ITreeOption[]>;
179
- default: () => never[];
180
- };
181
- roleFields: {
182
- type: ObjectConstructor;
183
- default: () => {
184
- label: string;
185
- key: string;
186
- children: string;
187
- };
188
- };
189
151
  forceShowSelectAll: {
190
152
  type: BooleanConstructor;
191
153
  };
@@ -195,335 +157,386 @@ declare const _default: import("vue").DefineComponent<{
195
157
  onlyForwardCascade: {
196
158
  type: BooleanConstructor;
197
159
  };
160
+ height: {
161
+ type: StringConstructor;
162
+ };
163
+ hideLeaf: {
164
+ type: BooleanConstructor;
165
+ default: boolean;
166
+ };
167
+ itemKey: {
168
+ type: PropType<(node: ITreeOption) => IKey>;
169
+ default: undefined;
170
+ };
171
+ showTagHover: {
172
+ type: BooleanConstructor;
173
+ default: boolean;
174
+ };
198
175
  }>> & {}>>;
199
176
  emit: any;
200
177
  keyword: import("vue").Ref<string>;
201
178
  checkedAll: import("vue").Ref<boolean>;
202
179
  checkedKeys: import("vue").Ref<IKey[]>;
203
180
  expandedKeys: import("vue").Ref<IKey[]>;
204
- treeData: import("vue").Ref<{
205
- [x: string]: unknown;
206
- key?: import("naive-ui/es/tree/src/interface").Key | undefined;
207
- label?: string | undefined;
208
- checkboxDisabled?: boolean | undefined;
209
- disabled?: boolean | undefined;
210
- isLeaf?: boolean | undefined;
211
- children?: any[] | undefined;
212
- prefix?: (() => import("vue").VNodeChild) | undefined;
213
- suffix?: (() => import("vue").VNodeChild) | undefined;
214
- }[]>;
215
- tagData: import("vue").Ref<{
181
+ treeData: import("vue").ShallowRef<PTreeOption[]>;
182
+ treeAsyncData: import("vue").Ref<{
216
183
  [x: string]: any;
217
- key: IKey;
184
+ key: string | number;
185
+ label: string;
186
+ name: string;
187
+ labelExpand: string;
188
+ parentKey?: (string | number) | undefined;
189
+ parentName: string;
190
+ innerItemsNum: number;
191
+ children: any[] | undefined;
192
+ leaf: boolean;
193
+ originItem: {
194
+ [x: string]: any;
195
+ key?: import("naive-ui/es/tree/src/interface").Key | undefined;
196
+ label?: string | undefined;
197
+ checkboxDisabled?: boolean | undefined;
198
+ disabled?: boolean | undefined;
199
+ isLeaf?: boolean | undefined;
200
+ children?: {
201
+ [x: string]: unknown;
202
+ key?: import("naive-ui/es/tree/src/interface").Key | undefined;
203
+ label?: string | undefined;
204
+ checkboxDisabled?: boolean | undefined;
205
+ disabled?: boolean | undefined;
206
+ isLeaf?: boolean | undefined;
207
+ children?: any[] | undefined;
208
+ prefix?: (() => import("vue").VNodeChild) | undefined;
209
+ suffix?: (() => import("vue").VNodeChild) | undefined;
210
+ }[] | undefined;
211
+ prefix?: (() => import("vue").VNodeChild) | undefined;
212
+ suffix?: (() => import("vue").VNodeChild) | undefined;
213
+ };
214
+ disabled?: boolean | undefined;
215
+ count?: number | undefined;
218
216
  }[]>;
219
- initTagData: import("vue").Ref<{
220
- [x: string]: any;
221
- key: IKey;
217
+ searchTreeData: import("vue").ShallowRef<PTreeOption[]>;
218
+ searchData: import("vue").ShallowRef<{
219
+ title: string;
220
+ data: PTreeOption[];
222
221
  }[]>;
222
+ treeMap: Map<IKey, PTreeOption>;
223
223
  isSearch: import("vue").Ref<boolean>;
224
- allCheckedTreeKeys: import("vue").Ref<IKey[]>;
224
+ remoteDefaultList: import("vue").Ref<AnyObject[]>;
225
225
  isRemote: import("vue").ComputedRef<boolean>;
226
226
  checkStrategyResult: import("vue").ComputedRef<any>;
227
227
  isSearchFilter: import("vue").ComputedRef<boolean>;
228
- curSelectKey: import("vue").Ref<string>;
229
- mergeSearchFilter: import("vue").ComputedRef<{
230
- isOpen: boolean;
231
- multiple: boolean;
232
- customTitles: string[];
233
- itemHeight: number;
234
- }>;
235
- wordbookChildExpandkeys: import("vue").ComputedRef<string[]>;
236
- styleObject: import("vue").ComputedRef<{
237
- height: string;
238
- }>;
239
- caculateTagData: import("vue").ComputedRef<any>;
240
- treeDataMiddle: any;
241
- checkedKeysMiddle: any;
242
- checkedTagsMiddle: any;
243
- allCheckedKeysMiddle: any;
244
- attrType: import("vue").ComputedRef<any>;
245
- keyStr: import("vue").ComputedRef<string>;
246
- getTreeDataMiddleData: () => void;
247
- getDeptData: (list: any[], cb?: any) => any[];
248
- getRoleData: (list: any[], cb?: any) => any[];
249
- onHandleLabelChange: (item: any) => void;
250
- setSelectTagData: (tree: TreeOption[], operatorType: string) => void;
251
- uniqArrObj: (arr: any[], name: string) => any;
252
- init: () => void;
253
- getMainData: (tree: TreeOption[], parentNode: TreeOption | null, cb?: any) => void;
254
- setAllCheckedKeys: (tree: TreeOption, cb?: any) => void;
255
- setAllCheckedKeysWithChild: (item: TreeOption, cb?: any) => void;
256
- setAllCheckedKeysWithParent: (item: TreeOption, cb?: any) => void;
257
- setAllCheckedKeysWithAll: (item: TreeOption, cb?: any) => void;
258
- queryLoadChildNode: (node: TreeOption) => Promise<AnyObject>;
259
- setDisabled: (data: TreeOption) => void;
228
+ isShowGroupList: import("vue").ComputedRef<boolean>;
229
+ showType: import("vue").ComputedRef<"" | "searchGroup" | "searchChild">;
230
+ caculateTagData: import("vue").ComputedRef<AnyObject[]>;
231
+ renderTreeData: import("vue").ComputedRef<{
232
+ [x: string]: any;
233
+ key: string | number;
234
+ label: string;
235
+ name: string;
236
+ labelExpand: string;
237
+ parentKey?: (string | number) | undefined;
238
+ parentName: string;
239
+ innerItemsNum: number;
240
+ children: any[] | undefined;
241
+ leaf: boolean;
242
+ originItem: {
243
+ [x: string]: any;
244
+ key?: import("naive-ui/es/tree/src/interface").Key | undefined;
245
+ label?: string | undefined;
246
+ checkboxDisabled?: boolean | undefined;
247
+ disabled?: boolean | undefined;
248
+ isLeaf?: boolean | undefined;
249
+ children?: {
250
+ [x: string]: unknown;
251
+ key?: import("naive-ui/es/tree/src/interface").Key | undefined;
252
+ label?: string | undefined;
253
+ checkboxDisabled?: boolean | undefined;
254
+ disabled?: boolean | undefined;
255
+ isLeaf?: boolean | undefined;
256
+ children?: any[] | undefined;
257
+ prefix?: (() => import("vue").VNodeChild) | undefined;
258
+ suffix?: (() => import("vue").VNodeChild) | undefined;
259
+ }[] | undefined;
260
+ prefix?: (() => import("vue").VNodeChild) | undefined;
261
+ suffix?: (() => import("vue").VNodeChild) | undefined;
262
+ };
263
+ disabled?: boolean | undefined;
264
+ count?: number | undefined;
265
+ }[]>;
266
+ initTreeData: () => void;
267
+ queryLoadChildNode: (node: PTreeOption) => Promise<AnyObject>;
260
268
  renderLabel: ({ option }: {
261
269
  option: TreeOption;
262
270
  }) => JSX.Element;
263
- getLabelName: (option: TreeOption) => {};
264
- transformData: (trees: TreeOption[]) => TreeOption[];
265
- calculateRootItems: (trees: TreeOption[], items: TreeOption[]) => TreeOption[];
266
- transformParentNodeName: (trees: TreeOption[], tempContent: any) => TreeOption[];
267
- searchSetting: () => string;
271
+ transformData: (trees: ITreeOption[], parentNode: PTreeOption | null, visitor?: Partial<Record<"enter" | "leave", (node: PTreeOption) => unknown>> | undefined) => {
272
+ treeItems: PTreeOption[];
273
+ leafCount: number;
274
+ innerItems: any[];
275
+ };
276
+ getTreeOptionChildren: (item: PTreeOption) => void;
268
277
  onSearch: () => Promise<void>;
269
- setTreeCheckd: (tree: TreeOption[], checked: boolean) => void;
270
- setCheckdWithChild: (tree: TreeOption[], checked: boolean) => void;
271
- setCheckdWithParent: (tree: TreeOption[], checked: boolean) => void;
272
- setCheckdWithAll: (tree: TreeOption[], checked: boolean) => void;
278
+ getAllKeys: (tree: PTreeOption[], strategy: Strategy) => IKey[];
279
+ getParentKeys: (node: PTreeOption, map: Map<IKey, PTreeOption>) => never[];
280
+ getTopLevelCheckedKey: (node: PTreeOption, checked: Set<IKey>, map: Map<IKey, PTreeOption>) => string | number;
273
281
  checkedAllChange: (checked: boolean) => void;
274
- uniq: (arr: ITag[]) => ITag[];
275
- setTagData: (tree: TreeOption[]) => void;
276
282
  getFlattenKeys: (tree: TreeOption[]) => any[];
277
283
  updateTreeChecked: (keys: Array<IKey>, _: any, meta: {
278
284
  node: TreeOption | null;
279
285
  action: 'check' | 'uncheck';
280
286
  }) => void;
281
- setCheckedAll: () => void;
282
287
  clearAll: () => void;
283
- closeTag: (tag: ITag) => void;
284
- notifyCheck: (keys: IKey[]) => void;
285
- notifySearchClear: () => void;
286
- getCheckWithLevel: () => any;
288
+ updateChecked: (key: IKey, checked: boolean) => void;
289
+ notifyCheck: (key: IKey, isChecked?: boolean) => void;
290
+ checkSearchClear: (kw: string) => void;
291
+ getCheckWithLevel: (strategy?: Strategy, hideLeaf?: boolean) => {
292
+ parentNode: PTreeOption | undefined;
293
+ key: string | number;
294
+ label: string;
295
+ name: string;
296
+ labelExpand: string;
297
+ parentKey?: (string | number) | undefined;
298
+ parentName: string;
299
+ innerItemsNum: number;
300
+ children: PTreeOption[] | undefined;
301
+ leaf: boolean;
302
+ originItem: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject;
303
+ disabled?: boolean | undefined;
304
+ count?: number | undefined;
305
+ }[];
287
306
  resetParams: () => void;
288
307
  NButton: any;
289
308
  NInput: any;
290
309
  NInputGroup: any;
291
310
  NCheckbox: any;
292
311
  NTree: any;
293
- NTag: any;
294
- NIcon: any;
295
312
  NSpace: any;
296
313
  NGrid: any;
297
314
  NGi: any;
298
- NEmpty: any;
299
- 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<{}>>, {}>;
300
- SearchMultiple: import("vue").DefineComponent<{
301
- treeData: {
302
- type: PropType<any[]>;
303
- default: () => never[];
304
- };
305
- checkedKeys: {
306
- type: PropType<(string | number)[]>;
307
- default: () => never[];
315
+ NPopover: any;
316
+ SearchGroupList: import("vue").DefineComponent<{
317
+ data: {
318
+ type: PropType<{
319
+ title: string;
320
+ data: {
321
+ key: string | number;
322
+ label: string;
323
+ labelExpand: string;
324
+ parentName: string;
325
+ }[];
326
+ }[]>;
327
+ required: true;
328
+ };
329
+ type: {
330
+ type: StringConstructor;
331
+ default: string;
308
332
  };
309
333
  }, {
334
+ emit: (event: "checked", ...args: any[]) => void;
310
335
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
311
- treeData: {
312
- type: PropType<any[]>;
313
- default: () => never[];
336
+ data: {
337
+ type: PropType<{
338
+ title: string;
339
+ data: {
340
+ key: string | number;
341
+ label: string;
342
+ labelExpand: string;
343
+ parentName: string;
344
+ }[];
345
+ }[]>;
346
+ required: true;
314
347
  };
315
- checkedKeys: {
316
- type: PropType<(string | number)[]>;
317
- default: () => never[];
348
+ type: {
349
+ type: StringConstructor;
350
+ default: string;
318
351
  };
319
352
  }>> & {
320
- onNotifyCheck?: ((...args: any[]) => any) | undefined;
353
+ onChecked?: ((...args: any[]) => any) | undefined;
321
354
  }>>;
322
- emit: (event: "notifyCheck", ...args: any[]) => void;
323
- optionsRef: import("vue").ComputedRef<any[]>;
324
- list: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
325
- containerProps: {
326
- ref: import("vue").Ref<any>;
327
- onScroll: () => void;
328
- style: Partial<CSSStyleDeclaration>;
329
- };
330
- wrapperProps: import("vue").ComputedRef<{
331
- style: {
332
- width: string;
333
- height: string;
334
- marginTop: string;
335
- };
336
- }>;
337
- containerStyleWithHeight: import("vue").ComputedRef<import("vue").CSSProperties>;
338
- searchCheckKeys: import("vue").Ref<(string | number)[]>;
339
- showSelectKeys: import("vue").Ref<(string | number)[]>;
340
- checkedChange: (checkList: (string | number)[], meta: {
341
- actionType: "check" | "uncheck";
342
- value: string | number;
343
- }) => void;
344
- handleCheckKey: (baseKeys: (string | number)[], currentTree: {
345
- [key: string]: any;
346
- key: string | number;
347
- children: any[];
348
- parentNode: any;
349
- } | null, value: string | number) => false | undefined;
350
- findParent: (baseKeys: (string | number)[], currentTree: {
351
- [key: string]: any;
352
- key: string | number;
353
- children: any[];
354
- parentNode: any;
355
- }) => false | undefined;
356
- handleUnCheckKey: (baseKeys: (string | number)[], currentTree: {
357
- [key: string]: any;
358
- key: string | number;
359
- children: any[];
360
- parentNode: any;
361
- }, value: string | number) => false | undefined;
362
- findChild: (baseKeys: (string | number)[], children: {
363
- [key: string]: any;
364
- key: string | number;
365
- children: any[];
366
- parentNode: any;
367
- }[], value: string | number) => false | undefined;
368
- checkInitTree: (tree: {
369
- [key: string]: any;
370
- key: string | number;
371
- children: any[];
372
- parentNode: any;
373
- }, baseKey: string | number) => false | undefined;
374
- ref: typeof ref;
375
- NCheckboxGroup: any;
355
+ renderData: import("vue").ComputedRef<{
356
+ title: string;
357
+ data: {
358
+ key: string | number;
359
+ label: string;
360
+ labelExpand: string;
361
+ parentName: string;
362
+ }[];
363
+ }[]>;
364
+ handleClick: (item: AnyObject) => void;
365
+ handleChange: (item: AnyObject, checked: boolean) => void;
366
+ NVirtualList: any;
376
367
  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[];
368
+ CDefaultPage: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
369
+ type: {
370
+ type: StringConstructor;
371
+ default: string;
372
+ };
373
+ config: {
374
+ type: PropType<AnyObject>;
375
+ default: () => {
376
+ title: string;
377
+ content: string;
378
+ };
379
+ };
380
+ }, {
381
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
382
+ type: {
383
+ type: StringConstructor;
384
+ default: string;
385
+ };
386
+ config: {
387
+ type: PropType<AnyObject>;
388
+ default: () => {
389
+ title: string;
390
+ content: string;
391
+ };
392
+ };
393
+ }>> & {
394
+ onReloadPage?: ((...args: any[]) => any) | undefined;
395
+ }>>;
396
+ emit: (event: "reloadPage", ...args: any[]) => void;
397
+ configResult: import("vue").ComputedRef<{
398
+ title: string;
399
+ content: string;
400
+ img: string;
401
+ }>;
402
+ reloadPage: () => void;
403
+ NIcon: any;
404
+ Refresh: 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<{}>>, {}>;
405
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "reloadPage"[], "reloadPage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
406
+ type: {
407
+ type: StringConstructor;
408
+ default: string;
409
+ };
410
+ config: {
411
+ type: PropType<AnyObject>;
412
+ default: () => {
413
+ title: string;
414
+ content: string;
415
+ };
416
+ };
417
+ }>> & {
418
+ onReloadPage?: ((...args: any[]) => any) | undefined;
419
+ }, {
420
+ type: string;
421
+ config: AnyObject;
422
+ }>>;
423
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "checked"[], "checked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
424
+ data: {
425
+ type: PropType<{
426
+ title: string;
427
+ data: {
428
+ key: string | number;
429
+ label: string;
430
+ labelExpand: string;
431
+ parentName: string;
432
+ }[];
433
+ }[]>;
434
+ required: true;
435
+ };
436
+ type: {
437
+ type: StringConstructor;
438
+ default: string;
385
439
  };
386
440
  }>> & {
387
- onNotifyCheck?: ((...args: any[]) => any) | undefined;
441
+ onChecked?: ((...args: any[]) => any) | undefined;
388
442
  }, {
389
- treeData: any[];
390
- checkedKeys: (string | number)[];
443
+ type: string;
391
444
  }>;
392
- SearchOrgAndStaff: import("vue").DefineComponent<{
393
- treeData: {
394
- type: PropType<any[]>;
395
- default: () => never[];
396
- };
397
- checkedKeys: {
398
- type: PropType<(string | number)[]>;
399
- default: () => never[];
400
- };
401
- searchFilter: {
402
- type: ObjectConstructor;
403
- default: () => {};
445
+ TagItem: import("vue").DefineComponent<{
446
+ tag: {
447
+ type: PropType<AnyObject>;
448
+ required: true;
404
449
  };
405
- isMultiple: {
450
+ showClose: {
406
451
  type: BooleanConstructor;
407
452
  default: boolean;
408
453
  };
409
454
  }, {
410
- $message: import("naive-ui").MessageApi;
411
- virtualItemHeight: number;
412
455
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
413
- treeData: {
414
- type: PropType<any[]>;
415
- default: () => never[];
416
- };
417
- checkedKeys: {
418
- type: PropType<(string | number)[]>;
419
- default: () => never[];
456
+ tag: {
457
+ type: PropType<AnyObject>;
458
+ required: true;
420
459
  };
421
- searchFilter: {
422
- type: ObjectConstructor;
423
- default: () => {};
424
- };
425
- isMultiple: {
460
+ showClose: {
426
461
  type: BooleanConstructor;
427
462
  default: boolean;
428
463
  };
429
464
  }>> & {
430
- onNotifyCheck?: ((...args: any[]) => any) | undefined;
431
- onNotifyClear?: ((...args: any[]) => any) | undefined;
465
+ onUnchecked?: ((...args: any[]) => any) | undefined;
432
466
  }>>;
433
- emit: (event: "notifyCheck" | "notifyClear", ...args: any[]) => void;
434
- moduleHeight: import("vue").ComputedRef<any>;
435
- showNums: import("vue").ComputedRef<number>;
436
- staffDataRef: import("vue").ComputedRef<any[]>;
437
- staffList: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
438
- staffContainerProps: {
439
- ref: import("vue").Ref<any>;
440
- onScroll: () => void;
441
- style: Partial<CSSStyleDeclaration>;
442
- };
443
- staffWrapperProps: import("vue").ComputedRef<{
444
- style: {
445
- width: string;
446
- height: string;
447
- marginTop: string;
448
- };
449
- }>;
450
- staffContainerStyleWithHeight: import("vue").ComputedRef<import("vue").CSSProperties>;
451
- orgDataRef: import("vue").ComputedRef<any[]>;
452
- orgList: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
453
- orgContainerProps: {
454
- ref: import("vue").Ref<any>;
455
- onScroll: () => void;
456
- style: Partial<CSSStyleDeclaration>;
457
- };
458
- orgWrapperProps: import("vue").ComputedRef<{
459
- style: {
460
- width: string;
461
- height: string;
462
- marginTop: string;
463
- };
464
- }>;
465
- orgContainerStyleWithHeight: import("vue").ComputedRef<import("vue").CSSProperties>;
466
- searchCheckKeys: import("vue").Ref<(string | number)[]>;
467
- showSelectKeys: import("vue").Ref<(string | number)[]>;
468
- handleClick: (tree: any) => void;
469
- handleStaffClick: (baseKeys: (string | number)[], currentTree: {
470
- [key: string]: any;
471
- key: string | number;
472
- children: any[];
473
- parentNode: any;
474
- }, value: string | number) => false | undefined;
475
- findParent: (baseKeys: (string | number)[], currentTree: {
476
- [key: string]: any;
477
- key: string | number;
478
- children: any[];
479
- parentNode: any;
480
- }) => false | undefined;
481
- handleOrgClick: (baseKeys: (string | number)[], currentTree: {
482
- [key: string]: any;
483
- key: string | number;
484
- children: any[];
485
- parentNode: any;
486
- }, value: string | number) => void;
487
- handleFindChildren: (treeList: {
488
- [key: string]: any;
489
- key: string | number;
490
- children: any[];
491
- parentNode: any;
492
- }[]) => void;
493
- checkInitTree: (tree: {
494
- [key: string]: any;
495
- key: string | number;
496
- children: any[];
497
- parentNode: any;
498
- }, baseKey: string | number) => false | undefined;
499
- ref: typeof ref;
500
- NEmpty: any;
501
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("notifyCheck" | "notifyClear")[], "notifyCheck" | "notifyClear", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
502
- treeData: {
503
- type: PropType<any[]>;
504
- default: () => never[];
505
- };
506
- checkedKeys: {
507
- type: PropType<(string | number)[]>;
508
- default: () => never[];
509
- };
510
- searchFilter: {
511
- type: ObjectConstructor;
512
- default: () => {};
467
+ emit: (event: "unchecked", ...args: any[]) => void;
468
+ updateChecked: (key: string, checked: boolean) => void;
469
+ NIcon: any;
470
+ 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<{}>>, {}>;
471
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "unchecked"[], "unchecked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
472
+ tag: {
473
+ type: PropType<AnyObject>;
474
+ required: true;
513
475
  };
514
- isMultiple: {
476
+ showClose: {
515
477
  type: BooleanConstructor;
516
478
  default: boolean;
517
479
  };
518
480
  }>> & {
519
- onNotifyCheck?: ((...args: any[]) => any) | undefined;
520
- onNotifyClear?: ((...args: any[]) => any) | undefined;
481
+ onUnchecked?: ((...args: any[]) => any) | undefined;
521
482
  }, {
522
- searchFilter: Record<string, any>;
523
- treeData: any[];
524
- checkedKeys: (string | number)[];
525
- isMultiple: boolean;
483
+ showClose: boolean;
526
484
  }>;
485
+ CDefaultPage: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
486
+ type: {
487
+ type: StringConstructor;
488
+ default: string;
489
+ };
490
+ config: {
491
+ type: PropType<AnyObject>;
492
+ default: () => {
493
+ title: string;
494
+ content: string;
495
+ };
496
+ };
497
+ }, {
498
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
499
+ type: {
500
+ type: StringConstructor;
501
+ default: string;
502
+ };
503
+ config: {
504
+ type: PropType<AnyObject>;
505
+ default: () => {
506
+ title: string;
507
+ content: string;
508
+ };
509
+ };
510
+ }>> & {
511
+ onReloadPage?: ((...args: any[]) => any) | undefined;
512
+ }>>;
513
+ emit: (event: "reloadPage", ...args: any[]) => void;
514
+ configResult: import("vue").ComputedRef<{
515
+ title: string;
516
+ content: string;
517
+ img: string;
518
+ }>;
519
+ reloadPage: () => void;
520
+ NIcon: any;
521
+ Refresh: 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<{}>>, {}>;
522
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "reloadPage"[], "reloadPage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
523
+ type: {
524
+ type: StringConstructor;
525
+ default: string;
526
+ };
527
+ config: {
528
+ type: PropType<AnyObject>;
529
+ default: () => {
530
+ title: string;
531
+ content: string;
532
+ };
533
+ };
534
+ }>> & {
535
+ onReloadPage?: ((...args: any[]) => any) | undefined;
536
+ }, {
537
+ type: string;
538
+ config: AnyObject;
539
+ }>>;
527
540
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
528
541
  defaultList: {
529
542
  type: PropType<(IKey | ITag)[]>;
@@ -578,25 +591,9 @@ declare const _default: import("vue").DefineComponent<{
578
591
  default: undefined;
579
592
  };
580
593
  queryTreeSearch: {
581
- type: PropType<(keyWork: string) => Promise<Array<AnyObject>>>;
594
+ type: PropType<(keyWork: string) => Promise<Array<PTreeOption>>>;
582
595
  default: () => Promise<never[]>;
583
596
  };
584
- showSelectType: {
585
- type: BooleanConstructor;
586
- default: boolean;
587
- };
588
- roleData: {
589
- type: PropType<ITreeOption[]>;
590
- default: () => never[];
591
- };
592
- roleFields: {
593
- type: ObjectConstructor;
594
- default: () => {
595
- label: string;
596
- key: string;
597
- children: string;
598
- };
599
- };
600
597
  forceShowSelectAll: {
601
598
  type: BooleanConstructor;
602
599
  };
@@ -606,6 +603,21 @@ declare const _default: import("vue").DefineComponent<{
606
603
  onlyForwardCascade: {
607
604
  type: BooleanConstructor;
608
605
  };
606
+ height: {
607
+ type: StringConstructor;
608
+ };
609
+ hideLeaf: {
610
+ type: BooleanConstructor;
611
+ default: boolean;
612
+ };
613
+ itemKey: {
614
+ type: PropType<(node: ITreeOption) => IKey>;
615
+ default: undefined;
616
+ };
617
+ showTagHover: {
618
+ type: BooleanConstructor;
619
+ default: boolean;
620
+ };
609
621
  }>>, {
610
622
  data: ITreeOption[];
611
623
  defaultList: (IKey | ITag)[];
@@ -620,11 +632,11 @@ declare const _default: import("vue").DefineComponent<{
620
632
  searchFilter: AnyObject;
621
633
  treeSetting: ITreeOption;
622
634
  queryLoadChildData: (node: TreeOption) => Promise<AnyObject>;
623
- queryTreeSearch: (keyWork: string) => Promise<Array<AnyObject>>;
624
- showSelectType: boolean;
625
- roleData: ITreeOption[];
626
- roleFields: Record<string, any>;
635
+ queryTreeSearch: (keyWork: string) => Promise<Array<PTreeOption>>;
627
636
  forceShowSelectAll: boolean;
628
637
  onlyForwardCascade: boolean;
638
+ hideLeaf: boolean;
639
+ itemKey: (node: ITreeOption) => IKey;
640
+ showTagHover: boolean;
629
641
  }>;
630
642
  export default _default;