zjh-web-ui 1.0.10 → 1.0.12

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 (126) hide show
  1. package/README.md +1 -1
  2. package/config/resolver.js +1 -1
  3. package/dist/components/HuiAMapMassMarkers/HuiAMapMassMarkers.vue.js +23 -23
  4. package/dist/components/HuiAMapSearchAddress/HuiAMapSearchAddress.vue.js +2 -2
  5. package/dist/components/HuiAMapSearchAddress/HuiAMapSearchAddress.vue2.js +27 -27
  6. package/dist/components/HuiAMapSearchAddressDialog/HuiAMapSearchAddressDialog.vue.js +38 -38
  7. package/dist/components/HuiAMapSelectAddress/HuiAMapSelectAddress.vue.js +2 -2
  8. package/dist/components/HuiAMapSelectAddress/HuiAMapSelectAddress.vue2.js +80 -80
  9. package/dist/components/HuiAMapSelectAddressDialog/HuiAMapSelectAddressDialog.vue.js +23 -23
  10. package/dist/components/HuiCountDownButton/HuiCountDownButton.vue.js +14 -14
  11. package/dist/components/HuiDataView/HuiDataView.vue2.js +37 -37
  12. package/dist/components/HuiGridForm/HuiGridForm.vue.js +2 -2
  13. package/dist/components/HuiGridForm/HuiGridForm.vue2.js +103 -103
  14. package/dist/components/HuiGridForm/HuiGridFormHooks.js +1 -1
  15. package/dist/components/HuiLineEditDialog/HuiLineEditDialog.vue2.js +69 -69
  16. package/dist/components/HuiLineEditPopover/HuiLineEditPopover.vue2.js +47 -47
  17. package/dist/components/HuiPreviewRichTextDialog/HuiPreviewRichTextDialog.vue.js +21 -21
  18. package/dist/components/HuiRegionTreeDialog/HuiRegionTreeDialog.vue.js +49 -49
  19. package/dist/components/HuiRegionTreeSelect/HuiRegionTreeSelect.vue.js +2 -2
  20. package/dist/components/HuiRegionTreeSelect/HuiRegionTreeSelect.vue2.js +3 -3
  21. package/dist/components/HuiSelectLoadStatus/HuiSelectLoadStatus.vue.js +14 -14
  22. package/dist/components/HuiShowUrlDialog/HuiShowUrlDialog.vue.js +18 -18
  23. package/dist/components/HuiStringArrayInputDialog/HuiStringArrayInputDialog.vue.js +50 -50
  24. package/dist/components/HuiTags/HuiTags.vue2.js +9 -9
  25. package/dist/components/HuiTagsMore/HuiTagsMore.vue.js +12 -16
  26. package/dist/components/HuiTinymce/HuiTinymce.vue.js +10 -10
  27. package/dist/components/HuiTinymce/HuiTinymceLinkHooks.js +1 -1
  28. package/dist/components/HuiTinymce/HuiTinymceSettingHooks.js +1 -1
  29. package/dist/components/HuiTinymceDialog/HuiTinymceDialog.vue.js +43 -43
  30. package/dist/components/HuiTip/HuiTip.vue.js +15 -15
  31. package/dist/hooks/useHuiFormDialog/useHuiFormDialog.js +1 -1
  32. package/dist/index.d.ts +2116 -0
  33. package/dist/style.css +1 -1
  34. package/dist/utils/hui-rules.js +1 -1
  35. package/dist/utils/hui-tool/message-box/index.js +7 -7
  36. package/dist/utils/hui-tool/message-box/message-box.vue2.js +112 -0
  37. package/dist/utils/hui-tool/message-box/message-box.vue3.js +2 -2
  38. package/global.d.ts +21 -21
  39. package/package.json +2 -2
  40. package/src/css/common-font.scss +3 -3
  41. package/types/index.d.ts +2115 -12
  42. package/dist/utils/hui-tool/message-box/message-box.vue.js +0 -112
  43. package/types/components/AMapConfig.d.ts +0 -2
  44. package/types/components/HuiAMapMassMarkers/HuiAMapMassMarkers.vue.d.ts +0 -105
  45. package/types/components/HuiAMapMassMarkers/index.d.ts +0 -107
  46. package/types/components/HuiAMapMassMarkers/type.d.ts +0 -58
  47. package/types/components/HuiAMapSearchAddress/HuiAMapSearchAddress.vue.d.ts +0 -76
  48. package/types/components/HuiAMapSearchAddress/index.d.ts +0 -77
  49. package/types/components/HuiAMapSearchAddress/type.d.ts +0 -19
  50. package/types/components/HuiAMapSearchAddressDialog/HuiAMapSearchAddressDialog.vue.d.ts +0 -38
  51. package/types/components/HuiAMapSearchAddressDialog/index.d.ts +0 -71
  52. package/types/components/HuiAMapSearchAddressDialog/type.d.ts +0 -17
  53. package/types/components/HuiAMapSelectAddress/HuiAMapSelectAddress.vue.d.ts +0 -76
  54. package/types/components/HuiAMapSelectAddress/index.d.ts +0 -77
  55. package/types/components/HuiAMapSelectAddress/type.d.ts +0 -19
  56. package/types/components/HuiAMapSelectAddressDialog/HuiAMapSelectAddressDialog.vue.d.ts +0 -38
  57. package/types/components/HuiAMapSelectAddressDialog/index.d.ts +0 -71
  58. package/types/components/HuiAMapSelectAddressDialog/type.d.ts +0 -17
  59. package/types/components/HuiCountDownButton/HuiCountDownButton.vue.d.ts +0 -44
  60. package/types/components/HuiCountDownButton/index.d.ts +0 -76
  61. package/types/components/HuiCountDownButton/type.d.ts +0 -20
  62. package/types/components/HuiDataView/HuiDataView.vue.d.ts +0 -60
  63. package/types/components/HuiDataView/index.d.ts +0 -109
  64. package/types/components/HuiDataView/type.d.ts +0 -49
  65. package/types/components/HuiGridForm/HuiGridForm.vue.d.ts +0 -77
  66. package/types/components/HuiGridForm/HuiGridFormHooks.d.ts +0 -4
  67. package/types/components/HuiGridForm/index.d.ts +0 -175
  68. package/types/components/HuiGridForm/type.d.ts +0 -67
  69. package/types/components/HuiLineEditDialog/HuiLineEditDialog.vue.d.ts +0 -75
  70. package/types/components/HuiLineEditDialog/index.d.ts +0 -173
  71. package/types/components/HuiLineEditDialog/type.d.ts +0 -86
  72. package/types/components/HuiLineEditPopover/HuiLineEditPopover.vue.d.ts +0 -74
  73. package/types/components/HuiLineEditPopover/index.d.ts +0 -133
  74. package/types/components/HuiLineEditPopover/type.d.ts +0 -23
  75. package/types/components/HuiPreviewRichTextDialog/HuiPreviewRichTextDialog.vue.d.ts +0 -31
  76. package/types/components/HuiPreviewRichTextDialog/index.d.ts +0 -22
  77. package/types/components/HuiPreviewRichTextDialog/type.d.ts +0 -4
  78. package/types/components/HuiRegionTreeDialog/HuiRegionTreeDialog.vue.d.ts +0 -53
  79. package/types/components/HuiRegionTreeDialog/index.d.ts +0 -68
  80. package/types/components/HuiRegionTreeDialog/type.d.ts +0 -24
  81. package/types/components/HuiRegionTreeSelect/HuiRegionTreeSelect.vue.d.ts +0 -25
  82. package/types/components/HuiRegionTreeSelect/index.d.ts +0 -29
  83. package/types/components/HuiRegionTreeSelect/type.d.ts +0 -6
  84. package/types/components/HuiSelectLoadStatus/HuiSelectLoadStatus.vue.d.ts +0 -14
  85. package/types/components/HuiSelectLoadStatus/index.d.ts +0 -33
  86. package/types/components/HuiSelectLoadStatus/type.d.ts +0 -11
  87. package/types/components/HuiShowUrlDialog/HuiShowUrlDialog.vue.d.ts +0 -37
  88. package/types/components/HuiShowUrlDialog/index.d.ts +0 -40
  89. package/types/components/HuiShowUrlDialog/type.d.ts +0 -11
  90. package/types/components/HuiStringArrayInputDialog/HuiStringArrayInputDialog.vue.d.ts +0 -44
  91. package/types/components/HuiStringArrayInputDialog/index.d.ts +0 -67
  92. package/types/components/HuiStringArrayInputDialog/type.d.ts +0 -33
  93. package/types/components/HuiTags/HuiTags.vue.d.ts +0 -37
  94. package/types/components/HuiTags/index.d.ts +0 -36
  95. package/types/components/HuiTagsMore/HuiTagsMore.vue.d.ts +0 -93
  96. package/types/components/HuiTagsMore/index.d.ts +0 -92
  97. package/types/components/HuiTinymce/HuiTinymce.vue.d.ts +0 -62
  98. package/types/components/HuiTinymce/HuiTinymceLinkHooks.d.ts +0 -3
  99. package/types/components/HuiTinymce/HuiTinymceSettingHooks.d.ts +0 -3
  100. package/types/components/HuiTinymce/index.d.ts +0 -66
  101. package/types/components/HuiTinymce/type.d.ts +0 -51
  102. package/types/components/HuiTinymceDialog/HuiTinymceDialog.vue.d.ts +0 -53
  103. package/types/components/HuiTinymceDialog/index.d.ts +0 -78
  104. package/types/components/HuiTinymceDialog/type.d.ts +0 -12
  105. package/types/components/HuiTip/HuiTip.vue.d.ts +0 -22
  106. package/types/components/HuiTip/index.d.ts +0 -99
  107. package/types/components/HuiTip/type.d.ts +0 -14
  108. package/types/components-install-list.d.ts +0 -3328
  109. package/types/components.d.ts +0 -21
  110. package/types/delegate.d.ts +0 -41
  111. package/types/directives/index.d.ts +0 -4
  112. package/types/directives/install-loadmore.d.ts +0 -7
  113. package/types/directives/select-loadmore.d.ts +0 -7
  114. package/types/hooks/index.d.ts +0 -3
  115. package/types/hooks/useHuiDialog/useHuiDialog.d.ts +0 -18
  116. package/types/hooks/useHuiFormDialog/formDialogPropsDef.d.ts +0 -3
  117. package/types/hooks/useHuiFormDialog/type.d.ts +0 -90
  118. package/types/hooks/useHuiFormDialog/useHuiFormDialog.d.ts +0 -32
  119. package/types/install-helper/install.d.ts +0 -18
  120. package/types/install-helper/typescript.d.ts +0 -14
  121. package/types/utils/hui-rules.d.ts +0 -80
  122. package/types/utils/hui-tool/index.d.ts +0 -8
  123. package/types/utils/hui-tool/message-box/index.d.ts +0 -18
  124. package/types/utils/hui-tool/message-box/message-box.vue.d.ts +0 -36
  125. package/types/utils/hui-tool/msg-tool.d.ts +0 -26
  126. package/types/utils/index.d.ts +0 -2
