starfish-form-custom 1.0.0

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 (73) hide show
  1. package/README.md +2 -0
  2. package/auto-imports.d.ts +9 -0
  3. package/components.d.ts +68 -0
  4. package/dist/formAction-28d86b6a.mjs +446 -0
  5. package/dist/index-04830c0b.mjs +126 -0
  6. package/dist/index-eab8ef70.mjs +519 -0
  7. package/dist/index-f7ea052c.mjs +241 -0
  8. package/dist/main-96327b2e.mjs +5051 -0
  9. package/dist/starfish-form-a18a5409.mjs +328 -0
  10. package/dist/starfish-form.mjs +36 -0
  11. package/dist/style.css +377 -0
  12. package/dist/types/form/src/common/Loading.vue.d.ts +3 -0
  13. package/dist/types/form/src/env.d.ts +15 -0
  14. package/dist/types/form/src/main.d.ts +43 -0
  15. package/dist/types/form/src/starfish-form.vue.d.ts +40 -0
  16. package/dist/types/form/src/utils/customHooks.d.ts +2 -0
  17. package/dist/types/form/src/utils/fieldConfig.d.ts +78 -0
  18. package/dist/types/form/src/utils/fieldProps.d.ts +43 -0
  19. package/dist/types/starfish-form.d.ts +3 -0
  20. package/package.json +42 -0
  21. package/src/common/KeyValueConfig.vue +145 -0
  22. package/src/common/KeyValueConfigMult.vue +139 -0
  23. package/src/common/Loading.vue +14 -0
  24. package/src/common/action.vue +76 -0
  25. package/src/common/formAction.vue +298 -0
  26. package/src/common/listConfig.vue +45 -0
  27. package/src/common/panel.vue +61 -0
  28. package/src/common/radiogroup.vue +31 -0
  29. package/src/components/CheckBox/index.vue +42 -0
  30. package/src/components/ColorSelect/index.vue +49 -0
  31. package/src/components/Date/index.vue +39 -0
  32. package/src/components/DateTime/index.vue +39 -0
  33. package/src/components/InputNumber/index.vue +48 -0
  34. package/src/components/JsonEditor/index.vue +167 -0
  35. package/src/components/Radio/index.vue +42 -0
  36. package/src/components/RichText/index.vue +60 -0
  37. package/src/components/Rule/index.vue +365 -0
  38. package/src/components/Rule/ruleform.json +315 -0
  39. package/src/components/Rule/rules.js +91 -0
  40. package/src/components/Selected/index.vue +50 -0
  41. package/src/components/Selecteds/index.vue +50 -0
  42. package/src/components/ShowRule/index.vue +50 -0
  43. package/src/components/Slider/index.vue +38 -0
  44. package/src/components/Switch/index.vue +61 -0
  45. package/src/components/Text/index.vue +48 -0
  46. package/src/components/TextArea/index.vue +49 -0
  47. package/src/components/Time/index.vue +36 -0
  48. package/src/env.d.ts +15 -0
  49. package/src/layout/Divider.vue +30 -0
  50. package/src/layout/Info.vue +69 -0
  51. package/src/layout/Tabs.vue +75 -0
  52. package/src/layout/collapse.vue +78 -0
  53. package/src/layout/grid.vue +88 -0
  54. package/src/layout/table.vue +80 -0
  55. package/src/main.ts +62 -0
  56. package/src/starfish-form.vue +265 -0
  57. package/src/styles/action.scss +25 -0
  58. package/src/styles/collapse.scss +15 -0
  59. package/src/styles/custom-cpm.scss +5 -0
  60. package/src/styles/divider.scss +16 -0
  61. package/src/styles/form-action.scss +92 -0
  62. package/src/styles/formedit.scss +69 -0
  63. package/src/styles/grid.scss +12 -0
  64. package/src/styles/index.scss +12 -0
  65. package/src/styles/keyvalueConfig.scss +56 -0
  66. package/src/styles/rule.scss +17 -0
  67. package/src/styles/showrule.scss +5 -0
  68. package/src/styles/table.scss +19 -0
  69. package/src/styles/tabs.scss +5 -0
  70. package/src/utils/customHooks.ts +22 -0
  71. package/src/utils/fieldConfig.ts +961 -0
  72. package/src/utils/fieldProps.ts +50 -0
  73. package/stats.html +4949 -0
