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

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 (87) 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 +639 -0
  18. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +639 -0
  19. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +639 -0
  20. package/es/components/expand-field/src/components/form.vue.d.ts +639 -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 +639 -0
  23. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +8 -1
  24. package/es/components/form-render/src/components/renderer/formItem.js +8 -1
  25. package/es/components/form-render/src/hooks/useFormValidator.js +8 -1
  26. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +8 -1
  27. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  28. package/es/components/iho-chat/style/index.css +1 -1
  29. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  30. package/es/components/index.css +1 -1
  31. package/es/components/info-header/src/components/patientInfo/index.vue2.js +16 -2
  32. package/es/components/scale-view/index.d.ts +26 -15
  33. package/es/components/scale-view/src/ScaleView.vue.d.ts +26 -15
  34. package/es/components/scale-view/src/ScaleView.vue2.js +13 -7
  35. package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +5 -0
  36. package/es/components/scale-view/src/components/AnswerParse.vue2.js +74 -8
  37. package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +10 -7
  38. package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +28 -4
  39. package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +10 -7
  40. package/es/components/scale-view/src/components/EvaluatePage.vue2.js +29 -8
  41. package/es/components/scale-view/src/components/NoData.vue2.js +9 -3
  42. package/es/components/scale-view/src/components/ScaleScore.d.ts +1 -1
  43. package/es/components/scale-view/src/components/ScaleScore.js +47 -4
  44. package/es/components/scale-view/src/components/formitem/r-checkbox.js +20 -2
  45. package/es/components/scale-view/src/components/formitem/r-radio.js +2 -0
  46. package/es/components/scale-view/src/components/formitem/r-sign.js +32 -4
  47. package/es/components/scale-view/src/components/formitem/r-upload.js +65 -7
  48. package/es/components/scale-view/src/components/formitem/sign-com.js +8 -1
  49. package/es/components/scale-view/src/hooks/scaleview-computed.js +20 -5
  50. package/es/components/scale-view/src/hooks/scaleview-init.js +24 -3
  51. package/es/components/scale-view/src/hooks/scaleview-methods.js +40 -5
  52. package/es/components/scale-view/src/hooks/scaleview-submit.js +64 -8
  53. package/es/components/scale-view/src/hooks/scaleview-validate.d.ts +1 -1
  54. package/es/components/scale-view/src/hooks/scaleview-validate.js +157 -24
  55. package/es/components/scale-view/src/hooks/use-evaluate.js +16 -2
  56. package/es/components/scale-view/src/hooks/use-noData.js +33 -5
  57. package/es/components/scale-view/style/index.css +1 -1
  58. package/es/components/select-person/index.d.ts +639 -0
  59. package/es/components/select-person/src/SelectPerson.vue.d.ts +305 -347
  60. package/es/components/select-person/src/SelectPerson.vue2.js +477 -678
  61. package/es/components/select-person/src/SelectPersonRole.vue.d.ts +630 -0
  62. package/es/components/select-person/src/SelectPersonRole.vue.js +6 -0
  63. package/es/components/select-person/src/SelectPersonRole.vue2.js +942 -0
  64. package/es/components/select-person/src/SelectPersonTest.vue.d.ts +555 -0
  65. package/es/components/select-person/src/components/SearchGroupList.vue.d.ts +132 -0
  66. package/es/components/select-person/src/components/SearchGroupList.vue.js +6 -0
  67. package/es/components/select-person/src/components/SearchGroupList.vue2.js +116 -0
  68. package/es/components/select-person/src/components/SearchMultiple.vue2.js +1 -1
  69. package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +21 -12
  70. package/es/components/select-person/src/index.vue.d.ts +639 -0
  71. package/es/components/select-person/src/index.vue2.js +15 -2
  72. package/es/components/select-person/src/types/index.d.ts +35 -0
  73. package/es/components/select-person/src/types/index.js +1 -0
  74. package/es/components/select-person/src/utils/index.d.ts +1 -0
  75. package/es/components/select-person/src/utils/index.js +6 -8
  76. package/es/components/select-person/style/index.css +1 -1
  77. package/es/components/vod-chunk-upload/index.d.ts +3 -0
  78. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +1 -29
  79. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +109 -11
  80. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +15 -1
  81. package/es/components/vod-chunk-upload/src/hooks/upload-data.js +72 -9
  82. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +3 -0
  83. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +75 -9
  84. package/es/env.d.ts +25 -25
  85. package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
  86. package/es/shared/package.json.js +1 -1
  87. 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,19 @@ 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