@@ -0,0 +1,2116 @@
1
+ import { AllowedComponentProps } from 'vue';
2
+ import { App } from 'vue';
3
+ import { Arrayable } from 'element-plus/es/utils';
4
+ import { ComponentCustomProps } from 'vue';
5
+ import { ComponentOptionsBase } from 'vue';
6
+ import { ComponentOptionsMixin } from 'vue';
7
+ import { ComponentProvideOptions } from 'vue';
8
+ import { CreateComponentPublicInstanceWithMixins } from 'vue';
9
+ import { DefineComponent } from 'vue';
10
+ import { Directive } from 'vue';
11
+ import { ExtractPropTypes } from 'vue';
12
+ import { FormItemRule } from 'element-plus';
13
+ import { GlobalComponents } from 'vue';
14
+ import { GlobalDirectives } from 'vue';
15
+ import { ModelRef } from 'vue';
16
+ import { Plugin as Plugin_2 } from 'vue';
17
+ import { PropType } from 'vue';
18
+ import { PublicProps } from 'vue';
19
+ import { Ref } from 'vue';
20
+ import { VNodeProps } from 'vue';
21
+
22
+ declare const _default: {
23
+ install: (app: App<any>, opt?: HuiOptions) => void;
24
+ };
25
+ export default _default;
26
+
27
+ export declare const formDialogPropsDef: {
28
+ permission: ObjectConstructor;
29
+ };
30
+
31
+ /**
32
+ * 组件导出
33
+ */
34
+ export declare const HuiAMapMassMarkers: SFCWithInstall<DefineComponent<ExtractPropTypes<{
35
+ modelValue: PropType<any>;
36
+ iconPath: {
37
+ type: PropType<string>;
38
+ default: string;
39
+ };
40
+ value: {
41
+ type: PropType<IPointItem>;
42
+ };
43
+ width: {
44
+ type: PropType<string>;
45
+ default: string;
46
+ };
47
+ height: {
48
+ type: PropType<string>;
49
+ default: string;
50
+ };
51
+ showLabel: {
52
+ type: PropType<boolean>;
53
+ default: boolean;
54
+ };
55
+ direction: {
56
+ type: PropType<"top" | "right" | "bottom" | "left" | "center">;
57
+ default: string;
58
+ };
59
+ textStyle: {
60
+ type: PropType<IPointTextStyle>;
61
+ default: () => {
62
+ fontSize: number;
63
+ borderRadius: number;
64
+ };
65
+ };
66
+ iconSize: {
67
+ type: PropType<[number, number]>;
68
+ default: () => number[];
69
+ };
70
+ mapCenter: {
71
+ type: PropType<[number, number]>;
72
+ default: () => number[];
73
+ };
74
+ }>, {
75
+ handleLabelMarkerClick: (event: any, point: any) => void;
76
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
77
+ pointClick: (...args: any[]) => void;
78
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
79
+ modelValue: PropType<any>;
80
+ iconPath: {
81
+ type: PropType<string>;
82
+ default: string;
83
+ };
84
+ value: {
85
+ type: PropType<IPointItem>;
86
+ };
87
+ width: {
88
+ type: PropType<string>;
89
+ default: string;
90
+ };
91
+ height: {
92
+ type: PropType<string>;
93
+ default: string;
94
+ };
95
+ showLabel: {
96
+ type: PropType<boolean>;
97
+ default: boolean;
98
+ };
99
+ direction: {
100
+ type: PropType<"top" | "right" | "bottom" | "left" | "center">;
101
+ default: string;
102
+ };
103
+ textStyle: {
104
+ type: PropType<IPointTextStyle>;
105
+ default: () => {
106
+ fontSize: number;
107
+ borderRadius: number;
108
+ };
109
+ };
110
+ iconSize: {
111
+ type: PropType<[number, number]>;
112
+ default: () => number[];
113
+ };
114
+ mapCenter: {
115
+ type: PropType<[number, number]>;
116
+ default: () => number[];
117
+ };
118
+ }>> & Readonly<{
119
+ onPointClick?: (...args: any[]) => any;
120
+ }>, {
121
+ iconPath: string;
122
+ width: string;
123
+ height: string;
124
+ showLabel: boolean;
125
+ direction: "top" | "right" | "bottom" | "left" | "center";
126
+ textStyle: IPointTextStyle;
127
+ iconSize: [number, number];
128
+ mapCenter: [number, number];
129
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
130
+
131
+ /**
132
+ * 倒计时按钮
133
+ */
134
+ export declare const HuiAMapSearchAddress: SFCWithInstall<DefineComponent<ExtractPropTypes<{
135
+ modelValue: PropType<any>;
136
+ iconPath: {
137
+ type: PropType<string>;
138
+ default: string;
139
+ };
140
+ value: {
141
+ type: PropType<any>;
142
+ };
143
+ width: {
144
+ type: PropType<string>;
145
+ default: string;
146
+ };
147
+ height: {
148
+ type: PropType<string>;
149
+ default: string;
150
+ };
151
+ disabled: {
152
+ type: PropType<boolean>;
153
+ default: boolean;
154
+ };
155
+ showInput: {
156
+ type: PropType<boolean>;
157
+ default: boolean;
158
+ };
159
+ iconClass: {
160
+ type: PropType<string>;
161
+ default: string;
162
+ };
163
+ }>, {
164
+ loadMap: () => void;
165
+ setupMap: () => void;
166
+ poi: ModelRef<any, string, any, any>;
167
+ submitInfo: () => boolean;
168
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
169
+ modelValue: PropType<any>;
170
+ iconPath: {
171
+ type: PropType<string>;
172
+ default: string;
173
+ };
174
+ value: {
175
+ type: PropType<any>;
176
+ };
177
+ width: {
178
+ type: PropType<string>;
179
+ default: string;
180
+ };
181
+ height: {
182
+ type: PropType<string>;
183
+ default: string;
184
+ };
185
+ disabled: {
186
+ type: PropType<boolean>;
187
+ default: boolean;
188
+ };
189
+ showInput: {
190
+ type: PropType<boolean>;
191
+ default: boolean;
192
+ };
193
+ iconClass: {
194
+ type: PropType<string>;
195
+ default: string;
196
+ };
197
+ }>> & Readonly<{}>, {
198
+ iconPath: string;
199
+ width: string;
200
+ height: string;
201
+ disabled: boolean;
202
+ showInput: boolean;
203
+ iconClass: string;
204
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
205
+
206
+ /**
207
+ * 地图选择位置弹窗
208
+ */
209
+ export declare const HuiAMapSearchAddressDialog: SFCWithInstall<DefineComponent<ExtractPropTypes<{
210
+ title: {
211
+ type: PropType<string>;
212
+ default: string;
213
+ };
214
+ iconPath: {
215
+ type: PropType<string>;
216
+ };
217
+ value: {
218
+ type: PropType<any>;
219
+ };
220
+ width: {
221
+ type: PropType<string>;
222
+ default: string;
223
+ };
224
+ height: {
225
+ type: PropType<string>;
226
+ };
227
+ disabled: {
228
+ type: PropType<boolean>;
229
+ };
230
+ showInput: {
231
+ type: PropType<boolean>;
232
+ };
233
+ iconClass: {
234
+ type: PropType<string>;
235
+ };
236
+ }>, {
237
+ open: (dataId?: string, info?: {}) => void;
238
+ close: () => void;
239
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
240
+ onSubmit: (poi: any) => void;
241
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
242
+ title: {
243
+ type: PropType<string>;
244
+ default: string;
245
+ };
246
+ iconPath: {
247
+ type: PropType<string>;
248
+ };
249
+ value: {
250
+ type: PropType<any>;
251
+ };
252
+ width: {
253
+ type: PropType<string>;
254
+ default: string;
255
+ };
256
+ height: {
257
+ type: PropType<string>;
258
+ };
259
+ disabled: {
260
+ type: PropType<boolean>;
261
+ };
262
+ showInput: {
263
+ type: PropType<boolean>;
264
+ };
265
+ iconClass: {
266
+ type: PropType<string>;
267
+ };
268
+ }>> & Readonly<{
269
+ onOnSubmit?: (poi: any) => any;
270
+ }>, {
271
+ title: string;
272
+ width: string;
273
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
274
+
275
+ /**
276
+ * 倒计时按钮
277
+ */
278
+ export declare const HuiAMapSelectAddress: SFCWithInstall<DefineComponent<ExtractPropTypes<{
279
+ modelValue: PropType<any>;
280
+ iconPath: {
281
+ type: PropType<string>;
282
+ default: string;
283
+ };
284
+ value: {
285
+ type: PropType<any>;
286
+ };
287
+ width: {
288
+ type: PropType<string>;
289
+ default: string;
290
+ };
291
+ height: {
292
+ type: PropType<string>;
293
+ default: string;
294
+ };
295
+ disabled: {
296
+ type: PropType<boolean>;
297
+ default: boolean;
298
+ };
299
+ showInput: {
300
+ type: PropType<boolean>;
301
+ default: boolean;
302
+ };
303
+ iconClass: {
304
+ type: PropType<string>;
305
+ default: string;
306
+ };
307
+ }>, {
308
+ loadMap: () => void;
309
+ setupMap: () => void;
310
+ poi: ModelRef<any, string, any, any>;
311
+ submitInfo: () => boolean;
312
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
313
+ modelValue: PropType<any>;
314
+ iconPath: {
315
+ type: PropType<string>;
316
+ default: string;
317
+ };
318
+ value: {
319
+ type: PropType<any>;
320
+ };
321
+ width: {
322
+ type: PropType<string>;
323
+ default: string;
324
+ };
325
+ height: {
326
+ type: PropType<string>;
327
+ default: string;
328
+ };
329
+ disabled: {
330
+ type: PropType<boolean>;
331
+ default: boolean;
332
+ };
333
+ showInput: {
334
+ type: PropType<boolean>;
335
+ default: boolean;
336
+ };
337
+ iconClass: {
338
+ type: PropType<string>;
339
+ default: string;
340
+ };
341
+ }>> & Readonly<{}>, {
342
+ iconPath: string;
343
+ width: string;
344
+ height: string;
345
+ disabled: boolean;
346
+ showInput: boolean;
347
+ iconClass: string;
348
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
349
+
350
+ /**
351
+ * 地图选择位置弹窗
352
+ */
353
+ export declare const HuiAMapSelectAddressDialog: SFCWithInstall<DefineComponent<ExtractPropTypes<{
354
+ title: {
355
+ type: PropType<string>;
356
+ default: string;
357
+ };
358
+ iconPath: {
359
+ type: PropType<string>;
360
+ };
361
+ value: {
362
+ type: PropType<any>;
363
+ };
364
+ width: {
365
+ type: PropType<string>;
366
+ default: string;
367
+ };
368
+ height: {
369
+ type: PropType<string>;
370
+ };
371
+ disabled: {
372
+ type: PropType<boolean>;
373
+ };
374
+ showInput: {
375
+ type: PropType<boolean>;
376
+ };
377
+ iconClass: {
378
+ type: PropType<string>;
379
+ };
380
+ }>, {
381
+ open: (dataId?: string, info?: {}) => void;
382
+ close: () => void;
383
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
384
+ onSubmit: (poi: any) => void;
385
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
386
+ title: {
387
+ type: PropType<string>;
388
+ default: string;
389
+ };
390
+ iconPath: {
391
+ type: PropType<string>;
392
+ };
393
+ value: {
394
+ type: PropType<any>;
395
+ };
396
+ width: {
397
+ type: PropType<string>;
398
+ default: string;
399
+ };
400
+ height: {
401
+ type: PropType<string>;
402
+ };
403
+ disabled: {
404
+ type: PropType<boolean>;
405
+ };
406
+ showInput: {
407
+ type: PropType<boolean>;
408
+ };
409
+ iconClass: {
410
+ type: PropType<string>;
411
+ };
412
+ }>> & Readonly<{
413
+ onOnSubmit?: (poi: any) => any;
414
+ }>, {
415
+ title: string;
416
+ width: string;
417
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
418
+
419
+ /**
420
+ * 倒计时按钮
421
+ */
422
+ export declare const HuiCountDownButton: SFCWithInstall<DefineComponent<ExtractPropTypes<{
423
+ title: {
424
+ type: PropType<string>;
425
+ required: true;
426
+ };
427
+ type: {
428
+ type: PropType<"button" | "text">;
429
+ required: true;
430
+ default: string;
431
+ };
432
+ baseClass: {
433
+ type: PropType<string>;
434
+ required: true;
435
+ };
436
+ timeCount: {
437
+ type: PropType<string | number>;
438
+ required: true;
439
+ default: number;
440
+ };
441
+ enableClass: {
442
+ type: PropType<string>;
443
+ required: true;
444
+ default: string;
445
+ };
446
+ disableClass: {
447
+ type: PropType<string>;
448
+ required: true;
449
+ default: string;
450
+ };
451
+ }>, {
452
+ resetState: () => void;
453
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
454
+ click: (callback: (isStart?: boolean) => void) => void;
455
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
456
+ title: {
457
+ type: PropType<string>;
458
+ required: true;
459
+ };
460
+ type: {
461
+ type: PropType<"button" | "text">;
462
+ required: true;
463
+ default: string;
464
+ };
465
+ baseClass: {
466
+ type: PropType<string>;
467
+ required: true;
468
+ };
469
+ timeCount: {
470
+ type: PropType<string | number>;
471
+ required: true;
472
+ default: number;
473
+ };
474
+ enableClass: {
475
+ type: PropType<string>;
476
+ required: true;
477
+ default: string;
478
+ };
479
+ disableClass: {
480
+ type: PropType<string>;
481
+ required: true;
482
+ default: string;
483
+ };
484
+ }>> & Readonly<{
485
+ onClick?: (callback: (isStart?: boolean) => void) => any;
486
+ }>, {
487
+ type: "button" | "text";
488
+ timeCount: string | number;
489
+ enableClass: string;
490
+ disableClass: string;
491
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
492
+
493
+ /**
494
+ * 组件导出
495
+ */
496
+ export declare const HuiDataView: SFCWithInstall<{
497
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
498
+ data: {
499
+ type: PropType<{
500
+ [key: string]: any;
501
+ }>;
502
+ };
503
+ config: {
504
+ type: PropType< HuiDataViewConfig[]>;
505
+ required: true;
506
+ };
507
+ lineCount: {
508
+ type: PropType<number>;
509
+ default: number;
510
+ };
511
+ titleWidth: {
512
+ type: PropType<string | number>;
513
+ default: string;
514
+ };
515
+ }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
516
+ lineCount: number;
517
+ titleWidth: string | number;
518
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
519
+ P: {};
520
+ B: {};
521
+ D: {};
522
+ C: {};
523
+ M: {};
524
+ Defaults: {};
525
+ }, Readonly< ExtractPropTypes<{
526
+ data: {
527
+ type: PropType<{
528
+ [key: string]: any;
529
+ }>;
530
+ };
531
+ config: {
532
+ type: PropType< HuiDataViewConfig[]>;
533
+ required: true;
534
+ };
535
+ lineCount: {
536
+ type: PropType<number>;
537
+ default: number;
538
+ };
539
+ titleWidth: {
540
+ type: PropType<string | number>;
541
+ default: string;
542
+ };
543
+ }>> & Readonly<{}>, {}, {}, {}, {}, {
544
+ lineCount: number;
545
+ titleWidth: string | number;
546
+ }>;
547
+ __isFragment?: never;
548
+ __isTeleport?: never;
549
+ __isSuspense?: never;
550
+ } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
551
+ data: {
552
+ type: PropType<{
553
+ [key: string]: any;
554
+ }>;
555
+ };
556
+ config: {
557
+ type: PropType< HuiDataViewConfig[]>;
558
+ required: true;
559
+ };
560
+ lineCount: {
561
+ type: PropType<number>;
562
+ default: number;
563
+ };
564
+ titleWidth: {
565
+ type: PropType<string | number>;
566
+ default: string;
567
+ };
568
+ }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
569
+ lineCount: number;
570
+ titleWidth: string | number;
571
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
572
+ $slots: Partial<Record<string, (_: {
573
+ prop: string;
574
+ value: string | string[];
575
+ title: string;
576
+ rightText?: string;
577
+ class?: string;
578
+ handler?: (item: any) => void;
579
+ type?: string;
580
+ }) => any>> & Partial<Record<string, (_: {
581
+ prop: string;
582
+ value: string | string[];
583
+ title: string;
584
+ rightText?: string;
585
+ class?: string;
586
+ handler?: (item: any) => void;
587
+ type?: string;
588
+ }) => any>> & Partial<Record<string, (_: {
589
+ prop: string;
590
+ value: string | string[];
591
+ title: string;
592
+ rightText?: string;
593
+ class?: string;
594
+ handler?: (item: any) => void;
595
+ type?: string;
596
+ }) => any>>;
597
+ })> & Record<string, any>;
598
+
599
+ declare interface HuiDataViewConfig {
600
+ /**
601
+ * 表格项id
602
+ * @type {string}
603
+ */
604
+ prop: string;
605
+ /**
606
+ * 表格项的值
607
+ * @type {string | null}
608
+ */
609
+ value: string | null | string[];
610
+ /**
611
+ * 表格每一项的标题
612
+ * @type {string}
613
+ */
614
+ title: string;
615
+ /**
616
+ * 列表项右侧文字
617
+ * @type {string}
618
+ */
619
+ rightText?: string;
620
+ /**
621
+ * value项的动态class
622
+ * @type {string | null}
623
+ */
624
+ class?: string;
625
+ /**
626
+ * rightText的点击触发事件
627
+ * @type {function}
628
+ */
629
+ handler?: (item: any) => void;
630
+ /**
631
+ * 内容展示的类型,type== 'img' 那么显示图片
632
+ * @type {string}
633
+ */
634
+ type?: string;
635
+ }
636
+
637
+ export declare interface HuiDelegate {
638
+ /**
639
+ * 地区的所有数据
640
+ * @returns
641
+ */
642
+ getRegionTree?: () => any[] | Promise<any[]>;
643
+ /**
644
+ * 上传oss
645
+ * @param file 文件信息
646
+ * @returns {Promise<[any, any]>} 上传后的结果
647
+ */
648
+ putOss?: (file: File | Blob | any) => Promise<[any, any]>;
649
+ /**
650
+ * 地图相关配置
651
+ */
652
+ amapConfig?: {
653
+ key: string;
654
+ serviceHost: string;
655
+ };
656
+ /**
657
+ * 获取按钮权限
658
+ * @returns
659
+ */
660
+ getBtnPermission?: () => {
661
+ [key: string]: any;
662
+ };
663
+ /**
664
+ * 其他配置
665
+ */
666
+ [key: string]: any;
667
+ }
668
+
669
+ declare interface HuiFormDialogParamsPermission {
670
+ /**
671
+ * 新增接口需要的权限code
672
+ */
673
+ postCode?: string;
674
+ /**
675
+ * 编辑接口需要的权限code
676
+ */
677
+ putCode?: string;
678
+ /**
679
+ * 新增接口没有权限的时候提示的文字
680
+ */
681
+ postCodeTip?: string;
682
+ /**
683
+ * 编辑接口没有权限的时候提示的文字
684
+ */
685
+ putCodeTip?: string;
686
+ /**
687
+ * 权限处理方法
688
+ */
689
+ checkRight?: (type: string) => boolean;
690
+ }
691
+
692
+ /**
693
+ * 动态网格表单
694
+ */
695
+ export declare const HuiGridForm: SFCWithInstall<{
696
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
697
+ config: {
698
+ type: PropType< HuiGridFormConfigItem[]>;
699
+ required: true;
700
+ };
701
+ isCanAppend: {
702
+ type: PropType<boolean>;
703
+ default: boolean;
704
+ };
705
+ handSort: {
706
+ type: PropType<boolean>;
707
+ default: boolean;
708
+ };
709
+ handDelete: {
710
+ type: PropType<boolean>;
711
+ default: boolean;
712
+ };
713
+ listData: {
714
+ type: PropType<{
715
+ [key: string]: any;
716
+ }[]>;
717
+ default: () => any[];
718
+ };
719
+ gridFromClass: {
720
+ type: PropType<string>;
721
+ default: string;
722
+ };
723
+ isCanDeleteItem: {
724
+ type: PropType<(item: any, index: number) => boolean>;
725
+ };
726
+ btnText: {
727
+ type: PropType<string>;
728
+ default: string;
729
+ };
730
+ }>> & Readonly<{
731
+ onOnRemoveItem?: (item: any) => any;
732
+ }>, {
733
+ getData: (isCheck?: boolean) => any;
734
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
735
+ onRemoveItem: (item: any) => void;
736
+ }, PublicProps, {
737
+ isCanAppend: boolean;
738
+ handSort: boolean;
739
+ handDelete: boolean;
740
+ listData: {
741
+ [key: string]: any;
742
+ }[];
743
+ gridFromClass: string;
744
+ btnText: string;
745
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
746
+ P: {};
747
+ B: {};
748
+ D: {};
749
+ C: {};
750
+ M: {};
751
+ Defaults: {};
752
+ }, Readonly< ExtractPropTypes<{
753
+ config: {
754
+ type: PropType< HuiGridFormConfigItem[]>;
755
+ required: true;
756
+ };
757
+ isCanAppend: {
758
+ type: PropType<boolean>;
759
+ default: boolean;
760
+ };
761
+ handSort: {
762
+ type: PropType<boolean>;
763
+ default: boolean;
764
+ };
765
+ handDelete: {
766
+ type: PropType<boolean>;
767
+ default: boolean;
768
+ };
769
+ listData: {
770
+ type: PropType<{
771
+ [key: string]: any;
772
+ }[]>;
773
+ default: () => any[];
774
+ };
775
+ gridFromClass: {
776
+ type: PropType<string>;
777
+ default: string;
778
+ };
779
+ isCanDeleteItem: {
780
+ type: PropType<(item: any, index: number) => boolean>;
781
+ };
782
+ btnText: {
783
+ type: PropType<string>;
784
+ default: string;
785
+ };
786
+ }>> & Readonly<{
787
+ onOnRemoveItem?: (item: any) => any;
788
+ }>, {
789
+ getData: (isCheck?: boolean) => any;
790
+ }, {}, {}, {}, {
791
+ isCanAppend: boolean;
792
+ handSort: boolean;
793
+ handDelete: boolean;
794
+ listData: {
795
+ [key: string]: any;
796
+ }[];
797
+ gridFromClass: string;
798
+ btnText: string;
799
+ }>;
800
+ __isFragment?: never;
801
+ __isTeleport?: never;
802
+ __isSuspense?: never;
803
+ } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
804
+ config: {
805
+ type: PropType< HuiGridFormConfigItem[]>;
806
+ required: true;
807
+ };
808
+ isCanAppend: {
809
+ type: PropType<boolean>;
810
+ default: boolean;
811
+ };
812
+ handSort: {
813
+ type: PropType<boolean>;
814
+ default: boolean;
815
+ };
816
+ handDelete: {
817
+ type: PropType<boolean>;
818
+ default: boolean;
819
+ };
820
+ listData: {
821
+ type: PropType<{
822
+ [key: string]: any;
823
+ }[]>;
824
+ default: () => any[];
825
+ };
826
+ gridFromClass: {
827
+ type: PropType<string>;
828
+ default: string;
829
+ };
830
+ isCanDeleteItem: {
831
+ type: PropType<(item: any, index: number) => boolean>;
832
+ };
833
+ btnText: {
834
+ type: PropType<string>;
835
+ default: string;
836
+ };
837
+ }>> & Readonly<{
838
+ onOnRemoveItem?: (item: any) => any;
839
+ }>, {
840
+ getData: (isCheck?: boolean) => any;
841
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
842
+ onRemoveItem: (item: any) => void;
843
+ }, string, {
844
+ isCanAppend: boolean;
845
+ handSort: boolean;
846
+ handDelete: boolean;
847
+ listData: {
848
+ [key: string]: any;
849
+ }[];
850
+ gridFromClass: string;
851
+ btnText: string;
852
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
853
+ $slots: Partial<Record<any, (_: {
854
+ dataItem: any;
855
+ el: any;
856
+ prop: any;
857
+ }) => any>> & Partial<Record<`${any}-option`, (_: {
858
+ option: any;
859
+ prop: any;
860
+ propConfig: any;
861
+ }) => any>>;
862
+ })> & Record<string, any>;
863
+
864
+ declare interface HuiGridFormConfigItem {
865
+ /** 列表项的key */
866
+ prop: string;
867
+ /** 输入框append插槽显示的内容 */
868
+ append?: string;
869
+ /** 提示内容 */
870
+ placeholder?: string;
871
+ /** 显示输入框还是下拉选择 */
872
+ type?: 'input' | 'select';
873
+ /** 输入框数据类型 默认为number */
874
+ dataType?: string;
875
+ /** 输入框的style主要用来设置颜色 */
876
+ style?: string;
877
+ /** 下拉选择的数据字典 */
878
+ dict?: {
879
+ [key: string]: any;
880
+ }[];
881
+ /** 是否只读 */
882
+ readonly?: boolean;
883
+ /** 标题 */
884
+ title: string;
885
+ /** 错误提示信息 */
886
+ errMsg?: string;
887
+ /** 标题宽度 */
888
+ width: string;
889
+ /** v-bind其他属性值 */
890
+ attr?: {
891
+ [key: string]: any;
892
+ };
893
+ /** 是否必填 */
894
+ required?: boolean;
895
+ /** select 是否可以重复选择 */
896
+ reselected?: boolean;
897
+ /** 是否显示 x */
898
+ clearable?: boolean;
899
+ /** 是否还有option选项可以选择 */
900
+ isAllUsed?: boolean;
901
+ }
902
+
903
+ /**
904
+ * 组件导出
905
+ */
906
+ export declare const HuiLineEditDialog: SFCWithInstall<DefineComponent<ExtractPropTypes<{
907
+ label: {
908
+ type: PropType<string>;
909
+ default: string;
910
+ };
911
+ title: {
912
+ type: PropType<string>;
913
+ default: string;
914
+ };
915
+ type: {
916
+ type: PropType<string>;
917
+ default: string;
918
+ };
919
+ placeholder: {
920
+ type: PropType<string>;
921
+ };
922
+ isNeedDoubleConfirm: {
923
+ type: PropType<boolean>;
924
+ default: boolean;
925
+ };
926
+ permission: {
927
+ type: PropType<{
928
+ code?: string;
929
+ tip?: string;
930
+ checkRight?: () => boolean;
931
+ }>;
932
+ default: () => {};
933
+ };
934
+ prop: {
935
+ type: PropType<string>;
936
+ required: true;
937
+ };
938
+ labelWidth: {
939
+ type: PropType<string>;
940
+ required: true;
941
+ default: string;
942
+ };
943
+ rules: {
944
+ type: PropType<any>;
945
+ };
946
+ selectDic: {
947
+ type: PropType< HuiLineEditDialogComboItem[]>;
948
+ required: true;
949
+ default: () => any[];
950
+ };
951
+ isSelectMuti: {
952
+ type: PropType<boolean>;
953
+ required: true;
954
+ default: boolean;
955
+ };
956
+ doubleConfirmTips: {
957
+ type: PropType<string>;
958
+ default: string;
959
+ };
960
+ attr: {
961
+ type: PropType<{
962
+ [key: string]: any;
963
+ }>;
964
+ required: true;
965
+ default: () => {};
966
+ };
967
+ formAttr: {
968
+ type: PropType<{
969
+ [key: string]: any;
970
+ }>;
971
+ required: true;
972
+ default: () => {};
973
+ };
974
+ }>, {
975
+ open: (dataId?: string, info?: {}) => void;
976
+ close: () => void;
977
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
978
+ onSubmit: (row: any, prop: string) => void;
979
+ onValueChange: (form: any, row?: any) => void;
980
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
981
+ label: {
982
+ type: PropType<string>;
983
+ default: string;
984
+ };
985
+ title: {
986
+ type: PropType<string>;
987
+ default: string;
988
+ };
989
+ type: {
990
+ type: PropType<string>;
991
+ default: string;
992
+ };
993
+ placeholder: {
994
+ type: PropType<string>;
995
+ };
996
+ isNeedDoubleConfirm: {
997
+ type: PropType<boolean>;
998
+ default: boolean;
999
+ };
1000
+ permission: {
1001
+ type: PropType<{
1002
+ code?: string;
1003
+ tip?: string;
1004
+ checkRight?: () => boolean;
1005
+ }>;
1006
+ default: () => {};
1007
+ };
1008
+ prop: {
1009
+ type: PropType<string>;
1010
+ required: true;
1011
+ };
1012
+ labelWidth: {
1013
+ type: PropType<string>;
1014
+ required: true;
1015
+ default: string;
1016
+ };
1017
+ rules: {
1018
+ type: PropType<any>;
1019
+ };
1020
+ selectDic: {
1021
+ type: PropType< HuiLineEditDialogComboItem[]>;
1022
+ required: true;
1023
+ default: () => any[];
1024
+ };
1025
+ isSelectMuti: {
1026
+ type: PropType<boolean>;
1027
+ required: true;
1028
+ default: boolean;
1029
+ };
1030
+ doubleConfirmTips: {
1031
+ type: PropType<string>;
1032
+ default: string;
1033
+ };
1034
+ attr: {
1035
+ type: PropType<{
1036
+ [key: string]: any;
1037
+ }>;
1038
+ required: true;
1039
+ default: () => {};
1040
+ };
1041
+ formAttr: {
1042
+ type: PropType<{
1043
+ [key: string]: any;
1044
+ }>;
1045
+ required: true;
1046
+ default: () => {};
1047
+ };
1048
+ }>> & Readonly<{
1049
+ onOnSubmit?: (row: any, prop: string) => any;
1050
+ onOnValueChange?: (form: any, row?: any) => any;
1051
+ }>, {
1052
+ label: string;
1053
+ title: string;
1054
+ type: string;
1055
+ isNeedDoubleConfirm: boolean;
1056
+ permission: {
1057
+ code?: string;
1058
+ tip?: string;
1059
+ checkRight?: () => boolean;
1060
+ };
1061
+ labelWidth: string;
1062
+ selectDic: HuiLineEditDialogComboItem[];
1063
+ isSelectMuti: boolean;
1064
+ doubleConfirmTips: string;
1065
+ attr: {
1066
+ [key: string]: any;
1067
+ };
1068
+ formAttr: {
1069
+ [key: string]: any;
1070
+ };
1071
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
1072
+
1073
+ /**
1074
+ * 定义参数类型
1075
+ */
1076
+ declare type HuiLineEditDialogComboItem = {
1077
+ label: string;
1078
+ value: string | number;
1079
+ };
1080
+
1081
+ /**
1082
+ * 行编辑popover
1083
+ */
1084
+ export declare const HuiLineEditPopover: SFCWithInstall<{
1085
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
1086
+ row: PropType<{
1087
+ [key: string]: string;
1088
+ }>;
1089
+ width: {
1090
+ type: PropType<number>;
1091
+ required: true;
1092
+ default: number;
1093
+ };
1094
+ disabled: {
1095
+ type: PropType<boolean>;
1096
+ required: true;
1097
+ default: boolean;
1098
+ };
1099
+ baseClass: {
1100
+ type: PropType<string>;
1101
+ required: true;
1102
+ default: string;
1103
+ };
1104
+ rules: {
1105
+ type: PropType<any>;
1106
+ };
1107
+ field: {
1108
+ type: PropType<string>;
1109
+ required: true;
1110
+ };
1111
+ }>> & Readonly<{
1112
+ onConfirm?: (row: {
1113
+ [key: string]: string;
1114
+ }) => any;
1115
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1116
+ confirm: (row: {
1117
+ [key: string]: string;
1118
+ }) => void;
1119
+ }, PublicProps, {
1120
+ width: number;
1121
+ disabled: boolean;
1122
+ baseClass: string;
1123
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
1124
+ P: {};
1125
+ B: {};
1126
+ D: {};
1127
+ C: {};
1128
+ M: {};
1129
+ Defaults: {};
1130
+ }, Readonly< ExtractPropTypes<{
1131
+ row: PropType<{
1132
+ [key: string]: string;
1133
+ }>;
1134
+ width: {
1135
+ type: PropType<number>;
1136
+ required: true;
1137
+ default: number;
1138
+ };
1139
+ disabled: {
1140
+ type: PropType<boolean>;
1141
+ required: true;
1142
+ default: boolean;
1143
+ };
1144
+ baseClass: {
1145
+ type: PropType<string>;
1146
+ required: true;
1147
+ default: string;
1148
+ };
1149
+ rules: {
1150
+ type: PropType<any>;
1151
+ };
1152
+ field: {
1153
+ type: PropType<string>;
1154
+ required: true;
1155
+ };
1156
+ }>> & Readonly<{
1157
+ onConfirm?: (row: {
1158
+ [key: string]: string;
1159
+ }) => any;
1160
+ }>, {}, {}, {}, {}, {
1161
+ width: number;
1162
+ disabled: boolean;
1163
+ baseClass: string;
1164
+ }>;
1165
+ __isFragment?: never;
1166
+ __isTeleport?: never;
1167
+ __isSuspense?: never;
1168
+ } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
1169
+ row: PropType<{
1170
+ [key: string]: string;
1171
+ }>;
1172
+ width: {
1173
+ type: PropType<number>;
1174
+ required: true;
1175
+ default: number;
1176
+ };
1177
+ disabled: {
1178
+ type: PropType<boolean>;
1179
+ required: true;
1180
+ default: boolean;
1181
+ };
1182
+ baseClass: {
1183
+ type: PropType<string>;
1184
+ required: true;
1185
+ default: string;
1186
+ };
1187
+ rules: {
1188
+ type: PropType<any>;
1189
+ };
1190
+ field: {
1191
+ type: PropType<string>;
1192
+ required: true;
1193
+ };
1194
+ }>> & Readonly<{
1195
+ onConfirm?: (row: {
1196
+ [key: string]: string;
1197
+ }) => any;
1198
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1199
+ confirm: (row: {
1200
+ [key: string]: string;
1201
+ }) => void;
1202
+ }, string, {
1203
+ width: number;
1204
+ disabled: boolean;
1205
+ baseClass: string;
1206
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1207
+ $slots: {
1208
+ default?(_: {}): any;
1209
+ };
1210
+ })> & Record<string, any>;
1211
+
1212
+ /**
1213
+ * option选项
1214
+ */
1215
+ export declare type HuiOptions = {
1216
+ isInstallComponents?: boolean;
1217
+ delegate?: HuiDelegate;
1218
+ };
1219
+
1220
+ /**
1221
+ * 富文本预览组件
1222
+ */
1223
+ export declare const HuiPreviewRichTextDialog: SFCWithInstall<DefineComponent<ExtractPropTypes<{
1224
+ title: {
1225
+ type: PropType<string>;
1226
+ default: string;
1227
+ };
1228
+ }>, {
1229
+ open: (dataId?: string, info?: {}) => void;
1230
+ close: () => void;
1231
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
1232
+ title: {
1233
+ type: PropType<string>;
1234
+ default: string;
1235
+ };
1236
+ }>> & Readonly<{}>, {
1237
+ title: string;
1238
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
1239
+
1240
+ /**
1241
+ * 地区选择弹窗
1242
+ */
1243
+ export declare const HuiRegionTreeDialog: SFCWithInstall<DefineComponent<ExtractPropTypes<{
1244
+ accordion: {
1245
+ type: PropType<boolean>;
1246
+ default: boolean;
1247
+ };
1248
+ nodeKey: {
1249
+ type: PropType<string>;
1250
+ default: string;
1251
+ };
1252
+ treeLabelKey: {
1253
+ type: PropType<string>;
1254
+ default: string;
1255
+ };
1256
+ isConfirmClose: {
1257
+ type: PropType<boolean>;
1258
+ default: boolean;
1259
+ };
1260
+ showCheckbox: {
1261
+ type: PropType<boolean>;
1262
+ default: boolean;
1263
+ };
1264
+ }>, {
1265
+ open: (dataId?: string, info?: {}) => void;
1266
+ close: () => void;
1267
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1268
+ onSubmit: (region: {
1269
+ id: string;
1270
+ regionList: any[];
1271
+ }) => void;
1272
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
1273
+ accordion: {
1274
+ type: PropType<boolean>;
1275
+ default: boolean;
1276
+ };
1277
+ nodeKey: {
1278
+ type: PropType<string>;
1279
+ default: string;
1280
+ };
1281
+ treeLabelKey: {
1282
+ type: PropType<string>;
1283
+ default: string;
1284
+ };
1285
+ isConfirmClose: {
1286
+ type: PropType<boolean>;
1287
+ default: boolean;
1288
+ };
1289
+ showCheckbox: {
1290
+ type: PropType<boolean>;
1291
+ default: boolean;
1292
+ };
1293
+ }>> & Readonly<{
1294
+ onOnSubmit?: (region: {
1295
+ id: string;
1296
+ regionList: any[];
1297
+ }) => any;
1298
+ }>, {
1299
+ accordion: boolean;
1300
+ nodeKey: string;
1301
+ treeLabelKey: string;
1302
+ isConfirmClose: boolean;
1303
+ showCheckbox: boolean;
1304
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
1305
+
1306
+ /**
1307
+ * 地区树select
1308
+ */
1309
+ export declare const HuiRegionTreeSelect: SFCWithInstall<DefineComponent<ExtractPropTypes<{
1310
+ modelValue: PropType<string | string[]>;
1311
+ treeData: {
1312
+ type: PropType<any[]>;
1313
+ };
1314
+ disabledRegions: {
1315
+ type: PropType<string[]>;
1316
+ default: () => any[];
1317
+ };
1318
+ }>, {
1319
+ selectedRegions: ModelRef<string | string[], string, string | string[], string | string[]>;
1320
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
1321
+ modelValue: PropType<string | string[]>;
1322
+ treeData: {
1323
+ type: PropType<any[]>;
1324
+ };
1325
+ disabledRegions: {
1326
+ type: PropType<string[]>;
1327
+ default: () => any[];
1328
+ };
1329
+ }>> & Readonly<{}>, {
1330
+ disabledRegions: string[];
1331
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
1332
+
1333
+ export declare const HuiRules: {
1334
+ /**
1335
+ * 校验必传
1336
+ * @param {string} tips 错误提示
1337
+ */
1338
+ required: (tips?: string) => {
1339
+ validator: (rule: any, value: any, callback: any) => any;
1340
+ trigger: string;
1341
+ };
1342
+ /**
1343
+ * 是否url
1344
+ * @param {string} tips 错误提示
1345
+ */
1346
+ urlRule: (tips?: string) => {
1347
+ validator: (rule: any, value: any, callback: any) => any;
1348
+ trigger: string;
1349
+ };
1350
+ /**
1351
+ * 是否版本号
1352
+ * @param {string} tips 错误提示
1353
+ */
1354
+ versionRule: (tips?: string) => {
1355
+ validator: (rule: any, value: any, callback: any) => any;
1356
+ trigger: string;
1357
+ };
1358
+ /**
1359
+ * 是否json
1360
+ * @param {string} tips 错误提示
1361
+ */
1362
+ jsonRule: (tips?: string) => {
1363
+ validator: (rule: any, value: any, callback: any) => any;
1364
+ trigger: string;
1365
+ };
1366
+ /**
1367
+ * 验证整数
1368
+ * @param {boolean} isCanZero 是否能输0
1369
+ * @param {boolean} isCanNegative 是否能输负数
1370
+ */
1371
+ intNumRule: (isCanZero?: boolean, isCanNegative?: boolean) => {
1372
+ validator: (rule: any, value: any, callback: any) => any;
1373
+ trigger: string;
1374
+ };
1375
+ /**
1376
+ * 验证小数
1377
+ * @param {number} digit 小数位数
1378
+ * @param {boolean} isCanZero 是否能输0
1379
+ * @param {boolean} isCanNegative 是否能输负数
1380
+ */
1381
+ digitNumRule: (digit?: number, isCanZero?: boolean, isCanNegative?: boolean) => {
1382
+ validator: (rule: any, value: any, callback: any) => any;
1383
+ trigger: string;
1384
+ };
1385
+ /**
1386
+ * 验证码验证
1387
+ * @param {string} tips 错误提示
1388
+ * @param {number} codeLength 验证码长度
1389
+ */
1390
+ codeRule: (tips?: string, codeLength?: number) => {
1391
+ validator: (rule: any, value: any, callback: any) => any;
1392
+ trigger: string;
1393
+ };
1394
+ /**
1395
+ * 电话号码验证
1396
+ * @param {string} tips 错误提示
1397
+ */
1398
+ phoneNumRule: (tips?: string) => {
1399
+ validator: (rule: any, value: any, callback: any) => any;
1400
+ trigger: string;
1401
+ };
1402
+ /**
1403
+ * 验证数字范围
1404
+ * @param {number | string} min 最小值
1405
+ * @param {number | string} max 最大值
1406
+ * @param {string} tips 错误提示
1407
+ */
1408
+ numRangeRule: (min: any, max: any, tips?: string) => {
1409
+ validator: (rule: any, value: any, callback: any) => any;
1410
+ trigger: string;
1411
+ };
1412
+ };
1413
+
1414
+ /**
1415
+ * select下来加载状态组件
1416
+ */
1417
+ export declare const HuiSelectLoadStatus: SFCWithInstall<DefineComponent<ExtractPropTypes<{
1418
+ loading: {
1419
+ type: PropType<boolean>;
1420
+ required: true;
1421
+ };
1422
+ length: {
1423
+ type: PropType<number>;
1424
+ required: true;
1425
+ };
1426
+ leave: {
1427
+ type: PropType<number>;
1428
+ required: true;
1429
+ };
1430
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
1431
+ loading: {
1432
+ type: PropType<boolean>;
1433
+ required: true;
1434
+ };
1435
+ length: {
1436
+ type: PropType<number>;
1437
+ required: true;
1438
+ };
1439
+ leave: {
1440
+ type: PropType<number>;
1441
+ required: true;
1442
+ };
1443
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
1444
+
1445
+ /**
1446
+ * 链接预览弹窗
1447
+ */
1448
+ export declare const HuiShowUrlDialog: SFCWithInstall<DefineComponent<ExtractPropTypes<{
1449
+ title: {
1450
+ type: PropType<string>;
1451
+ default: string;
1452
+ };
1453
+ width: {
1454
+ type: PropType<string>;
1455
+ default: string;
1456
+ };
1457
+ height: {
1458
+ type: PropType<string>;
1459
+ default: string;
1460
+ };
1461
+ }>, {
1462
+ open: (dataId?: string, info?: {}) => void;
1463
+ close: () => void;
1464
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
1465
+ title: {
1466
+ type: PropType<string>;
1467
+ default: string;
1468
+ };
1469
+ width: {
1470
+ type: PropType<string>;
1471
+ default: string;
1472
+ };
1473
+ height: {
1474
+ type: PropType<string>;
1475
+ default: string;
1476
+ };
1477
+ }>> & Readonly<{}>, {
1478
+ title: string;
1479
+ width: string;
1480
+ height: string;
1481
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
1482
+
1483
+ /**
1484
+ * 逗号分割字符串输入对话框
1485
+ */
1486
+ export declare const HuiStringArrayInputDialog: SFCWithInstall<DefineComponent<ExtractPropTypes<{
1487
+ label: {
1488
+ type: PropType<string>;
1489
+ required: true;
1490
+ default: string;
1491
+ };
1492
+ title: {
1493
+ type: PropType<string>;
1494
+ required: true;
1495
+ default: string;
1496
+ };
1497
+ placeholder: {
1498
+ type: PropType<string>;
1499
+ required: true;
1500
+ default: string;
1501
+ };
1502
+ rules: {
1503
+ type: PropType<Arrayable<FormItemRule>>;
1504
+ };
1505
+ tips: {
1506
+ type: PropType<boolean>;
1507
+ default: boolean;
1508
+ };
1509
+ }>, {
1510
+ open: (dataId?: string, info?: {}) => void;
1511
+ close: () => void;
1512
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1513
+ onSubmit: (id: string, info: string) => void;
1514
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
1515
+ label: {
1516
+ type: PropType<string>;
1517
+ required: true;
1518
+ default: string;
1519
+ };
1520
+ title: {
1521
+ type: PropType<string>;
1522
+ required: true;
1523
+ default: string;
1524
+ };
1525
+ placeholder: {
1526
+ type: PropType<string>;
1527
+ required: true;
1528
+ default: string;
1529
+ };
1530
+ rules: {
1531
+ type: PropType<Arrayable<FormItemRule>>;
1532
+ };
1533
+ tips: {
1534
+ type: PropType<boolean>;
1535
+ default: boolean;
1536
+ };
1537
+ }>> & Readonly<{
1538
+ onOnSubmit?: (id: string, info: string) => any;
1539
+ }>, {
1540
+ label: string;
1541
+ title: string;
1542
+ placeholder: string;
1543
+ tips: boolean;
1544
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
1545
+
1546
+ /**
1547
+ * 标签
1548
+ */
1549
+ export declare const HuiTags: SFCWithInstall<DefineComponent<ExtractPropTypes<{
1550
+ text: {
1551
+ type: PropType<string>;
1552
+ required: true;
1553
+ default: string;
1554
+ };
1555
+ tagType: {
1556
+ type: PropType<"info" | "success" | "warning" | "danger" | "primary">;
1557
+ default: string;
1558
+ };
1559
+ tagClass: {
1560
+ type: PropType<string>;
1561
+ };
1562
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
1563
+ text: {
1564
+ type: PropType<string>;
1565
+ required: true;
1566
+ default: string;
1567
+ };
1568
+ tagType: {
1569
+ type: PropType<"info" | "success" | "warning" | "danger" | "primary">;
1570
+ default: string;
1571
+ };
1572
+ tagClass: {
1573
+ type: PropType<string>;
1574
+ };
1575
+ }>> & Readonly<{}>, {
1576
+ text: string;
1577
+ tagType: "info" | "success" | "warning" | "danger" | "primary";
1578
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
1579
+
1580
+ /**
1581
+ * 标签
1582
+ */
1583
+ export declare const HuiTagsMore: SFCWithInstall<DefineComponent<ExtractPropTypes<{
1584
+ tagsList: {
1585
+ type: ArrayConstructor;
1586
+ default: () => any[];
1587
+ };
1588
+ dictObj: {
1589
+ type: () => TagItem;
1590
+ default: () => void;
1591
+ };
1592
+ showTips: {
1593
+ type: BooleanConstructor;
1594
+ default: boolean;
1595
+ };
1596
+ width: {
1597
+ type: NumberConstructor;
1598
+ default: number;
1599
+ };
1600
+ valueKey: {
1601
+ type: StringConstructor;
1602
+ default: string;
1603
+ };
1604
+ labelKey: {
1605
+ type: StringConstructor;
1606
+ default: string;
1607
+ };
1608
+ isElTag: {
1609
+ type: BooleanConstructor;
1610
+ default: boolean;
1611
+ };
1612
+ elTagType: {
1613
+ type: StringConstructor;
1614
+ default: string;
1615
+ };
1616
+ elTagAttr: {
1617
+ type: ObjectConstructor;
1618
+ default: () => {};
1619
+ };
1620
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
1621
+ tagsList: {
1622
+ type: ArrayConstructor;
1623
+ default: () => any[];
1624
+ };
1625
+ dictObj: {
1626
+ type: () => TagItem;
1627
+ default: () => void;
1628
+ };
1629
+ showTips: {
1630
+ type: BooleanConstructor;
1631
+ default: boolean;
1632
+ };
1633
+ width: {
1634
+ type: NumberConstructor;
1635
+ default: number;
1636
+ };
1637
+ valueKey: {
1638
+ type: StringConstructor;
1639
+ default: string;
1640
+ };
1641
+ labelKey: {
1642
+ type: StringConstructor;
1643
+ default: string;
1644
+ };
1645
+ isElTag: {
1646
+ type: BooleanConstructor;
1647
+ default: boolean;
1648
+ };
1649
+ elTagType: {
1650
+ type: StringConstructor;
1651
+ default: string;
1652
+ };
1653
+ elTagAttr: {
1654
+ type: ObjectConstructor;
1655
+ default: () => {};
1656
+ };
1657
+ }>> & Readonly<{}>, {
1658
+ width: number;
1659
+ valueKey: string;
1660
+ tagsList: unknown[];
1661
+ dictObj: TagItem;
1662
+ showTips: boolean;
1663
+ labelKey: string;
1664
+ isElTag: boolean;
1665
+ elTagType: string;
1666
+ elTagAttr: Record<string, any>;
1667
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
1668
+
1669
+ /**
1670
+ * 富文本编辑弹窗
1671
+ */
1672
+ export declare const HuiTinymce: SFCWithInstall<DefineComponent<ExtractPropTypes<{
1673
+ modelValue: PropType<string>;
1674
+ width: {
1675
+ type: PropType<string>;
1676
+ required: true;
1677
+ default: string;
1678
+ };
1679
+ height: {
1680
+ type: PropType<string | number>;
1681
+ required: true;
1682
+ default: string;
1683
+ };
1684
+ permission: {
1685
+ type: PropType<{
1686
+ code?: "";
1687
+ checkRight?: () => boolean;
1688
+ tip?: string;
1689
+ }>;
1690
+ };
1691
+ linkAttribute: {
1692
+ type: PropType< HuiTinymceLink[]>;
1693
+ required: true;
1694
+ default: () => {
1695
+ title: string;
1696
+ value: string;
1697
+ }[];
1698
+ };
1699
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
1700
+ modelValue: PropType<string>;
1701
+ width: {
1702
+ type: PropType<string>;
1703
+ required: true;
1704
+ default: string;
1705
+ };
1706
+ height: {
1707
+ type: PropType<string | number>;
1708
+ required: true;
1709
+ default: string;
1710
+ };
1711
+ permission: {
1712
+ type: PropType<{
1713
+ code?: "";
1714
+ checkRight?: () => boolean;
1715
+ tip?: string;
1716
+ }>;
1717
+ };
1718
+ linkAttribute: {
1719
+ type: PropType< HuiTinymceLink[]>;
1720
+ required: true;
1721
+ default: () => {
1722
+ title: string;
1723
+ value: string;
1724
+ }[];
1725
+ };
1726
+ }>> & Readonly<{}>, {
1727
+ width: string;
1728
+ height: string | number;
1729
+ linkAttribute: HuiTinymceLink[];
1730
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
1731
+
1732
+ /**
1733
+ * 富文本编辑弹窗
1734
+ */
1735
+ export declare const HuiTinymceDialog: SFCWithInstall<DefineComponent<ExtractPropTypes<{
1736
+ width: {
1737
+ type: PropType<string>;
1738
+ required: true;
1739
+ default: string;
1740
+ };
1741
+ height: {
1742
+ type: PropType<string | number>;
1743
+ required: true;
1744
+ default: string;
1745
+ };
1746
+ permission: {
1747
+ type: PropType<{
1748
+ code?: "";
1749
+ checkRight?: () => boolean;
1750
+ tip?: string;
1751
+ }>;
1752
+ default: () => {};
1753
+ };
1754
+ linkAttribute: {
1755
+ type: PropType< HuiTinymceLink[]>;
1756
+ required: true;
1757
+ default: () => {
1758
+ title: string;
1759
+ value: string;
1760
+ }[];
1761
+ };
1762
+ }>, {
1763
+ open: (dataId?: string, info?: {}) => void;
1764
+ close: () => void;
1765
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1766
+ onSubmit: (tinymceContent: string, row?: any, field?: string) => void;
1767
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
1768
+ width: {
1769
+ type: PropType<string>;
1770
+ required: true;
1771
+ default: string;
1772
+ };
1773
+ height: {
1774
+ type: PropType<string | number>;
1775
+ required: true;
1776
+ default: string;
1777
+ };
1778
+ permission: {
1779
+ type: PropType<{
1780
+ code?: "";
1781
+ checkRight?: () => boolean;
1782
+ tip?: string;
1783
+ }>;
1784
+ default: () => {};
1785
+ };
1786
+ linkAttribute: {
1787
+ type: PropType< HuiTinymceLink[]>;
1788
+ required: true;
1789
+ default: () => {
1790
+ title: string;
1791
+ value: string;
1792
+ }[];
1793
+ };
1794
+ }>> & Readonly<{
1795
+ onOnSubmit?: (tinymceContent: string, row?: any, field?: string) => any;
1796
+ }>, {
1797
+ width: string;
1798
+ height: string | number;
1799
+ permission: {
1800
+ code?: "";
1801
+ checkRight?: () => boolean;
1802
+ tip?: string;
1803
+ };
1804
+ linkAttribute: HuiTinymceLink[];
1805
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
1806
+
1807
+ /**
1808
+ * 链接支持的属性
1809
+ */
1810
+ declare interface HuiTinymceLink {
1811
+ /** 链接标题 */
1812
+ title: string;
1813
+ /** 链接对象的key */
1814
+ value: string;
1815
+ }
1816
+
1817
+ /**
1818
+ * 悬浮提示组件
1819
+ */
1820
+ export declare const HuiTip: SFCWithInstall<{
1821
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
1822
+ rclass: {
1823
+ type: PropType<string>;
1824
+ };
1825
+ content: {
1826
+ type: PropType<string>;
1827
+ };
1828
+ placement: {
1829
+ type: PropType<"top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end">;
1830
+ };
1831
+ effect: {
1832
+ type: PropType<"dark" | "light">;
1833
+ required: true;
1834
+ };
1835
+ iconClass: {
1836
+ type: PropType<string>;
1837
+ };
1838
+ contentClass: {
1839
+ type: PropType<string>;
1840
+ };
1841
+ tipAttr: {
1842
+ type: PropType<{
1843
+ [key: string]: any;
1844
+ }>;
1845
+ };
1846
+ }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
1847
+ P: {};
1848
+ B: {};
1849
+ D: {};
1850
+ C: {};
1851
+ M: {};
1852
+ Defaults: {};
1853
+ }, Readonly< ExtractPropTypes<{
1854
+ rclass: {
1855
+ type: PropType<string>;
1856
+ };
1857
+ content: {
1858
+ type: PropType<string>;
1859
+ };
1860
+ placement: {
1861
+ type: PropType<"top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end">;
1862
+ };
1863
+ effect: {
1864
+ type: PropType<"dark" | "light">;
1865
+ required: true;
1866
+ };
1867
+ iconClass: {
1868
+ type: PropType<string>;
1869
+ };
1870
+ contentClass: {
1871
+ type: PropType<string>;
1872
+ };
1873
+ tipAttr: {
1874
+ type: PropType<{
1875
+ [key: string]: any;
1876
+ }>;
1877
+ };
1878
+ }>> & Readonly<{}>, {}, {}, {}, {}, {}>;
1879
+ __isFragment?: never;
1880
+ __isTeleport?: never;
1881
+ __isSuspense?: never;
1882
+ } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
1883
+ rclass: {
1884
+ type: PropType<string>;
1885
+ };
1886
+ content: {
1887
+ type: PropType<string>;
1888
+ };
1889
+ placement: {
1890
+ type: PropType<"top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end">;
1891
+ };
1892
+ effect: {
1893
+ type: PropType<"dark" | "light">;
1894
+ required: true;
1895
+ };
1896
+ iconClass: {
1897
+ type: PropType<string>;
1898
+ };
1899
+ contentClass: {
1900
+ type: PropType<string>;
1901
+ };
1902
+ tipAttr: {
1903
+ type: PropType<{
1904
+ [key: string]: any;
1905
+ }>;
1906
+ };
1907
+ }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1908
+ $slots: {
1909
+ icon?(_: {}): any;
1910
+ default?(_: {}): any;
1911
+ };
1912
+ })> & Record<string, any>;
1913
+
1914
+ export declare const HuiTool: {
1915
+ ok: (msg: any) => void;
1916
+ err: (msg: any) => void;
1917
+ msgBox: (title: string, payLoad?: PayLoadType) => Promise<any>;
1918
+ msgBoxSuccess: (content: string, payload?: PayLoadType) => Promise<any>;
1919
+ msgBoxQues: (content: string, payload?: PayLoadType) => Promise<any>;
1920
+ };
1921
+
1922
+ declare interface IPointItem {
1923
+ /** id */
1924
+ id?: number | string;
1925
+ /** 位置名称 */
1926
+ name?: string;
1927
+ /** 经纬度 */
1928
+ position: [number, number];
1929
+ /** 标记图标 */
1930
+ iconPath?: string;
1931
+ /**
1932
+ * 其他属性
1933
+ */
1934
+ [key: string]: any;
1935
+ }
1936
+
1937
+ declare interface IPointTextStyle {
1938
+ /** 字体大小,单位为像素 */
1939
+ fontSize?: number | string;
1940
+ /** 文本颜色,例如 '#000000' */
1941
+ fillColor?: string;
1942
+ /** 文本描边颜色 */
1943
+ strokeColor?: string;
1944
+ /** 文本描边宽度 */
1945
+ strokeWidth?: string;
1946
+ /** 文本背景颜色 */
1947
+ backgroundColor?: string;
1948
+ /** 文本的内边距,格式为 [top, right, bottom, left] */
1949
+ padding?: [number, number, number, number];
1950
+ /** 文本背景的圆角半径 */
1951
+ borderRadius?: number;
1952
+ /** 文本背景的边框宽度 */
1953
+ borderWidth?: string;
1954
+ /** 文本背景的边框颜色 */
1955
+ borderColor?: string;
1956
+ }
1957
+
1958
+ declare interface PayLoadType {
1959
+ /** 弹窗提示文字内容· */
1960
+ tip?: string;
1961
+ /** 控制图标展示类型 info:叹号 success:钩 question:问号 */
1962
+ iconType?: 'info' | 'success' | 'question';
1963
+ /** 控制图标展示的颜色 */
1964
+ type?: "info" | "success" | "danger" | "warning";
1965
+ /** 取消按钮的文本 */
1966
+ cancelText?: string;
1967
+ /** 确定按钮的文本 */
1968
+ confirmText?: string;
1969
+ /** 弹窗宽度 */
1970
+ width?: number;
1971
+ /** 弹窗样式类名 */
1972
+ className?: string;
1973
+ }
1974
+
1975
+ declare interface PayLoadType_2 {
1976
+ /** 控制图标展示类型 info:叹号 success:钩 question:问号 */
1977
+ iconType?: 'info' | 'success' | 'question';
1978
+ /** 控制图标展示的颜色 */
1979
+ type?: "info" | "success" | "danger" | "warning";
1980
+ /** 取消按钮的文本 */
1981
+ cancelText?: string;
1982
+ /** 确定按钮的文本 */
1983
+ confirmText?: string;
1984
+ /** 弹窗宽度 */
1985
+ width?: number;
1986
+ }
1987
+
1988
+ export declare const selectLoadmore: Directive;
1989
+
1990
+ declare type SFCWithInstall<T> = T & Plugin_2;
1991
+
1992
+ declare interface TagItem {
1993
+ k: string;
1994
+ v: string;
1995
+ color?: string;
1996
+ tip?: string;
1997
+ }
1998
+
1999
+ /**
2000
+ * 普通弹框通用逻辑
2001
+ * 集成 el-dialog 组件 的hooks,props 透传到 el-dialog
2002
+ * @returns
2003
+ * @example
2004
+ * normalDialogTest.value?.open(id, payload)
2005
+ * <NormalDialogTest ref="formDialogTest" top="40vh" width="60vw" @open="beforeOpen" @close="beforeClose" />
2006
+ */
2007
+ export declare const useHuiDialog: () => {
2008
+ id: Ref<string, string>;
2009
+ show: Ref<boolean, boolean>;
2010
+ payload: Ref<{}, {}>;
2011
+ dialogLoading: Ref<boolean, boolean>;
2012
+ confirmLoading: Ref<boolean, boolean>;
2013
+ open: (dataId?: string, info?: {}) => void;
2014
+ close: () => void;
2015
+ };
2016
+
2017
+ /**
2018
+ * 表单弹框通用逻辑
2019
+ * 集成 el-dialog 组件 的hooks, props 透传到 el-dialog
2020
+ * @param {*} UseHuiFormDialogParams
2021
+ * @returns
2022
+ * @example
2023
+ * formDialogTest.value?.open()
2024
+ * <FormDialogTest ref="formDialogTest" top="20vh" width="40vw" @open="beforeOpen" @close="beforeClose" />
2025
+ */
2026
+ export declare const useHuiFormDialog: ({ formModel, showSuccessTip, isNeedDoubleConfirm, doubleConfirmConfig, beforeSubmit, submitCheck, afterSubmit, doubleConfirmAction, put, post, permission, }: UseHuiFormDialogParams) => {
2027
+ show: Ref<boolean, boolean>;
2028
+ form: Ref<{
2029
+ [x: string]: any;
2030
+ id?: string | number;
2031
+ }, UseHuiFormDialogForm | {
2032
+ [x: string]: any;
2033
+ id?: string | number;
2034
+ }>;
2035
+ formRef: Ref<any, any>;
2036
+ formLoading: Ref<boolean, boolean>;
2037
+ confirmLoading: Ref<boolean, boolean>;
2038
+ open: (id?: string, defaultFormValue?: {}) => void;
2039
+ close: () => void;
2040
+ resetLoading: () => void;
2041
+ resetFormFields: () => void;
2042
+ handleSubmit: () => void;
2043
+ handleCancel: () => void;
2044
+ checkPermission: () => any;
2045
+ };
2046
+
2047
+ declare interface UseHuiFormDialogConfirm {
2048
+ message: string;
2049
+ payload?: PayLoadType_2;
2050
+ }
2051
+
2052
+ declare interface UseHuiFormDialogForm {
2053
+ id?: string | number;
2054
+ [key: string]: any;
2055
+ }
2056
+
2057
+ declare interface UseHuiFormDialogParams {
2058
+ /**
2059
+ * 编辑接口
2060
+ */
2061
+ put?: any | null;
2062
+ /**
2063
+ * 新增接口
2064
+ */
2065
+ post?: any | null;
2066
+ /**
2067
+ * 权限相关配置
2068
+ */
2069
+ permission?: HuiFormDialogParamsPermission;
2070
+ /**
2071
+ * 表单格式
2072
+ */
2073
+ formModel: UseHuiFormDialogForm;
2074
+ /**
2075
+ * 是否显示提交成功提示
2076
+ */
2077
+ showSuccessTip?: boolean;
2078
+ /**
2079
+ * 提交之前的处理,可用于转化提交的表单
2080
+ */
2081
+ beforeSubmit?: (submitForm: UseHuiFormDialogForm) => UseHuiFormDialogForm;
2082
+ /**
2083
+ * 提交之前的检查
2084
+ */
2085
+ submitCheck?: (submitForm: UseHuiFormDialogForm) => boolean;
2086
+ /**
2087
+ * 提交成功之后的处理
2088
+ */
2089
+ afterSubmit?: (submitForm: UseHuiFormDialogForm) => void;
2090
+ /**
2091
+ * 是否需要二次确认
2092
+ */
2093
+ isNeedDoubleConfirm?: boolean | Ref<boolean> | any;
2094
+ /**
2095
+ * 二次确认弹框配置,不传使用默认值
2096
+ */
2097
+ doubleConfirmConfig?: UseHuiFormDialogConfirm;
2098
+ /**
2099
+ * 二次确认方法,优先级高于配置, submitForm:要提交的表单; submitAction:提交吹; cancelAction: 取消提交处理
2100
+ */
2101
+ doubleConfirmAction?: (submitForm: UseHuiFormDialogForm, submitAction: (submitForm: UseHuiFormDialogForm) => void, cancelAction: () => void) => void;
2102
+ }
2103
+
2104
+ export { }
2105
+
2106
+
2107
+ /**
2108
+ * window 全局变量声明
2109
+ */
2110
+ declare global {
2111
+ interface Window {
2112
+ /** 依赖外部传入的delegate */
2113
+ huiDelegate: HuiDelegate;
2114
+ }
2115
+ }
2116
+