@@ -0,0 +1,519 @@
1
+ import { ElTooltip, ElOption, ElSelect, ElButton, ElIcon, ElCollapseItem, ElCollapse, ElDropdownItem, ElDropdownMenu, ElDropdown, ElAlert, ElFooter, ElMain, ElContainer } from 'element-plus/es';
2
+ import 'element-plus/es/components/base/style/css';
3
+ import 'element-plus/es/components/container/style/css';
4
+ import 'element-plus/es/components/main/style/css';
5
+ import 'element-plus/es/components/footer/style/css';
6
+ import 'element-plus/es/components/alert/style/css';
7
+ import 'element-plus/es/components/dropdown/style/css';
8
+ import 'element-plus/es/components/dropdown-menu/style/css';
9
+ import 'element-plus/es/components/dropdown-item/style/css';
10
+ import 'element-plus/es/components/collapse/style/css';
11
+ import 'element-plus/es/components/collapse-item/style/css';
12
+ import 'element-plus/es/components/icon/style/css';
13
+ import 'element-plus/es/components/button/style/css';
14
+ import 'element-plus/es/components/select/style/css';
15
+ import 'element-plus/es/components/option/style/css';
16
+ import 'element-plus/es/components/tooltip/style/css';
17
+ import { defineComponent, getCurrentInstance, inject, computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode, createBlock, withCtx, Fragment, renderList, createVNode, createTextVNode } from 'vue';
18
+ import { _ as _export_sfc, a as _, f as fieldProps, r as ruleList, b as ruleJsonData } from './main-96327b2e.mjs';
19
+ import { Delete } from '@element-plus/icons-vue';
20
+ import Dynamicform from './starfish-form-a18a5409.mjs';
21
+ import { Codemirror } from 'vue-codemirror';
22
+ import 'element-plus/es/components/input/style/css';
23
+ import 'element-plus/es/components/checkbox/style/css';
24
+ import 'element-plus/es/components/loading/style/css';
25
+ import 'element-plus/es/components/row/style/css';
26
+ import 'element-plus/es/components/col/style/css';
27
+ import 'element-plus/es/components/input-number/style/css';
28
+ import 'element-plus/es/components/radio-group/style/css';
29
+ import 'element-plus/es/components/radio-button/style/css';
30
+ import 'element-plus/es/components/checkbox-group/style/css';
31
+ import 'element-plus/es/components/color-picker/style/css';
32
+ import 'element-plus/es/components/date-picker/style/css';
33
+ import 'element-plus/es/components/radio/style/css';
34
+ import 'element-plus/es/components/slider/style/css';
35
+ import 'element-plus/es/components/switch/style/css';
36
+ import 'element-plus/es/components/time-select/style/css';
37
+ import 'element-plus/es/components/divider/style/css';
38
+ import 'element-plus/es/components/tabs/style/css';
39
+ import 'element-plus/es/components/tab-pane/style/css';
40
+ import 'element-plus/es/components/form-item/style/css';
41
+ import 'element-plus';
42
+ import 'element-plus/es/components/form/style/css';
43
+
44
+ /* unplugin-vue-components disabled */const index_vue_vue_type_style_index_0_lang = '';
45
+
46
+ const _sfc_main = defineComponent({
47
+ ControlType: "Rule",
48
+ // 必须与文件名匹配
49
+ rule: _.getJsonValidate(),
50
+ props: {
51
+ ...fieldProps
52
+ },
53
+ components: {
54
+ Delete,
55
+ Dynamicform,
56
+ Codemirror
57
+ },
58
+ setup(props) {
59
+ const { proxy } = getCurrentInstance();
60
+ const { formStore } = inject("control") || {};
61
+ const globalDatas = computed(() => formStore?.get("globalDatas"));
62
+ const rules = ref([]);
63
+ const ruleList$1 = ref(ruleList);
64
+ const funcItem = ref({});
65
+ const funcValue = ref({});
66
+ const highItem = ref({});
67
+ const formValue = ref({});
68
+ const ruleJson = ref(ruleJsonData.ruleJson);
69
+ const IsShow = ref(true);
70
+ const codeMyDialog = ref();
71
+ const formRuleDialog = ref();
72
+ const formdragger = ref();
73
+ return {
74
+ IsShow,
75
+ rules,
76
+ ruleList: ruleList$1,
77
+ globalDatas,
78
+ funcItem,
79
+ funcValue,
80
+ highItem,
81
+ formValue,
82
+ ruleJson,
83
+ codeMyDialog,
84
+ formRuleDialog,
85
+ formdragger,
86
+ handleDropdown(type) {
87
+ let title = "";
88
+ if (type == "enum") {
89
+ title = "\u81EA\u5B9A\u4E49\u679A\u4E3E";
90
+ } else if (type == "func") {
91
+ title = "\u81EA\u5B9A\u4E49\u51FD\u6570\u89C4\u5219";
92
+ } else if (type == "high") {
93
+ title = "\u9AD8\u7EA7\u6A21\u5F0F";
94
+ }
95
+ if (Array.isArray(props.data[props.item.data.fieldName])) {
96
+ props.data[props.item.data.fieldName].push({
97
+ type,
98
+ title,
99
+ value: ""
100
+ });
101
+ } else {
102
+ props.data[props.item.data.fieldName] = [];
103
+ props.data[props.item.data.fieldName].push({
104
+ type,
105
+ title,
106
+ value: ""
107
+ });
108
+ }
109
+ },
110
+ handleFuncEdit(item) {
111
+ funcItem.value = item;
112
+ funcValue.value = item.value ? JSON.parse(JSON.stringify(item.value)) : {
113
+ trigger: "blur",
114
+ func: `/** if (value === "" || value == null) {
115
+ * callback(new Error("\u8BF7\u8F93\u5165"));
116
+ *} else if (!/^[0-9]*$/.test(value)) {
117
+ * callback(new Error("\u5FC5\u987B\u4E3A\u6570\u5B57"));
118
+ *}
119
+ *callback();
120
+ */`
121
+ };
122
+ codeMyDialog.value.init("\u51FD\u6570\u7F16\u8F91", "icon-icon-bianji");
123
+ codeMyDialog.value.show();
124
+ },
125
+ saveFunc() {
126
+ funcItem.value.value = funcValue.value;
127
+ proxy.closeDialog();
128
+ },
129
+ closeDialog() {
130
+ codeMyDialog.value.close();
131
+ formRuleDialog.value.close();
132
+ },
133
+ deleteRule(index) {
134
+ props.data[props.item.data.fieldName].splice(index, 1);
135
+ },
136
+ async handleFormEdit(item) {
137
+ highItem.value = item;
138
+ formValue.value = item.value || proxy.getDefaultData(ruleJson.value);
139
+ debugger;
140
+ formRuleDialog.value.init("\u89C4\u5219\u8868\u5355\u7F16\u8F91", "icon-icon-bianji");
141
+ formRuleDialog.value.show();
142
+ },
143
+ getDefaultData(items) {
144
+ const maindata = {};
145
+ items.forEach((item) => {
146
+ maindata[item.data.fieldName] = item.data.default;
147
+ if (item.data.getDefault) {
148
+ maindata[item.data.fieldName] = item.data.getDefault();
149
+ }
150
+ if (item.data.itemConfig) {
151
+ maindata[item.data.fieldName] = item.data.itemConfig.value;
152
+ }
153
+ maindata[item.data.fieldName] = maindata[item.data.fieldName] != void 0 ? JSON.parse(JSON.stringify(maindata[item.data.fieldName])) : void 0;
154
+ });
155
+ return maindata;
156
+ },
157
+ saveField() {
158
+ const newFormValue = {};
159
+ const map = {
160
+ 1: {
161
+ fields: ["required", "trigger", "message"]
162
+ },
163
+ 2: {
164
+ fields: ["trigger", "min", "max", "message"]
165
+ },
166
+ 3: {
167
+ fields: ["required", "trigger", "type", "message"]
168
+ },
169
+ 4: {
170
+ fields: ["required", "trigger", "patternTemp", "message"]
171
+ },
172
+ 5: {
173
+ fields: ["trigger", "minValue", "maxValue", "message"]
174
+ }
175
+ };
176
+ for (const key in formValue.value) {
177
+ if (map[formValue.value.ruleType || "1"].fields.includes(key)) {
178
+ newFormValue[key] = formValue.value[key];
179
+ }
180
+ }
181
+ if (formValue.value.ruleType == 2) {
182
+ newFormValue.min = parseInt(newFormValue.min);
183
+ newFormValue.max = parseInt(newFormValue.max);
184
+ } else if (formValue.value.ruleType == 4) {
185
+ newFormValue.pattern = new RegExp(newFormValue.patternTemp);
186
+ } else if (formValue.value.ruleType == 5) {
187
+ newFormValue.validor = `(rule, value, callback) => {
188
+ if (!/(^[1-9]*$)/.test(value)) {
189
+ callback(new Error("\u8BF7\u8F93\u5165\u6570\u5B57\u503C"))
190
+ } else {
191
+ if (value > ${newFormValue.maxValue}) {
192
+ callback(new Error("${newFormValue.message}"))
193
+ } else if(value < ${newFormValue.minValue}){
194
+ callback(new Error("${newFormValue.message}"))
195
+ }else {
196
+ callback()
197
+ }
198
+ }
199
+ }`;
200
+ }
201
+ newFormValue["ruleType"] = formValue.value["ruleType"];
202
+ highItem.value.value = newFormValue;
203
+ formRuleDialog.value.close();
204
+ }
205
+ };
206
+ }
207
+ });
208
+ const _hoisted_1 = {
209
+ key: 0,
210
+ class: "weight"
211
+ };
212
+ const _hoisted_2 = {
213
+ key: 0,
214
+ class: "collapse_enums"
215
+ };
216
+ const _hoisted_3 = { key: 1 };
217
+ const _hoisted_4 = { key: 2 };
218
+ const _hoisted_5 = {
219
+ key: 0,
220
+ class: "sqlDialog",
221
+ style: { "padding": "20px", "height": "100%" }
222
+ };
223
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
224
+ const _component_el_tooltip = ElTooltip;
225
+ const _component_el_option = ElOption;
226
+ const _component_el_select = ElSelect;
227
+ const _component_el_button = ElButton;
228
+ const _component_Delete = resolveComponent("Delete");
229
+ const _component_el_icon = ElIcon;
230
+ const _component_el_collapse_item = ElCollapseItem;
231
+ const _component_el_collapse = ElCollapse;
232
+ const _component_el_dropdown_item = ElDropdownItem;
233
+ const _component_el_dropdown_menu = ElDropdownMenu;
234
+ const _component_el_dropdown = ElDropdown;
235
+ const _component_el_alert = ElAlert;
236
+ const _component_codemirror = resolveComponent("codemirror");
237
+ const _component_el_footer = ElFooter;
238
+ const _component_CustomDialog = resolveComponent("CustomDialog");
239
+ const _component_Dynamicform = resolveComponent("Dynamicform");
240
+ const _component_el_main = ElMain;
241
+ const _component_el_container = ElContainer;
242
+ return openBlock(), createElementBlock("div", {
243
+ class: normalizeClass(["starfish-formitem starfish-formitem-rule", { formCover: _ctx.drag, "starfish-vertical": _ctx.labelalign != "top" }])
244
+ }, [
245
+ createElementVNode("div", {
246
+ class: normalizeClass(["label", "label_" + _ctx.labelalign]),
247
+ style: normalizeStyle({ width: _ctx.labelWidth + "px" })
248
+ }, [
249
+ createElementVNode("label", null, toDisplayString(_ctx.item.data.label), 1),
250
+ _ctx.item.data.required ? (openBlock(), createElementBlock("span", _hoisted_1, "*")) : createCommentVNode("", true),
251
+ _ctx.item.data.tip ? (openBlock(), createBlock(_component_el_tooltip, {
252
+ key: 1,
253
+ class: "item",
254
+ effect: "dark",
255
+ content: _ctx.item.data.tip,
256
+ placement: "bottom-start"
257
+ }, {
258
+ default: withCtx(() => _cache[2] || (_cache[2] = [
259
+ createElementVNode("span", { class: "tip iconfontui icon-tishi" }, null, -1)
260
+ ])),
261
+ _: 1,
262
+ __: [2]
263
+ }, 8, ["content"])) : createCommentVNode("", true)
264
+ ], 6),
265
+ createElementVNode("div", {
266
+ class: "control",
267
+ style: normalizeStyle({ marginLeft: _ctx.labelalign != "top" ? _ctx.labelWidth + "px" : "" })
268
+ }, [
269
+ Array.isArray(_ctx.data[_ctx.item.data.fieldName]) && _ctx.data[_ctx.item.data.fieldName].length > 0 ? (openBlock(), createBlock(_component_el_collapse, { key: 0 }, {
270
+ default: withCtx(() => [
271
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.data[_ctx.item.data.fieldName], (itemList, index) => {
272
+ return openBlock(), createBlock(_component_el_collapse_item, {
273
+ title: itemList.title,
274
+ name: itemList.title,
275
+ key: index
276
+ }, {
277
+ default: withCtx(() => [
278
+ itemList.type == "enum" ? (openBlock(), createElementBlock("div", _hoisted_2, [
279
+ createVNode(_component_el_select, {
280
+ modelValue: itemList.value,
281
+ "onUpdate:modelValue": ($event) => itemList.value = $event,
282
+ placeholder: "\u8BF7\u9009\u62E9",
283
+ style: { "width": "100%" },
284
+ size: "mini"
285
+ }, {
286
+ default: withCtx(() => [
287
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.ruleList, (items) => {
288
+ return openBlock(), createBlock(_component_el_option, {
289
+ key: items.value,
290
+ label: items.label,
291
+ value: items.validator
292
+ }, null, 8, ["label", "value"]);
293
+ }), 128))
294
+ ]),
295
+ _: 2
296
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
297
+ ])) : createCommentVNode("", true),
298
+ itemList.type == "func" ? (openBlock(), createElementBlock("div", _hoisted_3, [
299
+ createVNode(_component_el_button, {
300
+ type: "primary",
301
+ onClick: ($event) => _ctx.handleFuncEdit(itemList),
302
+ size: "mini"
303
+ }, {
304
+ default: withCtx(() => _cache[3] || (_cache[3] = [
305
+ createTextVNode("\u51FD\u6570\u7F16\u8F91", -1)
306
+ ])),
307
+ _: 2,
308
+ __: [3]
309
+ }, 1032, ["onClick"])
310
+ ])) : createCommentVNode("", true),
311
+ itemList.type == "high" ? (openBlock(), createElementBlock("div", _hoisted_4, [
312
+ createVNode(_component_el_button, {
313
+ type: "primary",
314
+ onClick: ($event) => _ctx.handleFormEdit(itemList),
315
+ size: "mini"
316
+ }, {
317
+ default: withCtx(() => _cache[4] || (_cache[4] = [
318
+ createTextVNode("\u89C4\u5219\u8868\u5355\u7F16\u8F91", -1)
319
+ ])),
320
+ _: 2,
321
+ __: [4]
322
+ }, 1032, ["onClick"])
323
+ ])) : createCommentVNode("", true),
324
+ createVNode(_component_el_button, {
325
+ type: "danger",
326
+ circle: "",
327
+ onClick: ($event) => _ctx.deleteRule(index),
328
+ style: { "margin-left": "10px" }
329
+ }, {
330
+ default: withCtx(() => [
331
+ createVNode(_component_el_icon, null, {
332
+ default: withCtx(() => [
333
+ createVNode(_component_Delete)
334
+ ]),
335
+ _: 1
336
+ })
337
+ ]),
338
+ _: 2
339
+ }, 1032, ["onClick"])
340
+ ]),
341
+ _: 2
342
+ }, 1032, ["title", "name"]);
343
+ }), 128))
344
+ ]),
345
+ _: 1
346
+ })) : createCommentVNode("", true),
347
+ createVNode(_component_el_dropdown, {
348
+ onCommand: _ctx.handleDropdown,
349
+ style: { "margin-top": "10px" }
350
+ }, {
351
+ dropdown: withCtx(() => [
352
+ createVNode(_component_el_dropdown_menu, null, {
353
+ default: withCtx(() => [
354
+ createVNode(_component_el_dropdown_item, { command: "enum" }, {
355
+ default: withCtx(() => _cache[6] || (_cache[6] = [
356
+ createTextVNode("\u9ED8\u8BA4\u679A\u4E3E", -1)
357
+ ])),
358
+ _: 1,
359
+ __: [6]
360
+ }),
361
+ createVNode(_component_el_dropdown_item, { command: "func" }, {
362
+ default: withCtx(() => _cache[7] || (_cache[7] = [
363
+ createTextVNode("\u81EA\u5B9A\u4E49\u51FD\u6570\u89C4\u5219", -1)
364
+ ])),
365
+ _: 1,
366
+ __: [7]
367
+ }),
368
+ createVNode(_component_el_dropdown_item, { command: "high" }, {
369
+ default: withCtx(() => _cache[8] || (_cache[8] = [
370
+ createTextVNode("\u9AD8\u7EA7\u6A21\u5F0F", -1)
371
+ ])),
372
+ _: 1,
373
+ __: [8]
374
+ })
375
+ ]),
376
+ _: 1
377
+ })
378
+ ]),
379
+ default: withCtx(() => [
380
+ createVNode(_component_el_button, { type: "success" }, {
381
+ default: withCtx(() => _cache[5] || (_cache[5] = [
382
+ createTextVNode(" \u65B0\u589E\u89C4\u5219", -1),
383
+ createElementVNode("i", { class: "el-icon-arrow-down el-icon--right" }, null, -1)
384
+ ])),
385
+ _: 1,
386
+ __: [5]
387
+ })
388
+ ]),
389
+ _: 1
390
+ }, 8, ["onCommand"])
391
+ ], 4),
392
+ createVNode(_component_CustomDialog, { ref: "codeMyDialog" }, {
393
+ default: withCtx(() => [
394
+ _ctx.funcItem ? (openBlock(), createElementBlock("div", _hoisted_5, [
395
+ createVNode(_component_el_select, {
396
+ modelValue: _ctx.funcValue.trigger,
397
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.funcValue.trigger = $event),
398
+ placeholder: "\u8BF7\u9009\u62E9",
399
+ size: "mini",
400
+ style: { "margin-bottom": "20px" }
401
+ }, {
402
+ default: withCtx(() => [
403
+ createVNode(_component_el_option, {
404
+ label: "blur",
405
+ value: "blur"
406
+ }),
407
+ createVNode(_component_el_option, {
408
+ label: "change",
409
+ value: "change"
410
+ })
411
+ ]),
412
+ _: 1
413
+ }, 8, ["modelValue"]),
414
+ createVNode(_component_el_alert, {
415
+ title: "rule\u662F\u5B58\u653E\u63A5\u6536\u53C2\u6570\u7684\u5BF9\u8C61;value\u662F\u5F85\u6821\u9A8C\u7684\u503C;callback\u662F\u56DE\u8C03\u51FD\u6570(\u6821\u9A8C\u5B8C\u540E\uFF0C\u8981\u6267\u884C\u7684\u64CD\u4F5C\uFF0C\u5982\u629B\u9519),mainData\u4E3A\u8868\u5355\u6570\u636E",
416
+ type: "success",
417
+ style: { "margin-bottom": "15px" }
418
+ }),
419
+ _cache[9] || (_cache[9] = createElementVNode("div", null, "(rule, value, callback, mainData) => {", -1)),
420
+ createVNode(_component_codemirror, {
421
+ modelValue: _ctx.funcValue.func,
422
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.funcValue.func = $event),
423
+ ref: "cm",
424
+ placeholder: "",
425
+ mode: "text/javascript",
426
+ style: { height: "320px" },
427
+ autofocus: true,
428
+ "indent-with-tab": true,
429
+ "tab-size": 2
430
+ }, null, 8, ["modelValue"]),
431
+ _cache[10] || (_cache[10] = createElementVNode("div", null, "}", -1))
432
+ ])) : createCommentVNode("", true),
433
+ createVNode(_component_el_footer, {
434
+ class: "my-Footer",
435
+ style: { "height": "60px", "text-align": "right" }
436
+ }, {
437
+ default: withCtx(() => [
438
+ createVNode(_component_el_button, {
439
+ onClick: _ctx.saveFunc,
440
+ type: "primary"
441
+ }, {
442
+ default: withCtx(() => _cache[11] || (_cache[11] = [
443
+ createTextVNode("\u4FDD\u5B58", -1)
444
+ ])),
445
+ _: 1,
446
+ __: [11]
447
+ }, 8, ["onClick"]),
448
+ createVNode(_component_el_button, { onClick: _ctx.closeDialog }, {
449
+ default: withCtx(() => _cache[12] || (_cache[12] = [
450
+ createTextVNode("\u5173\u95ED", -1)
451
+ ])),
452
+ _: 1,
453
+ __: [12]
454
+ }, 8, ["onClick"])
455
+ ]),
456
+ _: 1
457
+ })
458
+ ]),
459
+ _: 1
460
+ }, 512),
461
+ createVNode(_component_CustomDialog, { ref: "formRuleDialog" }, {
462
+ default: withCtx(() => [
463
+ createVNode(_component_el_main, { style: { "padding": "0" } }, {
464
+ default: withCtx(() => [
465
+ createVNode(_component_el_container, { style: { "height": "100%" } }, {
466
+ default: withCtx(() => [
467
+ createVNode(_component_el_main, {
468
+ class: "my-pageMain",
469
+ style: { "overflow": "hidden" }
470
+ }, {
471
+ default: withCtx(() => [
472
+ createVNode(_component_Dynamicform, {
473
+ ref: "formdragger",
474
+ formResult: _ctx.formValue,
475
+ allFormList: _ctx.ruleJson,
476
+ globalConfig: Object.assign({}, _ctx.globalDatas, { size: "large" })
477
+ }, null, 8, ["formResult", "allFormList", "globalConfig"])
478
+ ]),
479
+ _: 1
480
+ }),
481
+ createVNode(_component_el_footer, {
482
+ class: "my-Footer",
483
+ style: { "height": "60px", "text-align": "right" }
484
+ }, {
485
+ default: withCtx(() => [
486
+ createVNode(_component_el_button, {
487
+ type: "primary",
488
+ onClick: _ctx.saveField
489
+ }, {
490
+ default: withCtx(() => _cache[13] || (_cache[13] = [
491
+ createTextVNode("\u4FDD\u5B58", -1)
492
+ ])),
493
+ _: 1,
494
+ __: [13]
495
+ }, 8, ["onClick"]),
496
+ createVNode(_component_el_button, { onClick: _ctx.closeDialog }, {
497
+ default: withCtx(() => _cache[14] || (_cache[14] = [
498
+ createTextVNode("\u5173\u95ED", -1)
499
+ ])),
500
+ _: 1,
501
+ __: [14]
502
+ }, 8, ["onClick"])
503
+ ]),
504
+ _: 1
505
+ })
506
+ ]),
507
+ _: 1
508
+ })
509
+ ]),
510
+ _: 1
511
+ })
512
+ ]),
513
+ _: 1
514
+ }, 512)
515
+ ], 2);
516
+ }
517
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
518
+
519
+ export { index as default };