@web-utils/component 2.7.2 → 2.7.4

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 (128) hide show
  1. package/dist/chunks/AfdColumn.vue_vue_type_template_lang.768f2ed2.js +302 -0
  2. package/dist/chunks/ConfigArray.vue_vue_type_template_lang.66483daa.js +51 -0
  3. package/dist/chunks/ConfigColor.vue_vue_type_template_lang.cd880091.js +24 -0
  4. package/dist/chunks/ConfigCustom.vue_vue_type_template_lang.6e03d7fd.js +52 -0
  5. package/dist/chunks/ConfigDate.vue_vue_type_template_lang.420fa897.js +104 -0
  6. package/dist/chunks/ConfigDynamic.vue_vue_type_template_lang.82d24ab0.js +133 -0
  7. package/dist/chunks/ConfigEvent.vue_vue_type_template_lang.5e8ed6cc.js +96 -0
  8. package/dist/chunks/ConfigGroup.vue_vue_type_template_lang.44117322.js +48 -0
  9. package/dist/chunks/ConfigInput.vue_vue_type_template_lang.cc1eb052.js +96 -0
  10. package/dist/chunks/ConfigMap.vue_vue_type_template_lang.daee4d38.js +31 -0
  11. package/dist/chunks/ConfigNumber.vue_vue_type_template_lang.d60231d7.js +130 -0
  12. package/dist/chunks/ConfigRate.vue_vue_type_style_index_0_scoped_true_lang.cf5d437d.js +125 -0
  13. package/dist/chunks/ConfigSelect.vue_vue_type_template_lang.7db7e57f.js +483 -0
  14. package/dist/chunks/ConfigSlider.vue_vue_type_template_lang.27b8cc7b.js +99 -0
  15. package/dist/chunks/ConfigSwitch.vue_vue_type_style_index_0_scoped_true_lang.4caf1bd0.js +54 -0
  16. package/dist/chunks/ConfigTable.vue_vue_type_template_lang.3e8136d9.js +341 -0
  17. package/dist/chunks/ConfigTextarea.vue_vue_type_template_lang.5cddf41c.js +88 -0
  18. package/dist/chunks/ConfigTitle.vue_vue_type_template_lang.57d9deb5.js +87 -0
  19. package/dist/chunks/ConfigTree.vue_vue_type_style_index_0_scoped_true_lang.3770c37e.js +464 -0
  20. package/dist/chunks/ConfigUEditor.vue_vue_type_template_lang.9726b4f5.js +240 -0
  21. package/dist/chunks/ConfigUpload.vue_vue_type_template_lang.531a9b2a.js +471 -0
  22. package/dist/chunks/FormConfig.vue_vue_type_template_lang.85b4ee87.js +232 -0
  23. package/dist/chunks/WidgetConfig.vue_vue_type_template_lang.f903c9b2.js +1765 -0
  24. package/dist/chunks/WidgetForm.vue_vue_type_template_lang.82248338.js +242 -0
  25. package/dist/chunks/WidgetFormGroup.vue_vue_type_template_lang.c636aabd.js +266 -0
  26. package/dist/chunks/WidgetFormItem.vue_vue_type_template_lang.48d55a5c.js +24 -0
  27. package/dist/chunks/WidgetFormTable.vue_vue_type_template_lang.30625146.js +228 -0
  28. package/dist/chunks/dataformat.d3fd2d1b.js +157 -0
  29. package/dist/chunks/{detail.a3249549.js → detail.ac4d421a.js} +7 -7
  30. package/dist/chunks/{dic.5f7e3523.js → dic.79d9f595.js} +28 -27
  31. package/dist/chunks/{event.50c365eb.js → event.43b42228.js} +7 -6
  32. package/dist/chunks/{init.352281f5.js → init.3b47bb80.js} +8 -7
  33. package/dist/chunks/{packages.5d7a86c4.js → packages.6f252850.js} +5 -61
  34. package/dist/chunks/{util.5053d54e.js → util.80e28481.js} +37 -51
  35. package/dist/components/afd-column/index.js +54 -0
  36. package/dist/components/chat/index.js +1 -1
  37. package/dist/components/code/index.js +1 -1
  38. package/dist/components/column/index.js +8 -7
  39. package/dist/components/column-default/index.js +1 -1
  40. package/dist/components/column-dynamic/index.js +1 -1
  41. package/dist/components/column-menu/index.js +1 -1
  42. package/dist/components/column-slot/index.js +27 -26
  43. package/dist/components/config-array/index.js +26 -0
  44. package/dist/components/config-color/index.js +26 -0
  45. package/dist/components/config-custom/index.js +60 -0
  46. package/dist/components/config-date/index.js +26 -0
  47. package/dist/components/config-dynamic/index.js +26 -0
  48. package/dist/components/config-event/index.js +72 -0
  49. package/dist/components/config-group/index.js +34 -0
  50. package/dist/components/config-input/index.js +26 -0
  51. package/dist/components/config-map/index.js +26 -0
  52. package/dist/components/config-number/index.js +26 -0
  53. package/dist/components/config-rate/index.js +69 -0
  54. package/dist/components/config-rate/style.css +1 -0
  55. package/dist/components/config-select/index.js +88 -0
  56. package/dist/components/config-slider/index.js +26 -0
  57. package/dist/components/config-switch/index.js +31 -0
  58. package/dist/components/config-switch/style.css +1 -0
  59. package/dist/components/config-table/index.js +120 -0
  60. package/dist/components/config-textarea/index.js +26 -0
  61. package/dist/components/config-title/index.js +31 -0
  62. package/dist/components/config-tree/index.js +120 -0
  63. package/dist/components/config-tree/style.css +1 -0
  64. package/dist/components/config-u-editor/index.js +32 -0
  65. package/dist/components/config-upload/index.js +56 -0
  66. package/dist/components/custom-scrollbar/index.js +6 -1
  67. package/dist/components/dialog-excel/index.js +2 -2
  68. package/dist/components/dialog-filter/index.js +1 -1
  69. package/dist/components/dialog-form/index.js +8 -7
  70. package/dist/components/flex-item/index.js +4 -1
  71. package/dist/components/flow/index.js +1 -1
  72. package/dist/components/flow-node/index.js +1 -1
  73. package/dist/components/form-config/index.js +26 -0
  74. package/dist/components/form-group/index.js +1 -1
  75. package/dist/components/form-temp/index.js +2 -2
  76. package/dist/components/{array → fy-array}/index.js +5 -5
  77. package/dist/components/{array → fy-array}/style.css +0 -0
  78. package/dist/components/fy-cascader/index.js +1 -1
  79. package/dist/components/fy-checkbox/index.js +1 -1
  80. package/dist/components/fy-curd/index.js +37 -131
  81. package/dist/components/fy-date/index.js +1 -1
  82. package/dist/components/fy-dialog-form/index.js +9 -8
  83. package/dist/components/{draggable → fy-draggable}/index.js +2 -2
  84. package/dist/components/{draggable → fy-draggable}/style.css +0 -0
  85. package/dist/components/fy-dynamic/index.js +2 -2
  86. package/dist/components/{empty → fy-empty}/index.js +6 -6
  87. package/dist/components/{empty → fy-empty}/style.css +0 -0
  88. package/dist/components/fy-form/index.js +9 -8
  89. package/dist/components/fy-form-design/index.js +1371 -0
  90. package/dist/components/fy-form-design/style.css +1 -0
  91. package/dist/components/fy-input/index.js +1 -1
  92. package/dist/components/fy-input-color/index.js +1 -1
  93. package/dist/components/fy-input-icon/index.js +1 -1
  94. package/dist/components/fy-input-map/index.js +4 -4
  95. package/dist/components/fy-input-number/index.js +1 -1
  96. package/dist/components/fy-input-table/index.js +4 -4
  97. package/dist/components/fy-input-tree/index.js +2 -2
  98. package/dist/components/fy-radio/index.js +1 -1
  99. package/dist/components/fy-rate/index.js +1 -1
  100. package/dist/components/fy-select/index.js +18 -17
  101. package/dist/components/fy-slider/index.js +2 -2
  102. package/dist/components/fy-switch/index.js +1 -1
  103. package/dist/components/fy-time/index.js +2 -2
  104. package/dist/components/fy-title/index.js +1 -1
  105. package/dist/components/fy-tree/index.js +7 -6
  106. package/dist/components/fy-upload/index.js +11 -10
  107. package/dist/components/header-menu/index.js +1 -1
  108. package/dist/components/header-search/index.js +2 -2
  109. package/dist/components/license/index.js +5 -5
  110. package/dist/components/login/index.js +9 -8
  111. package/dist/components/record-video/index.js +1 -1
  112. package/dist/components/search/index.js +10 -9
  113. package/dist/components/sign/index.js +1 -1
  114. package/dist/components/table-column/index.js +4 -1
  115. package/dist/components/table-page/index.js +9 -6
  116. package/dist/components/text-ellipsis/index.js +1 -1
  117. package/dist/components/verify/index.js +1 -1
  118. package/dist/components/watermark/index.js +5 -1
  119. package/dist/components/widget-config/index.js +107 -0
  120. package/dist/components/widget-form/index.js +68 -0
  121. package/dist/components/widget-form-group/index.js +91 -0
  122. package/dist/components/widget-form-item/index.js +70 -0
  123. package/dist/components/widget-form-table/index.js +90 -0
  124. package/dist/index.css +761 -201
  125. package/dist/index.es.js +24037 -16605
  126. package/package.json +6 -4
  127. package/web-types.json +1880 -1781
  128. package/dist/chunks/dataformat.fb35ee10.js +0 -61
