cnhis-design-vue 3.1.41-beta.15 → 3.1.41-beta.17

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 (39) hide show
  1. package/README.md +87 -87
  2. package/es/components/button-print/src/utils/print.js +1 -1
  3. package/es/components/field-set/index.d.ts +8 -0
  4. package/es/components/field-set/src/FieldSet.vue.d.ts +5 -0
  5. package/es/components/field-set/src/FieldSet.vue.js +1 -1
  6. package/es/components/field-set/style/index.css +1 -1
  7. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
  8. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  9. package/es/components/form-render/src/FormRender.vue.js +1 -1
  10. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  11. package/es/components/index.css +1 -1
  12. package/es/components/info-header/index.d.ts +213 -121
  13. package/es/components/info-header/src/InfoDescription.vue.d.ts +265 -0
  14. package/es/components/info-header/src/InfoDescription.vue.js +1 -0
  15. package/es/components/info-header/src/InfoHeader.vue.d.ts +217 -125
  16. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  17. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  18. package/es/components/table-filter/index.d.ts +10 -6
  19. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +4 -2
  20. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -1
  21. package/es/components/table-filter/src/classification/Classification-com.vue.d.ts +2 -2
  22. package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1
  23. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +2 -2
  24. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +2 -2
  25. package/es/components/table-filter/src/components/search-filter/index.vue.d.ts +2 -2
  26. package/es/components/table-filter/src/components/set-classification/index.vue.d.ts +2 -2
  27. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  28. package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +4 -2
  29. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -1
  30. package/es/components/table-filter/style/index.css +1 -1
  31. package/es/env.d.ts +24 -24
  32. package/package.json +2 -2
  33. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  34. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  35. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  36. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  37. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  38. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  39. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -126,6 +126,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
126
126
  "onUpdate:compact"?: ((...args: any[]) => any) | undefined;
127
127
  }>>;
128
128
  emit: (event: "openPatientInfo" | "fieldSet" | "update:compact", ...args: any[]) => void;
129
+ infoDescriptionRef: import("vue").Ref<{
130
+ updateColumn: import("../../../es/shared/types").Func<any[], any>;
131
+ } | undefined>;
132
+ updateColumn: () => any;
129
133
  toggleCompact: () => Promise<void>;
130
134
  openPatientInfo: () => void;
131
135
  fieldSet: () => void;
@@ -162,136 +166,114 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
162
166
  textColor?: string | undefined;
163
167
  } | undefined;
164
168
  }>[]>;
165
- getDescriptionItemStyle: ({ bold, contentStyle }?: import("../../../es/shared/types").AnyObject) => import("vue").CSSProperties;
166
- getEllipsisStyle: (index: number, { bold, contentStyle }?: import("../../../es/shared/types").AnyObject) => import("vue").CSSProperties;
167
- needHidden: (item: import("../../../es/shared/types").AnyObject) => boolean;
168
- infoRef: import("vue").Ref<HTMLElement | undefined>;
169
- columnNum: import("vue").Ref<number>;
170
- maxColumnWidth: import("vue").Ref<number>;
171
- descriptionWidthList: import("vue").Ref<{
172
- toString: (radix?: number | undefined) => string;
173
- toFixed: (fractionDigits?: number | undefined) => string;
174
- toExponential: (fractionDigits?: number | undefined) => string;
175
- toPrecision: (precision?: number | undefined) => string;
176
- valueOf: () => number;
177
- toLocaleString: {
178
- (locales?: string | string[] | undefined, options?: Intl.NumberFormatOptions | undefined): string;
179
- (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions | undefined): string;
180
- };
181
- }[]>;
182
- updateColumn: () => Promise<void>;
183
- timer: any;
184
- stopInterval: () => void;
185
- startInterval: () => void;
186
- NDescriptions: any;
187
- NDescriptionsItem: import("vue").DefineComponent<{
188
- readonly label: StringConstructor;
189
- readonly span: {
190
- readonly type: NumberConstructor;
191
- readonly default: 1;
192
- };
193
- readonly labelStyle: import("vue").PropType<string | import("vue").CSSProperties>;
194
- readonly contentStyle: import("vue").PropType<string | import("vue").CSSProperties>;
195
- }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
196
- readonly label: StringConstructor;
197
- readonly span: {
198
- readonly type: NumberConstructor;
199
- readonly default: 1;
200
- };
201
- readonly labelStyle: import("vue").PropType<string | import("vue").CSSProperties>;
202
- readonly contentStyle: import("vue").PropType<string | import("vue").CSSProperties>;
203
- }>>, {
204
- readonly span: number;
205
- }>;
206
- NTag: any;
207
- NScrollbar: any;
169
+ NEllipsis: any;
208
170
  NImage: any;