+ };
104
88
  }, {
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;
89
+ $message: import("naive-ui").MessageApi;
116
90
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
117
91
  defaultList: {
118
92
  type: PropType<(IKey | ITag)[]>;
@@ -167,25 +141,9 @@ declare const _default: import("vue").DefineComponent<{
167
141
  default: undefined;
168
142
  };
169
143
  queryTreeSearch: {
170
- type: PropType<(keyWork: string) => Promise<Array<AnyObject>>>;
144
+ type: PropType<(keyWork: string) => Promise<Array<PTreeOption>>>;
171
145
  default: () => Promise<never[]>;
172
146
  };
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
147
  forceShowSelectAll: {
190
148
  type: BooleanConstructor;
191
149
  };
@@ -195,335 +153,341 @@ declare const _default: import("vue").DefineComponent<{
195
153
  onlyForwardCascade: {
196
154
  type: BooleanConstructor;
197
155
  };
156
+ height: {
157
+ type: StringConstructor;
158
+ };
159
+ hideLeaf: {
160
+ type: BooleanConstructor;
161
+ default: boolean;
162
+ };
163
+ itemKey: {
164
+ type: PropType<(node: ITreeOption) => IKey>;
165
+ default: undefined;
166
+ };
198
167
  }>> & {}>>;
199
168
  emit: any;
200
169
  keyword: import("vue").Ref<string>;
201
170
  checkedAll: import("vue").Ref<boolean>;
202
171
  checkedKeys: import("vue").Ref<IKey[]>;
203
172
  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<{
173
+ treeData: import("vue").ShallowRef<PTreeOption[]>;
174
+ treeAsyncData: import("vue").Ref<{
216
175
  [x: string]: any;
217
- key: IKey;
176
+ key: string | number;
177
+ label: string;
178
+ name: string;
179
+ labelExpand: string;
180
+ parentKey?: (string | number) | undefined;
181
+ parentName: string;
182
+ innerItemsNum: number;
183
+ children: any[] | undefined;
184
+ leaf: boolean;
185
+ originItem: {
186
+ [x: string]: any;
187
+ key?: import("naive-ui/es/tree/src/interface").Key | undefined;
188
+ label?: string | undefined;
189
+ checkboxDisabled?: boolean | undefined;
190
+ disabled?: boolean | undefined;
191
+ isLeaf?: boolean | undefined;
192
+ children?: {
193
+ [x: string]: unknown;
194
+ key?: import("naive-ui/es/tree/src/interface").Key | undefined;
195
+ label?: string | undefined;
196
+ checkboxDisabled?: boolean | undefined;
197
+ disabled?: boolean | undefined;
198
+ isLeaf?: boolean | undefined;
199
+ children?: any[] | undefined;
200
+ prefix?: (() => import("vue").VNodeChild) | undefined;
201
+ suffix?: (() => import("vue").VNodeChild) | undefined;
202
+ }[] | undefined;
203
+ prefix?: (() => import("vue").VNodeChild) | undefined;
204
+ suffix?: (() => import("vue").VNodeChild) | undefined;
205
+ };
206
+ disabled?: boolean | undefined;
207
+ count?: number | undefined;
218
208
  }[]>;
219
- initTagData: import("vue").Ref<{
220
- [x: string]: any;
221
- key: IKey;
209
+ searchTreeData: import("vue").ShallowRef<PTreeOption[]>;
210
+ searchData: import("vue").ShallowRef<{
211
+ title: string;
212
+ data: PTreeOption[];
222
213
  }[]>;
214
+ treeMap: Map<IKey, PTreeOption>;
223
215
  isSearch: import("vue").Ref<boolean>;
224
- allCheckedTreeKeys: import("vue").Ref<IKey[]>;
216
+ remoteDefaultList: import("vue").Ref<AnyObject[]>;
225
217
  isRemote: import("vue").ComputedRef<boolean>;
226
218
  checkStrategyResult: import("vue").ComputedRef<any>;
227
219
  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;
220
+ isShowGroupList: import("vue").ComputedRef<boolean>;
221
+ showType: import("vue").ComputedRef<"" | "searchGroup" | "searchChild">;
222
+ caculateTagData: import("vue").ComputedRef<AnyObject[]>;
223
+ renderTreeData: import("vue").ComputedRef<{
224
+ [x: string]: any;
225
+ key: string | number;
226
+ label: string;
227
+ name: string;
228
+ labelExpand: string;
229
+ parentKey?: (string | number) | undefined;
230
+ parentName: string;
231
+ innerItemsNum: number;
232
+ children: any[] | undefined;
233
+ leaf: boolean;
234
+ originItem: {
235
+ [x: string]: any;
236
+ key?: import("naive-ui/es/tree/src/interface").Key | undefined;
237
+ label?: string | undefined;
238
+ checkboxDisabled?: boolean | undefined;
239
+ disabled?: boolean | undefined;
240
+ isLeaf?: boolean | undefined;
241
+ children?: {
242
+ [x: string]: unknown;
243
+ key?: import("naive-ui/es/tree/src/interface").Key | undefined;
244
+ label?: string | undefined;
245
+ checkboxDisabled?: boolean | undefined;
246
+ disabled?: boolean | undefined;
247
+ isLeaf?: boolean | undefined;
248
+ children?: any[] | undefined;
249
+ prefix?: (() => import("vue").VNodeChild) | undefined;
250
+ suffix?: (() => import("vue").VNodeChild) | undefined;
251
+ }[] | undefined;
252
+ prefix?: (() => import("vue").VNodeChild) | undefined;
253
+ suffix?: (() => import("vue").VNodeChild) | undefined;
254
+ };
255
+ disabled?: boolean | undefined;
256
+ count?: number | undefined;
257
+ }[]>;
258
+ initTreeData: () => void;
259
+ queryLoadChildNode: (node: PTreeOption) => Promise<AnyObject>;
260
260
  renderLabel: ({ option }: {
261
261
  option: TreeOption;
262
262
  }) => 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;
263
+ transformData: (trees: ITreeOption[], parentNode: PTreeOption | null, visitor?: Partial<Record<"enter" | "leave", (node: PTreeOption) => unknown>> | undefined) => {
264
+ treeItems: PTreeOption[];
265
+ leafCount: number;
266
+ };
268
267
  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;
268
+ getAllKeys: (tree: PTreeOption[], strategy: Strategy) => IKey[];
269
+ getParentKeys: (node: PTreeOption, map: Map<IKey, PTreeOption>) => never[];
270
+ getTopLevelCheckedKey: (node: PTreeOption, checked: Set<IKey>, map: Map<IKey, PTreeOption>) => string | number;
273
271
  checkedAllChange: (checked: boolean) => void;
274
- uniq: (arr: ITag[]) => ITag[];
275
- setTagData: (tree: TreeOption[]) => void;
276
272
  getFlattenKeys: (tree: TreeOption[]) => any[];
277
273
  updateTreeChecked: (keys: Array<IKey>, _: any, meta: {
278
274
  node: TreeOption | null;
279
275
  action: 'check' | 'uncheck';
280
276
  }) => void;
281
- setCheckedAll: () => void;
282
277
  clearAll: () => void;
283
- closeTag: (tag: ITag) => void;
284
- notifyCheck: (keys: IKey[]) => void;
285
- notifySearchClear: () => void;
286
- getCheckWithLevel: () => any;
278
+ updateChecked: (key: IKey, checked: boolean) => void;
279
+ notifyCheck: (key: IKey, isChecked?: boolean) => void;
280
+ checkSearchClear: (kw: string) => void;
281
+ getCheckWithLevel: (strategy?: Strategy, hideLeaf?: boolean) => {
282
+ parentNode: PTreeOption | undefined;
283
+ key: string | number;
284
+ label: string;
285
+ name: string;
286
+ labelExpand: string;
287
+ parentKey?: (string | number) | undefined;
288
+ parentName: string;
289
+ innerItemsNum: number;
290
+ children: PTreeOption[] | undefined;
291
+ leaf: boolean;
292
+ originItem: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject;
293
+ disabled?: boolean | undefined;
294
+ count?: number | undefined;
295
+ }[];
287
296
  resetParams: () => void;
288
297
  NButton: any;
289
298
  NInput: any;
290
299
  NInputGroup: any;
291
300
  NCheckbox: any;
292
301
  NTree: any;
293
- NTag: any;
294
302
  NIcon: any;
295
303
  NSpace: any;
296
304
  NGrid: any;
297
305
  NGi: any;
298
- NEmpty: any;
299
306
  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[];
307
+ SearchGroupList: import("vue").DefineComponent<{
308
+ data: {
309
+ type: PropType<{
310
+ title: string;
311
+ data: {
312
+ key: string | number;
313
+ label: string;
314
+ labelExpand: string;
315
+ parentName: string;
316
+ }[];
317
+ }[]>;
318
+ required: true;
319
+ };
320
+ type: {
321
+ type: StringConstructor;
322
+ default: string;
308
323
  };
309
324
  }, {
325
+ emit: (event: "checked", ...args: any[]) => void;
310
326
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
311
- treeData: {
312
- type: PropType<any[]>;
313
- default: () => never[];
327
+ data: {
328
+ type: PropType<{
329
+ title: string;
330
+ data: {
331
+ key: string | number;
332
+ label: string;
333
+ labelExpand: string;
334
+ parentName: string;
335
+ }[];
336
+ }[]>;
337
+ required: true;
314
338
  };
315
- checkedKeys: {
316
- type: PropType<(string | number)[]>;
317
- default: () => never[];
339
+ type: {
340
+ type: StringConstructor;
341
+ default: string;
318
342
  };
319
343
  }>> & {
320
- onNotifyCheck?: ((...args: any[]) => any) | undefined;
344
+ onChecked?: ((...args: any[]) => any) | undefined;
321
345
  }>>;
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;
346
+ renderData: import("vue").ComputedRef<{
347
+ title: string;
348
+ data: {
349
+ key: string | number;
350
+ label: string;
351
+ labelExpand: string;
352
+ parentName: string;
353
+ }[];
354
+ }[]>;
355
+ handleClick: (item: AnyObject) => void;
356
+ handleChange: (item: AnyObject, checked: boolean) => void;
357
+ NVirtualList: any;
376
358
  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[];
359
+ CDefaultPage: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
360
+ type: {
361
+ type: StringConstructor;
362
+ default: string;
363
+ };
364
+ config: {
365
+ type: PropType<AnyObject>;
366
+ default: () => {
367
+ title: string;
368
+ content: string;
369
+ };
370
+ };
371
+ }, {
372
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
373
+ type: {
374
+ type: StringConstructor;
375
+ default: string;
376
+ };
377
+ config: {
378
+ type: PropType<AnyObject>;
379
+ default: () => {
380
+ title: string;
381
+ content: string;
382
+ };
383
+ };
384
+ }>> & {
385
+ onReloadPage?: ((...args: any[]) => any) | undefined;
386
+ }>>;
387
+ emit: (event: "reloadPage", ...args: any[]) => void;
388
+ configResult: import("vue").ComputedRef<{
389
+ title: string;
390
+ content: string;
391
+ img: string;
392
+ }>;
393
+ reloadPage: () => void;
394
+ NIcon: any;
395
+ 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<{}>>, {}>;
396
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "reloadPage"[], "reloadPage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
397
+ type: {
398
+ type: StringConstructor;
399
+ default: string;
400
+ };
401
+ config: {
402
+ type: PropType<AnyObject>;
403
+ default: () => {
404
+ title: string;
405
+ content: string;
406
+ };
407
+ };
408
+ }>> & {
409
+ onReloadPage?: ((...args: any[]) => any) | undefined;
410
+ }, {
411
+ type: string;
412
+ config: AnyObject;
413
+ }>>;
414
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "checked"[], "checked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
415
+ data: {
416
+ type: PropType<{
417
+ title: string;
418
+ data: {
419
+ key: string | number;
420
+ label: string;
421
+ labelExpand: string;
422
+ parentName: string;
423
+ }[];
424
+ }[]>;
425
+ required: true;
426
+ };
427
+ type: {
428
+ type: StringConstructor;
429
+ default: string;
385
430
  };
386
431
  }>> & {
387
- onNotifyCheck?: ((...args: any[]) => any) | undefined;
432
+ onChecked?: ((...args: any[]) => any) | undefined;
388
433
  }, {
389
- treeData: any[];
390
- checkedKeys: (string | number)[];
434
+ type: string;
391
435
  }>;
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: () => {};
436
+ CDefaultPage: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
437
+ type: {
438
+ type: StringConstructor;
439
+ default: string;
404
440
  };
405
- isMultiple: {
406
- type: BooleanConstructor;
407
- default: boolean;
441
+ config: {
442
+ type: PropType<AnyObject>;
443
+ default: () => {
444
+ title: string;
445
+ content: string;
446
+ };
408
447
  };
409
448
  }, {
410
- $message: import("naive-ui").MessageApi;
411
- virtualItemHeight: number;
412
449
  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[];
450
+ type: {
451
+ type: StringConstructor;
452
+ default: string;
420
453
  };
421
- searchFilter: {
422
- type: ObjectConstructor;
423
- default: () => {};
424
- };
425
- isMultiple: {
426
- type: BooleanConstructor;
427
- default: boolean;
454
+ config: {
455
+ type: PropType<AnyObject>;
456
+ default: () => {
457
+ title: string;
458
+ content: string;
459
+ };
428
460
  };
429
461
  }>> & {
430
- onNotifyCheck?: ((...args: any[]) => any) | undefined;
431
- onNotifyClear?: ((...args: any[]) => any) | undefined;
462
+ onReloadPage?: ((...args: any[]) => any) | undefined;
432
463
  }>>;
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
- };
464
+ emit: (event: "reloadPage", ...args: any[]) => void;
465
+ configResult: import("vue").ComputedRef<{
466
+ title: string;
467
+ content: string;
468
+ img: string;
449
469
  }>;
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>;
470
+ reloadPage: () => void;
471
+ NIcon: any;
472
+ 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<{}>>, {}>;
473
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "reloadPage"[], "reloadPage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
474
+ type: {
475
+ type: StringConstructor;
476
+ default: string;
457
477
  };
458
- orgWrapperProps: import("vue").ComputedRef<{
459
- style: {
460
- width: string;
461
- height: string;
462
- marginTop: string;
478
+ config: {
479
+ type: PropType<AnyObject>;
480
+ default: () => {
481
+ title: string;
482
+ content: string;
463
483
  };
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: () => {};
513
- };
514
- isMultiple: {
515
- type: BooleanConstructor;
516
- default: boolean;
517
484
  };
518
485
  }>> & {
519
- onNotifyCheck?: ((...args: any[]) => any) | undefined;
520
- onNotifyClear?: ((...args: any[]) => any) | undefined;
486
+ onReloadPage?: ((...args: any[]) => any) | undefined;
521
487
  }, {
522
- searchFilter: Record<string, any>;
523
- treeData: any[];
524
- checkedKeys: (string | number)[];
525
- isMultiple: boolean;
526
- }>;
488
+ type: string;
489
+ config: AnyObject;
490
+ }>>;
527
491
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
528
492
  defaultList: {
529
493
  type: PropType<(IKey | ITag)[]>;
@@ -578,25 +542,9 @@ declare const _default: import("vue").DefineComponent<{
578
542
  default: undefined;
579
543
  };
580
544
  queryTreeSearch: {
581
- type: PropType<(keyWork: string) => Promise<Array<AnyObject>>>;
545
+ type: PropType<(keyWork: string) => Promise<Array<PTreeOption>>>;
582
546
  default: () => Promise<never[]>;
583
547
  };
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
548
  forceShowSelectAll: {
601
549
  type: BooleanConstructor;
602
550
  };
@@ -606,6 +554,17 @@ declare const _default: import("vue").DefineComponent<{
606
554
  onlyForwardCascade: {
607
555
  type: BooleanConstructor;
608
556
  };
557
+ height: {
558
+ type: StringConstructor;
559
+ };
560
+ hideLeaf: {
561
+ type: BooleanConstructor;
562
+ default: boolean;
563
+ };
564
+ itemKey: {
565
+ type: PropType<(node: ITreeOption) => IKey>;
566
+ default: undefined;
567
+ };
609
568
  }>>, {
610
569
  data: ITreeOption[];
611
570
  defaultList: (IKey | ITag)[];
@@ -620,11 +579,10 @@ declare const _default: import("vue").DefineComponent<{
620
579
  searchFilter: AnyObject;
621
580
  treeSetting: ITreeOption;
622
581
  queryLoadChildData: (node: TreeOption) => Promise<AnyObject>;
623
- queryTreeSearch: (keyWork: string) => Promise<Array<AnyObject>>;
624
- showSelectType: boolean;
625
- roleData: ITreeOption[];
626
- roleFields: Record<string, any>;
582
+ queryTreeSearch: (keyWork: string) => Promise<Array<PTreeOption>>;
627
583
  forceShowSelectAll: boolean;
628
584
  onlyForwardCascade: boolean;
585
+ hideLeaf: boolean;
586
+ itemKey: (node: ITreeOption) => IKey;
629
587
  }>;
630
588
  export default _default;