@@ -0,0 +1,1765 @@
1
+ import MonacoEditor from "../form-design/utils/monaco-editor";
2
+ import { s as staticRenderFns$1, r as render$1 } from "./ConfigCustom.vue_vue_type_template_lang.6e03d7fd.js";
3
+ import { n as normalizeComponent } from "./vueComponentNormalizer.71e2aa87.js";
4
+ import { s as staticRenderFns$2, r as render$2 } from "./ConfigInput.vue_vue_type_template_lang.cc1eb052.js";
5
+ import { s as staticRenderFns$3, r as render$3 } from "./ConfigTextarea.vue_vue_type_template_lang.5cddf41c.js";
6
+ import { s as staticRenderFns$4, r as render$4 } from "./ConfigNumber.vue_vue_type_template_lang.d60231d7.js";
7
+ import { s as staticRenderFns$5, r as render$5 } from "./ConfigDynamic.vue_vue_type_template_lang.82d24ab0.js";
8
+ import { s as staticRenderFns$6, r as render$6 } from "./ConfigSwitch.vue_vue_type_style_index_0_scoped_true_lang.4caf1bd0.js";
9
+ import { s as staticRenderFns$7, r as render$7 } from "./ConfigRate.vue_vue_type_style_index_0_scoped_true_lang.cf5d437d.js";
10
+ import { s as staticRenderFns$8, r as render$8 } from "./ConfigSlider.vue_vue_type_template_lang.27b8cc7b.js";
11
+ import { s as staticRenderFns$9, r as render$9 } from "./ConfigColor.vue_vue_type_template_lang.cd880091.js";
12
+ import Draggable from "vuedraggable";
13
+ import { s as staticRenderFns$a, r as render$a } from "./ConfigSelect.vue_vue_type_template_lang.7db7e57f.js";
14
+ import { s as staticRenderFns$b, r as render$b } from "./ConfigTree.vue_vue_type_style_index_0_scoped_true_lang.3770c37e.js";
15
+ import { s as staticRenderFns$c, r as render$c } from "./ConfigDate.vue_vue_type_template_lang.420fa897.js";
16
+ import { s as staticRenderFns$d, r as render$d } from "./ConfigUpload.vue_vue_type_template_lang.531a9b2a.js";
17
+ import { s as staticRenderFns$e, r as render$e } from "./ConfigUEditor.vue_vue_type_template_lang.9726b4f5.js";
18
+ import { s as staticRenderFns$f, r as render$f } from "./ConfigMap.vue_vue_type_template_lang.daee4d38.js";
19
+ import { s as staticRenderFns$g, r as render$g } from "./ConfigGroup.vue_vue_type_template_lang.44117322.js";
20
+ import { s as staticRenderFns$h, r as render$h } from "./ConfigArray.vue_vue_type_template_lang.66483daa.js";
21
+ import { s as staticRenderFns$i, r as render$i } from "./ConfigTitle.vue_vue_type_template_lang.57d9deb5.js";
22
+ import { s as staticRenderFns$j, r as render$j } from "./ConfigEvent.vue_vue_type_template_lang.5e8ed6cc.js";
23
+ import { s as staticRenderFns$k, r as render$k, A as AfdColumn } from "./ConfigTable.vue_vue_type_template_lang.3e8136d9.js";
24
+ const fields = [
25
+ {
26
+ title: "布局字段",
27
+ list: [{
28
+ type: "group",
29
+ label: "分组",
30
+ icon: "icon-group",
31
+ display: !0,
32
+ arrow: !1,
33
+ collapse: !0,
34
+ children: {
35
+ column: []
36
+ }
37
+ }, {
38
+ type: "dynamic",
39
+ label: "子表单",
40
+ icon: "icon-table",
41
+ span: 24,
42
+ display: !0,
43
+ children: {
44
+ align: "center",
45
+ headerAlign: "center",
46
+ index: !1,
47
+ addBtn: !0,
48
+ delBtn: !0,
49
+ column: []
50
+ }
51
+ }, {
52
+ type: "title",
53
+ icon: "icon-title",
54
+ span: 24,
55
+ display: !0,
56
+ styles: {
57
+ fontSize: "18px",
58
+ color: "#000"
59
+ },
60
+ label: "标题",
61
+ labelWidth: "0px",
62
+ value: "标题"
63
+ }]
64
+ },
65
+ {
66
+ title: "输入字段",
67
+ list: [{
68
+ type: "input",
69
+ label: "单行文本",
70
+ icon: "icon-input",
71
+ span: 24,
72
+ display: !0
73
+ }, {
74
+ type: "password",
75
+ label: "密码",
76
+ icon: "icon-password",
77
+ span: 24,
78
+ display: !0
79
+ }, {
80
+ type: "textarea",
81
+ label: "多行文本",
82
+ icon: "icon-textarea",
83
+ span: 24,
84
+ display: !0
85
+ }, {
86
+ type: "number",
87
+ label: "计数器",
88
+ icon: "icon-number",
89
+ controls: !0,
90
+ span: 24,
91
+ display: !0
92
+ }, {
93
+ type: "url",
94
+ label: "超链接",
95
+ icon: "icon-url",
96
+ span: 24,
97
+ display: !0
98
+ }, {
99
+ type: "array",
100
+ label: "数组",
101
+ icon: "icon-array",
102
+ span: 24,
103
+ display: !0
104
+ }, {
105
+ type: "img",
106
+ label: "图片",
107
+ icon: "icon-img",
108
+ span: 24,
109
+ display: !0
110
+ }, {
111
+ type: "map",
112
+ component: "fy-input-map",
113
+ label: "地图选择器",
114
+ icon: "icon-map",
115
+ span: 24,
116
+ display: !0
117
+ }]
118
+ },
119
+ {
120
+ title: "选择字段",
121
+ list: [{
122
+ type: "radio",
123
+ label: "单选框组",
124
+ icon: "icon-radio",
125
+ dicData: [
126
+ { label: "选项一", value: "0" },
127
+ { label: "选项二", value: "1" },
128
+ { label: "选项三", value: "2" }
129
+ ],
130
+ span: 24,
131
+ display: !0,
132
+ dicOption: "static",
133
+ props: {
134
+ label: "label",
135
+ value: "value"
136
+ }
137
+ }, {
138
+ type: "checkbox",
139
+ label: "多选框组",
140
+ icon: "icon-checkbox",
141
+ dicData: [
142
+ { label: "选项一", value: "0" },
143
+ { label: "选项二", value: "1" },
144
+ { label: "选项三", value: "2" }
145
+ ],
146
+ span: 24,
147
+ display: !0,
148
+ dicOption: "static",
149
+ props: {
150
+ label: "label",
151
+ value: "value"
152
+ }
153
+ }, {
154
+ type: "select",
155
+ label: "下拉选择器",
156
+ icon: "icon-select",
157
+ dicData: [
158
+ { label: "选项一", value: "0" },
159
+ { label: "选项二", value: "1" },
160
+ { label: "选项三", value: "2" }
161
+ ],
162
+ // 用于做级联配置
163
+ cascaderItem: [],
164
+ span: 24,
165
+ display: !0,
166
+ dicOption: "static",
167
+ props: {
168
+ label: "label",
169
+ value: "value",
170
+ desc: "desc"
171
+ }
172
+ }, {
173
+ type: "cascader",
174
+ label: "级联选择器",
175
+ icon: "icon-link",
176
+ span: 24,
177
+ display: !0,
178
+ dicData: [
179
+ {
180
+ label: "选项一",
181
+ value: 0,
182
+ children: [{
183
+ label: "选项1-1",
184
+ value: 11
185
+ }, {
186
+ label: "选项1-2",
187
+ value: 12
188
+ }]
189
+ },
190
+ { label: "选项二", value: "1" },
191
+ { label: "选项三", value: "2" }
192
+ ],
193
+ cascaderIndex: 1,
194
+ // 用于做级联配置
195
+ cascaderItem: [],
196
+ showAllLevels: !0,
197
+ dicOption: "static",
198
+ separator: "/",
199
+ props: {
200
+ label: "label",
201
+ value: "value",
202
+ desc: "desc"
203
+ }
204
+ }, {
205
+ type: "tree",
206
+ label: "树形选择器",
207
+ icon: "icon-tree",
208
+ span: 24,
209
+ display: !0,
210
+ dicOption: "static",
211
+ dicData: [
212
+ {
213
+ label: "选项一",
214
+ value: 0,
215
+ children: [{
216
+ label: "选项1-1",
217
+ value: "11"
218
+ }, {
219
+ label: "选项1-2",
220
+ value: "12"
221
+ }]
222
+ },
223
+ { label: "选项二", value: "1" },
224
+ { label: "选项三", value: "2" }
225
+ ],
226
+ parent: !0,
227
+ // 用于做级联配置
228
+ cascaderItem: [],
229
+ props: {
230
+ label: "label",
231
+ value: "value",
232
+ desc: "desc"
233
+ }
234
+ }, {
235
+ type: "table",
236
+ label: "表格选择器",
237
+ icon: "icon-table",
238
+ display: !0,
239
+ span: 24,
240
+ children: {
241
+ border: !0,
242
+ searchMenuSpan: 6,
243
+ searchIcon: !0,
244
+ column: [],
245
+ props: {
246
+ url: "",
247
+ method: "get",
248
+ rowKey: "id",
249
+ needPage: !0,
250
+ currentPageKey: "current",
251
+ pageSizeKey: "size",
252
+ totalKey: "total",
253
+ recordsKey: "records",
254
+ resKey: "data.data",
255
+ auto: !0
256
+ }
257
+ },
258
+ formatter: (t) => t.name,
259
+ props: {
260
+ label: "name",
261
+ value: "id"
262
+ }
263
+ }]
264
+ },
265
+ {
266
+ title: "上传字段",
267
+ list: [{
268
+ type: "upload",
269
+ label: "上传",
270
+ icon: "icon-upload",
271
+ span: 24,
272
+ display: !0,
273
+ showFileList: !0,
274
+ multiple: !0,
275
+ limit: 10,
276
+ // props: {},
277
+ propsHttp: {},
278
+ headersConfig: [],
279
+ dataConfig: []
280
+ }]
281
+ },
282
+ {
283
+ title: "日期时间字段",
284
+ list: [{
285
+ type: "year",
286
+ label: "年",
287
+ icon: "icon-year",
288
+ span: 24,
289
+ display: !0,
290
+ format: "yyyy",
291
+ valueFormat: "yyyy"
292
+ }, {
293
+ type: "month",
294
+ label: "月",
295
+ icon: "icon-month",
296
+ span: 24,
297
+ display: !0,
298
+ format: "MM",
299
+ valueFormat: "MM"
300
+ }, {
301
+ type: "week",
302
+ label: "周",
303
+ icon: "icon-week",
304
+ span: 24,
305
+ display: !0,
306
+ format: "yyyy 第 WW 周"
307
+ }, {
308
+ type: "date",
309
+ label: "日期",
310
+ icon: "icon-date",
311
+ span: 24,
312
+ display: !0,
313
+ format: "yyyy-MM-dd",
314
+ valueFormat: "yyyy-MM-dd"
315
+ }, {
316
+ type: "time",
317
+ label: "时间",
318
+ icon: "icon-time",
319
+ span: 24,
320
+ display: !0,
321
+ format: "HH:mm:ss",
322
+ valueFormat: "HH:mm:ss"
323
+ }, {
324
+ type: "datetime",
325
+ label: "日期时间",
326
+ icon: "icon-datetime",
327
+ span: 24,
328
+ display: !0,
329
+ format: "yyyy-MM-dd HH:mm:ss",
330
+ valueFormat: "yyyy-MM-dd HH:mm:ss"
331
+ }, {
332
+ type: "daterange",
333
+ label: "日期范围",
334
+ icon: "icon-date-range",
335
+ span: 24,
336
+ display: !0,
337
+ format: "yyyy-MM-dd",
338
+ valueFormat: "yyyy-MM-dd"
339
+ }, {
340
+ type: "timerange",
341
+ label: "时间范围",
342
+ icon: "icon-time-range",
343
+ span: 24,
344
+ display: !0,
345
+ format: "HH:mm:ss",
346
+ valueFormat: "HH:mm:ss"
347
+ }, {
348
+ type: "datetimerange",
349
+ label: "日期时间范围",
350
+ icon: "icon-datetime-range",
351
+ span: 24,
352
+ display: !0,
353
+ format: "yyyy-MM-dd HH:mm:ss",
354
+ valueFormat: "yyyy-MM-dd HH:mm:ss"
355
+ }]
356
+ },
357
+ {
358
+ title: "插件字段(需单独引入依赖)",
359
+ list: [{
360
+ type: "ueditor",
361
+ component: "avue-ueditor",
362
+ label: "富文本",
363
+ icon: "icon-richtext",
364
+ span: 24,
365
+ display: !0,
366
+ options: {
367
+ action: "",
368
+ oss: "",
369
+ props: {},
370
+ ali: {},
371
+ qiniu: {}
372
+ }
373
+ }]
374
+ },
375
+ {
376
+ title: "其他字段",
377
+ list: [{
378
+ type: "icon",
379
+ label: "图标",
380
+ component: "fy-input-icon",
381
+ icon: "icon-icon",
382
+ span: 24,
383
+ display: !0,
384
+ params: {
385
+ iconList: [{
386
+ label: "基本图标",
387
+ list: ["el-icon-info", "el-icon-error", "el-icon-error", "el-icon-success", "el-icon-warning", "el-icon-question"]
388
+ }, {
389
+ label: "方向图标",
390
+ list: ["el-icon-info", "el-icon-back", "el-icon-arrow-left", "el-icon-arrow-down", "el-icon-arrow-right", "el-icon-arrow-up"]
391
+ }, {
392
+ label: "符号图标",
393
+ list: ["el-icon-plus", "el-icon-minus", "el-icon-close", "el-icon-check"]
394
+ }]
395
+ }
396
+ }, {
397
+ type: "switch",
398
+ label: "开关",
399
+ icon: "icon-switch",
400
+ span: 24,
401
+ display: !0,
402
+ value: "0",
403
+ dicData: [{ label: "", value: "0" }, { label: "", value: "1" }]
404
+ }, {
405
+ type: "rate",
406
+ label: "评价",
407
+ icon: "icon-star",
408
+ span: 24,
409
+ display: !0,
410
+ max: 5,
411
+ value: 0,
412
+ texts: ["极差", "失望", "一般", "满意", "惊喜"],
413
+ colors: ["#99A9BF", "#F7BA2A", "#FF9900"]
414
+ }, {
415
+ type: "slider",
416
+ label: "滑块",
417
+ icon: "icon-slider",
418
+ span: 24,
419
+ display: !0,
420
+ min: 0,
421
+ max: 10
422
+ }, {
423
+ type: "color",
424
+ label: "颜色选择器",
425
+ icon: "icon-color",
426
+ span: 24,
427
+ display: !0
428
+ }]
429
+ }
430
+ ], __vue2_script$j = {
431
+ name: "ConfigCustom",
432
+ components: { MonacoEditor },
433
+ props: ["data"],
434
+ data() {
435
+ return {
436
+ params: this.data.params || {},
437
+ event: this.data.event || {},
438
+ options: {
439
+ fullScreen: !0,
440
+ minimap: {
441
+ enabled: !1
442
+ }
443
+ }
444
+ };
445
+ },
446
+ watch: {
447
+ "data.params"(t) {
448
+ this.params = t || {};
449
+ },
450
+ "data.event"(t) {
451
+ this.event = t || {};
452
+ },
453
+ params(val) {
454
+ try {
455
+ this.data.params = eval("(" + val + ")");
456
+ } catch (t) {
457
+ }
458
+ },
459
+ event(val) {
460
+ try {
461
+ this.data.event = eval("(" + val + ")");
462
+ } catch (t) {
463
+ }
464
+ }
465
+ }
466
+ }, __cssModules$j = {};
467
+ var __component__$j = /* @__PURE__ */ normalizeComponent(
468
+ __vue2_script$j,
469
+ render$1,
470
+ staticRenderFns$1,
471
+ !1,
472
+ __vue2_injectStyles$j,
473
+ null,
474
+ null,
475
+ null
476
+ );
477
+ function __vue2_injectStyles$j(t) {
478
+ for (let l in __cssModules$j)
479
+ this[l] = __cssModules$j[l];
480
+ }
481
+ const ConfigCustom = /* @__PURE__ */ function() {
482
+ return __component__$j.exports;
483
+ }(), __vue2_script$i = {
484
+ name: "ConfigInput",
485
+ props: ["data", "defaultValues"]
486
+ }, __cssModules$i = {};
487
+ var __component__$i = /* @__PURE__ */ normalizeComponent(
488
+ __vue2_script$i,
489
+ render$2,
490
+ staticRenderFns$2,
491
+ !1,
492
+ __vue2_injectStyles$i,
493
+ null,
494
+ null,
495
+ null
496
+ );
497
+ function __vue2_injectStyles$i(t) {
498
+ for (let l in __cssModules$i)
499
+ this[l] = __cssModules$i[l];
500
+ }
501
+ const ConfigInput = /* @__PURE__ */ function() {
502
+ return __component__$i.exports;
503
+ }(), __vue2_script$h = {
504
+ name: "ConfigTextarea",
505
+ props: ["data"]
506
+ }, __cssModules$h = {};
507
+ var __component__$h = /* @__PURE__ */ normalizeComponent(
508
+ __vue2_script$h,
509
+ render$3,
510
+ staticRenderFns$3,
511
+ !1,
512
+ __vue2_injectStyles$h,
513
+ null,
514
+ null,
515
+ null
516
+ );
517
+ function __vue2_injectStyles$h(t) {
518
+ for (let l in __cssModules$h)
519
+ this[l] = __cssModules$h[l];
520
+ }
521
+ const ConfigTextarea = /* @__PURE__ */ function() {
522
+ return __component__$h.exports;
523
+ }(), __vue2_script$g = {
524
+ name: "ConfigNumber",
525
+ props: ["data"]
526
+ }, __cssModules$g = {};
527
+ var __component__$g = /* @__PURE__ */ normalizeComponent(
528
+ __vue2_script$g,
529
+ render$4,
530
+ staticRenderFns$4,
531
+ !1,
532
+ __vue2_injectStyles$g,
533
+ null,
534
+ null,
535
+ null
536
+ );
537
+ function __vue2_injectStyles$g(t) {
538
+ for (let l in __cssModules$g)
539
+ this[l] = __cssModules$g[l];
540
+ }
541
+ const ConfigNumber = /* @__PURE__ */ function() {
542
+ return __component__$g.exports;
543
+ }(), __vue2_script$f = {
544
+ name: "ConfigDynamic",
545
+ props: ["data"]
546
+ }, __cssModules$f = {};
547
+ var __component__$f = /* @__PURE__ */ normalizeComponent(
548
+ __vue2_script$f,
549
+ render$5,
550
+ staticRenderFns$5,
551
+ !1,
552
+ __vue2_injectStyles$f,
553
+ null,
554
+ null,
555
+ null
556
+ );
557
+ function __vue2_injectStyles$f(t) {
558
+ for (let l in __cssModules$f)
559
+ this[l] = __cssModules$f[l];
560
+ }
561
+ const ConfigDynamic = /* @__PURE__ */ function() {
562
+ return __component__$f.exports;
563
+ }(), __vue2_script$e = {
564
+ name: "ConfigSwitch",
565
+ props: ["data"],
566
+ methods: {
567
+ handleDicClear() {
568
+ this.data.dicData = [{ label: "", value: "0" }, { label: "", value: "1" }];
569
+ }
570
+ }
571
+ }, __cssModules$e = {};
572
+ var __component__$e = /* @__PURE__ */ normalizeComponent(
573
+ __vue2_script$e,
574
+ render$6,
575
+ staticRenderFns$6,
576
+ !1,
577
+ __vue2_injectStyles$e,
578
+ "24459f96",
579
+ null,
580
+ null
581
+ );
582
+ function __vue2_injectStyles$e(t) {
583
+ for (let l in __cssModules$e)
584
+ this[l] = __cssModules$e[l];
585
+ }
586
+ const ConfigSwitch = /* @__PURE__ */ function() {
587
+ return __component__$e.exports;
588
+ }(), __vue2_script$d = {
589
+ name: "ConfigRate",
590
+ props: ["data"],
591
+ data() {
592
+ return {
593
+ textVisible: !1,
594
+ textValue: "",
595
+ colorVisible: !1,
596
+ colorValue: "",
597
+ iconVisible: !1,
598
+ iconValue: ""
599
+ };
600
+ },
601
+ methods: {
602
+ handleTextClose(t) {
603
+ this.data.texts.splice(this.data.texts.indexOf(t), 1);
604
+ },
605
+ showTextInput() {
606
+ this.textVisible = !0, this.$nextTick(() => {
607
+ this.$refs.textTag.$refs.input.focus();
608
+ });
609
+ },
610
+ handleTextConfirm() {
611
+ this.textValue && this.data.texts.push(this.textValue), this.textVisible = !1, this.textValue = "";
612
+ },
613
+ handleColorClose(t) {
614
+ this.data.colors.splice(this.data.colors.indexOf(t), 1);
615
+ },
616
+ handleColorConfirm() {
617
+ this.colorValue && this.data.colors.push(this.colorValue), this.colorValue = "";
618
+ }
619
+ // handleIconClose(tag) {
620
+ // this.data.iconClasses.splice(this.data.iconClasses.indexOf(tag), 1);
621
+ // },
622
+ // showIconInput() {
623
+ // this.iconVisible = true;
624
+ // this.$nextTick(() => {
625
+ // this.$refs.iconTag.$refs.input.focus();
626
+ // });
627
+ // },
628
+ // handleIconConfirm() {
629
+ // if (this.iconValue) this.data.iconClasses.push(this.iconValue);
630
+ // this.iconVisible = false;
631
+ // this.iconValue = '';
632
+ // }
633
+ }
634
+ }, __cssModules$d = {};
635
+ var __component__$d = /* @__PURE__ */ normalizeComponent(
636
+ __vue2_script$d,
637
+ render$7,
638
+ staticRenderFns$7,
639
+ !1,
640
+ __vue2_injectStyles$d,
641
+ "0922df2b",
642
+ null,
643
+ null
644
+ );
645
+ function __vue2_injectStyles$d(t) {
646
+ for (let l in __cssModules$d)
647
+ this[l] = __cssModules$d[l];
648
+ }
649
+ const ConfigRate = /* @__PURE__ */ function() {
650
+ return __component__$d.exports;
651
+ }(), __vue2_script$c = {
652
+ name: "ConfigSlider",
653
+ props: ["data"]
654
+ }, __cssModules$c = {};
655
+ var __component__$c = /* @__PURE__ */ normalizeComponent(
656
+ __vue2_script$c,
657
+ render$8,
658
+ staticRenderFns$8,
659
+ !1,
660
+ __vue2_injectStyles$c,
661
+ null,
662
+ null,
663
+ null
664
+ );
665
+ function __vue2_injectStyles$c(t) {
666
+ for (let l in __cssModules$c)
667
+ this[l] = __cssModules$c[l];
668
+ }
669
+ const ConfigSlider = /* @__PURE__ */ function() {
670
+ return __component__$c.exports;
671
+ }(), __vue2_script$b = {
672
+ name: "ConfigColor",
673
+ props: ["data"]
674
+ }, __cssModules$b = {};
675
+ var __component__$b = /* @__PURE__ */ normalizeComponent(
676
+ __vue2_script$b,
677
+ render$9,
678
+ staticRenderFns$9,
679
+ !1,
680
+ __vue2_injectStyles$b,
681
+ null,
682
+ null,
683
+ null
684
+ );
685
+ function __vue2_injectStyles$b(t) {
686
+ for (let l in __cssModules$b)
687
+ this[l] = __cssModules$b[l];
688
+ }
689
+ const ConfigColor = /* @__PURE__ */ function() {
690
+ return __component__$b.exports;
691
+ }(), __vue2_script$a = {
692
+ name: "ConfigSelect",
693
+ components: { Draggable, MonacoEditor },
694
+ props: ["data"],
695
+ data() {
696
+ return {
697
+ option: {
698
+ column: [{
699
+ type: "input",
700
+ prop: "key",
701
+ label: "key"
702
+ }, {
703
+ type: "input",
704
+ prop: "value",
705
+ label: "value"
706
+ }]
707
+ },
708
+ options: {
709
+ fullScreen: !0,
710
+ minimap: {
711
+ enabled: !1
712
+ }
713
+ },
714
+ dicFormatter: ""
715
+ };
716
+ },
717
+ watch: {
718
+ "data.prop": {
719
+ handler() {
720
+ const { dicFormatter: t } = this.data;
721
+ this.dicFormatter = t ? t + "" : `(res) => {\r
722
+ return res.data\r
723
+ }`;
724
+ },
725
+ immediate: !0
726
+ },
727
+ dicFormatter: {
728
+ handler(val) {
729
+ try {
730
+ this.data.dicFormatter = eval(val);
731
+ } catch (t) {
732
+ }
733
+ }
734
+ }
735
+ },
736
+ methods: {
737
+ handleRemoveFields(t) {
738
+ this.data.dicData.splice(t, 1);
739
+ },
740
+ handleAddFields() {
741
+ const t = Math.ceil(Math.random() * 99999);
742
+ this.data.dicData.push({ label: `字段${t}`, value: `col_${t}` });
743
+ },
744
+ handleRemoveCascaderItemFields(t) {
745
+ this.data.cascader.splice(t, 1);
746
+ },
747
+ handleAddCascaderItemFields() {
748
+ this.data.cascader || (this.$set(this.data, "cascader", []), delete this.data.cascaderItem), this.data.cascader.push("");
749
+ },
750
+ handleTabClick({ name: t }) {
751
+ t == "remote" && !this.data.dicQueryConfig && (this.data.dicQueryConfig = []);
752
+ }
753
+ }
754
+ }, __cssModules$a = {};
755
+ var __component__$a = /* @__PURE__ */ normalizeComponent(
756
+ __vue2_script$a,
757
+ render$a,
758
+ staticRenderFns$a,
759
+ !1,
760
+ __vue2_injectStyles$a,
761
+ null,
762
+ null,
763
+ null
764
+ );
765
+ function __vue2_injectStyles$a(t) {
766
+ for (let l in __cssModules$a)
767
+ this[l] = __cssModules$a[l];
768
+ }
769
+ const ConfigSelect = /* @__PURE__ */ function() {
770
+ return __component__$a.exports;
771
+ }(), __vue2_script$9 = {
772
+ name: "ConfigTree",
773
+ components: { MonacoEditor, Draggable },
774
+ props: ["data"],
775
+ data() {
776
+ return {
777
+ dialogForm: {},
778
+ dialogVisible: !1,
779
+ dialogRules: {
780
+ label: { required: !0, message: "请输入label" },
781
+ value: { required: !0, message: "请输入value" }
782
+ },
783
+ dialogStatus: "add",
784
+ selectData: void 0,
785
+ dialogInputType: "text",
786
+ option: {
787
+ column: [{
788
+ type: "input",
789
+ prop: "key",
790
+ label: "key"
791
+ }, {
792
+ type: "input",
793
+ prop: "value",
794
+ label: "value"
795
+ }]
796
+ },
797
+ options: {
798
+ fullScreen: !0,
799
+ minimap: {
800
+ enabled: !1
801
+ }
802
+ },
803
+ dicFormatter: ""
804
+ };
805
+ },
806
+ watch: {
807
+ "data.prop": {
808
+ handler() {
809
+ this.$set(this.data, "cascader", this.data.cascaderItem), this.$delete(this.data, "cascaderItem");
810
+ const { dicFormatter: t } = this.data;
811
+ this.dicFormatter = t ? t + "" : `(res) => {\r
812
+ return res.data\r
813
+ }`;
814
+ },
815
+ immediate: !0
816
+ },
817
+ dicFormatter: {
818
+ handler(val) {
819
+ try {
820
+ this.data.dicFormatter = eval(val);
821
+ } catch (t) {
822
+ }
823
+ }
824
+ }
825
+ },
826
+ methods: {
827
+ handleRemoveCascaderItemFields(t) {
828
+ this.data.cascader.splice(t, 1);
829
+ },
830
+ handleAddCascaderItemFields() {
831
+ this.data.cascader || (this.$set(this.data, "cascader", []), delete this.data.cascaderItem), this.data.cascader.push("");
832
+ },
833
+ handleTabClick({ name: t }) {
834
+ t == "remote" && !this.data.dicQueryConfig && (this.data.dicQueryConfig = []);
835
+ },
836
+ handleParentNodeAdd() {
837
+ this.selectData = void 0, this.dialogStatus = "add", this.dialogVisible = !0;
838
+ },
839
+ handleNodeAdd(t) {
840
+ this.selectData = t, this.dialogStatus = "add", this.dialogVisible = !0;
841
+ },
842
+ handleNodeRemove(t, l) {
843
+ const a = t.parent, s = a.data.children || a.data, n = s.findIndex((o) => o.id === l.id);
844
+ s.splice(n, 1);
845
+ },
846
+ handleDialogAdd() {
847
+ this.$refs.dialogForm.validate((t) => {
848
+ if (t) {
849
+ const { label: l, value: a } = this.dialogForm;
850
+ if (this.$refs.tree.getNode(a))
851
+ this.$message.error("value重复");
852
+ else {
853
+ const n = this.selectData, o = {
854
+ label: l,
855
+ value: this.dialogInputType == "number" ? new Number(a) : a
856
+ };
857
+ n ? (n.children || this.$set(n, "children", []), n.children.push(o)) : this.$set(this.data.dicData, this.data.dicData.length, o), this.beforeClose();
858
+ }
859
+ }
860
+ });
861
+ },
862
+ beforeClose() {
863
+ this.$refs.dialogForm.clearValidate(), this.dialogForm = {}, this.dialogVisible = !1;
864
+ }
865
+ }
866
+ }, __cssModules$9 = {};
867
+ var __component__$9 = /* @__PURE__ */ normalizeComponent(
868
+ __vue2_script$9,
869
+ render$b,
870
+ staticRenderFns$b,
871
+ !1,
872
+ __vue2_injectStyles$9,
873
+ "9953620c",
874
+ null,
875
+ null
876
+ );
877
+ function __vue2_injectStyles$9(t) {
878
+ for (let l in __cssModules$9)
879
+ this[l] = __cssModules$9[l];
880
+ }
881
+ const ConfigTree = /* @__PURE__ */ function() {
882
+ return __component__$9.exports;
883
+ }(), __vue2_script$8 = {
884
+ name: "ConfigDate",
885
+ props: ["data"]
886
+ }, __cssModules$8 = {};
887
+ var __component__$8 = /* @__PURE__ */ normalizeComponent(
888
+ __vue2_script$8,
889
+ render$c,
890
+ staticRenderFns$c,
891
+ !1,
892
+ __vue2_injectStyles$8,
893
+ null,
894
+ null,
895
+ null
896
+ );
897
+ function __vue2_injectStyles$8(t) {
898
+ for (let l in __cssModules$8)
899
+ this[l] = __cssModules$8[l];
900
+ }
901
+ const ConfigDate = /* @__PURE__ */ function() {
902
+ return __component__$8.exports;
903
+ }(), __vue2_script$7 = {
904
+ name: "ConfigUpload",
905
+ props: ["data"],
906
+ data() {
907
+ return {
908
+ option: {
909
+ column: [{
910
+ type: "input",
911
+ prop: "key",
912
+ label: "key"
913
+ }, {
914
+ type: "input",
915
+ prop: "value",
916
+ label: "value"
917
+ }]
918
+ }
919
+ };
920
+ },
921
+ watch: {
922
+ "data.prop": {
923
+ handler() {
924
+ },
925
+ immediate: !0
926
+ },
927
+ "data.drag": function(t) {
928
+ },
929
+ "data.dragFile": function(t) {
930
+ t && this.$delete(this.data, "listType");
931
+ },
932
+ "data.showCanvas"(t) {
933
+ t ? (this.$set(this.data, "canvasOption", {}), this.$set(this.data, "accept", "image/*")) : this.$delete(this.data, "canvasOption");
934
+ }
935
+ }
936
+ }, __cssModules$7 = {};
937
+ var __component__$7 = /* @__PURE__ */ normalizeComponent(
938
+ __vue2_script$7,
939
+ render$d,
940
+ staticRenderFns$d,
941
+ !1,
942
+ __vue2_injectStyles$7,
943
+ null,
944
+ null,
945
+ null
946
+ );
947
+ function __vue2_injectStyles$7(t) {
948
+ for (let l in __cssModules$7)
949
+ this[l] = __cssModules$7[l];
950
+ }
951
+ const ConfigUpload = /* @__PURE__ */ function() {
952
+ return __component__$7.exports;
953
+ }(), __vue2_script$6 = {
954
+ name: "ConfigUEditor",
955
+ props: ["data"],
956
+ watch: {
957
+ "data.options.oss": function(t) {
958
+ debugger;
959
+ t == "ali" ? this.data.options.qiniu = {} : t == "qiniu" && (this.data.options.ali = {});
960
+ }
961
+ }
962
+ }, __cssModules$6 = {};
963
+ var __component__$6 = /* @__PURE__ */ normalizeComponent(
964
+ __vue2_script$6,
965
+ render$e,
966
+ staticRenderFns$e,
967
+ !1,
968
+ __vue2_injectStyles$6,
969
+ null,
970
+ null,
971
+ null
972
+ );
973
+ function __vue2_injectStyles$6(t) {
974
+ for (let l in __cssModules$6)
975
+ this[l] = __cssModules$6[l];
976
+ }
977
+ const ConfigUEditor = /* @__PURE__ */ function() {
978
+ return __component__$6.exports;
979
+ }(), __vue2_script$5 = {
980
+ name: "ConfigMap",
981
+ props: ["data"]
982
+ }, __cssModules$5 = {};
983
+ var __component__$5 = /* @__PURE__ */ normalizeComponent(
984
+ __vue2_script$5,
985
+ render$f,
986
+ staticRenderFns$f,
987
+ !1,
988
+ __vue2_injectStyles$5,
989
+ null,
990
+ null,
991
+ null
992
+ );
993
+ function __vue2_injectStyles$5(t) {
994
+ for (let l in __cssModules$5)
995
+ this[l] = __cssModules$5[l];
996
+ }
997
+ const ConfigMap = /* @__PURE__ */ function() {
998
+ return __component__$5.exports;
999
+ }(), __vue2_script$4 = {
1000
+ name: "ConfigGroup",
1001
+ props: ["data"],
1002
+ data() {
1003
+ return {
1004
+ iconList: [{
1005
+ label: "element-ui",
1006
+ list: ["el-icon-info", "el-icon-error", "el-icon-success", "el-icon-warning", "el-icon-question"]
1007
+ }]
1008
+ };
1009
+ }
1010
+ }, __cssModules$4 = {};
1011
+ var __component__$4 = /* @__PURE__ */ normalizeComponent(
1012
+ __vue2_script$4,
1013
+ render$g,
1014
+ staticRenderFns$g,
1015
+ !1,
1016
+ __vue2_injectStyles$4,
1017
+ null,
1018
+ null,
1019
+ null
1020
+ );
1021
+ function __vue2_injectStyles$4(t) {
1022
+ for (let l in __cssModules$4)
1023
+ this[l] = __cssModules$4[l];
1024
+ }
1025
+ const ConfigGroup = /* @__PURE__ */ function() {
1026
+ return __component__$4.exports;
1027
+ }(), __vue2_script$3 = {
1028
+ name: "ConfigArray",
1029
+ props: ["data"]
1030
+ }, __cssModules$3 = {};
1031
+ var __component__$3 = /* @__PURE__ */ normalizeComponent(
1032
+ __vue2_script$3,
1033
+ render$h,
1034
+ staticRenderFns$h,
1035
+ !1,
1036
+ __vue2_injectStyles$3,
1037
+ null,
1038
+ null,
1039
+ null
1040
+ );
1041
+ function __vue2_injectStyles$3(t) {
1042
+ for (let l in __cssModules$3)
1043
+ this[l] = __cssModules$3[l];
1044
+ }
1045
+ const ConfigArray = /* @__PURE__ */ function() {
1046
+ return __component__$3.exports;
1047
+ }(), __vue2_script$2 = {
1048
+ name: "ConfigTitle",
1049
+ props: ["data"],
1050
+ data() {
1051
+ return {
1052
+ options: ["100", "200", "300", "400", "500", "600", "700", "800", "900", "blod", "bloder", "inherit", "initial", "lighter", "normal", "revert", "unset"]
1053
+ };
1054
+ }
1055
+ }, __cssModules$2 = {};
1056
+ var __component__$2 = /* @__PURE__ */ normalizeComponent(
1057
+ __vue2_script$2,
1058
+ render$i,
1059
+ staticRenderFns$i,
1060
+ !1,
1061
+ __vue2_injectStyles$2,
1062
+ null,
1063
+ null,
1064
+ null
1065
+ );
1066
+ function __vue2_injectStyles$2(t) {
1067
+ for (let l in __cssModules$2)
1068
+ this[l] = __cssModules$2[l];
1069
+ }
1070
+ const ConfigTitle = /* @__PURE__ */ function() {
1071
+ return __component__$2.exports;
1072
+ }(), __vue2_script$1 = {
1073
+ name: "ConfigEvent",
1074
+ components: { MonacoEditor },
1075
+ props: ["data"],
1076
+ data() {
1077
+ return {
1078
+ change: "",
1079
+ click: "",
1080
+ focus: "",
1081
+ blur: "",
1082
+ options: {
1083
+ fullScreen: !0,
1084
+ minimap: {
1085
+ enabled: !1
1086
+ }
1087
+ }
1088
+ };
1089
+ },
1090
+ watch: {
1091
+ "data.prop": {
1092
+ handler() {
1093
+ const { change: t, click: l, focus: a, blur: s } = this.data;
1094
+ this.$set(this, "change", t ? t + "" : `({value}) => {\r
1095
+ \r
1096
+ }`), this.$set(this, "click", l ? l + "" : `({value}) => {\r
1097
+ \r
1098
+ }`), this.$set(this, "focus", a ? a + "" : `({value}) => {\r
1099
+ \r
1100
+ }`), this.$set(this, "blur", s ? s + "" : `({value}) => {\r
1101
+ \r
1102
+ }`);
1103
+ },
1104
+ immediate: !0
1105
+ }
1106
+ },
1107
+ mounted() {
1108
+ this.$nextTick(() => {
1109
+ const event = ["change", "click", "focus", "blur"];
1110
+ event.forEach((e) => {
1111
+ this.$watch(`${e}`, (val) => {
1112
+ try {
1113
+ this.$set(this.data, e, eval(val));
1114
+ } catch (t) {
1115
+ }
1116
+ });
1117
+ });
1118
+ });
1119
+ }
1120
+ }, __cssModules$1 = {};
1121
+ var __component__$1 = /* @__PURE__ */ normalizeComponent(
1122
+ __vue2_script$1,
1123
+ render$j,
1124
+ staticRenderFns$j,
1125
+ !1,
1126
+ __vue2_injectStyles$1,
1127
+ null,
1128
+ null,
1129
+ null
1130
+ );
1131
+ function __vue2_injectStyles$1(t) {
1132
+ for (let l in __cssModules$1)
1133
+ this[l] = __cssModules$1[l];
1134
+ }
1135
+ const ConfigEvent = /* @__PURE__ */ function() {
1136
+ return __component__$1.exports;
1137
+ }(), __vue2_script = {
1138
+ name: "ConfigTable",
1139
+ components: { MonacoEditor, AfdColumn },
1140
+ props: ["data"],
1141
+ data() {
1142
+ return {
1143
+ options: {
1144
+ fullScreen: !0,
1145
+ minimap: {
1146
+ enabled: !1
1147
+ }
1148
+ },
1149
+ onLoad: "",
1150
+ formatter: ""
1151
+ };
1152
+ },
1153
+ watch: {
1154
+ "data.prop": {
1155
+ handler() {
1156
+ const { onLoad: t, formatter: l } = this.data;
1157
+ this.onLoad = t ? t + "" : "", this.formatter = l ? l + "" : "";
1158
+ },
1159
+ immediate: !0
1160
+ },
1161
+ "data.children.props": {
1162
+ handler(t) {
1163
+ this.handleOnLoad(t);
1164
+ },
1165
+ deep: !0
1166
+ },
1167
+ onLoad: {
1168
+ handler(val) {
1169
+ try {
1170
+ this.data.onLoad = eval(val);
1171
+ } catch (t) {
1172
+ console.error(t);
1173
+ }
1174
+ }
1175
+ }
1176
+ },
1177
+ methods: {
1178
+ handleColumn(t) {
1179
+ this.data.children.column = t;
1180
+ },
1181
+ handleOnLoad(t) {
1182
+ const { url: l, method: a, needPage: s, currentPageKey: n, pageSizeKey: o, totalKey: c, recordsKey: d, resKey: u, auto: p } = t;
1183
+ if (!p)
1184
+ return;
1185
+ if (!l) {
1186
+ this.onLoad = "(res, cb) => { }";
1187
+ return;
1188
+ }
1189
+ let { props: i } = this.data;
1190
+ i || (i = { label: "label", value: "value" });
1191
+ const { value: r } = i, _ = `(res, cb) => {
1192
+ let { page, value, data } = res
1193
+ if (!page) page = { currentPage: 1, pageSize: 10 }
1194
+ const { currentPage, pageSize } = page
1195
+ let params = { ...data, ${n || "current"}: currentPage, ${o || "page"}: pageSize }
1196
+
1197
+ if (value) params['${r}'] = value
1198
+
1199
+ if ('${a || "get"}' == 'get') params = { params: { ...params } }
1200
+
1201
+ this.$axios['${a}']('${l}', params).then(res => {
1202
+ const response = this.getAsVal(res, '${u || "data.data"}')
1203
+ if (!response) this.$message.error('未查询到数据或者返回层级配置错误')
1204
+
1205
+ let result = {}
1206
+ if (${s}) {
1207
+ const total = this.getAsVal(response, '${c || "total"}')
1208
+ if (total || total == 0) {
1209
+ result.total = total
1210
+ } else {
1211
+ this.$message.error('总条数配置错误')
1212
+ return
1213
+ }
1214
+ const records = this.getAsVal(response, '${d || "records"}')
1215
+ if (records) {
1216
+ result.data = records
1217
+ } else {
1218
+ this.$message.error('列表配置错误')
1219
+ return
1220
+ }
1221
+ } else result = { total: response.length, data: response }
1222
+
1223
+ if (value) {
1224
+ const records = result.data
1225
+ if (records && records.length > 0) cb(records[0])
1226
+ else this.$message.error('根据${r}: ' + value + ' 查询不到结果')
1227
+ } else cb(result)
1228
+ })
1229
+ }`;
1230
+ this.onLoad = _;
1231
+ }
1232
+ }
1233
+ }, __cssModules = {};
1234
+ var __component__ = /* @__PURE__ */ normalizeComponent(
1235
+ __vue2_script,
1236
+ render$k,
1237
+ staticRenderFns$k,
1238
+ !1,
1239
+ __vue2_injectStyles,
1240
+ null,
1241
+ null,
1242
+ null
1243
+ );
1244
+ function __vue2_injectStyles(t) {
1245
+ for (let l in __cssModules)
1246
+ this[l] = __cssModules[l];
1247
+ }
1248
+ const ConfigTable = /* @__PURE__ */ function() {
1249
+ return __component__.exports;
1250
+ }();
1251
+ var render = function() {
1252
+ var t = this, l = t.$createElement, a = t._self._c || l;
1253
+ return a("div", {
1254
+ staticClass: "widget-config"
1255
+ }, [t.data && Object.keys(t.data).length > 0 ? a("ElForm", {
1256
+ attrs: {
1257
+ "label-suffix": ":",
1258
+ "label-position": "left",
1259
+ "label-width": "90px",
1260
+ size: "small"
1261
+ }
1262
+ }, [a("ElCollapse", {
1263
+ model: {
1264
+ value: t.collapse,
1265
+ callback: function(s) {
1266
+ t.collapse = s;
1267
+ },
1268
+ expression: "collapse"
1269
+ }
1270
+ }, [a("ElCollapseItem", {
1271
+ attrs: {
1272
+ name: "1",
1273
+ title: "基本属性"
1274
+ }
1275
+ }, [t.data.type && !t.data.component ? a("ElFormItem", {
1276
+ attrs: {
1277
+ label: "类型"
1278
+ }
1279
+ }, [a("ElSelect", {
1280
+ staticStyle: {
1281
+ width: "100%"
1282
+ },
1283
+ attrs: {
1284
+ placeholder: "请选择类型"
1285
+ },
1286
+ on: {
1287
+ change: t.handleChangeType
1288
+ },
1289
+ model: {
1290
+ value: t.data.type,
1291
+ callback: function(s) {
1292
+ t.$set(t.data, "type", s);
1293
+ },
1294
+ expression: "data.type"
1295
+ }
1296
+ }, t._l(t.fields, function(s) {
1297
+ return a("ElOptionGroup", {
1298
+ key: s.title,
1299
+ attrs: {
1300
+ label: s.title
1301
+ }
1302
+ }, t._l(s.list, function(n) {
1303
+ return a("ElOption", {
1304
+ key: n.type,
1305
+ attrs: {
1306
+ label: n.label,
1307
+ value: n.type
1308
+ }
1309
+ });
1310
+ }), 1);
1311
+ }), 1)], 1) : t._e(), a("ElFormItem", {
1312
+ attrs: {
1313
+ label: "属性值"
1314
+ }
1315
+ }, [a("ElInput", {
1316
+ attrs: {
1317
+ clearable: "",
1318
+ placeholder: "属性值"
1319
+ },
1320
+ model: {
1321
+ value: t.data.prop,
1322
+ callback: function(s) {
1323
+ t.$set(t.data, "prop", s);
1324
+ },
1325
+ expression: "data.prop"
1326
+ }
1327
+ })], 1), a("ElFormItem", {
1328
+ attrs: {
1329
+ label: "标题"
1330
+ }
1331
+ }, [a("ElInput", {
1332
+ attrs: {
1333
+ clearable: "",
1334
+ placeholder: "标题"
1335
+ },
1336
+ model: {
1337
+ value: t.data.label,
1338
+ callback: function(s) {
1339
+ t.$set(t.data, "label", s);
1340
+ },
1341
+ expression: "data.label"
1342
+ }
1343
+ })], 1), ["group", "dynamic", "title"].includes(t.data.type) ? t._e() : a("ElFormItem", {
1344
+ attrs: {
1345
+ label: "标题宽度"
1346
+ }
1347
+ }, [a("ElInputNumber", {
1348
+ staticStyle: {
1349
+ width: "100%"
1350
+ },
1351
+ attrs: {
1352
+ min: 80,
1353
+ step: 10,
1354
+ "controls-position": "right",
1355
+ placeholder: "标签宽度"
1356
+ },
1357
+ model: {
1358
+ value: t.data.labelWidth,
1359
+ callback: function(s) {
1360
+ t.$set(t.data, "labelWidth", s);
1361
+ },
1362
+ expression: "data.labelWidth"
1363
+ }
1364
+ })], 1), t.data.subfield ? t._e() : a("ElFormItem", {
1365
+ attrs: {
1366
+ label: "标签位置"
1367
+ }
1368
+ }, [a("ElSelect", {
1369
+ attrs: {
1370
+ placeholder: "标签位置",
1371
+ clearable: ""
1372
+ },
1373
+ model: {
1374
+ value: t.data.labelPosition,
1375
+ callback: function(s) {
1376
+ t.$set(t.data, "labelPosition", s);
1377
+ },
1378
+ expression: "data.labelPosition"
1379
+ }
1380
+ }, [a("ElOption", {
1381
+ attrs: {
1382
+ label: "上",
1383
+ value: "top"
1384
+ }
1385
+ }), a("ElOption", {
1386
+ attrs: {
1387
+ label: "左",
1388
+ value: "left"
1389
+ }
1390
+ }), a("ElOption", {
1391
+ attrs: {
1392
+ label: "右",
1393
+ value: "right"
1394
+ }
1395
+ })], 1)], 1), t.data.subfield ? a("ElFormItem", {
1396
+ attrs: {
1397
+ label: "宽度"
1398
+ }
1399
+ }, [a("ElInputNumber", {
1400
+ staticStyle: {
1401
+ width: "100%"
1402
+ },
1403
+ attrs: {
1404
+ "controls-position": "right",
1405
+ placeholder: "宽度",
1406
+ min: 100
1407
+ },
1408
+ model: {
1409
+ value: t.data.width,
1410
+ callback: function(s) {
1411
+ t.$set(t.data, "width", s);
1412
+ },
1413
+ expression: "data.width"
1414
+ }
1415
+ })], 1) : t._e(), !t.data.subfield && !["group"].includes(t.data.type) ? a("ElFormItem", {
1416
+ attrs: {
1417
+ label: "表单栅格"
1418
+ }
1419
+ }, [a("ElInputNumber", {
1420
+ staticStyle: {
1421
+ width: "100%"
1422
+ },
1423
+ attrs: {
1424
+ "controls-position": "right",
1425
+ placeholder: "表单栅格",
1426
+ min: 2,
1427
+ max: 24
1428
+ },
1429
+ model: {
1430
+ value: t.data.span,
1431
+ callback: function(s) {
1432
+ t.$set(t.data, "span", s);
1433
+ },
1434
+ expression: "data.span"
1435
+ }
1436
+ })], 1) : t._e(), ["cascader", "checkbox", "radio", "select", "tree", "upload", "img", "array", "slider", "timerange", "daterange", "datetimerange"].includes(t.data.type) ? a("ElFormItem", {
1437
+ attrs: {
1438
+ label: "数据类型"
1439
+ }
1440
+ }, [a("template", {
1441
+ slot: "label"
1442
+ }, [a("ElLink", {
1443
+ attrs: {
1444
+ underline: !1,
1445
+ href: "https://avuejs.com/docs/datatype.html",
1446
+ target: "_blank"
1447
+ }
1448
+ }, [t._v(" 数据类型 "), a("i", {
1449
+ staticClass: "el-icon-question"
1450
+ })])], 1), a("ElSelect", {
1451
+ attrs: {
1452
+ placeholder: "数据类型",
1453
+ clearable: ""
1454
+ },
1455
+ model: {
1456
+ value: t.data.dataType,
1457
+ callback: function(s) {
1458
+ t.$set(t.data, "dataType", s);
1459
+ },
1460
+ expression: "data.dataType"
1461
+ }
1462
+ }, [a("ElOption", {
1463
+ attrs: {
1464
+ label: "String",
1465
+ value: "string"
1466
+ }
1467
+ }), a("ElOption", {
1468
+ attrs: {
1469
+ label: "Number",
1470
+ value: "number"
1471
+ }
1472
+ }), a("ElOption", {
1473
+ attrs: {
1474
+ label: "Array",
1475
+ value: "array"
1476
+ }
1477
+ })], 1)], 2) : t._e(), a("ElFormItem", {
1478
+ attrs: {
1479
+ label: "字段提示"
1480
+ }
1481
+ }, [a("template", {
1482
+ slot: "label"
1483
+ }, [a("ElLink", {
1484
+ attrs: {
1485
+ underline: !1,
1486
+ href: "https://avuejs.com/form/form-tip.html",
1487
+ target: "_blank"
1488
+ }
1489
+ }, [t._v(" 字段提示 "), a("i", {
1490
+ staticClass: "el-icon-question"
1491
+ })])], 1), a("ElInput", {
1492
+ attrs: {
1493
+ clearable: "",
1494
+ placeholder: "字段提示"
1495
+ },
1496
+ model: {
1497
+ value: t.data.tip,
1498
+ callback: function(s) {
1499
+ t.$set(t.data, "tip", s);
1500
+ },
1501
+ expression: "data.tip"
1502
+ }
1503
+ })], 2), t.data.tip && !["upload"].includes(t.data.type) ? a("ElFormItem", {
1504
+ attrs: {
1505
+ label: "字段提示位置",
1506
+ "label-width": "110px"
1507
+ }
1508
+ }, [a("ElSelect", {
1509
+ attrs: {
1510
+ placeholder: "字段提示位置",
1511
+ clearable: ""
1512
+ },
1513
+ model: {
1514
+ value: t.data.tipPlacement,
1515
+ callback: function(s) {
1516
+ t.$set(t.data, "tipPlacement", s);
1517
+ },
1518
+ expression: "data.tipPlacement"
1519
+ }
1520
+ }, [a("ElOption", {
1521
+ attrs: {
1522
+ label: "上",
1523
+ value: "top"
1524
+ }
1525
+ }), a("ElOption", {
1526
+ attrs: {
1527
+ label: "下",
1528
+ value: "bottom"
1529
+ }
1530
+ }), a("ElOption", {
1531
+ attrs: {
1532
+ label: "左",
1533
+ value: "left"
1534
+ }
1535
+ }), a("ElOption", {
1536
+ attrs: {
1537
+ label: "右",
1538
+ value: "right"
1539
+ }
1540
+ })], 1)], 1) : t._e(), a("ElFormItem", {
1541
+ attrs: {
1542
+ label: "标题提示"
1543
+ }
1544
+ }, [a("template", {
1545
+ slot: "label"
1546
+ }, [a("ElLink", {
1547
+ attrs: {
1548
+ underline: !1,
1549
+ href: "https://avuejs.com/form/form-tip.html",
1550
+ target: "_blank"
1551
+ }
1552
+ }, [t._v(" 标题提示 "), a("i", {
1553
+ staticClass: "el-icon-question"
1554
+ })])], 1), a("ElInput", {
1555
+ attrs: {
1556
+ clearable: "",
1557
+ placeholder: "标题提示"
1558
+ },
1559
+ model: {
1560
+ value: t.data.labelTip,
1561
+ callback: function(s) {
1562
+ t.$set(t.data, "labelTip", s);
1563
+ },
1564
+ expression: "data.labelTip"
1565
+ }
1566
+ })], 2), t.data.labelTip && !["upload"].includes(t.data.type) ? a("ElFormItem", {
1567
+ attrs: {
1568
+ label: "标题提示位置",
1569
+ "label-width": "110px"
1570
+ }
1571
+ }, [a("ElSelect", {
1572
+ attrs: {
1573
+ placeholder: "标题提示位置",
1574
+ clearable: ""
1575
+ },
1576
+ model: {
1577
+ value: t.data.labelTipPlacement,
1578
+ callback: function(s) {
1579
+ t.$set(t.data, "labelTipPlacement", s);
1580
+ },
1581
+ expression: "data.labelTipPlacement"
1582
+ }
1583
+ }, [a("ElOption", {
1584
+ attrs: {
1585
+ label: "上",
1586
+ value: "top"
1587
+ }
1588
+ }), a("ElOption", {
1589
+ attrs: {
1590
+ label: "下",
1591
+ value: "bottom"
1592
+ }
1593
+ }), a("ElOption", {
1594
+ attrs: {
1595
+ label: "左",
1596
+ value: "left"
1597
+ }
1598
+ }), a("ElOption", {
1599
+ attrs: {
1600
+ label: "右",
1601
+ value: "right"
1602
+ }
1603
+ })], 1)], 1) : t._e(), ["color", "dynamic", "group", "ueditor", "upload", "map"].includes(t.data.type) ? t._e() : a("ElFormItem", {
1604
+ attrs: {
1605
+ label: "默认值"
1606
+ }
1607
+ }, [t.defaultValues && t.defaultValues[t.data.type] ? [a("ElSelect", {
1608
+ attrs: {
1609
+ "allow-create": "",
1610
+ clearable: "",
1611
+ filterable: "",
1612
+ placeholder: "默认值"
1613
+ },
1614
+ model: {
1615
+ value: t.data.value,
1616
+ callback: function(s) {
1617
+ t.$set(t.data, "value", s);
1618
+ },
1619
+ expression: "data.value"
1620
+ }
1621
+ }, t._l(t.defaultValues[t.data.type], function(s) {
1622
+ return a("ElOption", {
1623
+ key: s.value,
1624
+ attrs: {
1625
+ label: s.label,
1626
+ value: s.value
1627
+ }
1628
+ });
1629
+ }), 1)] : [a("ElInput", {
1630
+ attrs: {
1631
+ clearable: "",
1632
+ placeholder: "默认值"
1633
+ },
1634
+ model: {
1635
+ value: t.data.value,
1636
+ callback: function(s) {
1637
+ t.$set(t.data, "value", s);
1638
+ },
1639
+ expression: "data.value"
1640
+ }
1641
+ })]], 2), a("ElFormItem", {
1642
+ attrs: {
1643
+ label: "详情模式"
1644
+ }
1645
+ }, [a("ElSwitch", {
1646
+ model: {
1647
+ value: t.data.detail,
1648
+ callback: function(s) {
1649
+ t.$set(t.data, "detail", s);
1650
+ },
1651
+ expression: "data.detail"
1652
+ }
1653
+ })], 1), a("ElFormItem", {
1654
+ attrs: {
1655
+ label: "是否只读"
1656
+ }
1657
+ }, [a("ElSwitch", {
1658
+ model: {
1659
+ value: t.data.readonly,
1660
+ callback: function(s) {
1661
+ t.$set(t.data, "readonly", s);
1662
+ },
1663
+ expression: "data.readonly"
1664
+ }
1665
+ })], 1), a("ElFormItem", {
1666
+ attrs: {
1667
+ label: "是否禁用"
1668
+ }
1669
+ }, [a("ElSwitch", {
1670
+ model: {
1671
+ value: t.data.disabled,
1672
+ callback: function(s) {
1673
+ t.$set(t.data, "disabled", s);
1674
+ },
1675
+ expression: "data.disabled"
1676
+ }
1677
+ })], 1), a("ElFormItem", {
1678
+ attrs: {
1679
+ label: "是否可见"
1680
+ }
1681
+ }, [a("ElSwitch", {
1682
+ model: {
1683
+ value: t.data.display,
1684
+ callback: function(s) {
1685
+ t.$set(t.data, "display", s);
1686
+ },
1687
+ expression: "data.display"
1688
+ }
1689
+ })], 1), a("ElFormItem", {
1690
+ attrs: {
1691
+ label: "是否必填"
1692
+ }
1693
+ }, [a("ElSwitch", {
1694
+ model: {
1695
+ value: t.data.required,
1696
+ callback: function(s) {
1697
+ t.$set(t.data, "required", s);
1698
+ },
1699
+ expression: "data.required"
1700
+ }
1701
+ }), t.data.required ? a("ElInput", {
1702
+ attrs: {
1703
+ placeholder: "正则表达式"
1704
+ },
1705
+ model: {
1706
+ value: t.data.pattern,
1707
+ callback: function(s) {
1708
+ t.$set(t.data, "pattern", s);
1709
+ },
1710
+ expression: "data.pattern"
1711
+ }
1712
+ }) : t._e()], 1)], 1), a("ElCollapseItem", {
1713
+ attrs: {
1714
+ name: "2",
1715
+ title: "组件属性"
1716
+ }
1717
+ }, [a(t.getComponent, {
1718
+ tag: "Component",
1719
+ attrs: {
1720
+ data: t.data,
1721
+ "default-values": t.defaultValues
1722
+ }
1723
+ })], 1), ["group"].includes(t.data.type) ? t._e() : a("ElCollapseItem", {
1724
+ attrs: {
1725
+ name: "3",
1726
+ title: "事件属性"
1727
+ }
1728
+ }, [a("ConfigEvent", {
1729
+ attrs: {
1730
+ data: t.data
1731
+ }
1732
+ })], 1)], 1)], 1) : [a("FyEmpty", {
1733
+ staticStyle: {
1734
+ "margin-top": "100%"
1735
+ },
1736
+ attrs: {
1737
+ desc: "拖拽字段进行配置"
1738
+ }
1739
+ })]], 2);
1740
+ }, staticRenderFns = [];
1741
+ export {
1742
+ ConfigCustom as C,
1743
+ ConfigInput as a,
1744
+ ConfigTextarea as b,
1745
+ ConfigNumber as c,
1746
+ ConfigDynamic as d,
1747
+ ConfigSwitch as e,
1748
+ ConfigRate as f,
1749
+ ConfigSlider as g,
1750
+ ConfigColor as h,
1751
+ ConfigSelect as i,
1752
+ ConfigTree as j,
1753
+ ConfigDate as k,
1754
+ ConfigUpload as l,
1755
+ ConfigUEditor as m,
1756
+ ConfigMap as n,
1757
+ ConfigGroup as o,
1758
+ ConfigArray as p,
1759
+ ConfigTitle as q,
1760
+ render as r,
1761
+ staticRenderFns as s,
1762
+ ConfigEvent as t,
1763
+ ConfigTable as u,
1764
+ fields as v
1765
+ };