209
171
  NPopover: any;
210
- NEllipsis: any;
211
- SlotRender: import("vue").DefineComponent<{
212
- renderer: {
213
- type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../../es/shared/types").Func<any[], any>>;
214
- required: true;
215
- };
216
- rootSlots: {
217
- type: import("vue").PropType<Record<string, import("../../../es/shared/types").Func<any[], any>>>;
218
- };
219
- }, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
220
- renderer: {
221
- type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../../es/shared/types").Func<any[], any>>;
222
- required: true;
172
+ NTag: any;
173
+ InfoDescription: import("vue").DefineComponent<{
174
+ compact: {
175
+ type: BooleanConstructor;
176
+ required: false;
177
+ default: boolean;
223
178
  };
224
- rootSlots: {
225
- type: import("vue").PropType<Record<string, import("../../../es/shared/types").Func<any[], any>>>;
179
+ infoList: {
180
+ type: ArrayConstructor;
181
+ required: false;
182
+ default: () => never[];
226
183
  };
227
- }>>, {}>;
228
- InfoEllipsis: import("vue").DefineComponent<{
229
- content: {
184
+ labelField: {
230
185
  type: StringConstructor;
186
+ required: false;
231
187
  default: string;
232
188
  };
233
- tip: {
234
- type: StringConstructor;
235
- };
236
- contentStyle: {
237
- type: import("vue").PropType<import("vue").CSSProperties>;
238
- default: () => {};
239
- };
240
- }, {
241
- NEllipsis: any;
242
- NTooltip: any;
243
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
244
- content: {
189
+ valueField: {
245
190
  type: StringConstructor;
191
+ required: false;
246
192
  default: string;
247
193
  };
248
- tip: {
249
- type: StringConstructor;
250
- };
251
- contentStyle: {
252
- type: import("vue").PropType<import("vue").CSSProperties>;
253
- default: () => {};
254
- };
255
- }>>, {
256
- content: string;
257
- contentStyle: import("vue").CSSProperties;
258
- }>;
259
- HiddenContent: import("vue").DefineComponent<{
260
- content: {
261
- type: StringConstructor;
262
- default: string;
194
+ minColumnWidth: {
195
+ type: (NumberConstructor | StringConstructor)[];
196
+ required: false;
197
+ default: number;
263
198
  };
264
- tip: StringConstructor;
265
- width: {
266
- type: NumberConstructor;
199
+ rowHeight: {
200
+ type: (NumberConstructor | StringConstructor)[];
201
+ required: false;
202
+ default: number;
267
203
  };
268
- contentStyle: {
269
- type: import("vue").PropType<import("vue").CSSProperties>;
270
- default: () => {};
204
+ rootSlot: {
205
+ type: ObjectConstructor;
206
+ required: true;
271
207
  };
272
208
  }, {
273
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
274
- content: {
275
- type: StringConstructor;
276
- default: string;
209
+ props: {
210
+ compact: boolean;
211
+ infoList: import("../../../es/shared/types").AnyObject[];
212
+ labelField: string;
213
+ valueField: string;
214
+ minColumnWidth: string | number;
215
+ rowHeight: string | number;
216
+ rootSlot: Record<string, import("../../../es/shared/types").Func<any[], any>>;
217
+ };
218
+ getDescriptionItemStyle: ({ bold, contentStyle }?: import("../../../es/shared/types").AnyObject) => import("vue").CSSProperties;
219
+ getEllipsisStyle: (index: number, { bold, contentStyle }?: import("../../../es/shared/types").AnyObject) => import("vue").CSSProperties;
220
+ needHidden: (item: import("../../../es/shared/types").AnyObject) => boolean;
221
+ columnNum: import("vue").Ref<number>;
222
+ infoRef: import("vue").Ref<HTMLElement | undefined>;
223
+ maxColumnWidth: import("vue").Ref<number>;
224
+ descriptionWidthList: import("vue").Ref<{
225
+ toString: (radix?: number | undefined) => string;
226
+ toFixed: (fractionDigits?: number | undefined) => string;
227
+ toExponential: (fractionDigits?: number | undefined) => string;
228
+ toPrecision: (precision?: number | undefined) => string;
229
+ valueOf: () => number;
230
+ toLocaleString: {
231
+ (locales?: string | string[] | undefined, options?: Intl.NumberFormatOptions | undefined): string;
232
+ (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions | undefined): string;
277
233
  };
278
- tip: StringConstructor;
279
- width: {
280
- type: NumberConstructor;
234
+ }[]>;
235
+ updateColumn: () => Promise<void>;
236
+ timer: any;
237
+ stopInterval: () => void;
238
+ startInterval: () => void;
239
+ NDescriptions: any;
240
+ NDescriptionsItem: import("vue").DefineComponent<{
241
+ readonly label: StringConstructor;
242
+ readonly span: {
243
+ readonly type: NumberConstructor;
244
+ readonly default: 1;
281
245
  };
282
- contentStyle: {
283
- type: import("vue").PropType<import("vue").CSSProperties>;
284
- default: () => {};
246
+ readonly labelStyle: import("vue").PropType<string | import("vue").CSSProperties>;
247
+ readonly contentStyle: import("vue").PropType<string | import("vue").CSSProperties>;
248
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
249
+ readonly label: StringConstructor;
250
+ readonly span: {
251
+ readonly type: NumberConstructor;
252
+ readonly default: 1;
285
253
  };
286
- }>> & {}>>;
287
- hidden: import("vue").Ref<boolean>;
288
- toggleHidden: () => void;
289
- wrapperStyle: import("vue").ComputedRef<{
290
- maxWidth: string;
291
- width: string;
254
+ readonly labelStyle: import("vue").PropType<string | import("vue").CSSProperties>;
255
+ readonly contentStyle: import("vue").PropType<string | import("vue").CSSProperties>;
256
+ }>>, {
257
+ readonly span: number;
292
258
  }>;
293
- parsedContentStyle: import("vue").ComputedRef<{}>;
294
- displayContent: import("vue").ComputedRef<string>;
259
+ NScrollbar: any;
260
+ SlotRender: import("vue").DefineComponent<{
261
+ renderer: {
262
+ type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../../es/shared/types").Func<any[], any>>;
263
+ required: true;
264
+ };
265
+ rootSlots: {
266
+ type: import("vue").PropType<Record<string, import("../../../es/shared/types").Func<any[], any>>>;
267
+ };
268
+ }, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
269
+ renderer: {
270
+ type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../../es/shared/types").Func<any[], any>>;
271
+ required: true;
272
+ };
273
+ rootSlots: {
274
+ type: import("vue").PropType<Record<string, import("../../../es/shared/types").Func<any[], any>>>;
275
+ };
276
+ }>>, {}>;
295
277
  InfoEllipsis: import("vue").DefineComponent<{
296
278
  content: {
297
279
  type: StringConstructor;
@@ -323,22 +305,132 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
323
305
  content: string;
324
306
  contentStyle: import("vue").CSSProperties;
325
307
  }>;
308
+ HiddenContent: import("vue").DefineComponent<{
309
+ content: {
310
+ type: StringConstructor;
311
+ default: string;
312
+ };
313
+ tip: StringConstructor;
314
+ width: {
315
+ type: NumberConstructor;
316
+ };
317
+ contentStyle: {
318
+ type: import("vue").PropType<import("vue").CSSProperties>;
319
+ default: () => {};
320
+ };
321
+ }, {
322
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
323
+ content: {
324
+ type: StringConstructor;
325
+ default: string;
326
+ };
327
+ tip: StringConstructor;
328
+ width: {
329
+ type: NumberConstructor;
330
+ };
331
+ contentStyle: {
332
+ type: import("vue").PropType<import("vue").CSSProperties>;
333
+ default: () => {};
334
+ };
335
+ }>> & {}>>;
336
+ hidden: import("vue").Ref<boolean>;
337
+ toggleHidden: () => void;
338
+ wrapperStyle: import("vue").ComputedRef<{
339
+ maxWidth: string;
340
+ width: string;
341
+ }>;
342
+ parsedContentStyle: import("vue").ComputedRef<{}>;
343
+ displayContent: import("vue").ComputedRef<string>;
344
+ InfoEllipsis: import("vue").DefineComponent<{
345
+ content: {
346
+ type: StringConstructor;
347
+ default: string;
348
+ };
349
+ tip: {
350
+ type: StringConstructor;
351
+ };
352
+ contentStyle: {
353
+ type: import("vue").PropType<import("vue").CSSProperties>;
354
+ default: () => {};
355
+ };
356
+ }, {
357
+ NEllipsis: any;
358
+ NTooltip: any;
359
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
360
+ content: {
361
+ type: StringConstructor;
362
+ default: string;
363
+ };
364
+ tip: {
365
+ type: StringConstructor;
366
+ };
367
+ contentStyle: {
368
+ type: import("vue").PropType<import("vue").CSSProperties>;
369
+ default: () => {};
370
+ };
371
+ }>>, {
372
+ content: string;
373
+ contentStyle: import("vue").CSSProperties;
374
+ }>;
375
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
376
+ content: {
377
+ type: StringConstructor;
378
+ default: string;
379
+ };
380
+ tip: StringConstructor;
381
+ width: {
382
+ type: NumberConstructor;
383
+ };
384
+ contentStyle: {
385
+ type: import("vue").PropType<import("vue").CSSProperties>;
386
+ default: () => {};
387
+ };
388
+ }>>, {
389
+ content: string;
390
+ contentStyle: import("vue").CSSProperties;
391
+ }>;
326
392
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
327
- content: {
393
+ compact: {
394
+ type: BooleanConstructor;
395
+ required: false;
396
+ default: boolean;
397
+ };
398
+ infoList: {
399
+ type: ArrayConstructor;
400
+ required: false;
401
+ default: () => never[];
402
+ };
403
+ labelField: {
328
404
  type: StringConstructor;
405
+ required: false;
329
406
  default: string;
330
407
  };
331
- tip: StringConstructor;
332
- width: {
333
- type: NumberConstructor;
408
+ valueField: {
409
+ type: StringConstructor;
410
+ required: false;
411
+ default: string;
334
412
  };
335
- contentStyle: {
336
- type: import("vue").PropType<import("vue").CSSProperties>;
337
- default: () => {};
413
+ minColumnWidth: {
414
+ type: (NumberConstructor | StringConstructor)[];
415
+ required: false;
416
+ default: number;
417
+ };
418
+ rowHeight: {
419
+ type: (NumberConstructor | StringConstructor)[];
420
+ required: false;
421
+ default: number;
422
+ };
423
+ rootSlot: {
424
+ type: ObjectConstructor;
425
+ required: true;
338
426
  };
339
427
  }>>, {
340
- content: string;
341
- contentStyle: import("vue").CSSProperties;
428
+ compact: boolean;
429
+ infoList: unknown[];
430
+ labelField: string;
431
+ valueField: string;
432
+ minColumnWidth: string | number;
433
+ rowHeight: string | number;
342
434
  }>;
343
435
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("openPatientInfo" | "fieldSet" | "update:compact")[], "openPatientInfo" | "fieldSet" | "update:compact", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
344
436
  compact: {
@@ -0,0 +1,265 @@
1
+ import { AnyObject, Func } from '../../../../es/shared/types';
2
+ import { CSSProperties } from 'vue';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ compact: {
5
+ type: BooleanConstructor;
6
+ required: false;
7
+ default: boolean;
8
+ };
9
+ infoList: {
10
+ type: ArrayConstructor;
11
+ required: false;
12
+ default: () => never[];
13
+ };
14
+ labelField: {
15
+ type: StringConstructor;
16
+ required: false;
17
+ default: string;
18
+ };
19
+ valueField: {
20
+ type: StringConstructor;
21
+ required: false;
22
+ default: string;
23
+ };
24
+ minColumnWidth: {
25
+ type: (NumberConstructor | StringConstructor)[];
26
+ required: false;
27
+ default: number;
28
+ };
29
+ rowHeight: {
30
+ type: (NumberConstructor | StringConstructor)[];
31
+ required: false;
32
+ default: number;
33
+ };
34
+ rootSlot: {
35
+ type: ObjectConstructor;
36
+ required: true;
37
+ };
38
+ }, {
39
+ props: {
40
+ compact: boolean;
41
+ infoList: AnyObject[];
42
+ labelField: string;
43
+ valueField: string;
44
+ minColumnWidth: string | number;
45
+ rowHeight: string | number;
46
+ rootSlot: Record<string, Func>;
47
+ };
48
+ getDescriptionItemStyle: ({ bold, contentStyle }?: AnyObject) => CSSProperties;
49
+ getEllipsisStyle: (index: number, { bold, contentStyle }?: AnyObject) => CSSProperties;
50
+ needHidden: (item: AnyObject) => boolean;
51
+ columnNum: import("vue").Ref<number>;
52
+ infoRef: import("vue").Ref<HTMLElement | undefined>;
53
+ maxColumnWidth: import("vue").Ref<number>;
54
+ descriptionWidthList: import("vue").Ref<{
55
+ toString: (radix?: number | undefined) => string;
56
+ toFixed: (fractionDigits?: number | undefined) => string;
57
+ toExponential: (fractionDigits?: number | undefined) => string;
58
+ toPrecision: (precision?: number | undefined) => string;
59
+ valueOf: () => number;
60
+ toLocaleString: {
61
+ (locales?: string | string[] | undefined, options?: Intl.NumberFormatOptions | undefined): string;
62
+ (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions | undefined): string;
63
+ };
64
+ }[]>;
65
+ updateColumn: () => Promise<void>;
66
+ timer: any;
67
+ stopInterval: () => void;
68
+ startInterval: () => void;
69
+ NDescriptions: any;
70
+ NDescriptionsItem: import("vue").DefineComponent<{
71
+ readonly label: StringConstructor;
72
+ readonly span: {
73
+ readonly type: NumberConstructor;
74
+ readonly default: 1;
75
+ };
76
+ readonly labelStyle: import("vue").PropType<string | CSSProperties>;
77
+ readonly contentStyle: import("vue").PropType<string | CSSProperties>;
78
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
79
+ readonly label: StringConstructor;
80
+ readonly span: {
81
+ readonly type: NumberConstructor;
82
+ readonly default: 1;
83
+ };
84
+ readonly labelStyle: import("vue").PropType<string | CSSProperties>;
85
+ readonly contentStyle: import("vue").PropType<string | CSSProperties>;
86
+ }>>, {
87
+ readonly span: number;
88
+ }>;
89
+ NScrollbar: any;
90
+ SlotRender: import("vue").DefineComponent<{
91
+ renderer: {
92
+ type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | Func<any[], any>>;
93
+ required: true;
94
+ };
95
+ rootSlots: {
96
+ type: import("vue").PropType<Record<string, Func<any[], any>>>;
97
+ };
98
+ }, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
99
+ renderer: {
100
+ type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | Func<any[], any>>;
101
+ required: true;
102
+ };
103
+ rootSlots: {
104
+ type: import("vue").PropType<Record<string, Func<any[], any>>>;
105
+ };
106
+ }>>, {}>;
107
+ InfoEllipsis: import("vue").DefineComponent<{
108
+ content: {
109
+ type: StringConstructor;
110
+ default: string;
111
+ };
112
+ tip: {
113
+ type: StringConstructor;
114
+ };
115
+ contentStyle: {
116
+ type: import("vue").PropType<CSSProperties>;
117
+ default: () => {};
118
+ };
119
+ }, {
120
+ NEllipsis: any;
121
+ NTooltip: any;
122
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
123
+ content: {
124
+ type: StringConstructor;
125
+ default: string;
126
+ };
127
+ tip: {
128
+ type: StringConstructor;
129
+ };
130
+ contentStyle: {
131
+ type: import("vue").PropType<CSSProperties>;
132
+ default: () => {};
133
+ };
134
+ }>>, {
135
+ content: string;
136
+ contentStyle: CSSProperties;
137
+ }>;
138
+ HiddenContent: import("vue").DefineComponent<{
139
+ content: {
140
+ type: StringConstructor;
141
+ default: string;
142
+ };
143
+ tip: StringConstructor;
144
+ width: {
145
+ type: NumberConstructor;
146
+ };
147
+ contentStyle: {
148
+ type: import("vue").PropType<CSSProperties>;
149
+ default: () => {};
150
+ };
151
+ }, {
152
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
153
+ content: {
154
+ type: StringConstructor;
155
+ default: string;
156
+ };
157
+ tip: StringConstructor;
158
+ width: {
159
+ type: NumberConstructor;
160
+ };
161
+ contentStyle: {
162
+ type: import("vue").PropType<CSSProperties>;
163
+ default: () => {};
164
+ };
165
+ }>> & {}>>;
166
+ hidden: import("vue").Ref<boolean>;
167
+ toggleHidden: () => void;
168
+ wrapperStyle: import("vue").ComputedRef<{
169
+ maxWidth: string;
170
+ width: string;
171
+ }>;
172
+ parsedContentStyle: import("vue").ComputedRef<{}>;
173
+ displayContent: import("vue").ComputedRef<string>;
174
+ InfoEllipsis: import("vue").DefineComponent<{
175
+ content: {
176
+ type: StringConstructor;
177
+ default: string;
178
+ };
179
+ tip: {
180
+ type: StringConstructor;
181
+ };
182
+ contentStyle: {
183
+ type: import("vue").PropType<CSSProperties>;
184
+ default: () => {};
185
+ };
186
+ }, {
187
+ NEllipsis: any;
188
+ NTooltip: any;
189
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
190
+ content: {
191
+ type: StringConstructor;
192
+ default: string;
193
+ };
194
+ tip: {
195
+ type: StringConstructor;
196
+ };
197
+ contentStyle: {
198
+ type: import("vue").PropType<CSSProperties>;
199
+ default: () => {};
200
+ };
201
+ }>>, {
202
+ content: string;
203
+ contentStyle: CSSProperties;
204
+ }>;
205
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
206
+ content: {
207
+ type: StringConstructor;
208
+ default: string;
209
+ };
210
+ tip: StringConstructor;
211
+ width: {
212
+ type: NumberConstructor;
213
+ };
214
+ contentStyle: {
215
+ type: import("vue").PropType<CSSProperties>;
216
+ default: () => {};
217
+ };
218
+ }>>, {
219
+ content: string;
220
+ contentStyle: CSSProperties;
221
+ }>;
222
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
223
+ compact: {
224
+ type: BooleanConstructor;
225
+ required: false;
226
+ default: boolean;
227
+ };
228
+ infoList: {
229
+ type: ArrayConstructor;
230
+ required: false;
231
+ default: () => never[];
232
+ };
233
+ labelField: {
234
+ type: StringConstructor;
235
+ required: false;
236
+ default: string;
237
+ };
238
+ valueField: {
239
+ type: StringConstructor;
240
+ required: false;
241
+ default: string;
242
+ };
243
+ minColumnWidth: {
244
+ type: (NumberConstructor | StringConstructor)[];
245
+ required: false;
246
+ default: number;
247
+ };
248
+ rowHeight: {
249
+ type: (NumberConstructor | StringConstructor)[];
250
+ required: false;
251
+ default: number;
252
+ };
253
+ rootSlot: {
254
+ type: ObjectConstructor;
255
+ required: true;
256
+ };
257
+ }>>, {
258
+ compact: boolean;
259
+ infoList: unknown[];
260
+ labelField: string;
261
+ valueField: string;
262
+ minColumnWidth: string | number;
263
+ rowHeight: string | number;
264
+ }>;
265
+ export default _default;
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,nextTick as l,onMounted as o,watch as n,onBeforeUnmount as i,onDeactivated as r,onActivated as a,openBlock as u,createElementBlock as s,normalizeStyle as c,createVNode as d,unref as f,withCtx as p,createCommentVNode as m,renderSlot as h,Fragment as v,renderList as y,createBlock as _,createElementVNode as w}from"vue";import{useThrottleFn as b,useEventListener as g}from"@vueuse/core";import{NScrollbar as W,NDescriptions as x,NDescriptionsItem as F}from"naive-ui";import S from"../../../shared/components/SlotRender/SlotRender.js";import k from"./InfoEllipsis.vue.js";import C from"./HiddenContent.vue.js";import I from"../../../_virtual/plugin-vue_export-helper.js";const j=w("section",{style:{height:"10px"}},null,-1),H=w("section",{style:{height:"12px"}},null,-1);var L=I(e({__name:"InfoDescription",props:{compact:{type:Boolean,default:!0},infoList:{default:()=>[]},labelField:{default:"label"},valueField:{default:"value"},minColumnWidth:{default:180},rowHeight:{default:32},rootSlot:null},setup(e,{expose:w}){const I=e;function L({bold:e=!0,contentStyle:t={}}={}){return{fontWeight:e?700:500,...t}}function R(e,{bold:t=!0,contentStyle:l={}}={}){const o=z.value[e]+"px";return{width:o,maxWidth:o,fontWeight:t?700:500,...l}}function A(e){return["电话","身份证"].some((t=>{var l,o;return null==(o=null==(l=e[I.labelField])?void 0:l.includes)?void 0:o.call(l,t)}))}const D=t(3),M=t(),q=t(0),z=t([]),B=b((async function(){await l();const e=M.value;if(!e)return;const{clientWidth:t}=e;D.value=Math.floor(t/+I.minColumnWidth),q.value=Math.floor(t/D.value),await l();const o=e.querySelectorAll(".n-descriptions-table-content__label");o&&(z.value=Array.from(o).map((e=>q.value-e.clientWidth-8)))}),200,!0,!1);let E;function $(){clearInterval(E)}function G(){$(),E=setInterval(B,700)}return o(B),n([()=>I.minColumnWidth,()=>I.infoList],B,{flush:"post",deep:!0}),g(window,"resize",B),i($),r($),a(G),o(G),w({updateColumn:B}),(t,l)=>(u(),s("section",{class:"c-info-header__info",ref_key:"infoRef",ref:M,style:c({"--row-height":e.rowHeight,"--column-width":q.value})},[d(f(W),{class:"c-info-header__infoWrapper",style:c({"--row-num":e.compact?1:2})},{default:p((()=>[m(" 描述信息区插槽 "),h(t.$slots,"info",{},(()=>[j,d(f(x),{"label-align":"right",style:{width:"100%"},"label-placement":"left",separator:":",column:D.value},{default:p((()=>[(u(!0),s(v,null,y(e.infoList,((t,l)=>(u(),_(f(F),{key:t[e.labelField],label:t[e.labelField]},{default:p((()=>[t.slot?(u(),_(f(S),{key:0,renderer:t.slot,"root-slots":e.rootSlot,item:t,style:c(L(t)),width:z.value[l]},null,8,["renderer","root-slots","item","style","width"])):A(t)?(u(),_(C,{key:1,content:t[e.valueField],tip:t.tip,"content-style":L(t),width:z.value[l]},null,8,["content","tip","content-style","width"])):(u(),_(k,{key:2,"content-style":R(l,t),content:t[e.valueField],tip:t.tip},null,8,["content-style","content","tip"]))])),_:2},1032,["label"])))),128))])),_:1},8,["column"]),H]))])),_:3},8,["style"])],4))}}),[["__file","InfoDescription.vue"]]);export{L as default};