@web-utils/component 4.0.15 → 4.0.16

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 (169) hide show
  1. package/address-input/index.mjs +13 -15
  2. package/card/index.mjs +18 -20
  3. package/carousel/index.mjs +10 -12
  4. package/chat/index.mjs +45 -56
  5. package/chunk-file-uploader/index.mjs +36 -378
  6. package/chunk-file-uploader/style.css +1 -1
  7. package/chunks/ElementBaseInfo.ZADwixb5.mjs +125 -0
  8. package/chunks/ElementForm.CQ3PN5qj.mjs +223 -0
  9. package/chunks/ElementListeners.De_PRuIm.mjs +215 -0
  10. package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +181 -0
  11. package/chunks/ElementOtherConfig.B1NfMTYh.mjs +60 -0
  12. package/chunks/ElementProperties.CosfDrlW.mjs +112 -0
  13. package/chunks/{ElementTaskConfig.AvBOzAni.mjs → ElementTaskConfig.Bko0kgTp.mjs} +55 -63
  14. package/chunks/FlowCondition.Y6qEYi1T.mjs +102 -0
  15. package/chunks/FormTemp.BQxO5IQq.mjs +123 -0
  16. package/chunks/SignalAndMessage.Bb5PFX0N.mjs +85 -0
  17. package/chunks/UserTaskListeners.Bv3BDfEI.mjs +169 -0
  18. package/chunks/{confirmable-mixin.BFZb6pcK.mjs → confirmable-mixin.B2TtLAdk.mjs} +1 -1
  19. package/chunks/core.0Exl13Mz.mjs +54 -0
  20. package/chunks/{dataformat.DJoNBlmI.mjs → dataformat.CpqOeGBl.mjs} +6 -6
  21. package/chunks/{dic.BinnDitI.mjs → dic.Dkl-leRW.mjs} +9 -9
  22. package/chunks/dictionary.DGt59Ir7.mjs +68 -0
  23. package/chunks/{event.DSlcqYHL.mjs → event.9aDS6jcw.mjs} +2 -2
  24. package/chunks/{form-input.BtS_J5a2.mjs → form-input.CvFdwlEV.mjs} +2 -2
  25. package/chunks/form-item.LWjePsPa.mjs +233 -0
  26. package/chunks/{index.CIfe3UB3.mjs → index.9OxHjTIE.mjs} +2 -2
  27. package/chunks/{index.Cn7aq-Et.mjs → index.B2TRddqf.mjs} +8 -8
  28. package/chunks/{init.xOlFpTyZ.mjs → init.DAsXSoLW.mjs} +2 -2
  29. package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
  30. package/chunks/{util.DI42t5GU.mjs → util.DqFv_pWg.mjs} +22 -22
  31. package/chunks/utilSelf.Csq1766E.mjs +48 -0
  32. package/chunks/utils.DRcxC1Fb.mjs +60 -0
  33. package/color-picker/index.mjs +22 -101
  34. package/confirm-button/index.mjs +1 -1
  35. package/confirmable/index.mjs +1 -1
  36. package/data-box/index.mjs +12 -15
  37. package/data-card/index.mjs +10 -12
  38. package/data-card-text/index.mjs +10 -12
  39. package/data-display/index.mjs +15 -17
  40. package/data-icons/index.mjs +13 -16
  41. package/data-imgtext/index.mjs +15 -18
  42. package/data-operatext/index.mjs +14 -16
  43. package/data-panel/index.mjs +13 -16
  44. package/data-pay/index.mjs +16 -20
  45. package/data-price/index.mjs +14 -16
  46. package/data-progress/index.mjs +13 -17
  47. package/data-rotate/index.mjs +12 -15
  48. package/data-table-picker/index.mjs +15 -18
  49. package/data-tabs/index.mjs +12 -15
  50. package/dialog-form/index.mjs +16 -18
  51. package/dynamic-table/index.mjs +25 -30
  52. package/editable-progress/index.mjs +9 -11
  53. package/editable-tree/index.mjs +52 -56
  54. package/egd-collapse-item/index.mjs +9 -9
  55. package/element-dialog/index.mjs +22 -23
  56. package/element-listeners/style.css +1 -0
  57. package/element-multi-instance/style.css +1 -0
  58. package/flex-column/index.mjs +1 -1
  59. package/flex-item/index.mjs +1 -1
  60. package/flex-row/index.mjs +1 -1
  61. package/flow/index.mjs +10 -11
  62. package/flow-designer/index.mjs +699 -1973
  63. package/flow-designer/style.css +1 -1
  64. package/flow-node/index.mjs +1 -1
  65. package/flow-viewer/index.mjs +9 -9
  66. package/form-block/index.mjs +32 -34
  67. package/form-cascader/index.mjs +23 -24
  68. package/form-checkbox/index.mjs +16 -17
  69. package/form-checkbox-group/index.mjs +20 -23
  70. package/form-date-picker/index.mjs +18 -20
  71. package/form-holder/index.mjs +13 -14
  72. package/form-input/index.mjs +14 -15
  73. package/form-input-cron-expression/index.mjs +19 -22
  74. package/form-input-email/index.mjs +15 -16
  75. package/form-input-id-card/index.mjs +12 -13
  76. package/form-input-number/index.mjs +16 -17
  77. package/form-input-phone-number/index.mjs +21 -22
  78. package/form-input-tag/index.mjs +14 -15
  79. package/form-input-time/index.mjs +14 -15
  80. package/form-item/index.mjs +140 -3
  81. package/form-item-group/index.mjs +28 -31
  82. package/form-radio-group/index.mjs +27 -28
  83. package/form-select/index.mjs +21 -23
  84. package/form-switch/index.mjs +16 -17
  85. package/form-table/index.mjs +16 -17
  86. package/form-table-plus/index.mjs +21 -22
  87. package/form-textarea/index.mjs +15 -16
  88. package/form-tree-select/index.mjs +14 -15
  89. package/form-tree-select-multiple/index.mjs +14 -15
  90. package/form-view/index.mjs +35 -39
  91. package/fy-array/index.mjs +33 -37
  92. package/fy-cascader/index.mjs +16 -17
  93. package/fy-checkbox/index.mjs +11 -13
  94. package/fy-code/index.mjs +10 -10
  95. package/fy-curd/index.mjs +1128 -1152
  96. package/fy-date/index.mjs +10 -11
  97. package/fy-draggable/index.mjs +9 -10
  98. package/fy-dynamic/index.mjs +22 -25
  99. package/fy-empty/index.mjs +1 -1
  100. package/fy-form/index.mjs +638 -15
  101. package/fy-form-design/index.mjs +1307 -1345
  102. package/fy-from/crud/zh.d.ts +6 -6
  103. package/fy-input/index.mjs +12 -14
  104. package/fy-input-color/index.mjs +13 -15
  105. package/fy-input-icon/index.mjs +20 -23
  106. package/fy-input-map/index.mjs +28 -31
  107. package/fy-input-number/index.mjs +9 -10
  108. package/fy-input-table/index.mjs +18 -22
  109. package/fy-input-tree/index.mjs +33 -37
  110. package/fy-progress/index.mjs +9 -10
  111. package/fy-radio/index.mjs +15 -16
  112. package/fy-rate/index.mjs +10 -11
  113. package/fy-select/index.mjs +25 -29
  114. package/fy-slider/index.mjs +11 -12
  115. package/fy-switch/index.mjs +9 -10
  116. package/fy-tabs/index.mjs +15 -17
  117. package/fy-time/index.mjs +1 -1
  118. package/fy-title/index.mjs +1 -1
  119. package/fy-tree/index.mjs +18 -24
  120. package/fy-u-editor/index.mjs +1 -1
  121. package/fy-upload/index.mjs +74 -76
  122. package/guide-steps/index.mjs +11 -13
  123. package/iframe-window/index.mjs +9 -10
  124. package/image-cropper/index.mjs +28 -30
  125. package/image-preview/index.mjs +12 -14
  126. package/index.mjs +72 -72
  127. package/input-number/index.mjs +13 -14
  128. package/input-number-range/index.mjs +11 -12
  129. package/license/index.mjs +1 -1
  130. package/login/index.mjs +21 -26
  131. package/nav-bar/index.mjs +9 -10
  132. package/notice/index.mjs +9 -10
  133. package/package.json +1 -1
  134. package/page-index/index.mjs +12 -13
  135. package/page-index-top/index.mjs +23 -28
  136. package/page-skeleton/index.mjs +14 -14
  137. package/page-skeleton-new/index.mjs +8 -9
  138. package/pageable-table/index.mjs +172 -182
  139. package/pageable-view/index.mjs +15 -16
  140. package/picker-table-view/index.mjs +49 -58
  141. package/present-view/index.mjs +35 -39
  142. package/record-video/index.mjs +1 -1
  143. package/resize-observer/index.mjs +1 -1
  144. package/search/index.mjs +20 -22
  145. package/search-popover/index.mjs +1 -1
  146. package/sign/index.mjs +1 -1
  147. package/skeleton-panel/index.mjs +9 -10
  148. package/split-pane/index.mjs +36 -37
  149. package/static-pageable-table/index.mjs +11 -13
  150. package/sub-table/index.mjs +36 -49
  151. package/sub-table-plus/index.mjs +229 -18
  152. package/swiper/index.mjs +11 -12
  153. package/table-column/index.mjs +223 -3
  154. package/table-view/index.mjs +52 -60
  155. package/tabs-view/index.mjs +17 -19
  156. package/tag-render/index.mjs +16 -18
  157. package/text-ellipsis/index.mjs +9 -10
  158. package/toolbar/index.mjs +13 -14
  159. package/toolbar-button/index.mjs +13 -14
  160. package/verify/index.mjs +1 -1
  161. package/vue-cron/index.mjs +259 -267
  162. package/watermark/index.mjs +1 -1
  163. package/web-types.json +1 -1
  164. package/x-input-tag/index.mjs +21 -24
  165. package/chunks/FormItem.Bhsy_O2B.mjs +0 -372
  166. package/chunks/FyForm.DriwCJ7b.mjs +0 -765
  167. package/chunks/SignalAndMessage.BpjOoKhK.mjs +0 -92
  168. package/chunks/SubTablePlus.BH0IIv3X.mjs +0 -270
  169. package/chunks/TableColumn.BzivvXMF.mjs +0 -337
@@ -1,162 +1,12 @@
1
- import p from "element-ui/lib/button";
2
- import { F as ae } from "../chunks/FyForm.DriwCJ7b.mjs";
3
- import E from "element-ui/lib/drawer";
4
- import c from "element-ui/lib/switch";
5
- import i from "element-ui/lib/form-item";
6
- import le from "element-ui/lib/slider";
7
- import w from "element-ui/lib/radio";
8
- import B from "element-ui/lib/popover";
9
- import I from "element-ui/lib/form";
10
- import { M as g, c as T } from "../chunks/MonacoEditor.D31t4FTy.mjs";
11
- import r from "element-ui/lib/input";
12
- import f from "element-ui/lib/input-number";
13
- import d from "element-ui/lib/option";
14
- import b from "element-ui/lib/select";
15
- import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
16
- import F from "element-ui/lib/tab-pane";
17
- import L from "../fy-empty/index.mjs";
1
+ import { isBlank as E } from "@web-utils/core";
2
+ import { c as v, M as f } from "../chunks/MonacoEditor.D31t4FTy.mjs";
18
3
  import "../monaco-editor/style.css";
19
- import { z as y, d as _ } from "../chunks/util.DI42t5GU.mjs";
20
- import R from "element-ui/lib/collapse-item";
21
- import $ from "element-ui/lib/link";
22
- import se from "element-ui/lib/option-group";
23
- import ie from "element-ui/lib/collapse";
24
- import N from "element-ui/lib/color-picker";
25
- import K from "element-ui/lib/tag";
26
- import A from "element-ui/lib/radio-button";
27
- import M from "element-ui/lib/radio-group";
28
- import z from "../fy-dynamic/index.mjs";
29
- import Q from "element-ui/lib/tabs";
30
- import S from "vuedraggable";
31
- import ne from "../element-dialog/index.mjs";
32
- import oe from "element-ui/lib/tree";
33
- import re from "../fy-input-color/index.mjs";
34
- import ce from "../fy-input-icon/index.mjs";
35
- import C from "element-ui/lib/table-column";
36
- import G from "element-ui/lib/table";
37
- import j from "element-ui/lib/aside";
4
+ import b from "vuedraggable";
5
+ import { d as p, z as u } from "../chunks/util.DqFv_pWg.mjs";
6
+ import { cloneDeep as g } from "@web-utils/integrations/lodash";
38
7
  import "../fy-u-editor/style.css";
39
- import H from "element-ui/lib/col";
40
- import de from "element-ui/lib/row";
41
- import pe from "element-ui/lib/main";
42
- import ue from "element-ui/lib/header";
43
- import V from "element-ui/lib/container";
44
- import me from "element-ui/lib/tooltip";
45
- import { isBlank as q } from "@web-utils/core";
46
- import { cloneDeep as W } from "@web-utils/integrations/lodash";
47
- const he = {
48
- name: "FormConfig",
49
- props: {
50
- data: Object
51
- }
52
- };
53
- var fe = function() {
54
- var e = this, t = e._self._c;
55
- return t("div", { staticClass: "form-config-container" }, [t(I, { attrs: { "label-position": "left", "label-suffix": ":", "label-width": "130px", size: "small" } }, [t(i, { attrs: { label: "标签对齐方式" } }, [t(b, { attrs: { placeholder: "标签对齐方式" }, model: { value: e.data.labelPosition, callback: function(a) {
56
- e.$set(e.data, "labelPosition", a);
57
- }, expression: "data.labelPosition" } }, [t(d, { attrs: { label: "左对齐", value: "left" } }), t(d, { attrs: { label: "右对齐", value: "right" } }), t(d, { attrs: { label: "顶部对齐", value: "top" } })], 1)], 1), t(i, { attrs: { label: "标签宽度" } }, [t(f, { staticStyle: { width: "100%" }, attrs: { min: 80, max: 200, step: 10, "controls-position": "right", placeholder: "标签宽度" }, model: { value: e.data.labelWidth, callback: function(a) {
58
- e.$set(e.data, "labelWidth", a);
59
- }, expression: "data.labelWidth" } })], 1), t(i, { attrs: { label: "标签后缀" } }, [t(r, { attrs: { placeholder: "标签后缀" }, model: { value: e.data.labelSuffix, callback: function(a) {
60
- e.$set(e.data, "labelSuffix", a);
61
- }, expression: "data.labelSuffix" } })], 1), t(i, { attrs: { label: "项之间的间隔" } }, [t(f, { staticStyle: { width: "100%" }, attrs: { min: 0, max: 60, step: 5, "controls-position": "right", placeholder: "项之间的间隔" }, model: { value: e.data.gutter, callback: function(a) {
62
- e.$set(e.data, "gutter", a);
63
- }, expression: "data.gutter" } })], 1), t(i, { attrs: { label: "多分组转标签" } }, [t(c, { model: { value: e.data.tabs, callback: function(a) {
64
- e.$set(e.data, "tabs", a);
65
- }, expression: "data.tabs" } })], 1), t(i, { attrs: { label: "详情模式" } }, [t(c, { model: { value: e.data.detail, callback: function(a) {
66
- e.$set(e.data, "detail", a);
67
- }, expression: "data.detail" } })], 1), t(i, { attrs: { label: "显示按钮" } }, [t(c, { model: { value: e.data.menuBtn, callback: function(a) {
68
- e.$set(e.data, "menuBtn", a);
69
- }, expression: "data.menuBtn" } })], 1), e.data.menuBtn ? t(i, { attrs: { label: "显示提交按钮" } }, [t(c, { model: { value: e.data.submitBtn, callback: function(a) {
70
- e.$set(e.data, "submitBtn", a);
71
- }, expression: "data.submitBtn" } })], 1) : e._e(), e.data.menuBtn && e.data.submitBtn ? t(i, { attrs: { label: "提交按钮的文字" } }, [t(r, { attrs: { placeholder: "提交按钮的文字" }, model: { value: e.data.submitText, callback: function(a) {
72
- e.$set(e.data, "submitText", a);
73
- }, expression: "data.submitText" } })], 1) : e._e(), e.data.menuBtn ? t(i, { attrs: { label: "显示清空按钮" } }, [t(c, { model: { value: e.data.emptyBtn, callback: function(a) {
74
- e.$set(e.data, "emptyBtn", a);
75
- }, expression: "data.emptyBtn" } })], 1) : e._e(), e.data.menuBtn && e.data.emptyBtn ? t(i, { attrs: { label: "清空按钮的文字" } }, [t(r, { attrs: { placeholder: "提交按钮的文字" }, model: { value: e.data.emptyText, callback: function(a) {
76
- e.$set(e.data, "emptyText", a);
77
- }, expression: "data.emptyText" } })], 1) : e._e(), t(i, { attrs: { label: "全局只读" } }, [t(c, { model: { value: e.data.readonly, callback: function(a) {
78
- e.$set(e.data, "readonly", a);
79
- }, expression: "data.readonly" } })], 1), t(i, { attrs: { label: "全局禁用" } }, [t(c, { model: { value: e.data.disabled, callback: function(a) {
80
- e.$set(e.data, "disabled", a);
81
- }, expression: "data.disabled" } })], 1)], 1)], 1);
82
- }, be = [], ge = /* @__PURE__ */ h(
83
- he,
84
- fe,
85
- be,
86
- !1,
87
- null,
88
- null
89
- );
90
- const U = ge.exports, ve = {
91
- name: "ConfigEvent",
92
- components: { MonacoEditor: g },
93
- props: {
94
- data: Object
95
- },
96
- data() {
97
- return {
98
- change: "",
99
- click: "",
100
- focus: "",
101
- blur: "",
102
- options: {
103
- fullScreen: !0,
104
- minimap: {
105
- enabled: !1
106
- }
107
- }
108
- };
109
- },
110
- watch: {
111
- "data.prop": {
112
- handler() {
113
- const { change: l, click: e, focus: t, blur: a } = this.data;
114
- this.$set(this, "change", l ? `${l}` : `({value}) => {\r
115
- \r
116
- }`), this.$set(this, "click", e ? `${e}` : `({value}) => {\r
117
- \r
118
- }`), this.$set(this, "focus", t ? `${t}` : `({value}) => {\r
119
- \r
120
- }`), this.$set(this, "blur", a ? `${a}` : `({value}) => {\r
121
- \r
122
- }`);
123
- },
124
- immediate: !0
125
- }
126
- },
127
- mounted() {
128
- this.$nextTick(() => {
129
- ["change", "click", "focus", "blur"].forEach((e) => {
130
- this.$watch(`${e}`, (t) => {
131
- try {
132
- this.$set(this.data, e, y(t));
133
- } catch {
134
- }
135
- });
136
- });
137
- });
138
- }
139
- };
140
- var _e = function() {
141
- var e = this, t = e._self._c;
142
- return t("div", [t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("change:")]), t("div", { staticClass: "el-form-item__content" }, [t(g, { attrs: { height: "300", "key-index": `event-change-${e.data.prop}`, options: e.options }, model: { value: e.change, callback: function(a) {
143
- e.change = a;
144
- }, expression: "change" } })], 1)]), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("click:")]), t("div", { staticClass: "el-form-item__content" }, [t(g, { attrs: { height: "200", "key-index": `event-click-${e.data.prop}`, options: e.options }, model: { value: e.click, callback: function(a) {
145
- e.click = a;
146
- }, expression: "click" } })], 1)]), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("focus:")]), t("div", { staticClass: "el-form-item__content" }, [t(g, { attrs: { height: "200", "key-index": `event-focus-${e.data.prop}`, options: e.options }, model: { value: e.focus, callback: function(a) {
147
- e.focus = a;
148
- }, expression: "focus" } })], 1)]), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("blur:")]), t("div", { staticClass: "el-form-item__content" }, [t(g, { attrs: { height: "200", "key-index": `event-blur-${e.data.prop}`, options: e.options }, model: { value: e.blur, callback: function(a) {
149
- e.blur = a;
150
- }, expression: "blur" } })], 1)])]);
151
- }, ye = [], xe = /* @__PURE__ */ h(
152
- ve,
153
- _e,
154
- ye,
155
- !1,
156
- null,
157
- null
158
- );
159
- const J = xe.exports, D = [
8
+ import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
9
+ const _ = [
160
10
  {
161
11
  title: "布局字段",
162
12
  list: [
@@ -615,179 +465,624 @@ const J = xe.exports, D = [
615
465
  }
616
466
  ]
617
467
  }
618
- ], $e = {
619
- name: "ConfigCustom",
620
- components: { MonacoEditor: g },
621
- props: {
622
- data: Object
623
- },
468
+ ], $ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUMAAADXCAYAAACAszPmAAAAAXNSR0IArs4c6QAADXRJREFUeAHt3cuLZGcZB+BvLk2PM0ZxFMdJXEQCYRIialrUmPgXuM0qkI3GnVl4ScBtUEFFXOhCEBQ3oiDi36BGkWQ0gpgIZgK59EhIxhBn0nMfz+nqwq6e6upT019933vqPAVxuuty3vc8b/fPU3UufWB9ff1GciNAgMDABQ6363/y5MmBM8y3+mfPnmU2H5lnEwgt0P5OHwzdoeYIECBQSEAYFoJWhgCB2ALCMPZ8dEeAQCEBYVgIWhkCBGILCMPY89EdAQKFBIRhIWhlCBCILbB5aE3sFnVHgEAtgfaQk0Xddh7St6haO+vstj4zw/DPr26knz/3dnrr4vXN199/cjV9/cHjm19/9w/n0nP/vjSx3I9/aDU9+VA/Hv/e0+fSX89O9v/J21fTVz876n9ixeb4ZlEDnaOFqU/t+gMx9cXuJDAAgZlvk3/6l/8HYWtx9frynKxy/vIo4LfP+Nn1S+nbv3tz+12+JkBgIAIH2tPxdttqeOTXo03kb306pZUmNg/NjM5+ibW5/s7VyZ6feiala839v3h49hk57dbfbma2DCdNfddvgUX+PO/8HVpUrZ11pk2krT3zbfL4RW0ILlMQtut18EBK714Zr6F/CRAYusDMMPxE8xnhlWZTaeXg5aE7WX8CBJZcYGYYPrG1s2RRm69Lbmv1CBDokcDMMOzRemRp9f7bj6RrS7STKAuKhRAYiMDMMGwPn2lvj941DI2vPPC+YayotSRA4CaBmfuH2+MIdx5LeNMS3EGAAIElEJi5ZbgE6zfXKoy3hMcHjs/14q0nd9mNfyvL9RoCBBYrIAy3+doK3obhSwIDE5j5NnlgFlaXAIEBC8zcMmzPNR7dJs/hjer13Bsp/fZMSv+9Murw3mZ/yBfvHX39k3+k9MJ/Jju/p3n8sW2Pjx8dn3kz+1zrs2n24ynr49POpX7gw0fS45+x02c8N//mFyj5sU/JWtOkZobh+LOzvhxn+JsXU7qw7RS79tS6Zbmdv3TzudR/evViOv/7N9M3Pvf+ZVlN60GgmsDMc5PHXfUlDL/29Kjjpz6V0pFDy3UK4bRzqb/5bEpXmozc61zq8Rz9S4DAdIE9z03+TnOc4eHmU8VHPjJ9AVHvPdScd+xc6qjT0ReBmAIzd6D8rT3OcMc1/2Kuxqir9jPCu97TbBXOfPMfeQ30RoBALYGlio3xzpJamOoSINBfgZlh+MFjh9LrF66lJ/84WsGPNXuX+3Cl6758xrnfH5v2XOrLy7SXaL8gXk9gHwIzw/Cx+9+bfvzsW+ncxmhPZvTfuxfPXUntWSRDOZf6oZXmOKLmmowvvPB6uuOOOzZ/DF577bV04cKFiR+JY8eOeZzPIH4+XnnllbSxsTHx87+2tjbx/W7fzAzD+06sph99/sTU144Pu5n6YHNnjcfb4wPbs0iGEoa72bufwFAFVlZW0tWro+PrrlzZOuC4I0anQ2s6Lqv608YHS3//weqtFGngZ/9sjh9qbo+vvatIPUUI9EngpZdeSm0gdtky3PPQmj6t+BB7/fsb14a42taZQCeBo0ePpsuXu1+lf+bb5HHFoeyQGK+vfwkQ6L/AiRPTP+Lbbc06heFuL452/ymn6UYbiX4I9EZgqcLwS1sXXeiNvkYJEFiYQHtkRXs7depUpxpLFYad1niJnnTfBw6l5sxDNwIEpgjsPMRsylMm7lqqMGwv09XehrKFaC/yaN7+l0AOgaUKw53XK8wBZBkECAxDYOaFGoZB0N+1/MEzG6n9z40Agf0LLNWW4fHmwtznmotyP7F1LnV7Jesv3DNC6nKl651blvu9kvVHm8/0vrx1QPQPT2+knccFzvP4r56/lJ5/c9uVa5vVOtucN378iE8N9/9rYAnLKNCehjrPbanC8OHm7zv/8l8pvb11nGXtc6kvXrzYzCLP2SHr56834Td56e4TRw+kR+87Ms+8PZfAYATG5+t3XeFOp+MN5aDrrn+DofXY67mnT5/enMHdd9/ddRaeR4DAAgRuu+22PZfa/k77zHBPJk8gQKCPAu1xhuNjDbv0v1Rvk7ussOcQIDAMgXmPM7RlOIyfC2tJgMAeArYM9wC61Yfn3ZN1q3W8jgCBPALCMI/jTUuZd0/WTQtwBwECRQWEYVFuxQgQKCUw77szYbigyYz3YtlCXBCwxRLYQ2De3z1huAforT48756sW63jdQQI5BHoFIZ7HWCcpxVLIUCAQD6B8bsz1zPMZ2pJBAj0UGDed2eOM+zhkLVMgEB+gU5vk/OXXf4lzrsna/lFrCGB2ALCcEHzmXdP1oLasFgCBDoKCMOOUJ5GgEC/BOZ9d9YpDF3Ca/4fgjNnzqTV1dXNS30dPOij2fkFvYLA/gTmfXfWKQz319IwX339+vXU7s16+eWX05133rmJ0O7q37mHq/1/r/HQPM7Hz8eFicCY5/djfX39pt+vGzdupLW1tYll7vaNMNxNJtP9KysrmZZkMQQIzBJog6/9b/vt8OHuEedK19vkuh5c3uVK19sW60sCBIILuNJ18AFpjwCBcgI+2S9nrRIBAoEFhGHg4WiNAIFyAsKwnLVKBAgEFhCGgYejNQIEygkIw3LWKhEgEFhAGAYejtYIECgnIAzLWatEgEBgAWEYeDhaI0CgnIAwLGetEgECgQWEYeDhaI0AgXICnc5i7nrObrm2VSJAgEBeAVuGeT0tjQCBngoIw54OTtsECOQVEIZ5PS2NAIGeCgjDng5O2wQI5BXotAPF30DJi25pBAjEE7BlGG8mOiJAoIKAMKyAriQBAvEEhGG8meiIAIEKAsKwArqSBAjEExCG8WaiIwIEKggIwwroShIgEE9AGMabiY4IEKggIAwroCtJgEA8AWEYbyY6IkCggoAwrICuJAEC8QSEYbyZ6IgAgQoCwrACupIECMQTEIbxZqIjAgQqCAjDCuhKEiAQT0AYxpuJjggQqCAgDCugK0mAQDyBThd39dfx4g1ORwQI5BWwZZjX09IIEOipgDDs6eC0TYBAXgFhmNfT0ggQ6KmAMOzp4LRNgEBegU47UPx1vLzolkaAQDwBW4bxZqIjAgQqCAjDCuhKEiAQT0AYxpuJjggQqCAgDCugK0mAQDwBYRhvJjoiQKCCgDCsgK4kAQLxBIRhvJnoiACBCgLCsAK6kgQIxBMQhvFmoiMCBCoICMMK6EoSIBBPQBjGm4mOCBCoICAMK6ArSYBAPAFhGG8mOiJAoIKAMKyAriQBAvEEhGG8meiIAIEKAsKwArqSBAjEE+h0cVd/HS/e4HREgEBeAVuGeT0tjQCBngoIw54OTtsECOQVEIZ5PS2NAIGeCgjDng5O2wQI5BXotAPFX8fLi25pBAjEE7BlGG8mOiJAoIKAMKyAriQBAvEEhGG8meiIAIEKAsKwArqSBAjEExCG8WaiIwIEKggIwwroShIgEE9AGMabiY4IEKggIAwroCtJgEA8AWEYbyY6IkCggoAwrICuJAEC8QSEYbyZ6IgAgQoCwrACupIECMQTEIbxZqIjAgQqCAjDCuhKEiAQT0AYxpuJjggQqCDQ6XqG/iBUhckoSYBAUQFbhkW5FSNAIKqAMIw6GX0RIFBUQBgW5VaMAIGoAsIw6mT0RYBAUQFhWJRbMQIEogp02pvsr+NFHZ++CBDIJWDLMJek5RAg0GsBYdjr8WmeAIFcAsIwl6TlECDQawFh2OvxaZ4AgVwCwjCXpOUQINBrAWHY6/FpngCBXALCMJek5RAg0GsBYdjr8WmeAIFcAsIwl6TlECDQawFh2OvxaZ4AgVwCwjCXpOUQINBrAWHY6/FpngCBXALCMJek5RAg0GsBYdjr8WmeAIFcAp0u4eUPQuXithwCBKIK2DKMOhl9ESBQVEAYFuVWjACBqALCMOpk9EWAQFEBYViUWzECBKIKCMOok9EXAQJFBYRhUW7FCBCIKiAMo05GXwQIFBUQhkW5FSNAIKqAMIw6GX0RIFBUQBgW5VaMAIGoAsIw6mT0RYBAUQFhWJRbMQIEogoIw6iT0RcBAkUFhGFRbsUIEIgqIAyjTkZfBAgUFRCGRbkVI0AgqoAwjDoZfREgUFRAGBblVowAgagCwjDqZPRFgEBRAWFYlFsxAgSiCgjDqJPRFwECRQWEYVFuxQgQiCogDKNORl8ECBQVEIZFuRUjQCCqgDCMOhl9ESBQVEAYFuVWjACBqALCMOpk9EWAQFEBYViUWzECBKIKCMOok9EXAQJFBYRhUW7FCBCIKiAMo05GXwQIFBUQhkW5FSNAIKqAMIw6GX0RIFBUQBgW5VaMAIGoAsIw6mT0RYBAUQFhWJRbMQIEogoIw6iT0RcBAkUFhGFRbsUIEIgqIAyjTkZfBAgUFRCGRbkVI0AgqoAwjDoZfREgUFRAGBblVowAgagCwjDqZPRFgEBRAWFYlFsxAgSiCgjDqJPRFwECRQWEYVFuxQgQiCogDKNORl8ECBQVEIZFuRUjQCCqgDCMOhl9ESBQVEAYFuVWjACBqALCMOpk9EWAQFEBYViUWzECBKIKCMOok9EXAQJFBYRhUW7FCBCIKiAMo05GXwQIFBUQhkW5FSNAIKqAMIw6GX0RIFBU4H8RUTV123y9kQAAAABJRU5ErkJggg==", C = (l) => new Function(`return ${l}`)(), w = {
624
469
  data() {
625
470
  return {
626
- params: this.data.params || {},
627
- event: this.data.event || {},
628
- options: {
629
- fullScreen: !0,
630
- minimap: {
631
- enabled: !1
632
- }
471
+ historySteps: {
472
+ index: 0,
473
+ maxStep: 20,
474
+ steps: [],
475
+ storage: !1
633
476
  }
634
477
  };
635
478
  },
636
479
  watch: {
637
- "data.params"(l) {
638
- this.params = l || {};
480
+ historySteps: {
481
+ handler(l) {
482
+ l.storage ? localStorage.setItem("avue-form-history", v(l)) : localStorage.removeItem("avue-form-history");
483
+ },
484
+ deep: !0
485
+ }
486
+ },
487
+ methods: {
488
+ initHistory(l) {
489
+ if (l.storage) {
490
+ const a = localStorage.getItem("avue-form-history");
491
+ if (a) {
492
+ this.historySteps = C(a);
493
+ const { index: i, steps: s } = this.historySteps;
494
+ return g(s[i]);
495
+ }
496
+ }
497
+ this.historySteps = {
498
+ ...this.historySteps,
499
+ ...l
500
+ };
501
+ const { index: e, steps: t } = this.historySteps;
502
+ return g(t[e]);
639
503
  },
640
- "data.event"(l) {
641
- this.event = l || {};
504
+ handleHistoryChange(l) {
505
+ this.historySteps.index === this.historySteps.maxStep - 1 ? this.historySteps.steps.shift() : this.historySteps.index++, this.historySteps.steps[this.historySteps.index] = g(l), this.historySteps.index < this.historySteps.steps.length - 1 && (this.historySteps.steps = this.historySteps.steps.slice(0, this.historySteps.index + 1));
642
506
  },
643
- params(l) {
644
- try {
645
- this.data.params = y(`(${l})`);
646
- } catch {
647
- }
507
+ handleUndo() {
508
+ return this.historySteps.index !== 0 && this.historySteps.index--, g(this.historySteps.steps[this.historySteps.index]);
648
509
  },
649
- event(l) {
650
- try {
651
- this.data.event = y(`(${l})`);
652
- } catch {
653
- }
510
+ handleRedo() {
511
+ return this.historySteps.index !== this.historySteps.steps.length - 1 && this.historySteps.index++, g(this.historySteps.steps[this.historySteps.index]);
512
+ }
513
+ }
514
+ }, I = {
515
+ name: "WidgetFormItem",
516
+ components: { FyUEditor: () => import("../fy-u-editor/index.mjs") },
517
+ props: {
518
+ item: {
519
+ type: Object,
520
+ default: () => ({})
521
+ },
522
+ params: {
523
+ type: Object,
524
+ default: () => ({})
525
+ }
526
+ },
527
+ computed: {
528
+ vBind() {
529
+ const l = Object.assign(p(this.item), this.params, {
530
+ size: this.item.size || "small",
531
+ dic: this.item.dicData ? this.item.dicData.map((t) => {
532
+ if (!this.item.props) return t;
533
+ const { label: a, value: i, desc: s } = this.item.props;
534
+ return !a || !i ? t : {
535
+ [a]: t.label,
536
+ [i]: t.value,
537
+ [s]: t.desc
538
+ };
539
+ }) : void 0,
540
+ rules: this.item.pattern ? this.item.rules.map((t) => (t.pattern && (t.pattern = new RegExp(this.item.pattern)), t)) : this.item.rules
541
+ });
542
+ return ["change", "blur", "click", "focus"].forEach((t) => delete l[t]), l.event && delete l.event, l;
543
+ }
544
+ },
545
+ methods: {
546
+ getComponent(l, e) {
547
+ let a = "input";
548
+ return e || (["array", "img", "url"].includes(l) ? a = "array" : l === "select" ? a = "select" : l === "radio" ? a = "radio" : l === "checkbox" ? a = "checkbox" : ["time", "timerange"].includes(l) ? a = "time" : ["dates", "date", "datetime", "datetimerange", "daterange", "week", "month", "year"].includes(l) ? a = "date" : l === "cascader" ? a = "cascader" : l === "number" ? a = "input-number" : l === "password" ? a = "input" : l === "switch" ? a = "switch" : l === "rate" ? a = "rate" : l === "upload" ? a = "upload" : l === "slider" ? a = "slider" : l === "dynamic" ? a = "dynamic" : l === "icon" ? a = "input-icon" : l === "color" ? a = "input-color" : l === "map" && (a = "input-map"), "fy-" + a);
549
+ },
550
+ getPlaceholder(l) {
551
+ const e = l.label;
552
+ return [
553
+ "select",
554
+ "checkbox",
555
+ "radio",
556
+ "tree",
557
+ "color",
558
+ "dates",
559
+ "date",
560
+ "datetime",
561
+ "datetimerange",
562
+ "daterange",
563
+ "week",
564
+ "month",
565
+ "year",
566
+ "map",
567
+ "icon"
568
+ ].includes(l.type) ? `请选择 ${e}` : `请输入 ${e}`;
654
569
  }
655
570
  }
656
571
  };
657
- var ke = function() {
572
+ var F = function() {
658
573
  var e = this, t = e._self._c;
659
- return t("div", [t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("自定义属性:")]), t("div", { staticClass: "el-form-item__content" }, [t(g, { attrs: { height: "300", "key-index": e.data.prop, options: e.options }, model: { value: e.params, callback: function(a) {
660
- e.params = a;
661
- }, expression: "params" } })], 1)]), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("自定义事件:")]), t("div", { staticClass: "el-form-item__content" }, [t(g, { attrs: { height: "300", "key-index": e.data.prop, options: e.options }, model: { value: e.event, callback: function(a) {
662
- e.event = a;
663
- }, expression: "event" } })], 1)])]);
664
- }, Ce = [], we = /* @__PURE__ */ h(
665
- $e,
666
- ke,
667
- Ce,
574
+ return t("div", [e.item.type === "title" ? t("div", { staticStyle: { "margin-left": "5px" }, style: e.item.styles }, [e._v(" " + e._s(e.item.value) + " ")]) : t(e.getComponent(e.item.type, e.item.component), e._b({ tag: "Component", attrs: { multiple: !1, placeholder: e.item.placeholder || e.getPlaceholder(e.item), value: ["time", "timerange", "checkbox"].includes(e.item.type) ? e.item.dicData : void 0 } }, "Component", e.vBind, !1), [e.params.html ? t("span", { domProps: { innerHTML: e._s(e.params.html) } }) : e._e()])], 1);
575
+ }, S = [], A = /* @__PURE__ */ c(
576
+ I,
577
+ F,
578
+ S,
668
579
  !1,
669
580
  null,
670
581
  null
671
582
  );
672
- const Ae = we.exports, Fe = {
673
- name: "ConfigInput",
583
+ const y = A.exports, O = {
584
+ name: "WidgetFormTable",
585
+ components: { WidgetFormItem: y, Draggable: b },
674
586
  props: {
675
- data: Object
587
+ data: Object,
588
+ column: Object,
589
+ select: Object,
590
+ index: Number
591
+ },
592
+ data() {
593
+ return {
594
+ selectWidget: this.select
595
+ };
596
+ },
597
+ watch: {
598
+ select(l) {
599
+ this.selectWidget = l;
600
+ },
601
+ selectWidget: {
602
+ handler(l) {
603
+ this.$emit("update:select", l);
604
+ },
605
+ deep: !0
606
+ }
607
+ },
608
+ methods: {
609
+ handleSelectWidget(l) {
610
+ this.selectWidget = this.data.column[l];
611
+ },
612
+ handleWidgetClear(l) {
613
+ this.data.column[l].children.column = [], this.selectWidget = this.data.column[l], this.$emit("change");
614
+ },
615
+ handleWidgetDelete(l) {
616
+ this.data.column.length - 1 === l ? l === 0 ? this.selectWidget = {} : this.handleSelectWidget(l - 1) : this.handleSelectWidget(l + 1), this.$nextTick(() => {
617
+ this.data.column.splice(l, 1), this.$emit("change");
618
+ });
619
+ },
620
+ handleWidgetCloneTable(l) {
621
+ const e = p(this.data.column[l]);
622
+ e.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, e.children.column.forEach((t) => {
623
+ t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`;
624
+ }), this.data.column.splice(l, 0, e), this.$nextTick(() => {
625
+ this.handleSelectWidget(l + 1), this.$emit("change");
626
+ });
627
+ },
628
+ handleWidgetTableAdd(l, e) {
629
+ let t = l.newIndex;
630
+ const a = l.item;
631
+ if (t === 1 && t > e.children.column.length - 1 && (t = 0), ["子表单", "富文本", "坐标拾取器", "分组"].includes(a.textContent)) {
632
+ e.children.column.splice(t, 1);
633
+ return;
634
+ }
635
+ const i = p(e.children.column[t]);
636
+ i.prop || (i.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), i.subfield = !0, delete i.icon, this.$set(e.children.column, t, { ...i }), this.selectWidget = e.children.column[t], this.$emit("change");
637
+ },
638
+ handleWidgetTableSelect(l) {
639
+ this.selectWidget = l;
640
+ },
641
+ handleWidgetTableClone(l, e) {
642
+ const t = p(e);
643
+ t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.$set(l.children.column, l.children.column.length, { ...t }), this.$nextTick(() => {
644
+ this.selectWidget = l.children.column[l.children.column.length - 1], this.$emit("change");
645
+ });
646
+ },
647
+ handleWidgetTableDelete(l, e) {
648
+ l.children.column.length - 1 === e ? e === 0 ? this.selectWidget = l : this.selectWidget = l.children.column[e - 1] : this.selectWidget = l.children.column[e + 1], this.$nextTick(() => {
649
+ l.children.column.splice(e, 1), this.$emit("change");
650
+ });
651
+ }
676
652
  }
677
653
  };
678
- var Se = function() {
654
+ var B = function() {
679
655
  var e = this, t = e._self._c;
680
- return t("div", [t(i, { attrs: { label: "占位内容" } }, [t(r, { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
681
- e.$set(e.data, "placeholder", a);
682
- }, expression: "data.placeholder" } })], 1), t(i, { attrs: { label: "前缀" } }, [t(r, { attrs: { clearable: "", placeholder: "前缀" }, model: { value: e.data.prepend, callback: function(a) {
683
- e.$set(e.data, "prepend", a);
684
- }, expression: "data.prepend" } })], 1), t(i, { attrs: { label: "后缀" } }, [t(r, { attrs: { clearable: "", placeholder: "后缀" }, model: { value: e.data.append, callback: function(a) {
685
- e.$set(e.data, "append", a);
686
- }, expression: "data.append" } })], 1), t(i, { attrs: { label: "最大长度" } }, [t(f, { attrs: { "controls-position": "right", placeholder: "最大长度" }, model: { value: e.data.maxlength, callback: function(a) {
687
- e.$set(e.data, "maxlength", a);
688
- }, expression: "data.maxlength" } })], 1), e.data.type !== "password" ? t(i, { attrs: { label: "显示计数" } }, [t(c, { model: { value: e.data.showWordLimit, callback: function(a) {
656
+ return t("div", [t("h3", { directives: [{ name: "show", rawName: "v-show", value: e.column.label, expression: "column.label" }], staticStyle: { margin: "10px" } }, [e._v(" " + e._s(e.column.label) + " ")]), t("Draggable", { staticClass: "widget-form-table__content", attrs: { list: e.column.children.column, group: { name: "form" }, "ghost-class": "ghost", animation: 200, handle: ".widget-form-table__item" }, on: { add: function(a) {
657
+ return e.handleWidgetTableAdd(a, e.column);
658
+ }, end: function(a) {
659
+ return e.$emit("change");
660
+ } } }, [e.column.children.column.length > 0 ? e._l(e.column.children.column, function(a, i) {
661
+ return t("div", { key: i, staticClass: "widget-form-table__item", class: { active: e.selectWidget.prop === a.prop, required: a.required }, style: {
662
+ minWidth: a.width ? `${a.width}px` : "33.3%",
663
+ width: a.width ? `${a.width}px` : "33.3%"
664
+ }, on: { click: function(s) {
665
+ return s.stopPropagation(), e.handleWidgetTableSelect(a);
666
+ } } }, [t("ElTable", { attrs: { data: [a], border: "" } }, [t("ElTableColumn", { attrs: { prop: a.prop, label: a.label, align: e.column.children.align, "header-align": e.column.children.headerAlign } }, [t("WidgetFormItem", { attrs: { item: a, params: e.column.params } }), e.selectWidget.prop === a.prop ? t("ElButton", { staticClass: "widget-table-action-delete", attrs: { title: "删除", circle: "", plain: "", size: "small", type: "danger" }, on: { click: function(s) {
667
+ return s.stopPropagation(), e.handleWidgetTableDelete(e.column, i);
668
+ } } }, [t("i", { staticClass: "iconfont icon-delete" })]) : e._e(), e.selectWidget.prop === a.prop ? t("ElButton", { staticClass: "widget-table-action-clone", attrs: { title: "复制", circle: "", plain: "", size: "small", type: "primary" }, on: { click: function(s) {
669
+ return s.stopPropagation(), e.handleWidgetTableClone(e.column, a);
670
+ } } }, [t("i", { staticClass: "iconfont icon-copy" })]) : e._e()], 1)], 1)], 1);
671
+ }) : [t("FyEmpty", { staticStyle: { width: "100%" }, attrs: { size: "50", desc: "拖拽字段至此" } })]], 2), e.selectWidget.prop === e.column.prop ? t("ElButton", { staticClass: "widget-action-delete", attrs: { title: "删除", circle: "", plain: "", size: "small", type: "danger" }, on: { click: function(a) {
672
+ return a.stopPropagation(), e.handleWidgetDelete(e.index);
673
+ } } }, [t("i", { staticClass: "iconfont icon-delete" })]) : e._e(), e.selectWidget.prop === e.column.prop ? t("ElButton", { staticClass: "widget-action-clear", attrs: { title: "清空", circle: "", plain: "", size: "small", type: "warning" }, on: { click: function(a) {
674
+ return a.stopPropagation(), e.handleWidgetClear(e.index);
675
+ } } }, [t("i", { staticClass: "iconfont icon-clear" })]) : e._e(), e.selectWidget.prop === e.column.prop ? t("ElButton", { staticClass: "widget-action-clone", attrs: { title: "复制", circle: "", plain: "", size: "small", type: "primary" }, on: { click: function(a) {
676
+ return a.stopPropagation(), e.handleWidgetCloneTable(e.index);
677
+ } } }, [t("i", { staticClass: "iconfont icon-copy" })]) : e._e()], 1);
678
+ }, W = [], T = /* @__PURE__ */ c(
679
+ O,
680
+ B,
681
+ W,
682
+ !1,
683
+ null,
684
+ null
685
+ );
686
+ const x = T.exports, z = {
687
+ name: "WidgetFormGroup",
688
+ components: { WidgetFormItem: y, WidgetFormTable: x, Draggable: b },
689
+ props: {
690
+ data: Object,
691
+ column: Object,
692
+ select: Object,
693
+ index: Number
694
+ },
695
+ data() {
696
+ return {
697
+ selectWidget: this.select
698
+ };
699
+ },
700
+ watch: {
701
+ select(l) {
702
+ this.selectWidget = l;
703
+ },
704
+ selectWidget: {
705
+ handler(l) {
706
+ this.$emit("update:select", l);
707
+ },
708
+ deep: !0
709
+ }
710
+ },
711
+ methods: {
712
+ handleSelectWidget(l) {
713
+ this.selectWidget = this.data.column[l];
714
+ },
715
+ handleWidgetClear(l) {
716
+ this.data.column[l].children.column = [], this.selectWidget = this.data.column[l], this.$emit("change");
717
+ },
718
+ handleWidgetDelete(l) {
719
+ this.data.column.length - 1 === l ? l === 0 ? this.selectWidget = {} : this.handleSelectWidget(l - 1) : this.handleSelectWidget(l + 1), this.$nextTick(() => {
720
+ this.data.column.splice(l, 1), this.$emit("change");
721
+ });
722
+ },
723
+ handleWidgetCloneTable(l) {
724
+ const e = p(this.data.column[l]);
725
+ e.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, e.children.column.forEach((t) => {
726
+ t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`;
727
+ }), this.data.column.splice(l, 0, e), this.$nextTick(() => {
728
+ this.handleSelectWidget(l + 1), this.$emit("change");
729
+ });
730
+ },
731
+ handleWidgetTableSelect(l) {
732
+ this.selectWidget = l;
733
+ },
734
+ handleWidgetTableClone(l, e) {
735
+ const t = p(e);
736
+ t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.$set(l.children.column, l.children.column.length, { ...t }), this.$nextTick(() => {
737
+ this.selectWidget = l.children.column[l.children.column.length - 1], this.$emit("change");
738
+ });
739
+ },
740
+ handleWidgetTableDelete(l, e) {
741
+ l.children.column.length - 1 === e ? e === 0 ? this.selectWidget = l : this.selectWidget = l.children.column[e - 1] : this.selectWidget = l.children.column[e + 1], this.$nextTick(() => {
742
+ l.children.column.splice(e, 1), this.$emit("change");
743
+ });
744
+ },
745
+ handleWidgetGroupAdd(l, e) {
746
+ let t = l.newIndex;
747
+ const a = l.item;
748
+ if (t === 1 && t > e.children.column.length - 1 && (t = 0), ["分组"].includes(a.textContent)) {
749
+ e.children.column.splice(t, 1);
750
+ return;
751
+ }
752
+ const i = p(e.children.column[t]);
753
+ i.prop || (i.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), delete i.icon, i.type === "dynamic" ? i.span = 24 : i.span = 12, this.$set(e.children.column, t, { ...i }), this.selectWidget = e.children.column[t], this.$emit("change");
754
+ }
755
+ }
756
+ };
757
+ var R = function() {
758
+ var e = this, t = e._self._c;
759
+ return t("div", [t("h4", { directives: [{ name: "show", rawName: "v-show", value: e.column.label, expression: "column.label" }], staticClass: "widget-form-group__head" }, [t("i", { directives: [{ name: "show", rawName: "v-show", value: e.column.icon, expression: "column.icon" }], class: e.column.icon, staticStyle: { "margin-right": "10px" } }), e._v(e._s(e.column.label) + " ")]), t("Draggable", { staticClass: "widget-form-group__body", attrs: { list: e.column.children.column, group: { name: "form" }, "ghost-class": "ghost", animation: 200 }, on: { add: function(a) {
760
+ return e.handleWidgetGroupAdd(a, e.column);
761
+ }, end: function(a) {
762
+ return e.$emit("change");
763
+ } } }, [e._l(e.column.children.column, function(a, i) {
764
+ return [a.type === "dynamic" ? t("div", { key: i, staticClass: "widget-form-table", class: { active: e.selectWidget.prop === a.prop }, on: { click: function(s) {
765
+ return s.stopPropagation(), e.handleWidgetTableSelect(a);
766
+ } } }, [t("WidgetFormTable", { attrs: { data: e.column.children, column: a, index: i, select: e.selectWidget }, on: { "update:select": function(s) {
767
+ e.selectWidget = s;
768
+ }, change: function(s) {
769
+ return e.$emit("change");
770
+ } } })], 1) : t("ElCol", { key: i, attrs: { md: a.span || 12, xs: 24, offset: a.offset || 0 } }, [t("ElFormItem", { staticClass: "widget-form-group__item", class: { active: e.selectWidget.prop === a.prop, required: a.required }, attrs: { label: a.label, prop: a.prop }, nativeOn: { click: function(s) {
771
+ return s.stopPropagation(), e.handleWidgetTableSelect(a);
772
+ } } }, [t("WidgetFormItem", { attrs: { item: a, params: e.column.params } }), e.selectWidget.prop === a.prop ? t("ElButton", { staticClass: "widget-form-group__item--delete", attrs: { title: "删除", circle: "", plain: "", type: "danger" }, on: { click: function(s) {
773
+ return s.stopPropagation(), e.handleWidgetTableDelete(e.column, i);
774
+ } } }, [t("i", { staticClass: "iconfont icon-delete" })]) : e._e(), e.selectWidget.prop === a.prop ? t("ElButton", { staticClass: "widget-form-group__item--clone", attrs: { title: "复制", circle: "", plain: "", type: "primary" }, on: { click: function(s) {
775
+ return s.stopPropagation(), e.handleWidgetTableClone(e.column, a);
776
+ } } }, [t("i", { staticClass: "iconfont icon-copy" })]) : e._e()], 1)], 1)];
777
+ })], 2), e.selectWidget.prop === e.column.prop ? t("ElButton", { staticClass: "widget-action-delete", attrs: { title: "删除", circle: "", plain: "", size: "small", type: "danger" }, on: { click: function(a) {
778
+ return a.stopPropagation(), e.handleWidgetDelete(e.index);
779
+ } } }, [t("i", { staticClass: "iconfont icon-delete" })]) : e._e(), e.selectWidget.prop === e.column.prop ? t("ElButton", { staticClass: "widget-action-clear", attrs: { title: "清空", circle: "", plain: "", size: "small", type: "warning" }, on: { click: function(a) {
780
+ return a.stopPropagation(), e.handleWidgetClear(e.index);
781
+ } } }, [t("i", { staticClass: "iconfont icon-clear" })]) : e._e(), e.selectWidget.prop === e.column.prop ? t("ElButton", { staticClass: "widget-action-clone", attrs: { title: "复制", circle: "", plain: "", size: "small", type: "primary" }, on: { click: function(a) {
782
+ return a.stopPropagation(), e.handleWidgetCloneTable(e.index);
783
+ } } }, [t("i", { staticClass: "iconfont icon-copy" })]) : e._e()], 1);
784
+ }, P = [], M = /* @__PURE__ */ c(
785
+ z,
786
+ R,
787
+ P,
788
+ !1,
789
+ null,
790
+ null
791
+ );
792
+ const D = M.exports, Q = {
793
+ name: "WidgetForm",
794
+ components: { Draggable: b, WidgetFormItem: y, WidgetFormTable: x, WidgetFormGroup: D },
795
+ props: {
796
+ data: Object,
797
+ select: Object
798
+ },
799
+ data() {
800
+ return {
801
+ selectWidget: this.select,
802
+ form: {}
803
+ };
804
+ },
805
+ watch: {
806
+ select(l) {
807
+ this.selectWidget = l;
808
+ },
809
+ selectWidget: {
810
+ handler(l) {
811
+ this.$emit("update:select", l);
812
+ },
813
+ deep: !0
814
+ }
815
+ },
816
+ methods: {
817
+ handleSelectWidget(l) {
818
+ this.selectWidget = this.data.column[l];
819
+ },
820
+ handleWidgetAdd(l) {
821
+ const e = l.newIndex, t = p(this.data.column[e]);
822
+ t.prop || (t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), delete t.icon, delete t.subfield, t.type === "title" && (delete t.label, this.form[t.prop] = t.value), this.$set(this.data.column, e, t), this.handleSelectWidget(e), this.$emit("change");
823
+ },
824
+ handleWidgetDelete(l) {
825
+ this.data.column.length - 1 === l ? l === 0 ? this.selectWidget = {} : this.handleSelectWidget(l - 1) : this.handleSelectWidget(l + 1), this.$nextTick(() => {
826
+ this.data.column.splice(l, 1), this.$emit("change");
827
+ });
828
+ },
829
+ handleWidgetClone(l) {
830
+ const e = p(this.data.column[l]);
831
+ e.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.data.column.push(e), this.$nextTick(() => {
832
+ this.handleSelectWidget(this.data.column.length - 1), this.$emit("change");
833
+ });
834
+ }
835
+ }
836
+ };
837
+ var K = function() {
838
+ var e = this, t = e._self._c;
839
+ return t("div", { staticClass: "widget-form-container" }, [t("ElForm", { ref: "widgetForm", attrs: { "label-position": e.data.labelPosition || "left", "label-width": e.data.labelWidth ? `${e.data.labelWidth}px` : "100px", "label-suffix": e.data.labelSuffix, model: e.form, size: "small" } }, [t("ElRow", { attrs: { gutter: e.data.gutter } }, [t("Draggable", { staticClass: "widget-form-list", attrs: { list: e.data.column, group: { name: "form" }, "ghost-class": "ghost", animation: 300 }, on: { add: e.handleWidgetAdd, end: function(a) {
840
+ return e.$emit("change");
841
+ } } }, [e._l(e.data.column, function(a, i) {
842
+ return [a.type === "dynamic" ? t("div", { key: i, staticClass: "widget-form-table", class: { active: e.selectWidget.prop === a.prop }, on: { click: function(s) {
843
+ return e.handleSelectWidget(i);
844
+ } } }, [t("WidgetFormTable", { attrs: { data: e.data, column: a, index: i, select: e.selectWidget }, on: { "update:select": function(s) {
845
+ e.selectWidget = s;
846
+ }, change: function(s) {
847
+ return e.$emit("change");
848
+ } } })], 1) : a.type === "group" ? t("div", { key: i, staticClass: "widget-form-group", class: { active: e.selectWidget.prop === a.prop }, on: { click: function(s) {
849
+ return e.handleSelectWidget(i);
850
+ } } }, [t("WidgetFormGroup", { attrs: { data: e.data, column: a, index: i, select: e.selectWidget }, on: { "update:select": function(s) {
851
+ e.selectWidget = s;
852
+ }, change: function(s) {
853
+ return e.$emit("change");
854
+ } } })], 1) : t("ElCol", { key: i, attrs: { md: a.span || 12, xs: 24, offset: a.offset || 0 } }, [t("ElFormItem", { staticClass: "widget-form-item", class: [{ active: e.selectWidget.prop === a.prop, required: a.required }, `avue-form__item--${a.labelPosition}` || ""], attrs: { label: a.label, "label-width": a.labelWidth && `${a.labelWidth}px`, prop: a.prop }, nativeOn: { click: function(s) {
855
+ return e.handleSelectWidget(i);
856
+ } } }, [t("WidgetFormItem", { attrs: { item: a, params: a.params } }), e.selectWidget.prop === a.prop ? t("ElButton", { staticClass: "widget-action-delete", attrs: { title: "删除", circle: "", plain: "", size: "small", type: "danger" }, on: { click: function(s) {
857
+ return s.stopPropagation(), e.handleWidgetDelete(i);
858
+ } } }, [t("i", { staticClass: "iconfont icon-delete" })]) : e._e(), e.selectWidget.prop === a.prop ? t("ElButton", { staticClass: "widget-action-clone", attrs: { title: "复制", circle: "", plain: "", size: "small", type: "primary" }, on: { click: function(s) {
859
+ return s.stopPropagation(), e.handleWidgetClone(i);
860
+ } } }, [t("i", { staticClass: "iconfont icon-copy" })]) : e._e()], 1)], 1)];
861
+ })], 2)], 1)], 1)], 1);
862
+ }, j = [], N = /* @__PURE__ */ c(
863
+ Q,
864
+ K,
865
+ j,
866
+ !1,
867
+ null,
868
+ null
869
+ );
870
+ const V = N.exports, q = {
871
+ name: "FormConfig",
872
+ props: {
873
+ data: Object
874
+ }
875
+ };
876
+ var L = function() {
877
+ var e = this, t = e._self._c;
878
+ return t("div", { staticClass: "form-config-container" }, [t("ElForm", { attrs: { "label-position": "left", "label-suffix": ":", "label-width": "130px", size: "small" } }, [t("ElFormItem", { attrs: { label: "标签对齐方式" } }, [t("ElSelect", { attrs: { placeholder: "标签对齐方式" }, model: { value: e.data.labelPosition, callback: function(a) {
879
+ e.$set(e.data, "labelPosition", a);
880
+ }, expression: "data.labelPosition" } }, [t("ElOption", { attrs: { label: "左对齐", value: "left" } }), t("ElOption", { attrs: { label: "右对齐", value: "right" } }), t("ElOption", { attrs: { label: "顶部对齐", value: "top" } })], 1)], 1), t("ElFormItem", { attrs: { label: "标签宽度" } }, [t("ElInputNumber", { staticStyle: { width: "100%" }, attrs: { min: 80, max: 200, step: 10, "controls-position": "right", placeholder: "标签宽度" }, model: { value: e.data.labelWidth, callback: function(a) {
881
+ e.$set(e.data, "labelWidth", a);
882
+ }, expression: "data.labelWidth" } })], 1), t("ElFormItem", { attrs: { label: "标签后缀" } }, [t("ElInput", { attrs: { placeholder: "标签后缀" }, model: { value: e.data.labelSuffix, callback: function(a) {
883
+ e.$set(e.data, "labelSuffix", a);
884
+ }, expression: "data.labelSuffix" } })], 1), t("ElFormItem", { attrs: { label: "项之间的间隔" } }, [t("ElInputNumber", { staticStyle: { width: "100%" }, attrs: { min: 0, max: 60, step: 5, "controls-position": "right", placeholder: "项之间的间隔" }, model: { value: e.data.gutter, callback: function(a) {
885
+ e.$set(e.data, "gutter", a);
886
+ }, expression: "data.gutter" } })], 1), t("ElFormItem", { attrs: { label: "多分组转标签" } }, [t("ElSwitch", { model: { value: e.data.tabs, callback: function(a) {
887
+ e.$set(e.data, "tabs", a);
888
+ }, expression: "data.tabs" } })], 1), t("ElFormItem", { attrs: { label: "详情模式" } }, [t("ElSwitch", { model: { value: e.data.detail, callback: function(a) {
889
+ e.$set(e.data, "detail", a);
890
+ }, expression: "data.detail" } })], 1), t("ElFormItem", { attrs: { label: "显示按钮" } }, [t("ElSwitch", { model: { value: e.data.menuBtn, callback: function(a) {
891
+ e.$set(e.data, "menuBtn", a);
892
+ }, expression: "data.menuBtn" } })], 1), e.data.menuBtn ? t("ElFormItem", { attrs: { label: "显示提交按钮" } }, [t("ElSwitch", { model: { value: e.data.submitBtn, callback: function(a) {
893
+ e.$set(e.data, "submitBtn", a);
894
+ }, expression: "data.submitBtn" } })], 1) : e._e(), e.data.menuBtn && e.data.submitBtn ? t("ElFormItem", { attrs: { label: "提交按钮的文字" } }, [t("ElInput", { attrs: { placeholder: "提交按钮的文字" }, model: { value: e.data.submitText, callback: function(a) {
895
+ e.$set(e.data, "submitText", a);
896
+ }, expression: "data.submitText" } })], 1) : e._e(), e.data.menuBtn ? t("ElFormItem", { attrs: { label: "显示清空按钮" } }, [t("ElSwitch", { model: { value: e.data.emptyBtn, callback: function(a) {
897
+ e.$set(e.data, "emptyBtn", a);
898
+ }, expression: "data.emptyBtn" } })], 1) : e._e(), e.data.menuBtn && e.data.emptyBtn ? t("ElFormItem", { attrs: { label: "清空按钮的文字" } }, [t("ElInput", { attrs: { placeholder: "提交按钮的文字" }, model: { value: e.data.emptyText, callback: function(a) {
899
+ e.$set(e.data, "emptyText", a);
900
+ }, expression: "data.emptyText" } })], 1) : e._e(), t("ElFormItem", { attrs: { label: "全局只读" } }, [t("ElSwitch", { model: { value: e.data.readonly, callback: function(a) {
901
+ e.$set(e.data, "readonly", a);
902
+ }, expression: "data.readonly" } })], 1), t("ElFormItem", { attrs: { label: "全局禁用" } }, [t("ElSwitch", { model: { value: e.data.disabled, callback: function(a) {
903
+ e.$set(e.data, "disabled", a);
904
+ }, expression: "data.disabled" } })], 1)], 1)], 1);
905
+ }, G = [], H = /* @__PURE__ */ c(
906
+ q,
907
+ L,
908
+ G,
909
+ !1,
910
+ null,
911
+ null
912
+ );
913
+ const U = H.exports, J = {
914
+ name: "ConfigCustom",
915
+ components: { MonacoEditor: f },
916
+ props: {
917
+ data: Object
918
+ },
919
+ data() {
920
+ return {
921
+ params: this.data.params || {},
922
+ event: this.data.event || {},
923
+ options: {
924
+ fullScreen: !0,
925
+ minimap: {
926
+ enabled: !1
927
+ }
928
+ }
929
+ };
930
+ },
931
+ watch: {
932
+ "data.params"(l) {
933
+ this.params = l || {};
934
+ },
935
+ "data.event"(l) {
936
+ this.event = l || {};
937
+ },
938
+ params(l) {
939
+ try {
940
+ this.data.params = u(`(${l})`);
941
+ } catch {
942
+ }
943
+ },
944
+ event(l) {
945
+ try {
946
+ this.data.event = u(`(${l})`);
947
+ } catch {
948
+ }
949
+ }
950
+ }
951
+ };
952
+ var Y = function() {
953
+ var e = this, t = e._self._c;
954
+ return t("div", [t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("自定义属性:")]), t("div", { staticClass: "el-form-item__content" }, [t("MonacoEditor", { attrs: { height: "300", "key-index": e.data.prop, options: e.options }, model: { value: e.params, callback: function(a) {
955
+ e.params = a;
956
+ }, expression: "params" } })], 1)]), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("自定义事件:")]), t("div", { staticClass: "el-form-item__content" }, [t("MonacoEditor", { attrs: { height: "300", "key-index": e.data.prop, options: e.options }, model: { value: e.event, callback: function(a) {
957
+ e.event = a;
958
+ }, expression: "event" } })], 1)])]);
959
+ }, X = [], Z = /* @__PURE__ */ c(
960
+ J,
961
+ Y,
962
+ X,
963
+ !1,
964
+ null,
965
+ null
966
+ );
967
+ const ee = Z.exports, te = {
968
+ name: "ConfigInput",
969
+ props: {
970
+ data: Object
971
+ }
972
+ };
973
+ var ae = function() {
974
+ var e = this, t = e._self._c;
975
+ return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
976
+ e.$set(e.data, "placeholder", a);
977
+ }, expression: "data.placeholder" } })], 1), t("ElFormItem", { attrs: { label: "前缀" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "前缀" }, model: { value: e.data.prepend, callback: function(a) {
978
+ e.$set(e.data, "prepend", a);
979
+ }, expression: "data.prepend" } })], 1), t("ElFormItem", { attrs: { label: "后缀" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "后缀" }, model: { value: e.data.append, callback: function(a) {
980
+ e.$set(e.data, "append", a);
981
+ }, expression: "data.append" } })], 1), t("ElFormItem", { attrs: { label: "最大长度" } }, [t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "最大长度" }, model: { value: e.data.maxlength, callback: function(a) {
982
+ e.$set(e.data, "maxlength", a);
983
+ }, expression: "data.maxlength" } })], 1), e.data.type !== "password" ? t("ElFormItem", { attrs: { label: "显示计数" } }, [t("ElSwitch", { model: { value: e.data.showWordLimit, callback: function(a) {
689
984
  e.$set(e.data, "showWordLimit", a);
690
- }, expression: "data.showWordLimit" } })], 1) : e._e(), e.data.type === "password" ? t(i, { attrs: { label: "显示密码" } }, [t(c, { model: { value: e.data.showPassword, callback: function(a) {
985
+ }, expression: "data.showWordLimit" } })], 1) : e._e(), e.data.type === "password" ? t("ElFormItem", { attrs: { label: "显示密码" } }, [t("ElSwitch", { model: { value: e.data.showPassword, callback: function(a) {
691
986
  e.$set(e.data, "showPassword", a);
692
987
  }, expression: "data.showPassword" } })], 1) : e._e()], 1);
693
- }, Oe = [], We = /* @__PURE__ */ h(
694
- Fe,
695
- Se,
696
- Oe,
988
+ }, le = [], ie = /* @__PURE__ */ c(
989
+ te,
990
+ ae,
991
+ le,
697
992
  !1,
698
993
  null,
699
994
  null
700
995
  );
701
- const Ie = We.exports, Ee = {
996
+ const se = ie.exports, oe = {
702
997
  name: "ConfigTextarea",
703
998
  props: {
704
999
  data: Object
705
1000
  }
706
1001
  };
707
- var Be = function() {
1002
+ var ne = function() {
708
1003
  var e = this, t = e._self._c;
709
- return t("div", [t(i, { attrs: { label: "占位内容" } }, [t(r, { attrs: { type: "textarea", autosize: "", clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
1004
+ return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { type: "textarea", autosize: "", clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
710
1005
  e.$set(e.data, "placeholder", a);
711
- }, expression: "data.placeholder" } })], 1), t(i, { attrs: { label: "最大长度" } }, [t(f, { attrs: { "controls-position": "right", placeholder: "最大长度" }, model: { value: e.data.maxlength, callback: function(a) {
1006
+ }, expression: "data.placeholder" } })], 1), t("ElFormItem", { attrs: { label: "最大长度" } }, [t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "最大长度" }, model: { value: e.data.maxlength, callback: function(a) {
712
1007
  e.$set(e.data, "maxlength", a);
713
- }, expression: "data.maxlength" } })], 1), t(i, { attrs: { label: "显示计数" } }, [t(c, { model: { value: e.data.showWordLimit, callback: function(a) {
1008
+ }, expression: "data.maxlength" } })], 1), t("ElFormItem", { attrs: { label: "显示计数" } }, [t("ElSwitch", { model: { value: e.data.showWordLimit, callback: function(a) {
714
1009
  e.$set(e.data, "showWordLimit", a);
715
- }, expression: "data.showWordLimit" } })], 1), t(i, { attrs: { label: "最小行" } }, [t(f, { attrs: { "controls-position": "right", placeholder: "最小行", min: 1 }, model: { value: e.data.minRows, callback: function(a) {
1010
+ }, expression: "data.showWordLimit" } })], 1), t("ElFormItem", { attrs: { label: "最小行" } }, [t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "最小行", min: 1 }, model: { value: e.data.minRows, callback: function(a) {
716
1011
  e.$set(e.data, "minRows", a);
717
- }, expression: "data.minRows" } })], 1), t(i, { attrs: { label: "最大行" } }, [t(f, { attrs: { "controls-position": "right", placeholder: "最大行", min: 2 }, model: { value: e.data.maxRows, callback: function(a) {
1012
+ }, expression: "data.minRows" } })], 1), t("ElFormItem", { attrs: { label: "最大行" } }, [t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "最大行", min: 2 }, model: { value: e.data.maxRows, callback: function(a) {
718
1013
  e.$set(e.data, "maxRows", a);
719
1014
  }, expression: "data.maxRows" } })], 1)], 1);
720
- }, Te = [], ze = /* @__PURE__ */ h(
721
- Ee,
722
- Be,
723
- Te,
1015
+ }, re = [], ce = /* @__PURE__ */ c(
1016
+ oe,
1017
+ ne,
1018
+ re,
724
1019
  !1,
725
1020
  null,
726
1021
  null
727
1022
  );
728
- const Pe = ze.exports, Re = {
1023
+ const de = ce.exports, pe = {
729
1024
  name: "ConfigNumber",
730
1025
  props: {
731
1026
  data: Object
732
1027
  }
733
1028
  };
734
- var De = function() {
1029
+ var ue = function() {
735
1030
  var e = this, t = e._self._c;
736
- return t("div", [t(i, { attrs: { label: "占位内容" } }, [t(r, { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
1031
+ return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
737
1032
  e.$set(e.data, "placeholder", a);
738
- }, expression: "data.placeholder" } })], 1), t(i, { attrs: { label: "最小值" } }, [t(f, { attrs: { "controls-position": "right", placeholder: "最小值" }, model: { value: e.data.minRows, callback: function(a) {
1033
+ }, expression: "data.placeholder" } })], 1), t("ElFormItem", { attrs: { label: "最小值" } }, [t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "最小值" }, model: { value: e.data.minRows, callback: function(a) {
739
1034
  e.$set(e.data, "minRows", a);
740
- }, expression: "data.minRows" } })], 1), t(i, { attrs: { label: "最大值" } }, [t(f, { attrs: { "controls-position": "right", placeholder: "最大值" }, model: { value: e.data.maxRows, callback: function(a) {
1035
+ }, expression: "data.minRows" } })], 1), t("ElFormItem", { attrs: { label: "最大值" } }, [t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "最大值" }, model: { value: e.data.maxRows, callback: function(a) {
741
1036
  e.$set(e.data, "maxRows", a);
742
- }, expression: "data.maxRows" } })], 1), t(i, { attrs: { label: "步长" } }, [t(f, { attrs: { "controls-position": "right", placeholder: "步长" }, model: { value: e.data.step, callback: function(a) {
1037
+ }, expression: "data.maxRows" } })], 1), t("ElFormItem", { attrs: { label: "步长" } }, [t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "步长" }, model: { value: e.data.step, callback: function(a) {
743
1038
  e.$set(e.data, "step", a);
744
- }, expression: "data.step" } })], 1), t(i, { attrs: { label: "数值精度" } }, [t(f, { attrs: { "controls-position": "right", placeholder: "数值精度", min: 0, max: 10 }, model: { value: e.data.precision, callback: function(a) {
1039
+ }, expression: "data.step" } })], 1), t("ElFormItem", { attrs: { label: "数值精度" } }, [t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "数值精度", min: 0, max: 10 }, model: { value: e.data.precision, callback: function(a) {
745
1040
  e.$set(e.data, "precision", a);
746
- }, expression: "data.precision" } })], 1), t(i, { attrs: { label: "开启控制器", "label-width": "100px" } }, [t(c, { model: { value: e.data.controls, callback: function(a) {
1041
+ }, expression: "data.precision" } })], 1), t("ElFormItem", { attrs: { label: "开启控制器", "label-width": "100px" } }, [t("ElSwitch", { model: { value: e.data.controls, callback: function(a) {
747
1042
  e.$set(e.data, "controls", a);
748
- }, expression: "data.controls" } })], 1), e.data.controls ? t(i, { attrs: { label: "控制器位置", "label-width": "100px" } }, [t(w, { attrs: { label: "" }, model: { value: e.data.controlsPosition, callback: function(a) {
1043
+ }, expression: "data.controls" } })], 1), e.data.controls ? t("ElFormItem", { attrs: { label: "控制器位置", "label-width": "100px" } }, [t("ElRadio", { attrs: { label: "" }, model: { value: e.data.controlsPosition, callback: function(a) {
749
1044
  e.$set(e.data, "controlsPosition", a);
750
- }, expression: "data.controlsPosition" } }, [e._v(" 默认 ")]), t(w, { attrs: { label: "right" }, model: { value: e.data.controlsPosition, callback: function(a) {
1045
+ }, expression: "data.controlsPosition" } }, [e._v(" 默认 ")]), t("ElRadio", { attrs: { label: "right" }, model: { value: e.data.controlsPosition, callback: function(a) {
751
1046
  e.$set(e.data, "controlsPosition", a);
752
1047
  }, expression: "data.controlsPosition" } }, [e._v(" 右 ")])], 1) : e._e()], 1);
753
- }, Me = [], Qe = /* @__PURE__ */ h(
754
- Re,
755
- De,
756
- Me,
1048
+ }, me = [], he = /* @__PURE__ */ c(
1049
+ pe,
1050
+ ue,
1051
+ me,
757
1052
  !1,
758
1053
  null,
759
1054
  null
760
1055
  );
761
- const Ke = Qe.exports, je = {
1056
+ const fe = he.exports, be = {
762
1057
  name: "ConfigDynamic",
763
1058
  props: {
764
1059
  data: Object
765
1060
  }
766
1061
  };
767
- var Ve = function() {
1062
+ var ge = function() {
768
1063
  var e = this, t = e._self._c;
769
- return t("div", [t(i, { attrs: { label: "对齐方式" } }, [t(b, { attrs: { placeholder: "对齐方式", clearable: "" }, model: { value: e.data.children.align, callback: function(a) {
1064
+ return t("div", [t("ElFormItem", { attrs: { label: "对齐方式" } }, [t("ElSelect", { attrs: { placeholder: "对齐方式", clearable: "" }, model: { value: e.data.children.align, callback: function(a) {
770
1065
  e.$set(e.data.children, "align", a);
771
- }, expression: "data.children.align" } }, [t(d, { attrs: { label: "居左", value: "left" } }), t(d, { attrs: { label: "居中", value: "center" } }), t(d, { attrs: { label: "居右", value: "right" } })], 1)], 1), t(i, { attrs: { label: "头部对齐方式", "label-width": "110px" } }, [t(b, { attrs: { placeholder: "对齐方式", clearable: "" }, model: { value: e.data.children.headerAlign, callback: function(a) {
1066
+ }, expression: "data.children.align" } }, [t("ElOption", { attrs: { label: "居左", value: "left" } }), t("ElOption", { attrs: { label: "居中", value: "center" } }), t("ElOption", { attrs: { label: "居右", value: "right" } })], 1)], 1), t("ElFormItem", { attrs: { label: "头部对齐方式", "label-width": "110px" } }, [t("ElSelect", { attrs: { placeholder: "对齐方式", clearable: "" }, model: { value: e.data.children.headerAlign, callback: function(a) {
772
1067
  e.$set(e.data.children, "headerAlign", a);
773
- }, expression: "data.children.headerAlign" } }, [t(d, { attrs: { label: "居左", value: "left" } }), t(d, { attrs: { label: "居中", value: "center" } }), t(d, { attrs: { label: "居右", value: "right" } })], 1)], 1), t(i, { attrs: { label: "表单格式" } }, [t(b, { attrs: { placeholder: "表单格式", clearable: "" }, model: { value: e.data.children.type, callback: function(a) {
1068
+ }, expression: "data.children.headerAlign" } }, [t("ElOption", { attrs: { label: "居左", value: "left" } }), t("ElOption", { attrs: { label: "居中", value: "center" } }), t("ElOption", { attrs: { label: "居右", value: "right" } })], 1)], 1), t("ElFormItem", { attrs: { label: "表单格式" } }, [t("ElSelect", { attrs: { placeholder: "表单格式", clearable: "" }, model: { value: e.data.children.type, callback: function(a) {
774
1069
  e.$set(e.data.children, "type", a);
775
- }, expression: "data.children.type" } }, [t(d, { attrs: { label: "表格", value: "" } }), t(d, { attrs: { label: "表单", value: "form" } })], 1)], 1), e.data.children.type === "form" ? t(i, { attrs: { label: "序号" } }, [t(c, { model: { value: e.data.children.index, callback: function(a) {
1070
+ }, expression: "data.children.type" } }, [t("ElOption", { attrs: { label: "表格", value: "" } }), t("ElOption", { attrs: { label: "表单", value: "form" } })], 1)], 1), e.data.children.type === "form" ? t("ElFormItem", { attrs: { label: "序号" } }, [t("ElSwitch", { model: { value: e.data.children.index, callback: function(a) {
776
1071
  e.$set(e.data.children, "index", a);
777
- }, expression: "data.children.index" } })], 1) : e._e(), t(i, { attrs: { label: "添加按钮" } }, [t(c, { model: { value: e.data.children.addBtn, callback: function(a) {
1072
+ }, expression: "data.children.index" } })], 1) : e._e(), t("ElFormItem", { attrs: { label: "添加按钮" } }, [t("ElSwitch", { model: { value: e.data.children.addBtn, callback: function(a) {
778
1073
  e.$set(e.data.children, "addBtn", a);
779
- }, expression: "data.children.addBtn" } })], 1), t(i, { attrs: { label: "删除按钮" } }, [t(c, { model: { value: e.data.children.delBtn, callback: function(a) {
1074
+ }, expression: "data.children.addBtn" } })], 1), t("ElFormItem", { attrs: { label: "删除按钮" } }, [t("ElSwitch", { model: { value: e.data.children.delBtn, callback: function(a) {
780
1075
  e.$set(e.data.children, "delBtn", a);
781
1076
  }, expression: "data.children.delBtn" } })], 1)], 1);
782
- }, qe = [], Le = /* @__PURE__ */ h(
783
- je,
784
- Ve,
785
- qe,
1077
+ }, ve = [], _e = /* @__PURE__ */ c(
1078
+ be,
1079
+ ge,
1080
+ ve,
786
1081
  !1,
787
1082
  null,
788
1083
  null
789
1084
  );
790
- const Ne = Le.exports, Ge = {
1085
+ const ye = _e.exports, Ee = {
791
1086
  name: "ConfigSwitch",
792
1087
  props: {
793
1088
  data: Object
@@ -801,24 +1096,24 @@ const Ne = Le.exports, Ge = {
801
1096
  }
802
1097
  }
803
1098
  };
804
- var He = function() {
1099
+ var xe = function() {
805
1100
  var e = this, t = e._self._c;
806
- return t("div", [t(i, { attrs: { label: "自定义" } }, [t(p, { staticClass: "danger", attrs: { type: "text" }, on: { click: e.handleDicClear } }, [e._v(" 清空 ")]), e._l(e.data.dicData, function(a, s) {
807
- return t("div", { key: s, staticClass: "dic" }, [t(r, { staticStyle: { "margin-right": "5px" }, attrs: { size: "mini", placeholder: "自定义文字", clearable: "" }, model: { value: a.label, callback: function(n) {
808
- e.$set(a, "label", n);
809
- }, expression: "item.label" } }), t(r, { attrs: { size: "mini", clearable: "", placeholder: "自定义值" }, model: { value: a.value, callback: function(n) {
810
- e.$set(a, "value", n);
1101
+ return t("div", [t("ElFormItem", { attrs: { label: "自定义" } }, [t("ElButton", { staticClass: "danger", attrs: { type: "text" }, on: { click: e.handleDicClear } }, [e._v(" 清空 ")]), e._l(e.data.dicData, function(a, i) {
1102
+ return t("div", { key: i, staticClass: "dic" }, [t("ElInput", { staticStyle: { "margin-right": "5px" }, attrs: { size: "mini", placeholder: "自定义文字", clearable: "" }, model: { value: a.label, callback: function(s) {
1103
+ e.$set(a, "label", s);
1104
+ }, expression: "item.label" } }), t("ElInput", { attrs: { size: "mini", clearable: "", placeholder: "自定义值" }, model: { value: a.value, callback: function(s) {
1105
+ e.$set(a, "value", s);
811
1106
  }, expression: "item.value" } })], 1);
812
1107
  })], 2)], 1);
813
- }, Ue = [], Je = /* @__PURE__ */ h(
814
- Ge,
815
- He,
816
- Ue,
1108
+ }, ke = [], $e = /* @__PURE__ */ c(
1109
+ Ee,
1110
+ xe,
1111
+ ke,
817
1112
  !1,
818
1113
  null,
819
1114
  "31aa4f25"
820
1115
  );
821
- const Ye = Je.exports, Xe = {
1116
+ const Ce = $e.exports, we = {
822
1117
  name: "ConfigRate",
823
1118
  props: {
824
1119
  data: Object
@@ -864,86 +1159,86 @@ const Ye = Je.exports, Xe = {
864
1159
  // }
865
1160
  }
866
1161
  };
867
- var Ze = function() {
1162
+ var Ie = function() {
868
1163
  var e = this, t = e._self._c;
869
- return t("div", [t(i, { attrs: { label: "最大星数" } }, [t(f, { attrs: { "controls-position": "right", placeholder: "最大星数" }, model: { value: e.data.max, callback: function(a) {
1164
+ return t("div", [t("ElFormItem", { attrs: { label: "最大星数" } }, [t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "最大星数" }, model: { value: e.data.max, callback: function(a) {
870
1165
  e.$set(e.data, "max", a);
871
- }, expression: "data.max" } })], 1), t(i, { attrs: { label: "是否显示文本", "label-width": "110px" } }, [t(c, { model: { value: e.data.showText, callback: function(a) {
1166
+ }, expression: "data.max" } })], 1), t("ElFormItem", { attrs: { label: "是否显示文本", "label-width": "110px" } }, [t("ElSwitch", { model: { value: e.data.showText, callback: function(a) {
872
1167
  e.$set(e.data, "showText", a);
873
- }, expression: "data.showText" } })], 1), e.data.showText ? t(i, { attrs: { label: "自定义文本", "label-width": "110px" } }, [e._l(e.data.texts, function(a, s) {
874
- return t(K, { key: s, attrs: { size: "small", closable: "" }, on: { close: function(n) {
1168
+ }, expression: "data.showText" } })], 1), e.data.showText ? t("ElFormItem", { attrs: { label: "自定义文本", "label-width": "110px" } }, [e._l(e.data.texts, function(a, i) {
1169
+ return t("ElTag", { key: i, attrs: { size: "small", closable: "" }, on: { close: function(s) {
875
1170
  return e.handleTextClose(a);
876
1171
  } } }, [e._v(" " + e._s(a) + " ")]);
877
- }), e.textVisible ? t(r, { ref: "textTag", staticClass: "input-new-tag", attrs: { size: "mini", clearable: "" }, on: { blur: e.handleTextConfirm }, nativeOn: { keyup: function(a) {
1172
+ }), e.textVisible ? t("ElInput", { ref: "textTag", staticClass: "input-new-tag", attrs: { size: "mini", clearable: "" }, on: { blur: e.handleTextConfirm }, nativeOn: { keyup: function(a) {
878
1173
  return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.handleTextConfirm.apply(null, arguments);
879
1174
  } }, model: { value: e.textValue, callback: function(a) {
880
1175
  e.textValue = a;
881
- }, expression: "textValue" } }) : e._e(), !e.textVisible && e.data.texts.length < e.data.max ? t(p, { staticStyle: { "margin-left": "5px" }, attrs: { size: "mini", icon: "el-icon-plus", circle: "" }, on: { click: e.showTextInput } }) : e._e()], 2) : e._e(), t(i, { attrs: { label: "自定义颜色", "label-width": "110px" } }, [e._l(e.data.colors, function(a, s) {
882
- return t(K, { key: s, style: { color: a }, attrs: { closable: "", size: "small" }, on: { close: function(n) {
1176
+ }, expression: "textValue" } }) : e._e(), !e.textVisible && e.data.texts.length < e.data.max ? t("ElButton", { staticStyle: { "margin-left": "5px" }, attrs: { size: "mini", icon: "el-icon-plus", circle: "" }, on: { click: e.showTextInput } }) : e._e()], 2) : e._e(), t("ElFormItem", { attrs: { label: "自定义颜色", "label-width": "110px" } }, [e._l(e.data.colors, function(a, i) {
1177
+ return t("ElTag", { key: i, style: { color: a }, attrs: { closable: "", size: "small" }, on: { close: function(s) {
883
1178
  return e.handleColorClose(a);
884
1179
  } } }, [e._v(" " + e._s(a) + " ")]);
885
- }), t(N, { staticClass: "color-picker", attrs: { size: "mini" }, on: { change: e.handleColorConfirm }, model: { value: e.colorValue, callback: function(a) {
1180
+ }), t("ElColorPicker", { staticClass: "color-picker", attrs: { size: "mini" }, on: { change: e.handleColorConfirm }, model: { value: e.colorValue, callback: function(a) {
886
1181
  e.colorValue = a;
887
1182
  }, expression: "colorValue" } })], 2)], 1);
888
- }, et = [], tt = /* @__PURE__ */ h(
889
- Xe,
890
- Ze,
891
- et,
1183
+ }, Fe = [], Se = /* @__PURE__ */ c(
1184
+ we,
1185
+ Ie,
1186
+ Fe,
892
1187
  !1,
893
1188
  null,
894
1189
  "befe1506"
895
1190
  );
896
- const at = tt.exports, lt = {
1191
+ const Ae = Se.exports, Oe = {
897
1192
  name: "ConfigSlider",
898
1193
  props: {
899
1194
  data: Object
900
1195
  }
901
1196
  };
902
- var st = function() {
1197
+ var Be = function() {
903
1198
  var e = this, t = e._self._c;
904
- return t("div", [t(i, { attrs: { label: "最小值" } }, [t(f, { attrs: { "controls-position": "right", placeholder: "最小值", max: e.data.max - 1, min: 0 }, model: { value: e.data.min, callback: function(a) {
1199
+ return t("div", [t("ElFormItem", { attrs: { label: "最小值" } }, [t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "最小值", max: e.data.max - 1, min: 0 }, model: { value: e.data.min, callback: function(a) {
905
1200
  e.$set(e.data, "min", a);
906
- }, expression: "data.min" } })], 1), t(i, { attrs: { label: "最大值" } }, [t(f, { attrs: { "controls-position": "right", placeholder: "最大值", min: e.data.min + 1 }, model: { value: e.data.max, callback: function(a) {
1201
+ }, expression: "data.min" } })], 1), t("ElFormItem", { attrs: { label: "最大值" } }, [t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "最大值", min: e.data.min + 1 }, model: { value: e.data.max, callback: function(a) {
907
1202
  e.$set(e.data, "max", a);
908
- }, expression: "data.max" } })], 1), t(i, { attrs: { label: "步长" } }, [t(f, { attrs: { "controls-position": "right", placeholder: "步长", min: 1, max: e.data.max - e.data.min }, model: { value: e.data.step, callback: function(a) {
1203
+ }, expression: "data.max" } })], 1), t("ElFormItem", { attrs: { label: "步长" } }, [t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "步长", min: 1, max: e.data.max - e.data.min }, model: { value: e.data.step, callback: function(a) {
909
1204
  e.$set(e.data, "step", a);
910
- }, expression: "data.step" } })], 1), t(i, { attrs: { label: "显示间隔点", "label-width": "100px" } }, [t(c, { model: { value: e.data.showStops, callback: function(a) {
1205
+ }, expression: "data.step" } })], 1), t("ElFormItem", { attrs: { label: "显示间隔点", "label-width": "100px" } }, [t("ElSwitch", { model: { value: e.data.showStops, callback: function(a) {
911
1206
  e.$set(e.data, "showStops", a);
912
- }, expression: "data.showStops" } })], 1), t(i, { attrs: { label: "显示输入框", "label-width": "100px" } }, [t(c, { model: { value: e.data.showInput, callback: function(a) {
1207
+ }, expression: "data.showStops" } })], 1), t("ElFormItem", { attrs: { label: "显示输入框", "label-width": "100px" } }, [t("ElSwitch", { model: { value: e.data.showInput, callback: function(a) {
913
1208
  e.$set(e.data, "showInput", a);
914
- }, expression: "data.showInput" } })], 1), t(i, { attrs: { label: "范围" } }, [t(c, { model: { value: e.data.range, callback: function(a) {
1209
+ }, expression: "data.showInput" } })], 1), t("ElFormItem", { attrs: { label: "范围" } }, [t("ElSwitch", { model: { value: e.data.range, callback: function(a) {
915
1210
  e.$set(e.data, "range", a);
916
1211
  }, expression: "data.range" } })], 1)], 1);
917
- }, it = [], nt = /* @__PURE__ */ h(
918
- lt,
919
- st,
920
- it,
1212
+ }, We = [], Te = /* @__PURE__ */ c(
1213
+ Oe,
1214
+ Be,
1215
+ We,
921
1216
  !1,
922
1217
  null,
923
1218
  null
924
1219
  );
925
- const ot = nt.exports, rt = {
1220
+ const ze = Te.exports, Re = {
926
1221
  name: "ConfigColor",
927
1222
  props: {
928
1223
  data: Object
929
1224
  }
930
1225
  };
931
- var ct = function() {
1226
+ var Pe = function() {
932
1227
  var e = this, t = e._self._c;
933
- return t("div", [t(i, { attrs: { label: "占位内容" } }, [t(r, { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
1228
+ return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
934
1229
  e.$set(e.data, "placeholder", a);
935
1230
  }, expression: "data.placeholder" } })], 1)], 1);
936
- }, dt = [], pt = /* @__PURE__ */ h(
937
- rt,
938
- ct,
939
- dt,
1231
+ }, Me = [], De = /* @__PURE__ */ c(
1232
+ Re,
1233
+ Pe,
1234
+ Me,
940
1235
  !1,
941
1236
  null,
942
1237
  null
943
1238
  );
944
- const ut = pt.exports, mt = {
1239
+ const Qe = De.exports, Ke = {
945
1240
  name: "ConfigSelect",
946
- components: { Draggable: S, MonacoEditor: g },
1241
+ components: { Draggable: b, MonacoEditor: f },
947
1242
  props: {
948
1243
  data: Object
949
1244
  },
@@ -985,7 +1280,7 @@ const ut = pt.exports, mt = {
985
1280
  dicFormatter: {
986
1281
  handler(l) {
987
1282
  try {
988
- this.data.dicFormatter = y(l);
1283
+ this.data.dicFormatter = u(l);
989
1284
  } catch {
990
1285
  }
991
1286
  }
@@ -1010,76 +1305,76 @@ const ut = pt.exports, mt = {
1010
1305
  }
1011
1306
  }
1012
1307
  };
1013
- var ht = function() {
1308
+ var je = function() {
1014
1309
  var e = this, t = e._self._c;
1015
- return t("div", [e.data.type === "select" ? t(i, { attrs: { label: "占位内容" } }, [t(r, { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
1310
+ return t("div", [e.data.type === "select" ? t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
1016
1311
  e.$set(e.data, "placeholder", a);
1017
- }, expression: "data.placeholder" } })], 1) : e._e(), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("字典配置:")]), t("div", { staticClass: "el-form-item__content" }, [t(Q, { attrs: { stretch: "" }, on: { "tab-click": e.handleTabClick }, model: { value: e.data.dicOption, callback: function(a) {
1312
+ }, expression: "data.placeholder" } })], 1) : e._e(), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("字典配置:")]), t("div", { staticClass: "el-form-item__content" }, [t("ElTabs", { attrs: { stretch: "" }, on: { "tab-click": e.handleTabClick }, model: { value: e.data.dicOption, callback: function(a) {
1018
1313
  e.$set(e.data, "dicOption", a);
1019
- }, expression: "data.dicOption" } }, [t(F, { attrs: { label: "静态数据", name: "static" } }, [t("Draggable", { attrs: { tag: "ul", list: e.data.dicData, group: { name: "dic" }, "ghost-class": "ghost", handle: ".drag-item" } }, e._l(e.data.dicData, function(a, s) {
1020
- return t("li", { key: s }, [t("i", { staticClass: "drag-item el-icon-s-operation", staticStyle: { margin: "0 5px", "font-size": "16px", cursor: "move" } }), t(r, { staticStyle: { "margin-right": "5px" }, attrs: { size: "mini", clearable: "", placeholder: "label" }, model: { value: a.label, callback: function(n) {
1021
- e.$set(a, "label", n);
1022
- }, expression: "item.label" } }), t(r, { style: { "margin-right": e.data.type === "select" ? "5px" : "0" }, attrs: { size: "mini", clearable: "", placeholder: "value" }, model: { value: a.value, callback: function(n) {
1023
- e.$set(a, "value", n);
1024
- }, expression: "item.value" } }), e.data.type === "select" ? t(r, { attrs: { size: "mini", clearable: "", placeholder: "描述" }, model: { value: a.desc, callback: function(n) {
1025
- e.$set(a, "desc", n);
1026
- }, expression: "item.desc" } }) : e._e(), t(p, { staticStyle: { "margin-left": "5px", padding: "4px" }, attrs: { circle: "", plain: "", type: "danger", size: "mini", icon: "el-icon-minus" }, on: { click: function(n) {
1027
- return e.handleRemoveFields(s);
1314
+ }, expression: "data.dicOption" } }, [t("ElTabPane", { attrs: { label: "静态数据", name: "static" } }, [t("Draggable", { attrs: { tag: "ul", list: e.data.dicData, group: { name: "dic" }, "ghost-class": "ghost", handle: ".drag-item" } }, e._l(e.data.dicData, function(a, i) {
1315
+ return t("li", { key: i }, [t("i", { staticClass: "drag-item el-icon-s-operation", staticStyle: { margin: "0 5px", "font-size": "16px", cursor: "move" } }), t("ElInput", { staticStyle: { "margin-right": "5px" }, attrs: { size: "mini", clearable: "", placeholder: "label" }, model: { value: a.label, callback: function(s) {
1316
+ e.$set(a, "label", s);
1317
+ }, expression: "item.label" } }), t("ElInput", { style: { "margin-right": e.data.type === "select" ? "5px" : "0" }, attrs: { size: "mini", clearable: "", placeholder: "value" }, model: { value: a.value, callback: function(s) {
1318
+ e.$set(a, "value", s);
1319
+ }, expression: "item.value" } }), e.data.type === "select" ? t("ElInput", { attrs: { size: "mini", clearable: "", placeholder: "描述" }, model: { value: a.desc, callback: function(s) {
1320
+ e.$set(a, "desc", s);
1321
+ }, expression: "item.desc" } }) : e._e(), t("ElButton", { staticStyle: { "margin-left": "5px", padding: "4px" }, attrs: { circle: "", plain: "", type: "danger", size: "mini", icon: "el-icon-minus" }, on: { click: function(s) {
1322
+ return e.handleRemoveFields(i);
1028
1323
  } } })], 1);
1029
- }), 0), t("div", { staticStyle: { "margin-left": "22px" } }, [t(p, { attrs: { type: "text" }, on: { click: e.handleAddFields } }, [e._v(" 添加列 ")])], 1)], 1), t(F, { attrs: { label: "远端数据", name: "remote" } }, [e._v(" 网址 "), t(r, { attrs: { size: "small", placeholder: "远端数据字典网址" }, model: { value: e.data.dicUrl, callback: function(a) {
1324
+ }), 0), t("div", { staticStyle: { "margin-left": "22px" } }, [t("ElButton", { attrs: { type: "text" }, on: { click: e.handleAddFields } }, [e._v(" 添加列 ")])], 1)], 1), t("ElTabPane", { attrs: { label: "远端数据", name: "remote" } }, [e._v(" 网址 "), t("ElInput", { attrs: { size: "small", placeholder: "远端数据字典网址" }, model: { value: e.data.dicUrl, callback: function(a) {
1030
1325
  e.$set(e.data, "dicUrl", a);
1031
- }, expression: "data.dicUrl" } }), e._v(" 远程搜索 "), t(c, { model: { value: e.data.remote, callback: function(a) {
1326
+ }, expression: "data.dicUrl" } }), e._v(" 远程搜索 "), t("ElSwitch", { model: { value: e.data.remote, callback: function(a) {
1032
1327
  e.$set(e.data, "remote", a);
1033
- }, expression: "data.remote" } }), t("br"), e._v(" 请求方法 "), t(b, { staticStyle: { width: "100%" }, attrs: { placeholder: "请求方法", size: "small" }, model: { value: e.data.dicMethod, callback: function(a) {
1328
+ }, expression: "data.remote" } }), t("br"), e._v(" 请求方法 "), t("ElSelect", { staticStyle: { width: "100%" }, attrs: { placeholder: "请求方法", size: "small" }, model: { value: e.data.dicMethod, callback: function(a) {
1034
1329
  e.$set(e.data, "dicMethod", a);
1035
- }, expression: "data.dicMethod" } }, [t(d, { attrs: { label: "POST", value: "post" } }), t(d, { attrs: { label: "GET", value: "get" } })], 1), e.data.dicMethod === "post" ? t("p", [e._v(" 请求参数 "), t(z, { attrs: { children: e.option }, model: { value: e.data.dicQueryConfig, callback: function(a) {
1330
+ }, expression: "data.dicMethod" } }, [t("ElOption", { attrs: { label: "POST", value: "post" } }), t("ElOption", { attrs: { label: "GET", value: "get" } })], 1), e.data.dicMethod === "post" ? t("p", [e._v(" 请求参数 "), t("FyDynamic", { attrs: { children: e.option }, model: { value: e.data.dicQueryConfig, callback: function(a) {
1036
1331
  e.$set(e.data, "dicQueryConfig", a);
1037
- }, expression: "data.dicQueryConfig" } })], 1) : e._e(), e.data.dicUrl ? t("p", [e._v(" 返回结构 "), t(g, { attrs: { height: "80", "key-index": `dict-formatter-${e.data.prop}`, options: e.options }, model: { value: e.dicFormatter, callback: function(a) {
1332
+ }, expression: "data.dicQueryConfig" } })], 1) : e._e(), e.data.dicUrl ? t("p", [e._v(" 返回结构 "), t("MonacoEditor", { attrs: { height: "80", "key-index": `dict-formatter-${e.data.prop}`, options: e.options }, model: { value: e.dicFormatter, callback: function(a) {
1038
1333
  e.dicFormatter = a;
1039
- }, expression: "dicFormatter" } })], 1) : e._e()], 1)], 1)], 1)]), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("字典key配置:")]), t("div", { staticClass: "el-form-item__content" }, [t("ul", e._l(e.data.props, function(a, s) {
1040
- return t("li", { key: s }, [t("span", { staticStyle: { width: "50px" } }, [e._v(e._s(s))]), t(r, { attrs: { size: "mini", clearable: "", placeholder: "key配置" }, model: { value: e.data.props[s], callback: function(n) {
1041
- e.$set(e.data.props, s, n);
1334
+ }, expression: "dicFormatter" } })], 1) : e._e()], 1)], 1)], 1)]), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("字典key配置:")]), t("div", { staticClass: "el-form-item__content" }, [t("ul", e._l(e.data.props, function(a, i) {
1335
+ return t("li", { key: i }, [t("span", { staticStyle: { width: "50px" } }, [e._v(e._s(i))]), t("ElInput", { attrs: { size: "mini", clearable: "", placeholder: "key配置" }, model: { value: e.data.props[i], callback: function(s) {
1336
+ e.$set(e.data.props, i, s);
1042
1337
  }, expression: "data.props[key]" } })], 1);
1043
- }), 0)])]), e.data.dicOption === "remote" ? t(i, { attrs: { label: "重新请求字典(crud)", "label-width": "150px" } }, [t(c, { model: { value: e.data.dicFlag, callback: function(a) {
1338
+ }), 0)])]), e.data.dicOption === "remote" ? t("ElFormItem", { attrs: { label: "重新请求字典(crud)", "label-width": "150px" } }, [t("ElSwitch", { model: { value: e.data.dicFlag, callback: function(a) {
1044
1339
  e.$set(e.data, "dicFlag", a);
1045
- }, expression: "data.dicFlag" } })], 1) : e._e(), e.data.type === "select" ? [t(i, { attrs: { label: "是否多选" } }, [t(c, { model: { value: e.data.multiple, callback: function(a) {
1340
+ }, expression: "data.dicFlag" } })], 1) : e._e(), e.data.type === "select" ? [t("ElFormItem", { attrs: { label: "是否多选" } }, [t("ElSwitch", { model: { value: e.data.multiple, callback: function(a) {
1046
1341
  e.$set(e.data, "multiple", a);
1047
- }, expression: "data.multiple" } })], 1), e.data.multiple ? t(i, { attrs: { label: "是否可拖拽", "label-width": "110px" }, scopedSlots: e._u([{ key: "label", fn: function() {
1048
- return [t($, { attrs: { underline: !1, href: "https://avuejs.com/form/form-select.html#%E6%8B%96%E6%8B%BD", target: "_blank" } }, [e._v(" 是否可拖拽 "), t("i", { staticClass: "el-icon-question" })])];
1049
- }, proxy: !0 }], null, !1, 2120444940) }, [t(c, { model: { value: e.data.drag, callback: function(a) {
1342
+ }, expression: "data.multiple" } })], 1), e.data.multiple ? t("ElFormItem", { attrs: { label: "是否可拖拽", "label-width": "110px" }, scopedSlots: e._u([{ key: "label", fn: function() {
1343
+ return [t("ElLink", { attrs: { underline: !1, href: "https://avuejs.com/form/form-select.html#%E6%8B%96%E6%8B%BD", target: "_blank" } }, [e._v(" 是否可拖拽 "), t("i", { staticClass: "el-icon-question" })])];
1344
+ }, proxy: !0 }], null, !1, 2120444940) }, [t("ElSwitch", { model: { value: e.data.drag, callback: function(a) {
1050
1345
  e.$set(e.data, "drag", a);
1051
- }, expression: "data.drag" } })], 1) : e._e(), e.data.multiple ? t(i, { attrs: { label: "多选数量限制", "label-width": "110px" } }, [t(f, { attrs: { "controls-position": "right", placeholder: "多选限制", min: 0, max: e.data.dicData.length }, model: { value: e.data.limit, callback: function(a) {
1346
+ }, expression: "data.drag" } })], 1) : e._e(), e.data.multiple ? t("ElFormItem", { attrs: { label: "多选数量限制", "label-width": "110px" } }, [t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "多选限制", min: 0, max: e.data.dicData.length }, model: { value: e.data.limit, callback: function(a) {
1052
1347
  e.$set(e.data, "limit", a);
1053
- }, expression: "data.limit" } })], 1) : e._e(), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("级联配置:")]), t("div", { staticClass: "el-form-item__content" }, [t("Draggable", { attrs: { tag: "ul", list: e.data.cascaderItem || e.data.cascader, group: { name: "cascaderItem" }, "ghost-class": "ghost", handle: ".drag-item" } }, e._l(e.data.cascaderItem || e.data.cascader, function(a, s) {
1054
- return t("li", { key: s }, [t("i", { staticClass: "drag-item el-icon-s-operation", staticStyle: { margin: "0 5px", "font-size": "16px", cursor: "move" } }), t(r, { attrs: { size: "mini", clearable: "", placeholder: "级联属性值" }, model: { value: e.data.cascader[s], callback: function(n) {
1055
- e.$set(e.data.cascader, s, n);
1056
- }, expression: "data.cascader[index]" } }), t(p, { staticStyle: { "margin-left": "5px", padding: "4px" }, attrs: { circle: "", plain: "", type: "danger", size: "mini", icon: "el-icon-minus" }, on: { click: function(n) {
1057
- return e.handleRemoveCascaderItemFields(s);
1348
+ }, expression: "data.limit" } })], 1) : e._e(), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("级联配置:")]), t("div", { staticClass: "el-form-item__content" }, [t("Draggable", { attrs: { tag: "ul", list: e.data.cascaderItem || e.data.cascader, group: { name: "cascaderItem" }, "ghost-class": "ghost", handle: ".drag-item" } }, e._l(e.data.cascaderItem || e.data.cascader, function(a, i) {
1349
+ return t("li", { key: i }, [t("i", { staticClass: "drag-item el-icon-s-operation", staticStyle: { margin: "0 5px", "font-size": "16px", cursor: "move" } }), t("ElInput", { attrs: { size: "mini", clearable: "", placeholder: "级联属性值" }, model: { value: e.data.cascader[i], callback: function(s) {
1350
+ e.$set(e.data.cascader, i, s);
1351
+ }, expression: "data.cascader[index]" } }), t("ElButton", { staticStyle: { "margin-left": "5px", padding: "4px" }, attrs: { circle: "", plain: "", type: "danger", size: "mini", icon: "el-icon-minus" }, on: { click: function(s) {
1352
+ return e.handleRemoveCascaderItemFields(i);
1058
1353
  } } })], 1);
1059
- }), 0), t("div", { staticStyle: { "margin-left": "22px" } }, [t(p, { attrs: { type: "text" }, on: { click: e.handleAddCascaderItemFields } }, [e._v(" 添加列 ")])], 1)], 1)]), (e.data.cascaderItem || e.data.cascader) && (e.data.cascaderItem || e.data.cascader).length > 0 ? t(i, { attrs: { label: "级联默认选中", "label-width": "110px" } }, [t(f, { attrs: { "controls-position": "right", placeholder: "级联默认选中", min: 0 }, model: { value: e.data.cascaderIndex, callback: function(a) {
1354
+ }), 0), t("div", { staticStyle: { "margin-left": "22px" } }, [t("ElButton", { attrs: { type: "text" }, on: { click: e.handleAddCascaderItemFields } }, [e._v(" 添加列 ")])], 1)], 1)]), (e.data.cascaderItem || e.data.cascader) && (e.data.cascaderItem || e.data.cascader).length > 0 ? t("ElFormItem", { attrs: { label: "级联默认选中", "label-width": "110px" } }, [t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "级联默认选中", min: 0 }, model: { value: e.data.cascaderIndex, callback: function(a) {
1060
1355
  e.$set(e.data, "cascaderIndex", a);
1061
- }, expression: "data.cascaderIndex" } })], 1) : e._e(), t(i, { attrs: { label: "是否可清空", "label-width": "110px" } }, [t(c, { model: { value: e.data.clearable, callback: function(a) {
1356
+ }, expression: "data.cascaderIndex" } })], 1) : e._e(), t("ElFormItem", { attrs: { label: "是否可清空", "label-width": "110px" } }, [t("ElSwitch", { model: { value: e.data.clearable, callback: function(a) {
1062
1357
  e.$set(e.data, "clearable", a);
1063
- }, expression: "data.clearable" } })], 1), t(i, { attrs: { label: "是否可搜索", "label-width": "110px" } }, [t(c, { model: { value: e.data.filterable, callback: function(a) {
1358
+ }, expression: "data.clearable" } })], 1), t("ElFormItem", { attrs: { label: "是否可搜索", "label-width": "110px" } }, [t("ElSwitch", { model: { value: e.data.filterable, callback: function(a) {
1064
1359
  e.$set(e.data, "filterable", a);
1065
- }, expression: "data.filterable" } })], 1)] : e._e(), ["radio", "checkbox"].includes(e.data.type) ? [e.data.button ? e._e() : t(i, { attrs: { label: "边框" } }, [t(c, { model: { value: e.data.border, callback: function(a) {
1360
+ }, expression: "data.filterable" } })], 1)] : e._e(), ["radio", "checkbox"].includes(e.data.type) ? [e.data.button ? e._e() : t("ElFormItem", { attrs: { label: "边框" } }, [t("ElSwitch", { model: { value: e.data.border, callback: function(a) {
1066
1361
  e.$set(e.data, "border", a);
1067
- }, expression: "data.border" } })], 1), e.data.border ? e._e() : t(i, { attrs: { label: "按钮" } }, [t(c, { model: { value: e.data.button, callback: function(a) {
1362
+ }, expression: "data.border" } })], 1), e.data.border ? e._e() : t("ElFormItem", { attrs: { label: "按钮" } }, [t("ElSwitch", { model: { value: e.data.button, callback: function(a) {
1068
1363
  e.$set(e.data, "button", a);
1069
- }, expression: "data.button" } })], 1)] : e._e(), e.data.border || e.data.button ? t(i, { attrs: { label: "尺寸" } }, [t(M, { attrs: { size: "mini" }, model: { value: e.data.size, callback: function(a) {
1364
+ }, expression: "data.button" } })], 1)] : e._e(), e.data.border || e.data.button ? t("ElFormItem", { attrs: { label: "尺寸" } }, [t("ElRadioGroup", { attrs: { size: "mini" }, model: { value: e.data.size, callback: function(a) {
1070
1365
  e.$set(e.data, "size", a);
1071
- }, expression: "data.size" } }, [t(A, { attrs: { label: "medium" } }, [e._v(" 正常 ")]), t(A, { attrs: { label: "small" } }, [e._v(" 小 ")]), t(A, { attrs: { label: "mini" } }, [e._v(" 超小 ")])], 1)], 1) : e._e()], 2);
1072
- }, ft = [], bt = /* @__PURE__ */ h(
1073
- mt,
1074
- ht,
1075
- ft,
1366
+ }, expression: "data.size" } }, [t("ElRadioButton", { attrs: { label: "medium" } }, [e._v(" 正常 ")]), t("ElRadioButton", { attrs: { label: "small" } }, [e._v(" 小 ")]), t("ElRadioButton", { attrs: { label: "mini" } }, [e._v(" 超小 ")])], 1)], 1) : e._e()], 2);
1367
+ }, Ne = [], Ve = /* @__PURE__ */ c(
1368
+ Ke,
1369
+ je,
1370
+ Ne,
1076
1371
  !1,
1077
1372
  null,
1078
1373
  null
1079
1374
  );
1080
- const gt = bt.exports, vt = {
1375
+ const qe = Ve.exports, Le = {
1081
1376
  name: "ConfigTree",
1082
- components: { MonacoEditor: g, Draggable: S },
1377
+ components: { MonacoEditor: f, Draggable: b },
1083
1378
  props: {
1084
1379
  data: Object
1085
1380
  },
@@ -1131,7 +1426,7 @@ const gt = bt.exports, vt = {
1131
1426
  dicFormatter: {
1132
1427
  handler(l) {
1133
1428
  try {
1134
- this.data.dicFormatter = y(l);
1429
+ this.data.dicFormatter = u(l);
1135
1430
  } catch {
1136
1431
  }
1137
1432
  }
@@ -1154,8 +1449,8 @@ const gt = bt.exports, vt = {
1154
1449
  this.selectData = l, this.dialogStatus = "add", this.dialogVisible = !0;
1155
1450
  },
1156
1451
  handleNodeRemove(l, e) {
1157
- const t = l.parent, a = t.data.children || t.data, s = a.findIndex((n) => n.id === e.id);
1158
- a.splice(s, 1);
1452
+ const t = l.parent, a = t.data.children || t.data, i = a.findIndex((s) => s.id === e.id);
1453
+ a.splice(i, 1);
1159
1454
  },
1160
1455
  handleDialogAdd() {
1161
1456
  this.$refs.dialogForm.validate((l) => {
@@ -1163,11 +1458,11 @@ const gt = bt.exports, vt = {
1163
1458
  const { label: e, value: t } = this.dialogForm;
1164
1459
  if (this.$refs.tree.getNode(t)) this.$message.error("value重复");
1165
1460
  else {
1166
- const s = this.selectData, n = {
1461
+ const i = this.selectData, s = {
1167
1462
  label: e,
1168
1463
  value: this.dialogInputType === "number" ? Number(t) : t
1169
1464
  };
1170
- s ? (s.children || this.$set(s, "children", []), s.children.push(n)) : this.$set(this.data.dicData, this.data.dicData.length, n), this.beforeClose();
1465
+ i ? (i.children || this.$set(i, "children", []), i.children.push(s)) : this.$set(this.data.dicData, this.data.dicData.length, s), this.beforeClose();
1171
1466
  }
1172
1467
  }
1173
1468
  });
@@ -1177,105 +1472,105 @@ const gt = bt.exports, vt = {
1177
1472
  }
1178
1473
  }
1179
1474
  };
1180
- var _t = function() {
1475
+ var Ge = function() {
1181
1476
  var e = this, t = e._self._c;
1182
- return t("div", [t(i, { attrs: { label: "占位内容" } }, [t(r, { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
1477
+ return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
1183
1478
  e.$set(e.data, "placeholder", a);
1184
- }, expression: "data.placeholder" } })], 1), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("字典配置:")]), t("div", { staticClass: "el-form-item__content" }, [t(Q, { attrs: { stretch: "" }, on: { "tab-click": e.handleTabClick }, model: { value: e.data.dicOption, callback: function(a) {
1479
+ }, expression: "data.placeholder" } })], 1), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("字典配置:")]), t("div", { staticClass: "el-form-item__content" }, [t("ElTabs", { attrs: { stretch: "" }, on: { "tab-click": e.handleTabClick }, model: { value: e.data.dicOption, callback: function(a) {
1185
1480
  e.$set(e.data, "dicOption", a);
1186
- }, expression: "data.dicOption" } }, [t(F, { attrs: { label: "静态数据", name: "static" } }, [t(oe, { ref: "tree", attrs: { data: e.data.dicData, "default-expand-all": "", draggable: "", "node-key": "value", "expand-on-click-node": !1 }, scopedSlots: e._u([{ key: "default", fn: function({ node: a, data: s }) {
1187
- return [t("span", { staticClass: "custom-tree-node" }, [t("span", [e._v(e._s(a.label))]), t("span", [t(p, { attrs: { type: "text", size: "mini", icon: "el-icon-plus" }, on: { click: function(n) {
1188
- return e.handleNodeAdd(s);
1189
- } } }), t(p, { staticClass: "danger", attrs: { type: "text", size: "mini", icon: "el-icon-delete" }, on: { click: function(n) {
1190
- return e.handleNodeRemove(a, s);
1481
+ }, expression: "data.dicOption" } }, [t("ElTabPane", { attrs: { label: "静态数据", name: "static" } }, [t("ElTree", { ref: "tree", attrs: { data: e.data.dicData, "default-expand-all": "", draggable: "", "node-key": "value", "expand-on-click-node": !1 }, scopedSlots: e._u([{ key: "default", fn: function({ node: a, data: i }) {
1482
+ return [t("span", { staticClass: "custom-tree-node" }, [t("span", [e._v(e._s(a.label))]), t("span", [t("ElButton", { attrs: { type: "text", size: "mini", icon: "el-icon-plus" }, on: { click: function(s) {
1483
+ return e.handleNodeAdd(i);
1484
+ } } }), t("ElButton", { staticClass: "danger", attrs: { type: "text", size: "mini", icon: "el-icon-delete" }, on: { click: function(s) {
1485
+ return e.handleNodeRemove(a, i);
1191
1486
  } } })], 1)])];
1192
- } }]) }), t("div", { staticStyle: { "margin-left": "22px" } }, [t(p, { attrs: { type: "text" }, on: { click: e.handleParentNodeAdd } }, [e._v(" 添加父级 ")])], 1)], 1), t(F, { attrs: { label: "远端数据", name: "remote" } }, [e._v(" 网址 "), t(r, { attrs: { size: "small", placeholder: "远端数据字典网址" }, model: { value: e.data.dicUrl, callback: function(a) {
1487
+ } }]) }), t("div", { staticStyle: { "margin-left": "22px" } }, [t("ElButton", { attrs: { type: "text" }, on: { click: e.handleParentNodeAdd } }, [e._v(" 添加父级 ")])], 1)], 1), t("ElTabPane", { attrs: { label: "远端数据", name: "remote" } }, [e._v(" 网址 "), t("ElInput", { attrs: { size: "small", placeholder: "远端数据字典网址" }, model: { value: e.data.dicUrl, callback: function(a) {
1193
1488
  e.$set(e.data, "dicUrl", a);
1194
- }, expression: "data.dicUrl" } }), e._v(" 远程搜索 "), t(c, { model: { value: e.data.remote, callback: function(a) {
1489
+ }, expression: "data.dicUrl" } }), e._v(" 远程搜索 "), t("ElSwitch", { model: { value: e.data.remote, callback: function(a) {
1195
1490
  e.$set(e.data, "remote", a);
1196
- }, expression: "data.remote" } }), t("br"), e._v(" 请求方法 "), t(b, { staticStyle: { width: "100%" }, attrs: { size: "small", placeholder: "请求方法" }, model: { value: e.data.dicMethod, callback: function(a) {
1491
+ }, expression: "data.remote" } }), t("br"), e._v(" 请求方法 "), t("ElSelect", { staticStyle: { width: "100%" }, attrs: { size: "small", placeholder: "请求方法" }, model: { value: e.data.dicMethod, callback: function(a) {
1197
1492
  e.$set(e.data, "dicMethod", a);
1198
- }, expression: "data.dicMethod" } }, [t(d, { attrs: { label: "POST", value: "post" } }), t(d, { attrs: { label: "GET", value: "get" } })], 1), e.data.dicMethod === "post" ? t("p", [e._v(" 请求参数 "), t(z, { attrs: { children: e.option }, model: { value: e.data.dicQueryConfig, callback: function(a) {
1493
+ }, expression: "data.dicMethod" } }, [t("ElOption", { attrs: { label: "POST", value: "post" } }), t("ElOption", { attrs: { label: "GET", value: "get" } })], 1), e.data.dicMethod === "post" ? t("p", [e._v(" 请求参数 "), t("FyDynamic", { attrs: { children: e.option }, model: { value: e.data.dicQueryConfig, callback: function(a) {
1199
1494
  e.$set(e.data, "dicQueryConfig", a);
1200
- }, expression: "data.dicQueryConfig" } })], 1) : e._e(), e.data.dicUrl ? t("p", [e._v(" 返回结构 "), t(g, { attrs: { height: "80", "key-index": `dict-formatter-${e.data.prop}`, options: e.options }, model: { value: e.dicFormatter, callback: function(a) {
1495
+ }, expression: "data.dicQueryConfig" } })], 1) : e._e(), e.data.dicUrl ? t("p", [e._v(" 返回结构 "), t("MonacoEditor", { attrs: { height: "80", "key-index": `dict-formatter-${e.data.prop}`, options: e.options }, model: { value: e.dicFormatter, callback: function(a) {
1201
1496
  e.dicFormatter = a;
1202
- }, expression: "dicFormatter" } })], 1) : e._e()], 1)], 1)], 1)]), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("字典key配置:")]), t("div", { staticClass: "el-form-item__content" }, [t("ul", e._l(e.data.props, function(a, s) {
1203
- return t("li", { key: s }, [t("span", { staticStyle: { width: "50px" } }, [e._v(e._s(s))]), t(r, { attrs: { size: "mini", placeholder: "key配置" }, model: { value: e.data.props[s], callback: function(n) {
1204
- e.$set(e.data.props, s, n);
1497
+ }, expression: "dicFormatter" } })], 1) : e._e()], 1)], 1)], 1)]), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("字典key配置:")]), t("div", { staticClass: "el-form-item__content" }, [t("ul", e._l(e.data.props, function(a, i) {
1498
+ return t("li", { key: i }, [t("span", { staticStyle: { width: "50px" } }, [e._v(e._s(i))]), t("ElInput", { attrs: { size: "mini", placeholder: "key配置" }, model: { value: e.data.props[i], callback: function(s) {
1499
+ e.$set(e.data.props, i, s);
1205
1500
  }, expression: "data.props[key]" } })], 1);
1206
- }), 0)])]), e.data.dicOption === "remote" ? t(i, { attrs: { label: "重新请求字典(crud)" } }, [t(c, { model: { value: e.data.dicFlag, callback: function(a) {
1501
+ }), 0)])]), e.data.dicOption === "remote" ? t("ElFormItem", { attrs: { label: "重新请求字典(crud)" } }, [t("ElSwitch", { model: { value: e.data.dicFlag, callback: function(a) {
1207
1502
  e.$set(e.data, "dicFlag", a);
1208
- }, expression: "data.dicFlag" } })], 1) : e._e(), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("级联配置:")]), t("div", { staticClass: "el-form-item__content" }, [t("Draggable", { attrs: { tag: "ul", list: e.data.cascaderItem || e.data.cascader, group: { name: "cascaderItem" }, "ghost-class": "ghost", handle: ".drag-item" } }, e._l(e.data.cascaderItem || e.data.cascader, function(a, s) {
1209
- return t("li", { key: s }, [t("i", { staticClass: "drag-item el-icon-s-operation", staticStyle: { margin: "0 5px", "font-size": "16px", cursor: "move" } }), t(r, { attrs: { size: "mini", clearable: "", placeholder: "级联属性值" }, model: { value: e.data.cascader[s], callback: function(n) {
1210
- e.$set(e.data.cascader, s, n);
1211
- }, expression: "data.cascader[index]" } }), t(p, { staticStyle: { "margin-left": "5px", padding: "4px" }, attrs: { circle: "", plain: "", type: "danger", size: "mini", icon: "el-icon-minus" }, on: { click: function(n) {
1212
- return e.handleRemoveCascaderItemFields(s);
1503
+ }, expression: "data.dicFlag" } })], 1) : e._e(), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("级联配置:")]), t("div", { staticClass: "el-form-item__content" }, [t("Draggable", { attrs: { tag: "ul", list: e.data.cascaderItem || e.data.cascader, group: { name: "cascaderItem" }, "ghost-class": "ghost", handle: ".drag-item" } }, e._l(e.data.cascaderItem || e.data.cascader, function(a, i) {
1504
+ return t("li", { key: i }, [t("i", { staticClass: "drag-item el-icon-s-operation", staticStyle: { margin: "0 5px", "font-size": "16px", cursor: "move" } }), t("ElInput", { attrs: { size: "mini", clearable: "", placeholder: "级联属性值" }, model: { value: e.data.cascader[i], callback: function(s) {
1505
+ e.$set(e.data.cascader, i, s);
1506
+ }, expression: "data.cascader[index]" } }), t("ElButton", { staticStyle: { "margin-left": "5px", padding: "4px" }, attrs: { circle: "", plain: "", type: "danger", size: "mini", icon: "el-icon-minus" }, on: { click: function(s) {
1507
+ return e.handleRemoveCascaderItemFields(i);
1213
1508
  } } })], 1);
1214
- }), 0), t("div", { staticStyle: { "margin-left": "22px" } }, [t(p, { attrs: { type: "text" }, on: { click: e.handleAddCascaderItemFields } }, [e._v(" 添加列 ")])], 1)], 1)]), e.data.type === "tree" ? [t(i, { attrs: { label: "当有子级时,是否可选择父级", "label-width": "200px" } }, [t(c, { model: { value: e.data.parent, callback: function(a) {
1509
+ }), 0), t("div", { staticStyle: { "margin-left": "22px" } }, [t("ElButton", { attrs: { type: "text" }, on: { click: e.handleAddCascaderItemFields } }, [e._v(" 添加列 ")])], 1)], 1)]), e.data.type === "tree" ? [t("ElFormItem", { attrs: { label: "当有子级时,是否可选择父级", "label-width": "200px" } }, [t("ElSwitch", { model: { value: e.data.parent, callback: function(a) {
1215
1510
  e.$set(e.data, "parent", a);
1216
- }, expression: "data.parent" } })], 1)] : e._e(), e.data.type === "cascader" ? [t(i, { attrs: { label: "选项分隔符", "label-width": "100px" } }, [t(r, { attrs: { clearable: "", placeholder: "选项分隔符" }, model: { value: e.data.separator, callback: function(a) {
1511
+ }, expression: "data.parent" } })], 1)] : e._e(), e.data.type === "cascader" ? [t("ElFormItem", { attrs: { label: "选项分隔符", "label-width": "100px" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "选项分隔符" }, model: { value: e.data.separator, callback: function(a) {
1217
1512
  e.$set(e.data, "separator", a);
1218
- }, expression: "data.separator" } })], 1), t(i, { attrs: { label: "是否显示选中值的完整路径", "label-width": "200px" } }, [t(c, { model: { value: e.data.showAllLevels, callback: function(a) {
1513
+ }, expression: "data.separator" } })], 1), t("ElFormItem", { attrs: { label: "是否显示选中值的完整路径", "label-width": "200px" } }, [t("ElSwitch", { model: { value: e.data.showAllLevels, callback: function(a) {
1219
1514
  e.$set(e.data, "showAllLevels", a);
1220
- }, expression: "data.showAllLevels" } })], 1), t(i, { attrs: { label: "是否可搜索", "label-width": "100px" } }, [t(c, { model: { value: e.data.filterable, callback: function(a) {
1515
+ }, expression: "data.showAllLevels" } })], 1), t("ElFormItem", { attrs: { label: "是否可搜索", "label-width": "100px" } }, [t("ElSwitch", { model: { value: e.data.filterable, callback: function(a) {
1221
1516
  e.$set(e.data, "filterable", a);
1222
- }, expression: "data.filterable" } })], 1)] : e._e(), t(i, { attrs: { label: "是否多选" } }, [t(c, { model: { value: e.data.multiple, callback: function(a) {
1517
+ }, expression: "data.filterable" } })], 1)] : e._e(), t("ElFormItem", { attrs: { label: "是否多选" } }, [t("ElSwitch", { model: { value: e.data.multiple, callback: function(a) {
1223
1518
  e.$set(e.data, "multiple", a);
1224
- }, expression: "data.multiple" } })], 1), e.data.type === "tree" && e.data.multiple ? t(i, { attrs: { label: "勾选时,父子不关联", "label-width": "160px" } }, [t(c, { model: { value: e.data.checkStrictly, callback: function(a) {
1519
+ }, expression: "data.multiple" } })], 1), e.data.type === "tree" && e.data.multiple ? t("ElFormItem", { attrs: { label: "勾选时,父子不关联", "label-width": "160px" } }, [t("ElSwitch", { model: { value: e.data.checkStrictly, callback: function(a) {
1225
1520
  e.$set(e.data, "checkStrictly", a);
1226
- }, expression: "data.checkStrictly" } })], 1) : e._e(), t(ne, { attrs: { visible: e.dialogVisible, rules: e.dialogRules, "before-close": e.beforeClose }, on: { "update:visible": function(a) {
1521
+ }, expression: "data.checkStrictly" } })], 1) : e._e(), t("ElementDialog", { attrs: { visible: e.dialogVisible, rules: e.dialogRules, "before-close": e.beforeClose }, on: { "update:visible": function(a) {
1227
1522
  e.dialogVisible = a;
1228
1523
  } }, scopedSlots: e._u([{ key: "footer", fn: function() {
1229
- return [t(p, { on: { click: function(a) {
1524
+ return [t("ElButton", { on: { click: function(a) {
1230
1525
  e.dialogVisible = !1;
1231
- } } }, [e._v(" 取 消 ")]), e.dialogStatus === "add" ? t(p, { attrs: { type: "primary" }, on: { click: e.handleDialogAdd } }, [e._v(" 确 定 ")]) : e._e()];
1232
- }, proxy: !0 }]) }, [t(I, { ref: "dialogForm", attrs: { model: e.dialogForm, "label-width": "80px" } }, [t(i, { attrs: { label: "label" } }, [t(r, { attrs: { placeholder: "label" }, model: { value: e.dialogForm.label, callback: function(a) {
1526
+ } } }, [e._v(" 取 消 ")]), e.dialogStatus === "add" ? t("ElButton", { attrs: { type: "primary" }, on: { click: e.handleDialogAdd } }, [e._v(" 确 定 ")]) : e._e()];
1527
+ }, proxy: !0 }]) }, [t("ElForm", { ref: "dialogForm", attrs: { model: e.dialogForm, "label-width": "80px" } }, [t("ElFormItem", { attrs: { label: "label" } }, [t("ElInput", { attrs: { placeholder: "label" }, model: { value: e.dialogForm.label, callback: function(a) {
1233
1528
  e.$set(e.dialogForm, "label", a);
1234
- }, expression: "dialogForm.label" } })], 1), t(i, { attrs: { label: "value" } }, [t(r, { attrs: { placeholder: "value", type: e.dialogInputType }, scopedSlots: e._u([{ key: "append", fn: function() {
1235
- return [t(b, { staticStyle: { width: "100px" }, attrs: { placeholder: "数据类型" }, model: { value: e.dialogInputType, callback: function(a) {
1529
+ }, expression: "dialogForm.label" } })], 1), t("ElFormItem", { attrs: { label: "value" } }, [t("ElInput", { attrs: { placeholder: "value", type: e.dialogInputType }, scopedSlots: e._u([{ key: "append", fn: function() {
1530
+ return [t("ElSelect", { staticStyle: { width: "100px" }, attrs: { placeholder: "数据类型" }, model: { value: e.dialogInputType, callback: function(a) {
1236
1531
  e.dialogInputType = a;
1237
- }, expression: "dialogInputType" } }, [t(d, { attrs: { label: "String", value: "text" } }), t(d, { attrs: { label: "Number", value: "number" } })], 1)];
1532
+ }, expression: "dialogInputType" } }, [t("ElOption", { attrs: { label: "String", value: "text" } }), t("ElOption", { attrs: { label: "Number", value: "number" } })], 1)];
1238
1533
  }, proxy: !0 }]), model: { value: e.dialogForm.value, callback: function(a) {
1239
1534
  e.$set(e.dialogForm, "value", a);
1240
1535
  }, expression: "dialogForm.value" } })], 1)], 1)], 1)], 2);
1241
- }, yt = [], xt = /* @__PURE__ */ h(
1242
- vt,
1243
- _t,
1244
- yt,
1536
+ }, He = [], Ue = /* @__PURE__ */ c(
1537
+ Le,
1538
+ Ge,
1539
+ He,
1245
1540
  !1,
1246
1541
  null,
1247
1542
  "8d588d56"
1248
1543
  );
1249
- const $t = xt.exports, kt = {
1544
+ const Je = Ue.exports, Ye = {
1250
1545
  name: "ConfigDate",
1251
1546
  props: {
1252
1547
  data: Object
1253
1548
  }
1254
1549
  };
1255
- var Ct = function() {
1550
+ var Xe = function() {
1256
1551
  var e = this, t = e._self._c;
1257
- return t("div", [e.data.type.indexOf("range") !== -1 ? [t(i, { attrs: { label: "开始占位内容", "label-width": "110px" } }, [t(r, { attrs: { clearable: "", placeholder: "开始占位内容" }, model: { value: e.data.startPlaceholder, callback: function(a) {
1552
+ return t("div", [e.data.type.indexOf("range") !== -1 ? [t("ElFormItem", { attrs: { label: "开始占位内容", "label-width": "110px" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "开始占位内容" }, model: { value: e.data.startPlaceholder, callback: function(a) {
1258
1553
  e.$set(e.data, "startPlaceholder", a);
1259
- }, expression: "data.startPlaceholder" } })], 1), t(i, { attrs: { label: "结束占位内容", "label-width": "110px" } }, [t(r, { attrs: { clearable: "", placeholder: "结束占位内容" }, model: { value: e.data.endPlaceholder, callback: function(a) {
1554
+ }, expression: "data.startPlaceholder" } })], 1), t("ElFormItem", { attrs: { label: "结束占位内容", "label-width": "110px" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "结束占位内容" }, model: { value: e.data.endPlaceholder, callback: function(a) {
1260
1555
  e.$set(e.data, "endPlaceholder", a);
1261
- }, expression: "data.endPlaceholder" } })], 1)] : t(i, { attrs: { label: "占位内容" } }, [t(r, { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
1556
+ }, expression: "data.endPlaceholder" } })], 1)] : t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
1262
1557
  e.$set(e.data, "placeholder", a);
1263
- }, expression: "data.placeholder" } })], 1), t(i, { attrs: { label: "显示格式化", "label-width": "100px" } }, [t(r, { attrs: { clearable: "", placeholder: "显示格式化" }, model: { value: e.data.format, callback: function(a) {
1558
+ }, expression: "data.placeholder" } })], 1), t("ElFormItem", { attrs: { label: "显示格式化", "label-width": "100px" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "显示格式化" }, model: { value: e.data.format, callback: function(a) {
1264
1559
  e.$set(e.data, "format", a);
1265
- }, expression: "data.format" } })], 1), t(i, { attrs: { label: "值格式化" } }, [t(r, { attrs: { clearable: "", placeholder: "值格式化" }, model: { value: e.data.valueFormat, callback: function(a) {
1560
+ }, expression: "data.format" } })], 1), t("ElFormItem", { attrs: { label: "值格式化" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "值格式化" }, model: { value: e.data.valueFormat, callback: function(a) {
1266
1561
  e.$set(e.data, "valueFormat", a);
1267
- }, expression: "data.valueFormat" } })], 1), ["timerange", "daterange", "datetimerange"].includes(e.data.type) ? t(i, { attrs: { label: "取消范围联动", "label-width": "110px" } }, [t(c, { model: { value: e.data.unlinkPanels, callback: function(a) {
1562
+ }, expression: "data.valueFormat" } })], 1), ["timerange", "daterange", "datetimerange"].includes(e.data.type) ? t("ElFormItem", { attrs: { label: "取消范围联动", "label-width": "110px" } }, [t("ElSwitch", { model: { value: e.data.unlinkPanels, callback: function(a) {
1268
1563
  e.$set(e.data, "unlinkPanels", a);
1269
1564
  }, expression: "data.unlinkPanels" } })], 1) : e._e()], 2);
1270
- }, wt = [], At = /* @__PURE__ */ h(
1271
- kt,
1272
- Ct,
1273
- wt,
1565
+ }, Ze = [], et = /* @__PURE__ */ c(
1566
+ Ye,
1567
+ Xe,
1568
+ Ze,
1274
1569
  !1,
1275
1570
  null,
1276
1571
  null
1277
1572
  );
1278
- const Ft = At.exports, St = {
1573
+ const tt = et.exports, at = {
1279
1574
  name: "ConfigUpload",
1280
1575
  props: {
1281
1576
  data: Object
@@ -1314,74 +1609,74 @@ const Ft = At.exports, St = {
1314
1609
  }
1315
1610
  }
1316
1611
  };
1317
- var Ot = function() {
1612
+ var lt = function() {
1318
1613
  var e = this, t = e._self._c;
1319
- return t("div", [e.data.oss ? e._e() : t(i, { attrs: { label: "上传地址" } }, [t(r, { attrs: { clearable: "", placeholder: "上传地址" }, model: { value: e.data.action, callback: function(a) {
1614
+ return t("div", [e.data.oss ? e._e() : t("ElFormItem", { attrs: { label: "上传地址" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "上传地址" }, model: { value: e.data.action, callback: function(a) {
1320
1615
  e.$set(e.data, "action", a);
1321
- }, expression: "data.action" } })], 1), e.data.oss ? e._e() : t(i, { attrs: { label: "接受文件类型", "label-width": "110px" } }, [t(r, { attrs: { clearable: "", placeholder: "接受文件类型,如:image/png,image/jpg" }, model: { value: e.data.accept, callback: function(a) {
1616
+ }, expression: "data.action" } })], 1), e.data.oss ? e._e() : t("ElFormItem", { attrs: { label: "接受文件类型", "label-width": "110px" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "接受文件类型,如:image/png,image/jpg" }, model: { value: e.data.accept, callback: function(a) {
1322
1617
  e.$set(e.data, "accept", a);
1323
- }, expression: "data.accept" } })], 1), t(i, { attrs: { label: "OSS" }, scopedSlots: e._u([{ key: "label", fn: function() {
1324
- return [t($, { attrs: { underline: !1, href: "https://avuejs.com/form/form-upload.html#%E9%98%BF%E9%87%8C%E4%BA%91oss%E4%B8%8A%E4%BC%A0", target: "_blank" } }, [e._v(" OSS "), t("i", { staticClass: "el-icon-question" })])];
1325
- }, proxy: !0 }]) }, [t(b, { staticStyle: { width: "100%" }, attrs: { placeholder: "oss不写则为普通上传", clearable: "" }, model: { value: e.data.oss, callback: function(a) {
1618
+ }, expression: "data.accept" } })], 1), t("ElFormItem", { attrs: { label: "OSS" }, scopedSlots: e._u([{ key: "label", fn: function() {
1619
+ return [t("ElLink", { attrs: { underline: !1, href: "https://avuejs.com/form/form-upload.html#%E9%98%BF%E9%87%8C%E4%BA%91oss%E4%B8%8A%E4%BC%A0", target: "_blank" } }, [e._v(" OSS "), t("i", { staticClass: "el-icon-question" })])];
1620
+ }, proxy: !0 }]) }, [t("ElSelect", { staticStyle: { width: "100%" }, attrs: { placeholder: "oss不写则为普通上传", clearable: "" }, model: { value: e.data.oss, callback: function(a) {
1326
1621
  e.$set(e.data, "oss", a);
1327
- }, expression: "data.oss" } }, [t(d, { attrs: { label: "阿里", value: "ali" } }), t(d, { attrs: { label: "七牛", value: "qiniu" } })], 1)], 1), t(i, { attrs: { label: "拖拽上传", "label-width": "110px" } }, [t(c, { model: { value: e.data.dragFile, callback: function(a) {
1622
+ }, expression: "data.oss" } }, [t("ElOption", { attrs: { label: "阿里", value: "ali" } }), t("ElOption", { attrs: { label: "七牛", value: "qiniu" } })], 1)], 1), t("ElFormItem", { attrs: { label: "拖拽上传", "label-width": "110px" } }, [t("ElSwitch", { model: { value: e.data.dragFile, callback: function(a) {
1328
1623
  e.$set(e.data, "dragFile", a);
1329
- }, expression: "data.dragFile" } })], 1), e.data.dragFile ? e._e() : t(i, { attrs: { label: "文件列表类型", "label-width": "110px" } }, [t(b, { attrs: { placeholder: "文件列表类型", clearable: "" }, model: { value: e.data.listType, callback: function(a) {
1624
+ }, expression: "data.dragFile" } })], 1), e.data.dragFile ? e._e() : t("ElFormItem", { attrs: { label: "文件列表类型", "label-width": "110px" } }, [t("ElSelect", { attrs: { placeholder: "文件列表类型", clearable: "" }, model: { value: e.data.listType, callback: function(a) {
1330
1625
  e.$set(e.data, "listType", a);
1331
- }, expression: "data.listType" } }, [t(d, { attrs: { label: "附件", value: "text" } }), t(d, { attrs: { label: "照片墙", value: "picture-card" } }), t(d, { attrs: { label: "头像", value: "picture-img" } }), t(d, { attrs: { label: "缩略图", value: "picture" } })], 1)], 1), t(i, { attrs: { label: "拖拽排序", "label-width": "110px" } }, [t(c, { model: { value: e.data.drag, callback: function(a) {
1626
+ }, expression: "data.listType" } }, [t("ElOption", { attrs: { label: "附件", value: "text" } }), t("ElOption", { attrs: { label: "照片墙", value: "picture-card" } }), t("ElOption", { attrs: { label: "头像", value: "picture-img" } }), t("ElOption", { attrs: { label: "缩略图", value: "picture" } })], 1)], 1), t("ElFormItem", { attrs: { label: "拖拽排序", "label-width": "110px" } }, [t("ElSwitch", { model: { value: e.data.drag, callback: function(a) {
1332
1627
  e.$set(e.data, "drag", a);
1333
- }, expression: "data.drag" } })], 1), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("参数设置:")]), t("div", { staticClass: "el-form-item__content" }, [e._v(" 请求头 "), t(z, { attrs: { children: e.option }, model: { value: e.data.headersConfig, callback: function(a) {
1628
+ }, expression: "data.drag" } })], 1), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("参数设置:")]), t("div", { staticClass: "el-form-item__content" }, [e._v(" 请求头 "), t("FyDynamic", { attrs: { children: e.option }, model: { value: e.data.headersConfig, callback: function(a) {
1334
1629
  e.$set(e.data, "headersConfig", a);
1335
- }, expression: "data.headersConfig" } }), e._v(" 请求体 "), t(z, { attrs: { children: e.option }, model: { value: e.data.dataConfig, callback: function(a) {
1630
+ }, expression: "data.headersConfig" } }), e._v(" 请求体 "), t("FyDynamic", { attrs: { children: e.option }, model: { value: e.data.dataConfig, callback: function(a) {
1336
1631
  e.$set(e.data, "dataConfig", a);
1337
- }, expression: "data.dataConfig" } })], 1)]), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [t($, { attrs: { underline: !1, href: "https://avuejs.com/form/form-upload.html", target: "_blank" } }, [e._v("上传参数设置 "), t("i", { staticClass: "el-icon-question" })])], 1), t("div", { staticClass: "el-form-item__content" }, [e._v(" 上传成功返回结构体的图片地址 "), t(r, { attrs: { size: "small", placeholder: "上传成功返回结构体的图片地址" }, model: { value: e.data.propsHttp.url, callback: function(a) {
1632
+ }, expression: "data.dataConfig" } })], 1)]), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [t("ElLink", { attrs: { underline: !1, href: "https://avuejs.com/form/form-upload.html", target: "_blank" } }, [e._v("上传参数设置 "), t("i", { staticClass: "el-icon-question" })])], 1), t("div", { staticClass: "el-form-item__content" }, [e._v(" 上传成功返回结构体的图片地址 "), t("ElInput", { attrs: { size: "small", placeholder: "上传成功返回结构体的图片地址" }, model: { value: e.data.propsHttp.url, callback: function(a) {
1338
1633
  e.$set(e.data.propsHttp, "url", a);
1339
- }, expression: "data.propsHttp.url" } }), e._v(" 上传成功返回结构体的图片的姓名 "), t(r, { attrs: { size: "small", placeholder: "上传成功返回结构体的图片的姓名" }, model: { value: e.data.propsHttp.name, callback: function(a) {
1634
+ }, expression: "data.propsHttp.url" } }), e._v(" 上传成功返回结构体的图片的姓名 "), t("ElInput", { attrs: { size: "small", placeholder: "上传成功返回结构体的图片的姓名" }, model: { value: e.data.propsHttp.name, callback: function(a) {
1340
1635
  e.$set(e.data.propsHttp, "name", a);
1341
- }, expression: "data.propsHttp.name" } }), e._v(" 返回结构体的层次 "), t(r, { attrs: { size: "small", placeholder: "返回结构体的层次" }, model: { value: e.data.propsHttp.res, callback: function(a) {
1636
+ }, expression: "data.propsHttp.name" } }), e._v(" 返回结构体的层次 "), t("ElInput", { attrs: { size: "small", placeholder: "返回结构体的层次" }, model: { value: e.data.propsHttp.res, callback: function(a) {
1342
1637
  e.$set(e.data.propsHttp, "res", a);
1343
- }, expression: "data.propsHttp.res" } }), e._v(" 文件名称 "), t(r, { attrs: { size: "small", placeholder: "文件名称,默认file" }, model: { value: e.data.propsHttp.fileName, callback: function(a) {
1638
+ }, expression: "data.propsHttp.res" } }), e._v(" 文件名称 "), t("ElInput", { attrs: { size: "small", placeholder: "文件名称,默认file" }, model: { value: e.data.propsHttp.fileName, callback: function(a) {
1344
1639
  e.$set(e.data.propsHttp, "fileName", a);
1345
- }, expression: "data.propsHttp.fileName" } })], 1)]), t(i, { attrs: { label: "是否显示已上传文件列表", "label-width": "180px" } }, [t(c, { model: { value: e.data.showFileList, callback: function(a) {
1640
+ }, expression: "data.propsHttp.fileName" } })], 1)]), t("ElFormItem", { attrs: { label: "是否显示已上传文件列表", "label-width": "180px" } }, [t("ElSwitch", { model: { value: e.data.showFileList, callback: function(a) {
1346
1641
  e.$set(e.data, "showFileList", a);
1347
- }, expression: "data.showFileList" } })], 1), t(i, { attrs: { label: "文件大小" } }, [t(f, { staticStyle: { width: "100%" }, attrs: { "controls-position": "right", placeholder: "文件大小限制(字节)", min: 0 }, model: { value: e.data.fileSize, callback: function(a) {
1642
+ }, expression: "data.showFileList" } })], 1), t("ElFormItem", { attrs: { label: "文件大小" } }, [t("ElInputNumber", { staticStyle: { width: "100%" }, attrs: { "controls-position": "right", placeholder: "文件大小限制(字节)", min: 0 }, model: { value: e.data.fileSize, callback: function(a) {
1348
1643
  e.$set(e.data, "fileSize", a);
1349
- }, expression: "data.fileSize" } })], 1), t(i, { attrs: { label: "上传限制提示", "label-width": "110px" } }, [t(r, { attrs: { clearable: "", placeholder: "上传限制提示" }, model: { value: e.data.tip, callback: function(a) {
1644
+ }, expression: "data.fileSize" } })], 1), t("ElFormItem", { attrs: { label: "上传限制提示", "label-width": "110px" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "上传限制提示" }, model: { value: e.data.tip, callback: function(a) {
1350
1645
  e.$set(e.data, "tip", a);
1351
- }, expression: "data.tip" } })], 1), t(i, { attrs: { label: "上传中提示", "label-width": "110px" } }, [t(r, { attrs: { clearable: "", placeholder: "上传中提示" }, model: { value: e.data.loadText, callback: function(a) {
1646
+ }, expression: "data.tip" } })], 1), t("ElFormItem", { attrs: { label: "上传中提示", "label-width": "110px" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "上传中提示" }, model: { value: e.data.loadText, callback: function(a) {
1352
1647
  e.$set(e.data, "loadText", a);
1353
- }, expression: "data.loadText" } })], 1), t(i, { attrs: { label: "是否多文件上传", "label-width": "130px" } }, [t(c, { model: { value: e.data.multiple, callback: function(a) {
1648
+ }, expression: "data.loadText" } })], 1), t("ElFormItem", { attrs: { label: "是否多文件上传", "label-width": "130px" } }, [t("ElSwitch", { model: { value: e.data.multiple, callback: function(a) {
1354
1649
  e.$set(e.data, "multiple", a);
1355
- }, expression: "data.multiple" } })], 1), e.data.multiple ? t(i, { attrs: { label: "多文件数量限制", "label-width": "130px" } }, [t(f, { staticStyle: { width: "100%" }, attrs: { "controls-position": "right", placeholder: "多文件上传数量限制", min: 1 }, model: { value: e.data.limit, callback: function(a) {
1650
+ }, expression: "data.multiple" } })], 1), e.data.multiple ? t("ElFormItem", { attrs: { label: "多文件数量限制", "label-width": "130px" } }, [t("ElInputNumber", { staticStyle: { width: "100%" }, attrs: { "controls-position": "right", placeholder: "多文件上传数量限制", min: 1 }, model: { value: e.data.limit, callback: function(a) {
1356
1651
  e.$set(e.data, "limit", a);
1357
- }, expression: "data.limit" } })], 1) : e._e(), t(i, { attrs: { label: "水印配置,开启后只能上传图片", "label-width": "230px" } }, [t(c, { model: { value: e.data.showCanvas, callback: function(a) {
1652
+ }, expression: "data.limit" } })], 1) : e._e(), t("ElFormItem", { attrs: { label: "水印配置,开启后只能上传图片", "label-width": "230px" } }, [t("ElSwitch", { model: { value: e.data.showCanvas, callback: function(a) {
1358
1653
  e.$set(e.data, "showCanvas", a);
1359
- }, expression: "data.showCanvas" } })], 1), e.data.canvasOption ? t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("水印设置:")]), t("div", { staticClass: "el-form-item__content" }, [e._v(" 水印文字 "), t(r, { attrs: { size: "small", clearable: "", placeholder: "水印文字" }, model: { value: e.data.canvasOption.text, callback: function(a) {
1654
+ }, expression: "data.showCanvas" } })], 1), e.data.canvasOption ? t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("水印设置:")]), t("div", { staticClass: "el-form-item__content" }, [e._v(" 水印文字 "), t("ElInput", { attrs: { size: "small", clearable: "", placeholder: "水印文字" }, model: { value: e.data.canvasOption.text, callback: function(a) {
1360
1655
  e.$set(e.data.canvasOption, "text", a);
1361
- }, expression: "data.canvasOption.text" } }), e._v(" 字体类型 "), t(r, { attrs: { size: "small", clearable: "", placeholder: "字体类型" }, model: { value: e.data.canvasOption.fontFamily, callback: function(a) {
1656
+ }, expression: "data.canvasOption.text" } }), e._v(" 字体类型 "), t("ElInput", { attrs: { size: "small", clearable: "", placeholder: "字体类型" }, model: { value: e.data.canvasOption.fontFamily, callback: function(a) {
1362
1657
  e.$set(e.data.canvasOption, "fontFamily", a);
1363
- }, expression: "data.canvasOption.fontFamily" } }), e._v(" 字体颜色 "), t(re, { attrs: { size: "small", placeholder: "字体颜色" }, model: { value: e.data.canvasOption.color, callback: function(a) {
1658
+ }, expression: "data.canvasOption.fontFamily" } }), e._v(" 字体颜色 "), t("FyInputColor", { attrs: { size: "small", placeholder: "字体颜色" }, model: { value: e.data.canvasOption.color, callback: function(a) {
1364
1659
  e.$set(e.data.canvasOption, "color", a);
1365
- }, expression: "data.canvasOption.color" } }), e._v(" 字体大小 "), t(f, { attrs: { size: "small", "controls-position": "right", placeholder: "字体大小" }, model: { value: e.data.canvasOption.fontSize, callback: function(a) {
1660
+ }, expression: "data.canvasOption.color" } }), e._v(" 字体大小 "), t("ElInputNumber", { attrs: { size: "small", "controls-position": "right", placeholder: "字体大小" }, model: { value: e.data.canvasOption.fontSize, callback: function(a) {
1366
1661
  e.$set(e.data.canvasOption, "fontSize", a);
1367
- }, expression: "data.canvasOption.fontSize" } }), e._v(" 文字的透明度 "), t(f, { attrs: { size: "small", "controls-position": "right", placeholder: "文字的透明度", step: 10, min: 10, max: 100 }, model: { value: e.data.canvasOption.opacity, callback: function(a) {
1662
+ }, expression: "data.canvasOption.fontSize" } }), e._v(" 文字的透明度 "), t("ElInputNumber", { attrs: { size: "small", "controls-position": "right", placeholder: "文字的透明度", step: 10, min: 10, max: 100 }, model: { value: e.data.canvasOption.opacity, callback: function(a) {
1368
1663
  e.$set(e.data.canvasOption, "opacity", a);
1369
- }, expression: "data.canvasOption.opacity" } }), e._v(" 文字距离图片底部的距离"), t("br"), t(f, { attrs: { "controls-position": "right", placeholder: "文字距离图片底部的距离", size: "small" }, model: { value: e.data.canvasOption.bottom, callback: function(a) {
1664
+ }, expression: "data.canvasOption.opacity" } }), e._v(" 文字距离图片底部的距离"), t("br"), t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "文字距离图片底部的距离", size: "small" }, model: { value: e.data.canvasOption.bottom, callback: function(a) {
1370
1665
  e.$set(e.data.canvasOption, "bottom", a);
1371
- }, expression: "data.canvasOption.bottom" } }), e._v(" 文字距离图片右边的距离"), t("br"), t(f, { attrs: { "controls-position": "right", placeholder: "文字距离图片右边的距离", size: "small" }, model: { value: e.data.canvasOption.right, callback: function(a) {
1666
+ }, expression: "data.canvasOption.bottom" } }), e._v(" 文字距离图片右边的距离"), t("br"), t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "文字距离图片右边的距离", size: "small" }, model: { value: e.data.canvasOption.right, callback: function(a) {
1372
1667
  e.$set(e.data.canvasOption, "right", a);
1373
- }, expression: "data.canvasOption.right" } }), e._v(" 压缩图片比率"), t("br"), t(f, { attrs: { "controls-position": "right", placeholder: "压缩图片比率", step: 0.1, min: 0, max: 1, size: "small" }, model: { value: e.data.canvasOption.ratio, callback: function(a) {
1668
+ }, expression: "data.canvasOption.right" } }), e._v(" 压缩图片比率"), t("br"), t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "压缩图片比率", step: 0.1, min: 0, max: 1, size: "small" }, model: { value: e.data.canvasOption.ratio, callback: function(a) {
1374
1669
  e.$set(e.data.canvasOption, "ratio", a);
1375
1670
  }, expression: "data.canvasOption.ratio" } })], 1)]) : e._e()], 1);
1376
- }, Wt = [], It = /* @__PURE__ */ h(
1377
- St,
1378
- Ot,
1379
- Wt,
1671
+ }, it = [], st = /* @__PURE__ */ c(
1672
+ at,
1673
+ lt,
1674
+ it,
1380
1675
  !1,
1381
1676
  null,
1382
1677
  null
1383
1678
  );
1384
- const Et = It.exports, Bt = {
1679
+ const ot = st.exports, nt = {
1385
1680
  name: "ConfigUEditor",
1386
1681
  props: {
1387
1682
  data: Object
@@ -1392,65 +1687,65 @@ const Et = It.exports, Bt = {
1392
1687
  }
1393
1688
  }
1394
1689
  };
1395
- var Tt = function() {
1690
+ var rt = function() {
1396
1691
  var e = this, t = e._self._c;
1397
- return t("div", [t(i, { attrs: { label: "图片上传地址", "label-width": "110px" } }, [t(r, { attrs: { clearable: "", placeholder: "图片上传地址" }, model: { value: e.data.options.action, callback: function(a) {
1692
+ return t("div", [t("ElFormItem", { attrs: { label: "图片上传地址", "label-width": "110px" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "图片上传地址" }, model: { value: e.data.options.action, callback: function(a) {
1398
1693
  e.$set(e.data.options, "action", a);
1399
- }, expression: "data.options.action" } })], 1), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [t($, { attrs: { underline: !1, href: "https://avuejs.com/plugins/ueditor-plugins.html", target: "_blank" } }, [e._v("参数设置 "), t("i", { staticClass: "el-icon-question" })])], 1), t("div", { staticClass: "el-form-item__content" }, [e._v(" 返回的数据结构层次 "), t(r, { attrs: { size: "small", placeholder: "返回的数据结构层次" }, model: { value: e.data.options.props.res, callback: function(a) {
1694
+ }, expression: "data.options.action" } })], 1), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [t("ElLink", { attrs: { underline: !1, href: "https://avuejs.com/plugins/ueditor-plugins.html", target: "_blank" } }, [e._v("参数设置 "), t("i", { staticClass: "el-icon-question" })])], 1), t("div", { staticClass: "el-form-item__content" }, [e._v(" 返回的数据结构层次 "), t("ElInput", { attrs: { size: "small", placeholder: "返回的数据结构层次" }, model: { value: e.data.options.props.res, callback: function(a) {
1400
1695
  e.$set(e.data.options.props, "res", a);
1401
- }, expression: "data.options.props.res" } }), e._v(" 返回结构体图片地址字段 "), t(r, { attrs: { size: "small", placeholder: "返回结构体图片地址字段" }, model: { value: e.data.options.props.url, callback: function(a) {
1696
+ }, expression: "data.options.props.res" } }), e._v(" 返回结构体图片地址字段 "), t("ElInput", { attrs: { size: "small", placeholder: "返回结构体图片地址字段" }, model: { value: e.data.options.props.url, callback: function(a) {
1402
1697
  e.$set(e.data.options.props, "url", a);
1403
- }, expression: "data.options.props.url" } })], 1)]), t(i, { attrs: { label: "OSS" } }, [t(b, { attrs: { placeholder: "oss不写则为普通上传", clearable: "" }, model: { value: e.data.options.oss, callback: function(a) {
1698
+ }, expression: "data.options.props.url" } })], 1)]), t("ElFormItem", { attrs: { label: "OSS" } }, [t("ElSelect", { attrs: { placeholder: "oss不写则为普通上传", clearable: "" }, model: { value: e.data.options.oss, callback: function(a) {
1404
1699
  e.$set(e.data.options, "oss", a);
1405
- }, expression: "data.options.oss" } }, [t(d, { attrs: { label: "阿里", value: "ali" } }), t(d, { attrs: { label: "七牛", value: "qiniu" } })], 1)], 1), e.data.options.oss == "qiniu" ? [t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("七牛oss配置:")]), t("div", { staticClass: "el-form-item__content" }, [e._v(" AK: "), t(r, { attrs: { size: "small", clearable: "", placeholder: "七牛云的密钥(AK)" }, model: { value: e.data.options.qiniu.AK, callback: function(a) {
1700
+ }, expression: "data.options.oss" } }, [t("ElOption", { attrs: { label: "阿里", value: "ali" } }), t("ElOption", { attrs: { label: "七牛", value: "qiniu" } })], 1)], 1), e.data.options.oss == "qiniu" ? [t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("七牛oss配置:")]), t("div", { staticClass: "el-form-item__content" }, [e._v(" AK: "), t("ElInput", { attrs: { size: "small", clearable: "", placeholder: "七牛云的密钥(AK)" }, model: { value: e.data.options.qiniu.AK, callback: function(a) {
1406
1701
  e.$set(e.data.options.qiniu, "AK", a);
1407
- }, expression: "data.options.qiniu.AK" } }), e._v(" SK: "), t(r, { attrs: { size: "small", clearable: "", placeholder: "七牛云的密钥(SK)" }, model: { value: e.data.options.qiniu.SK, callback: function(a) {
1702
+ }, expression: "data.options.qiniu.AK" } }), e._v(" SK: "), t("ElInput", { attrs: { size: "small", clearable: "", placeholder: "七牛云的密钥(SK)" }, model: { value: e.data.options.qiniu.SK, callback: function(a) {
1408
1703
  e.$set(e.data.options.qiniu, "SK", a);
1409
- }, expression: "data.options.qiniu.SK" } }), e._v(" scope: "), t(r, { attrs: { size: "small", clearable: "", placeholder: "七牛云存储的空间名" }, model: { value: e.data.options.qiniu.scope, callback: function(a) {
1704
+ }, expression: "data.options.qiniu.SK" } }), e._v(" scope: "), t("ElInput", { attrs: { size: "small", clearable: "", placeholder: "七牛云存储的空间名" }, model: { value: e.data.options.qiniu.scope, callback: function(a) {
1410
1705
  e.$set(e.data.options.qiniu, "scope", a);
1411
- }, expression: "data.options.qiniu.scope" } }), e._v(" url: "), t(r, { attrs: { size: "small", clearable: "", placeholder: "空间的自定义域名" }, model: { value: e.data.options.qiniu.url, callback: function(a) {
1706
+ }, expression: "data.options.qiniu.scope" } }), e._v(" url: "), t("ElInput", { attrs: { size: "small", clearable: "", placeholder: "空间的自定义域名" }, model: { value: e.data.options.qiniu.url, callback: function(a) {
1412
1707
  e.$set(e.data.options.qiniu, "url", a);
1413
- }, expression: "data.options.qiniu.url" } }), e._v(" deadline: "), t(r, { attrs: { size: "small", clearable: "", placeholder: "token的过期时间" }, model: { value: e.data.options.qiniu.deadline, callback: function(a) {
1708
+ }, expression: "data.options.qiniu.url" } }), e._v(" deadline: "), t("ElInput", { attrs: { size: "small", clearable: "", placeholder: "token的过期时间" }, model: { value: e.data.options.qiniu.deadline, callback: function(a) {
1414
1709
  e.$set(e.data.options.qiniu, "deadline", a);
1415
- }, expression: "data.options.qiniu.deadline" } })], 1)])] : e._e(), e.data.options.oss === "ali" ? [t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("七牛oss配置:")]), t("div", { staticClass: "el-form-item__content" }, [e._v(" region: "), t(r, { attrs: { size: "small", clearable: "", placeholder: "region" }, model: { value: e.data.options.ali.region, callback: function(a) {
1710
+ }, expression: "data.options.qiniu.deadline" } })], 1)])] : e._e(), e.data.options.oss === "ali" ? [t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("七牛oss配置:")]), t("div", { staticClass: "el-form-item__content" }, [e._v(" region: "), t("ElInput", { attrs: { size: "small", clearable: "", placeholder: "region" }, model: { value: e.data.options.ali.region, callback: function(a) {
1416
1711
  e.$set(e.data.options.ali, "region", a);
1417
- }, expression: "data.options.ali.region" } }), e._v(" endpoint: "), t(r, { attrs: { size: "small", clearable: "", placeholder: "endpoint" }, model: { value: e.data.options.ali.endpoint, callback: function(a) {
1712
+ }, expression: "data.options.ali.region" } }), e._v(" endpoint: "), t("ElInput", { attrs: { size: "small", clearable: "", placeholder: "endpoint" }, model: { value: e.data.options.ali.endpoint, callback: function(a) {
1418
1713
  e.$set(e.data.options.ali, "endpoint", a);
1419
- }, expression: "data.options.ali.endpoint" } }), e._v(" accessKeyId: "), t(r, { attrs: { size: "small", clearable: "", placeholder: "accessKeyId" }, model: { value: e.data.options.ali.accessKeyId, callback: function(a) {
1714
+ }, expression: "data.options.ali.endpoint" } }), e._v(" accessKeyId: "), t("ElInput", { attrs: { size: "small", clearable: "", placeholder: "accessKeyId" }, model: { value: e.data.options.ali.accessKeyId, callback: function(a) {
1420
1715
  e.$set(e.data.options.ali, "accessKeyId", a);
1421
- }, expression: "data.options.ali.accessKeyId" } }), e._v(" accessKeySecret: "), t(r, { attrs: { size: "small", clearable: "", placeholder: "accessKeySecret" }, model: { value: e.data.options.ali.accessKeySecret, callback: function(a) {
1716
+ }, expression: "data.options.ali.accessKeyId" } }), e._v(" accessKeySecret: "), t("ElInput", { attrs: { size: "small", clearable: "", placeholder: "accessKeySecret" }, model: { value: e.data.options.ali.accessKeySecret, callback: function(a) {
1422
1717
  e.$set(e.data.options.ali, "accessKeySecret", a);
1423
- }, expression: "data.options.ali.accessKeySecret" } }), e._v(" bucket: "), t(r, { attrs: { size: "small", clearable: "", placeholder: "bucket " }, model: { value: e.data.options.ali.bucket, callback: function(a) {
1718
+ }, expression: "data.options.ali.accessKeySecret" } }), e._v(" bucket: "), t("ElInput", { attrs: { size: "small", clearable: "", placeholder: "bucket " }, model: { value: e.data.options.ali.bucket, callback: function(a) {
1424
1719
  e.$set(e.data.options.ali, "bucket", a);
1425
1720
  }, expression: "data.options.ali.bucket" } })], 1)])] : e._e()], 2);
1426
- }, zt = [], Pt = /* @__PURE__ */ h(
1427
- Bt,
1428
- Tt,
1429
- zt,
1721
+ }, ct = [], dt = /* @__PURE__ */ c(
1722
+ nt,
1723
+ rt,
1724
+ ct,
1430
1725
  !1,
1431
1726
  null,
1432
1727
  null
1433
1728
  );
1434
- const Rt = Pt.exports, Dt = {
1729
+ const pt = dt.exports, ut = {
1435
1730
  name: "ConfigMap",
1436
1731
  props: {
1437
1732
  data: Object
1438
1733
  }
1439
1734
  };
1440
- var Mt = function() {
1735
+ var mt = function() {
1441
1736
  var e = this, t = e._self._c;
1442
- return t("div", [t(i, { attrs: { label: "默认值" } }, [t("a", { staticStyle: { color: "#409eff" }, attrs: { href: "https://avuejs.com/form/form-input-map.html", target: "_blank" } }, [e._v("详细文档")]), t("br"), t(r, { attrs: { placeholder: "默认值" }, model: { value: e.data.value, callback: function(a) {
1737
+ return t("div", [t("ElFormItem", { attrs: { label: "默认值" } }, [t("a", { staticStyle: { color: "#409eff" }, attrs: { href: "https://avuejs.com/form/form-input-map.html", target: "_blank" } }, [e._v("详细文档")]), t("br"), t("ElInput", { attrs: { placeholder: "默认值" }, model: { value: e.data.value, callback: function(a) {
1443
1738
  e.$set(e.data, "value", a);
1444
1739
  }, expression: "data.value" } })], 1)], 1);
1445
- }, Qt = [], Kt = /* @__PURE__ */ h(
1446
- Dt,
1447
- Mt,
1448
- Qt,
1740
+ }, ht = [], ft = /* @__PURE__ */ c(
1741
+ ut,
1742
+ mt,
1743
+ ht,
1449
1744
  !1,
1450
1745
  null,
1451
1746
  null
1452
1747
  );
1453
- const jt = Kt.exports, Vt = {
1748
+ const bt = ft.exports, gt = {
1454
1749
  name: "ConfigGroup",
1455
1750
  props: {
1456
1751
  data: Object
@@ -1466,45 +1761,45 @@ const jt = Kt.exports, Vt = {
1466
1761
  };
1467
1762
  }
1468
1763
  };
1469
- var qt = function() {
1764
+ var vt = function() {
1470
1765
  var e = this, t = e._self._c;
1471
- return t("div", [t(i, { attrs: { label: "图标" } }, [t(ce, { attrs: { "icon-list": e.iconList, placeholder: "图标" }, model: { value: e.data.icon, callback: function(a) {
1766
+ return t("div", [t("ElFormItem", { attrs: { label: "图标" } }, [t("FyInputIcon", { attrs: { "icon-list": e.iconList, placeholder: "图标" }, model: { value: e.data.icon, callback: function(a) {
1472
1767
  e.$set(e.data, "icon", a);
1473
- }, expression: "data.icon" } })], 1), t(i, { attrs: { label: "开启折叠" } }, [t(c, { model: { value: e.data.arrow, callback: function(a) {
1768
+ }, expression: "data.icon" } })], 1), t("ElFormItem", { attrs: { label: "开启折叠" } }, [t("ElSwitch", { model: { value: e.data.arrow, callback: function(a) {
1474
1769
  e.$set(e.data, "arrow", a);
1475
- }, expression: "data.arrow" } })], 1), e.data.arrow ? t(i, { attrs: { label: "默认展开" } }, [t(c, { model: { value: e.data.collapse, callback: function(a) {
1770
+ }, expression: "data.arrow" } })], 1), e.data.arrow ? t("ElFormItem", { attrs: { label: "默认展开" } }, [t("ElSwitch", { model: { value: e.data.collapse, callback: function(a) {
1476
1771
  e.$set(e.data, "collapse", a);
1477
1772
  }, expression: "data.collapse" } })], 1) : e._e()], 1);
1478
- }, Lt = [], Nt = /* @__PURE__ */ h(
1479
- Vt,
1480
- qt,
1481
- Lt,
1773
+ }, _t = [], yt = /* @__PURE__ */ c(
1774
+ gt,
1775
+ vt,
1776
+ _t,
1482
1777
  !1,
1483
1778
  null,
1484
1779
  null
1485
1780
  );
1486
- const Gt = Nt.exports, Ht = {
1781
+ const Et = yt.exports, xt = {
1487
1782
  name: "ConfigArray",
1488
1783
  props: {
1489
1784
  data: Object
1490
1785
  }
1491
1786
  };
1492
- var Ut = function() {
1787
+ var kt = function() {
1493
1788
  var e = this, t = e._self._c;
1494
- return t("div", [t(i, { attrs: { label: "占位内容" } }, [t(r, { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
1789
+ return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
1495
1790
  e.$set(e.data, "placeholder", a);
1496
- }, expression: "data.placeholder" } })], 1), t(i, { attrs: { label: "尺寸" } }, [t(M, { attrs: { size: "mini" }, model: { value: e.data.size, callback: function(a) {
1791
+ }, expression: "data.placeholder" } })], 1), t("ElFormItem", { attrs: { label: "尺寸" } }, [t("ElRadioGroup", { attrs: { size: "mini" }, model: { value: e.data.size, callback: function(a) {
1497
1792
  e.$set(e.data, "size", a);
1498
- }, expression: "data.size" } }, [t(A, { attrs: { label: "medium" } }, [e._v(" 正常 ")]), t(A, { attrs: { label: "small" } }, [e._v(" 小 ")]), t(A, { attrs: { label: "mini" } }, [e._v(" 超小 ")])], 1)], 1)], 1);
1499
- }, Jt = [], Yt = /* @__PURE__ */ h(
1500
- Ht,
1501
- Ut,
1502
- Jt,
1793
+ }, expression: "data.size" } }, [t("ElRadioButton", { attrs: { label: "medium" } }, [e._v(" 正常 ")]), t("ElRadioButton", { attrs: { label: "small" } }, [e._v(" 小 ")]), t("ElRadioButton", { attrs: { label: "mini" } }, [e._v(" 超小 ")])], 1)], 1)], 1);
1794
+ }, $t = [], Ct = /* @__PURE__ */ c(
1795
+ xt,
1796
+ kt,
1797
+ $t,
1503
1798
  !1,
1504
1799
  null,
1505
1800
  null
1506
1801
  );
1507
- const Xt = Yt.exports, Zt = {
1802
+ const wt = Ct.exports, It = {
1508
1803
  name: "ConfigTitle",
1509
1804
  props: {
1510
1805
  data: Object
@@ -1515,28 +1810,97 @@ const Xt = Yt.exports, Zt = {
1515
1810
  };
1516
1811
  }
1517
1812
  };
1518
- var ea = function() {
1813
+ var Ft = function() {
1519
1814
  var e = this, t = e._self._c;
1520
- return t("div", [t(i, { attrs: { label: "文本对齐" } }, [t(M, { model: { value: e.data.styles.textAlign, callback: function(a) {
1815
+ return t("div", [t("ElFormItem", { attrs: { label: "文本对齐" } }, [t("ElRadioGroup", { model: { value: e.data.styles.textAlign, callback: function(a) {
1521
1816
  e.$set(e.data.styles, "textAlign", a);
1522
- }, expression: "data.styles.textAlign" } }, [t(w, { attrs: { label: "left" } }, [e._v(" 左 ")]), t(w, { attrs: { label: "center" } }, [e._v(" 中 ")]), t(w, { attrs: { label: "right" } }, [e._v(" 右 ")])], 1)], 1), t(i, { attrs: { label: "颜色" } }, [t(N, { attrs: { size: "mini" }, model: { value: e.data.styles.color, callback: function(a) {
1817
+ }, expression: "data.styles.textAlign" } }, [t("ElRadio", { attrs: { label: "left" } }, [e._v(" 左 ")]), t("ElRadio", { attrs: { label: "center" } }, [e._v(" 中 ")]), t("ElRadio", { attrs: { label: "right" } }, [e._v(" 右 ")])], 1)], 1), t("ElFormItem", { attrs: { label: "颜色" } }, [t("ElColorPicker", { attrs: { size: "mini" }, model: { value: e.data.styles.color, callback: function(a) {
1523
1818
  e.$set(e.data.styles, "color", a);
1524
- }, expression: "data.styles.color" } })], 1), t(i, { attrs: { label: "字体大小" } }, [t(r, { attrs: { clearable: "", placeholder: "字体大小" }, model: { value: e.data.styles.fontSize, callback: function(a) {
1819
+ }, expression: "data.styles.color" } })], 1), t("ElFormItem", { attrs: { label: "字体大小" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "字体大小" }, model: { value: e.data.styles.fontSize, callback: function(a) {
1525
1820
  e.$set(e.data.styles, "fontSize", a);
1526
- }, expression: "data.styles.fontSize" } })], 1), t(i, { attrs: { label: "粗体" } }, [t(b, { attrs: { placeholder: "粗体", clearable: "" }, model: { value: e.data.styles.fontWeight, callback: function(a) {
1821
+ }, expression: "data.styles.fontSize" } })], 1), t("ElFormItem", { attrs: { label: "粗体" } }, [t("ElSelect", { attrs: { placeholder: "粗体", clearable: "" }, model: { value: e.data.styles.fontWeight, callback: function(a) {
1527
1822
  e.$set(e.data.styles, "fontWeight", a);
1528
1823
  }, expression: "data.styles.fontWeight" } }, e._l(e.options, function(a) {
1529
- return t(d, { key: a, attrs: { label: a, value: a } });
1824
+ return t("ElOption", { key: a, attrs: { label: a, value: a } });
1530
1825
  }), 1)], 1)], 1);
1531
- }, ta = [], aa = /* @__PURE__ */ h(
1532
- Zt,
1533
- ea,
1534
- ta,
1826
+ }, St = [], At = /* @__PURE__ */ c(
1827
+ It,
1828
+ Ft,
1829
+ St,
1830
+ !1,
1831
+ null,
1832
+ null
1833
+ );
1834
+ const Ot = At.exports, Bt = {
1835
+ name: "ConfigEvent",
1836
+ components: { MonacoEditor: f },
1837
+ props: {
1838
+ data: Object
1839
+ },
1840
+ data() {
1841
+ return {
1842
+ change: "",
1843
+ click: "",
1844
+ focus: "",
1845
+ blur: "",
1846
+ options: {
1847
+ fullScreen: !0,
1848
+ minimap: {
1849
+ enabled: !1
1850
+ }
1851
+ }
1852
+ };
1853
+ },
1854
+ watch: {
1855
+ "data.prop": {
1856
+ handler() {
1857
+ const { change: l, click: e, focus: t, blur: a } = this.data;
1858
+ this.$set(this, "change", l ? `${l}` : `({value}) => {\r
1859
+ \r
1860
+ }`), this.$set(this, "click", e ? `${e}` : `({value}) => {\r
1861
+ \r
1862
+ }`), this.$set(this, "focus", t ? `${t}` : `({value}) => {\r
1863
+ \r
1864
+ }`), this.$set(this, "blur", a ? `${a}` : `({value}) => {\r
1865
+ \r
1866
+ }`);
1867
+ },
1868
+ immediate: !0
1869
+ }
1870
+ },
1871
+ mounted() {
1872
+ this.$nextTick(() => {
1873
+ ["change", "click", "focus", "blur"].forEach((e) => {
1874
+ this.$watch(`${e}`, (t) => {
1875
+ try {
1876
+ this.$set(this.data, e, u(t));
1877
+ } catch {
1878
+ }
1879
+ });
1880
+ });
1881
+ });
1882
+ }
1883
+ };
1884
+ var Wt = function() {
1885
+ var e = this, t = e._self._c;
1886
+ return t("div", [t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("change:")]), t("div", { staticClass: "el-form-item__content" }, [t("MonacoEditor", { attrs: { height: "300", "key-index": `event-change-${e.data.prop}`, options: e.options }, model: { value: e.change, callback: function(a) {
1887
+ e.change = a;
1888
+ }, expression: "change" } })], 1)]), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("click:")]), t("div", { staticClass: "el-form-item__content" }, [t("MonacoEditor", { attrs: { height: "200", "key-index": `event-click-${e.data.prop}`, options: e.options }, model: { value: e.click, callback: function(a) {
1889
+ e.click = a;
1890
+ }, expression: "click" } })], 1)]), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("focus:")]), t("div", { staticClass: "el-form-item__content" }, [t("MonacoEditor", { attrs: { height: "200", "key-index": `event-focus-${e.data.prop}`, options: e.options }, model: { value: e.focus, callback: function(a) {
1891
+ e.focus = a;
1892
+ }, expression: "focus" } })], 1)]), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("blur:")]), t("div", { staticClass: "el-form-item__content" }, [t("MonacoEditor", { attrs: { height: "200", "key-index": `event-blur-${e.data.prop}`, options: e.options }, model: { value: e.blur, callback: function(a) {
1893
+ e.blur = a;
1894
+ }, expression: "blur" } })], 1)])]);
1895
+ }, Tt = [], zt = /* @__PURE__ */ c(
1896
+ Bt,
1897
+ Wt,
1898
+ Tt,
1535
1899
  !1,
1536
1900
  null,
1537
1901
  null
1538
1902
  );
1539
- const la = aa.exports, sa = [
1903
+ const Rt = zt.exports, Pt = [
1540
1904
  {
1541
1905
  label: "输入框",
1542
1906
  value: "input"
@@ -1629,7 +1993,7 @@ const la = aa.exports, sa = [
1629
1993
  label: "年",
1630
1994
  value: "year"
1631
1995
  }
1632
- ], ia = {
1996
+ ], Mt = {
1633
1997
  name: "AfdColumn",
1634
1998
  props: {
1635
1999
  column: {
@@ -1640,763 +2004,361 @@ const la = aa.exports, sa = [
1640
2004
  emits: ["submit"],
1641
2005
  data() {
1642
2006
  return {
1643
- fields: sa,
2007
+ fields: Pt,
1644
2008
  visible: !1,
1645
2009
  list: []
1646
2010
  };
1647
2011
  },
1648
2012
  watch: {
1649
2013
  column: {
1650
- handler(l) {
1651
- this.list = l;
1652
- },
1653
- deep: !0,
1654
- immediate: !0
1655
- }
1656
- },
1657
- methods: {
1658
- handleSubmit() {
1659
- this.$emit("submit", _(this.list)), this.visible = !1;
1660
- },
1661
- handleDic(l) {
1662
- console.log(l), this.$message.error("暂未实现");
1663
- }
1664
- }
1665
- };
1666
- var na = function() {
1667
- var e = this, t = e._self._c;
1668
- return t(E, { attrs: { visible: e.visible, size: "80%", "append-to-body": "" }, on: { "update:visible": function(a) {
1669
- e.visible = a;
1670
- } } }, [t(G, { attrs: { data: e.list, border: "" } }, [t(C, { attrs: { align: "center", width: "60" }, scopedSlots: e._u([{ key: "header", fn: function() {
1671
- return [t(p, { attrs: { icon: "el-icon-plus", type: "primary", circle: "", size: "mini" }, on: { click: function(a) {
1672
- return e.list.push({});
1673
- } } })];
1674
- }, proxy: !0 }, { key: "default", fn: function({ $index: a }) {
1675
- return [t(p, { attrs: { icon: "el-icon-minus", type: "danger", circle: "", size: "mini" }, on: { click: function(s) {
1676
- return e.list.splice(a, 1);
1677
- } } })];
1678
- } }]) }), t(C, { attrs: { label: "字段名", prop: "label", align: "center" }, scopedSlots: e._u([{ key: "default", fn: function({ row: a }) {
1679
- return [t(r, { attrs: { placeholder: "请输入 字段名" }, model: { value: a.label, callback: function(s) {
1680
- e.$set(a, "label", s);
1681
- }, expression: "row.label" } })];
1682
- } }]) }), t(C, { attrs: { label: "Prop", prop: "prop", align: "center" }, scopedSlots: e._u([{ key: "default", fn: function({ row: a }) {
1683
- return [t(r, { attrs: { placeholder: "请输入 prop" }, model: { value: a.prop, callback: function(s) {
1684
- e.$set(a, "prop", s);
1685
- }, expression: "row.prop" } })];
1686
- } }]) }), t(C, { attrs: { label: "类型", prop: "type", align: "center" }, scopedSlots: e._u([{ key: "default", fn: function({ row: a }) {
1687
- return [t(b, { staticStyle: { width: "100%" }, attrs: { placeholder: "请选择 类型", filterable: "" }, model: { value: a.type, callback: function(s) {
1688
- e.$set(a, "type", s);
1689
- }, expression: "row.type" } }, e._l(e.fields, function(s) {
1690
- return t(d, { key: s.value, attrs: { label: s.value, value: s.value } });
1691
- }), 1)];
1692
- } }]) }), t(C, { attrs: { label: "搜索", prop: "search", align: "center" }, scopedSlots: e._u([{ key: "default", fn: function({ row: a }) {
1693
- return [t(c, { model: { value: a.search, callback: function(s) {
1694
- e.$set(a, "search", s);
1695
- }, expression: "row.search" } })];
1696
- } }]) }), t(C, { attrs: { label: "操作", align: "center" }, scopedSlots: e._u([{ key: "default", fn: function({ row: a }) {
1697
- return [["select", "cascader", "tree", "radio", "checkbox"].includes(a.type) ? [t(p, { attrs: { type: "text" }, on: { click: function(s) {
1698
- return e.handleDic(a);
1699
- } } }, [e._v(" 字典配置 ")])] : e._e()];
1700
- } }]) })], 1), t("span", { staticClass: "afd-drawer-foot" }, [t(p, { attrs: { type: "primary" }, on: { click: e.handleSubmit } }, [e._v("确定")]), t(p, { on: { click: function(a) {
1701
- e.visible = !1;
1702
- } } }, [e._v("取消")])], 1)], 1);
1703
- }, oa = [], ra = /* @__PURE__ */ h(
1704
- ia,
1705
- na,
1706
- oa,
1707
- !1,
1708
- null,
1709
- null
1710
- );
1711
- const Y = ra.exports, ca = {
1712
- name: "ConfigTable",
1713
- components: { MonacoEditor: g, AfdColumn: Y },
1714
- props: {
1715
- data: Object
1716
- },
1717
- data() {
1718
- return {
1719
- options: {
1720
- fullScreen: !0,
1721
- minimap: {
1722
- enabled: !1
1723
- }
1724
- },
1725
- onLoad: "",
1726
- formatter: ""
1727
- };
1728
- },
1729
- watch: {
1730
- "data.prop": {
1731
- handler() {
1732
- const { onLoad: l, formatter: e } = this.data;
1733
- this.onLoad = l ? `${l}` : "", this.formatter = e ? `${e}` : "";
1734
- },
1735
- immediate: !0
1736
- },
1737
- "data.children.props": {
1738
- handler(l) {
1739
- this.handleOnLoad(l);
1740
- },
1741
- deep: !0
1742
- },
1743
- onLoad: {
1744
- handler(l) {
1745
- try {
1746
- this.data.onLoad = y(l);
1747
- } catch (e) {
1748
- console.error(e);
1749
- }
1750
- }
1751
- }
1752
- },
1753
- methods: {
1754
- handleColumn(l) {
1755
- this.data.children.column = l;
1756
- },
1757
- handleOnLoad(l) {
1758
- const { url: e, method: t, needPage: a, currentPageKey: s, pageSizeKey: n, totalKey: o, recordsKey: m, resKey: u, auto: x } = l;
1759
- if (!x) return;
1760
- if (!e) {
1761
- this.onLoad = "(res, cb) => { }";
1762
- return;
1763
- }
1764
- let { props: v } = this.data;
1765
- v || (v = { label: "label", value: "value" });
1766
- const { value: k } = v, te = `(res, cb) => {
1767
- let { page, value, data } = res
1768
- if (!page) page = { currentPage: 1, pageSize: 10 }
1769
- const { currentPage, pageSize } = page
1770
- let params = { ...data, ${s || "current"}: currentPage, ${n || "page"}: pageSize }
1771
-
1772
- if (value) params['${k}'] = value
1773
-
1774
- if ('${t || "get"}' == 'get') params = { params: { ...params } }
1775
-
1776
- this.$axios['${t}']('${e}', params).then(res => {
1777
- const response = this.getAsVal(res, '${u || "data.data"}')
1778
- if (!response) this.$message.error('未查询到数据或者返回层级配置错误')
1779
-
1780
- let result = {}
1781
- if (${a}) {
1782
- const total = this.getAsVal(response, '${o || "total"}')
1783
- if (total || total == 0) {
1784
- result.total = total
1785
- } else {
1786
- this.$message.error('总条数配置错误')
1787
- return
1788
- }
1789
- const records = this.getAsVal(response, '${m || "records"}')
1790
- if (records) {
1791
- result.data = records
1792
- } else {
1793
- this.$message.error('列表配置错误')
1794
- return
1795
- }
1796
- } else result = { total: response.length, data: response }
1797
-
1798
- if (value) {
1799
- const records = result.data
1800
- if (records && records.length > 0) cb(records[0])
1801
- else this.$message.error('根据${k}: ' + value + ' 查询不到结果')
1802
- } else cb(result)
1803
- })
1804
- }`;
1805
- this.onLoad = te;
1806
- }
1807
- }
1808
- };
1809
- var da = function() {
1810
- var e = this, t = e._self._c;
1811
- return t("div", [t(i, { attrs: { label: "字段配置" } }, [t(p, { attrs: { type: "primary", size: "small" }, on: { click: function(a) {
1812
- e.$refs.column.visible = !0;
1813
- } } }, [e._v(" 字段配置 ")])], 1), t(i, { attrs: { label: "边框" } }, [t(c, { model: { value: e.data.children.border, callback: function(a) {
1814
- e.$set(e.data.children, "border", a);
1815
- }, expression: "data.children.border" } })], 1), t(i, { attrs: { label: "label" } }, [t(r, { attrs: { placeholder: "label", clearable: "" }, model: { value: e.data.props.label, callback: function(a) {
1816
- e.$set(e.data.props, "label", a);
1817
- }, expression: "data.props.label" } })], 1), t(i, { attrs: { label: "value" } }, [t(r, { attrs: { placeholder: "value", clearable: "" }, model: { value: e.data.props.value, callback: function(a) {
1818
- e.$set(e.data.props, "value", a);
1819
- }, expression: "data.props.value" } })], 1), t(i, { attrs: { label: "请求地址" } }, [t(r, { attrs: { type: "textarea", placeholder: "请求地址", autosize: "" }, model: { value: e.data.children.props.url, callback: function(a) {
1820
- e.$set(e.data.children.props, "url", a);
1821
- }, expression: "data.children.props.url" } })], 1), t(i, { attrs: { label: "请求方法" } }, [t(b, { attrs: { placeholder: "请求方法", clearable: "" }, model: { value: e.data.children.props.method, callback: function(a) {
1822
- e.$set(e.data.children.props, "method", a);
1823
- }, expression: "data.children.props.method" } }, [t(d, { attrs: { label: "GET", value: "get" } }), t(d, { attrs: { label: "POST", value: "post" } })], 1)], 1), t(i, { attrs: { label: "分页" } }, [t(c, { model: { value: e.data.children.props.needPage, callback: function(a) {
1824
- e.$set(e.data.children.props, "needPage", a);
1825
- }, expression: "data.children.props.needPage" } })], 1), e.data.children.props.needPage ? t(i, { attrs: { label: "当前页" } }, [t(r, { attrs: { placeholder: "当前页", clearable: "" }, model: { value: e.data.children.props.currentPageKey, callback: function(a) {
1826
- e.$set(e.data.children.props, "currentPageKey", a);
1827
- }, expression: "data.children.props.currentPageKey" } })], 1) : e._e(), e.data.children.props.needPage ? t(i, { attrs: { label: "每页条数" } }, [t(r, { attrs: { placeholder: "每页条数", clearable: "" }, model: { value: e.data.children.props.pageSizeKey, callback: function(a) {
1828
- e.$set(e.data.children.props, "pageSizeKey", a);
1829
- }, expression: "data.children.props.pageSizeKey" } })], 1) : e._e(), e.data.children.props.needPage ? t(i, { attrs: { label: "总条数" } }, [t(r, { attrs: { placeholder: "总条数", clearable: "" }, model: { value: e.data.children.props.totalKey, callback: function(a) {
1830
- e.$set(e.data.children.props, "totalKey", a);
1831
- }, expression: "data.children.props.totalKey" } })], 1) : e._e(), e.data.children.props.needPage ? t(i, { attrs: { label: "列表" } }, [t(r, { attrs: { placeholder: "列表", clearable: "" }, model: { value: e.data.children.props.recordsKey, callback: function(a) {
1832
- e.$set(e.data.children.props, "recordsKey", a);
1833
- }, expression: "data.children.props.recordsKey" } })], 1) : e._e(), t(i, { attrs: { label: "返回层级" } }, [t(r, { attrs: { placeholder: "返回层级", clearable: "" }, model: { value: e.data.children.props.resKey, callback: function(a) {
1834
- e.$set(e.data.children.props, "resKey", a);
1835
- }, expression: "data.children.props.resKey" } })], 1), t(i, { attrs: { label: "自动生成" } }, [t(c, { model: { value: e.data.children.props.auto, callback: function(a) {
1836
- e.$set(e.data.children.props, "auto", a);
1837
- }, expression: "data.children.props.auto" } })], 1), t("div", { staticClass: "el-form--label-top" }, [t("div", { staticClass: "el-form-item" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [t(B, { attrs: { placement: "top-start", width: 200, trigger: "hover", content: "填写以上配置后会自动生成,若觉得生成的不对请自行修改或关闭自动生成" }, scopedSlots: e._u([{ key: "reference", fn: function() {
1838
- return [t($, { attrs: { href: "https://avuejs.com/form/form-input-table.html", underline: !1, target: "_blank" } }, [e._v(" onLoad: "), t("i", { staticClass: "el-icon-question" })])];
1839
- }, proxy: !0 }]) })], 1), t("div", { staticClass: "el-form-item__content" }, [t(g, { attrs: { height: "200", "key-index": `table-onload-${e.data.prop}`, options: e.options }, model: { value: e.onLoad, callback: function(a) {
1840
- e.onLoad = a;
1841
- }, expression: "onLoad" } })], 1)]), t("div", { staticClass: "el-form-item" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("formatter:")]), t("div", { staticClass: "el-form-item__content" }, [t(g, { attrs: { height: "200", "key-index": `table-formatter-${e.data.prop}`, options: e.options }, model: { value: e.formatter, callback: function(a) {
1842
- e.formatter = a;
1843
- }, expression: "formatter" } })], 1)])]), t(Y, { ref: "column", attrs: { column: e.data.children.column }, on: { submit: e.handleColumn } })], 1);
1844
- }, pa = [], ua = /* @__PURE__ */ h(
1845
- ca,
1846
- da,
1847
- pa,
1848
- !1,
1849
- null,
1850
- null
1851
- );
1852
- const ma = ua.exports, ha = ["year", "month", "week", "date", "datetime", "time", "daterange", "timerange", "datetimerange", "dates"], fa = {
1853
- name: "WidgetConfig",
1854
- components: {
1855
- ConfigCustom: Ae,
1856
- ConfigInput: Ie,
1857
- ConfigTextarea: Pe,
1858
- ConfigNumber: Ke,
1859
- ConfigDynamic: Ne,
1860
- ConfigSwitch: Ye,
1861
- ConfigRate: at,
1862
- ConfigSlider: ot,
1863
- ConfigColor: ut,
1864
- ConfigSelect: gt,
1865
- ConfigTree: $t,
1866
- ConfigDate: Ft,
1867
- ConfigUpload: Et,
1868
- ConfigUEditor: Rt,
1869
- ConfigMap: jt,
1870
- ConfigGroup: Gt,
1871
- ConfigArray: Xt,
1872
- ConfigTitle: la,
1873
- ConfigEvent: J,
1874
- ConfigTable: ma
1875
- },
1876
- props: {
1877
- data: Object,
1878
- defaultValues: Object
1879
- },
1880
- data() {
1881
- return {
1882
- fields: D,
1883
- collapse: ["1", "2", "3"],
1884
- validator: {
1885
- type: null,
1886
- required: null,
1887
- pattern: null,
1888
- length: null
1889
- }
1890
- };
1891
- },
1892
- computed: {
1893
- getComponent() {
1894
- const l = "config-", { type: e, component: t } = this.data;
1895
- if ((!e || t) && e !== "u-editor")
1896
- return `${l}custom`;
1897
- let a = "input";
1898
- return [void 0, "input", "password", "url"].includes(e) ? a = "input" : ha.includes(e) ? a = "date" : ["array", "img"].includes(e) ? a = "array" : ["tree", "cascader"].includes(e) ? a = "tree" : ["radio", "checkbox", "select"].includes(e) ? a = "select" : a = e, l + a;
1899
- }
1900
- },
1901
- watch: {
1902
- "data.required"(l) {
1903
- l ? this.validator.required = { required: !0, message: `${this.data.label}必须填写` } : this.validator.required = null, this.generateRule();
1904
- },
1905
- "data.pattern"(l) {
1906
- l ? this.validator.pattern = { pattern: new RegExp(l), message: `${this.data.label}格式不匹配` } : this.validator.pattern = null, this.generateRule();
1907
- }
1908
- },
1909
- methods: {
1910
- handleChangeType(l) {
1911
- if (!l) return;
1912
- let e;
1913
- for (const t of this.fields)
1914
- if (e = t.list.find((a) => a.type === l), e) break;
1915
- if (e)
1916
- for (const t in e)
1917
- e && Object.prototype.hasOwnProperty.call(e, t) && !["icon", "label", "span"].includes(t) && (this.data[t] = e[t]);
1918
- },
1919
- generateRule() {
1920
- const l = [];
1921
- Object.keys(this.validator).forEach((e) => {
1922
- this.validator[e] && l.push(this.validator[e]);
1923
- }), l.length === 0 ? delete this.data.rules : this.data.rules = l;
1924
- }
1925
- }
1926
- };
1927
- var ba = function() {
1928
- var e = this, t = e._self._c;
1929
- return t("div", { staticClass: "widget-config" }, [e.data && Object.keys(e.data).length > 0 ? t(I, { attrs: { "label-suffix": ":", "label-position": "left", "label-width": "90px", size: "small" } }, [t(ie, { model: { value: e.collapse, callback: function(a) {
1930
- e.collapse = a;
1931
- }, expression: "collapse" } }, [t(R, { attrs: { name: "1", title: "基本属性" } }, [e.data.type && !e.data.component ? t(i, { attrs: { label: "类型" } }, [t(b, { staticStyle: { width: "100%" }, attrs: { placeholder: "请选择类型" }, on: { change: e.handleChangeType }, model: { value: e.data.type, callback: function(a) {
1932
- e.$set(e.data, "type", a);
1933
- }, expression: "data.type" } }, e._l(e.fields, function(a) {
1934
- return t(se, { key: a.title, attrs: { label: a.title } }, e._l(a.list, function(s) {
1935
- return t(d, { key: s.type, attrs: { label: s.label, value: s.type } });
1936
- }), 1);
1937
- }), 1)], 1) : e._e(), t(i, { attrs: { label: "属性值" } }, [t(r, { attrs: { clearable: "", placeholder: "属性值" }, model: { value: e.data.prop, callback: function(a) {
1938
- e.$set(e.data, "prop", a);
1939
- }, expression: "data.prop" } })], 1), t(i, { attrs: { label: "标题" } }, [t(r, { attrs: { clearable: "", placeholder: "标题" }, model: { value: e.data.label, callback: function(a) {
1940
- e.$set(e.data, "label", a);
1941
- }, expression: "data.label" } })], 1), ["group", "dynamic", "title"].includes(e.data.type) ? e._e() : t(i, { attrs: { label: "标题宽度" } }, [t(f, { staticStyle: { width: "100%" }, attrs: { min: 80, step: 10, "controls-position": "right", placeholder: "标签宽度" }, model: { value: e.data.labelWidth, callback: function(a) {
1942
- e.$set(e.data, "labelWidth", a);
1943
- }, expression: "data.labelWidth" } })], 1), e.data.subfield ? e._e() : t(i, { attrs: { label: "标签位置" } }, [t(b, { attrs: { placeholder: "标签位置", clearable: "" }, model: { value: e.data.labelPosition, callback: function(a) {
1944
- e.$set(e.data, "labelPosition", a);
1945
- }, expression: "data.labelPosition" } }, [t(d, { attrs: { label: "上", value: "top" } }), t(d, { attrs: { label: "左", value: "left" } }), t(d, { attrs: { label: "右", value: "right" } })], 1)], 1), e.data.subfield ? t(i, { attrs: { label: "宽度" } }, [t(f, { staticStyle: { width: "100%" }, attrs: { "controls-position": "right", placeholder: "宽度", min: 100 }, model: { value: e.data.width, callback: function(a) {
1946
- e.$set(e.data, "width", a);
1947
- }, expression: "data.width" } })], 1) : e._e(), !e.data.subfield && !["group"].includes(e.data.type) ? t(i, { attrs: { label: "表单栅格" } }, [t(f, { staticStyle: { width: "100%" }, attrs: { "controls-position": "right", placeholder: "表单栅格", min: 2, max: 24 }, model: { value: e.data.span, callback: function(a) {
1948
- e.$set(e.data, "span", a);
1949
- }, expression: "data.span" } })], 1) : e._e(), ["cascader", "checkbox", "radio", "select", "tree", "upload", "img", "array", "slider", "timerange", "daterange", "datetimerange"].includes(
1950
- e.data.type
1951
- ) ? t(i, { attrs: { label: "数据类型" }, scopedSlots: e._u([{ key: "label", fn: function() {
1952
- return [t($, { attrs: { underline: !1, href: "https://avuejs.com/docs/datatype.html", target: "_blank" } }, [e._v(" 数据类型 "), t("i", { staticClass: "el-icon-question" })])];
1953
- }, proxy: !0 }], null, !1, 3051713203) }, [t(b, { attrs: { placeholder: "数据类型", clearable: "" }, model: { value: e.data.dataType, callback: function(a) {
1954
- e.$set(e.data, "dataType", a);
1955
- }, expression: "data.dataType" } }, [t(d, { attrs: { label: "String", value: "string" } }), t(d, { attrs: { label: "Number", value: "number" } }), t(d, { attrs: { label: "Array", value: "array" } })], 1)], 1) : e._e(), t(i, { attrs: { label: "字段提示" }, scopedSlots: e._u([{ key: "label", fn: function() {
1956
- return [t($, { attrs: { underline: !1, href: "https://avuejs.com/form/form-tip.html", target: "_blank" } }, [e._v(" 字段提示 "), t("i", { staticClass: "el-icon-question" })])];
1957
- }, proxy: !0 }], null, !1, 708991366) }, [t(r, { attrs: { clearable: "", placeholder: "字段提示" }, model: { value: e.data.tip, callback: function(a) {
1958
- e.$set(e.data, "tip", a);
1959
- }, expression: "data.tip" } })], 1), e.data.tip && !["upload"].includes(e.data.type) ? t(i, { attrs: { label: "字段提示位置", "label-width": "110px" } }, [t(b, { attrs: { placeholder: "字段提示位置", clearable: "" }, model: { value: e.data.tipPlacement, callback: function(a) {
1960
- e.$set(e.data, "tipPlacement", a);
1961
- }, expression: "data.tipPlacement" } }, [t(d, { attrs: { label: "上", value: "top" } }), t(d, { attrs: { label: "下", value: "bottom" } }), t(d, { attrs: { label: "左", value: "left" } }), t(d, { attrs: { label: "右", value: "right" } })], 1)], 1) : e._e(), t(i, { attrs: { label: "标题提示" }, scopedSlots: e._u([{ key: "label", fn: function() {
1962
- return [t($, { attrs: { underline: !1, href: "https://avuejs.com/form/form-tip.html", target: "_blank" } }, [e._v(" 标题提示 "), t("i", { staticClass: "el-icon-question" })])];
1963
- }, proxy: !0 }], null, !1, 1033131739) }, [t(r, { attrs: { clearable: "", placeholder: "标题提示" }, model: { value: e.data.labelTip, callback: function(a) {
1964
- e.$set(e.data, "labelTip", a);
1965
- }, expression: "data.labelTip" } })], 1), e.data.labelTip && !["upload"].includes(e.data.type) ? t(i, { attrs: { label: "标题提示位置", "label-width": "110px" } }, [t(b, { attrs: { placeholder: "标题提示位置", clearable: "" }, model: { value: e.data.labelTipPlacement, callback: function(a) {
1966
- e.$set(e.data, "labelTipPlacement", a);
1967
- }, expression: "data.labelTipPlacement" } }, [t(d, { attrs: { label: "上", value: "top" } }), t(d, { attrs: { label: "下", value: "bottom" } }), t(d, { attrs: { label: "左", value: "left" } }), t(d, { attrs: { label: "右", value: "right" } })], 1)], 1) : e._e(), ["color", "dynamic", "group", "ueditor", "upload", "map"].includes(e.data.type) ? e._e() : t(i, { attrs: { label: "默认值" } }, [e.defaultValues && e.defaultValues[e.data.type] ? [t(b, { attrs: { "allow-create": "", clearable: "", filterable: "", placeholder: "默认值" }, model: { value: e.data.value, callback: function(a) {
1968
- e.$set(e.data, "value", a);
1969
- }, expression: "data.value" } }, e._l(e.defaultValues[e.data.type], function(a) {
1970
- return t(d, { key: a.value, attrs: { label: a.label, value: a.value } });
1971
- }), 1)] : [t(r, { attrs: { clearable: "", placeholder: "默认值" }, model: { value: e.data.value, callback: function(a) {
1972
- e.$set(e.data, "value", a);
1973
- }, expression: "data.value" } })]], 2), t(i, { attrs: { label: "详情模式" } }, [t(c, { model: { value: e.data.detail, callback: function(a) {
1974
- e.$set(e.data, "detail", a);
1975
- }, expression: "data.detail" } })], 1), t(i, { attrs: { label: "是否只读" } }, [t(c, { model: { value: e.data.readonly, callback: function(a) {
1976
- e.$set(e.data, "readonly", a);
1977
- }, expression: "data.readonly" } })], 1), t(i, { attrs: { label: "是否禁用" } }, [t(c, { model: { value: e.data.disabled, callback: function(a) {
1978
- e.$set(e.data, "disabled", a);
1979
- }, expression: "data.disabled" } })], 1), t(i, { attrs: { label: "是否可见" } }, [t(c, { model: { value: e.data.display, callback: function(a) {
1980
- e.$set(e.data, "display", a);
1981
- }, expression: "data.display" } })], 1), t(i, { attrs: { label: "是否必填" } }, [t(c, { model: { value: e.data.required, callback: function(a) {
1982
- e.$set(e.data, "required", a);
1983
- }, expression: "data.required" } }), e.data.required ? t(r, { attrs: { placeholder: "正则表达式" }, model: { value: e.data.pattern, callback: function(a) {
1984
- e.$set(e.data, "pattern", a);
1985
- }, expression: "data.pattern" } }) : e._e()], 1)], 1), t(R, { attrs: { name: "2", title: "组件属性" } }, [t(e.getComponent, { tag: "Component", attrs: { data: e.data, "default-values": e.defaultValues } })], 1), ["group"].includes(e.data.type) ? e._e() : t(R, { attrs: { name: "3", title: "事件属性" } }, [t(J, { attrs: { data: e.data } })], 1)], 1)], 1) : [t(L, { staticStyle: { "margin-top": "100%" }, attrs: { desc: "拖拽字段进行配置" } })]], 2);
1986
- }, ga = [], va = /* @__PURE__ */ h(
1987
- fa,
1988
- ba,
1989
- ga,
1990
- !1,
1991
- null,
1992
- null
1993
- );
1994
- const X = va.exports, _a = {
1995
- name: "WidgetFormItem",
1996
- components: { FyUEditor: () => import("../fy-u-editor/index.mjs") },
1997
- props: {
1998
- item: {
1999
- type: Object,
2000
- default: () => ({})
2001
- },
2002
- params: {
2003
- type: Object,
2004
- default: () => ({})
2005
- }
2006
- },
2007
- computed: {
2008
- vBind() {
2009
- const l = Object.assign(_(this.item), this.params, {
2010
- size: this.item.size || "small",
2011
- dic: this.item.dicData ? this.item.dicData.map((t) => {
2012
- if (!this.item.props) return t;
2013
- const { label: a, value: s, desc: n } = this.item.props;
2014
- return !a || !s ? t : {
2015
- [a]: t.label,
2016
- [s]: t.value,
2017
- [n]: t.desc
2018
- };
2019
- }) : void 0,
2020
- rules: this.item.pattern ? this.item.rules.map((t) => (t.pattern && (t.pattern = new RegExp(this.item.pattern)), t)) : this.item.rules
2021
- });
2022
- return ["change", "blur", "click", "focus"].forEach((t) => delete l[t]), l.event && delete l.event, l;
2023
- }
2024
- },
2025
- methods: {
2026
- getComponent(l, e) {
2027
- let a = "input";
2028
- return e || (["array", "img", "url"].includes(l) ? a = "array" : l === "select" ? a = "select" : l === "radio" ? a = "radio" : l === "checkbox" ? a = "checkbox" : ["time", "timerange"].includes(l) ? a = "time" : ["dates", "date", "datetime", "datetimerange", "daterange", "week", "month", "year"].includes(l) ? a = "date" : l === "cascader" ? a = "cascader" : l === "number" ? a = "input-number" : l === "password" ? a = "input" : l === "switch" ? a = "switch" : l === "rate" ? a = "rate" : l === "upload" ? a = "upload" : l === "slider" ? a = "slider" : l === "dynamic" ? a = "dynamic" : l === "icon" ? a = "input-icon" : l === "color" ? a = "input-color" : l === "map" && (a = "input-map"), "fy-" + a);
2029
- },
2030
- getPlaceholder(l) {
2031
- const e = l.label;
2032
- return [
2033
- "select",
2034
- "checkbox",
2035
- "radio",
2036
- "tree",
2037
- "color",
2038
- "dates",
2039
- "date",
2040
- "datetime",
2041
- "datetimerange",
2042
- "daterange",
2043
- "week",
2044
- "month",
2045
- "year",
2046
- "map",
2047
- "icon"
2048
- ].includes(l.type) ? `请选择 ${e}` : `请输入 ${e}`;
2049
- }
2050
- }
2051
- };
2052
- var ya = function() {
2053
- var e = this, t = e._self._c;
2054
- return t("div", [e.item.type === "title" ? t("div", { staticStyle: { "margin-left": "5px" }, style: e.item.styles }, [e._v(" " + e._s(e.item.value) + " ")]) : t(e.getComponent(e.item.type, e.item.component), e._b({ tag: "Component", attrs: { multiple: !1, placeholder: e.item.placeholder || e.getPlaceholder(e.item), value: ["time", "timerange", "checkbox"].includes(e.item.type) ? e.item.dicData : void 0 } }, "Component", e.vBind, !1), [e.params.html ? t("span", { domProps: { innerHTML: e._s(e.params.html) } }) : e._e()])], 1);
2055
- }, xa = [], $a = /* @__PURE__ */ h(
2056
- _a,
2057
- ya,
2058
- xa,
2059
- !1,
2060
- null,
2061
- null
2062
- );
2063
- const O = $a.exports, ka = {
2064
- name: "WidgetFormTable",
2065
- components: { WidgetFormItem: O, Draggable: S },
2066
- props: {
2067
- data: Object,
2068
- column: Object,
2069
- select: Object,
2070
- index: Number
2071
- },
2072
- data() {
2073
- return {
2074
- selectWidget: this.select
2075
- };
2076
- },
2077
- watch: {
2078
- select(l) {
2079
- this.selectWidget = l;
2080
- },
2081
- selectWidget: {
2082
- handler(l) {
2083
- this.$emit("update:select", l);
2084
- },
2085
- deep: !0
2086
- }
2087
- },
2088
- methods: {
2089
- handleSelectWidget(l) {
2090
- this.selectWidget = this.data.column[l];
2091
- },
2092
- handleWidgetClear(l) {
2093
- this.data.column[l].children.column = [], this.selectWidget = this.data.column[l], this.$emit("change");
2094
- },
2095
- handleWidgetDelete(l) {
2096
- this.data.column.length - 1 === l ? l === 0 ? this.selectWidget = {} : this.handleSelectWidget(l - 1) : this.handleSelectWidget(l + 1), this.$nextTick(() => {
2097
- this.data.column.splice(l, 1), this.$emit("change");
2098
- });
2099
- },
2100
- handleWidgetCloneTable(l) {
2101
- const e = _(this.data.column[l]);
2102
- e.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, e.children.column.forEach((t) => {
2103
- t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`;
2104
- }), this.data.column.splice(l, 0, e), this.$nextTick(() => {
2105
- this.handleSelectWidget(l + 1), this.$emit("change");
2106
- });
2107
- },
2108
- handleWidgetTableAdd(l, e) {
2109
- let t = l.newIndex;
2110
- const a = l.item;
2111
- if (t === 1 && t > e.children.column.length - 1 && (t = 0), ["子表单", "富文本", "坐标拾取器", "分组"].includes(a.textContent)) {
2112
- e.children.column.splice(t, 1);
2113
- return;
2114
- }
2115
- const s = _(e.children.column[t]);
2116
- s.prop || (s.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), s.subfield = !0, delete s.icon, this.$set(e.children.column, t, { ...s }), this.selectWidget = e.children.column[t], this.$emit("change");
2117
- },
2118
- handleWidgetTableSelect(l) {
2119
- this.selectWidget = l;
2120
- },
2121
- handleWidgetTableClone(l, e) {
2122
- const t = _(e);
2123
- t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.$set(l.children.column, l.children.column.length, { ...t }), this.$nextTick(() => {
2124
- this.selectWidget = l.children.column[l.children.column.length - 1], this.$emit("change");
2125
- });
2126
- },
2127
- handleWidgetTableDelete(l, e) {
2128
- l.children.column.length - 1 === e ? e === 0 ? this.selectWidget = l : this.selectWidget = l.children.column[e - 1] : this.selectWidget = l.children.column[e + 1], this.$nextTick(() => {
2129
- l.children.column.splice(e, 1), this.$emit("change");
2130
- });
2131
- }
2132
- }
2133
- };
2134
- var Ca = function() {
2135
- var e = this, t = e._self._c;
2136
- return t("div", [t("h3", { directives: [{ name: "show", rawName: "v-show", value: e.column.label, expression: "column.label" }], staticStyle: { margin: "10px" } }, [e._v(" " + e._s(e.column.label) + " ")]), t("Draggable", { staticClass: "widget-form-table__content", attrs: { list: e.column.children.column, group: { name: "form" }, "ghost-class": "ghost", animation: 200, handle: ".widget-form-table__item" }, on: { add: function(a) {
2137
- return e.handleWidgetTableAdd(a, e.column);
2138
- }, end: function(a) {
2139
- return e.$emit("change");
2140
- } } }, [e.column.children.column.length > 0 ? e._l(e.column.children.column, function(a, s) {
2141
- return t("div", { key: s, staticClass: "widget-form-table__item", class: { active: e.selectWidget.prop === a.prop, required: a.required }, style: {
2142
- minWidth: a.width ? `${a.width}px` : "33.3%",
2143
- width: a.width ? `${a.width}px` : "33.3%"
2144
- }, on: { click: function(n) {
2145
- return n.stopPropagation(), e.handleWidgetTableSelect(a);
2146
- } } }, [t(G, { attrs: { data: [a], border: "" } }, [t(C, { attrs: { prop: a.prop, label: a.label, align: e.column.children.align, "header-align": e.column.children.headerAlign } }, [t(O, { attrs: { item: a, params: e.column.params } }), e.selectWidget.prop === a.prop ? t(p, { staticClass: "widget-table-action-delete", attrs: { title: "删除", circle: "", plain: "", size: "small", type: "danger" }, on: { click: function(n) {
2147
- return n.stopPropagation(), e.handleWidgetTableDelete(e.column, s);
2148
- } } }, [t("i", { staticClass: "iconfont icon-delete" })]) : e._e(), e.selectWidget.prop === a.prop ? t(p, { staticClass: "widget-table-action-clone", attrs: { title: "复制", circle: "", plain: "", size: "small", type: "primary" }, on: { click: function(n) {
2149
- return n.stopPropagation(), e.handleWidgetTableClone(e.column, a);
2150
- } } }, [t("i", { staticClass: "iconfont icon-copy" })]) : e._e()], 1)], 1)], 1);
2151
- }) : [t(L, { staticStyle: { width: "100%" }, attrs: { size: "50", desc: "拖拽字段至此" } })]], 2), e.selectWidget.prop === e.column.prop ? t(p, { staticClass: "widget-action-delete", attrs: { title: "删除", circle: "", plain: "", size: "small", type: "danger" }, on: { click: function(a) {
2152
- return a.stopPropagation(), e.handleWidgetDelete(e.index);
2153
- } } }, [t("i", { staticClass: "iconfont icon-delete" })]) : e._e(), e.selectWidget.prop === e.column.prop ? t(p, { staticClass: "widget-action-clear", attrs: { title: "清空", circle: "", plain: "", size: "small", type: "warning" }, on: { click: function(a) {
2154
- return a.stopPropagation(), e.handleWidgetClear(e.index);
2155
- } } }, [t("i", { staticClass: "iconfont icon-clear" })]) : e._e(), e.selectWidget.prop === e.column.prop ? t(p, { staticClass: "widget-action-clone", attrs: { title: "复制", circle: "", plain: "", size: "small", type: "primary" }, on: { click: function(a) {
2156
- return a.stopPropagation(), e.handleWidgetCloneTable(e.index);
2157
- } } }, [t("i", { staticClass: "iconfont icon-copy" })]) : e._e()], 1);
2158
- }, wa = [], Aa = /* @__PURE__ */ h(
2159
- ka,
2160
- Ca,
2161
- wa,
2162
- !1,
2163
- null,
2164
- null
2165
- );
2166
- const P = Aa.exports, Fa = {
2167
- name: "WidgetFormGroup",
2168
- components: { WidgetFormItem: O, WidgetFormTable: P, Draggable: S },
2169
- props: {
2170
- data: Object,
2171
- column: Object,
2172
- select: Object,
2173
- index: Number
2174
- },
2175
- data() {
2176
- return {
2177
- selectWidget: this.select
2178
- };
2179
- },
2180
- watch: {
2181
- select(l) {
2182
- this.selectWidget = l;
2183
- },
2184
- selectWidget: {
2185
- handler(l) {
2186
- this.$emit("update:select", l);
2187
- },
2188
- deep: !0
2189
- }
2190
- },
2191
- methods: {
2192
- handleSelectWidget(l) {
2193
- this.selectWidget = this.data.column[l];
2194
- },
2195
- handleWidgetClear(l) {
2196
- this.data.column[l].children.column = [], this.selectWidget = this.data.column[l], this.$emit("change");
2197
- },
2198
- handleWidgetDelete(l) {
2199
- this.data.column.length - 1 === l ? l === 0 ? this.selectWidget = {} : this.handleSelectWidget(l - 1) : this.handleSelectWidget(l + 1), this.$nextTick(() => {
2200
- this.data.column.splice(l, 1), this.$emit("change");
2201
- });
2202
- },
2203
- handleWidgetCloneTable(l) {
2204
- const e = _(this.data.column[l]);
2205
- e.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, e.children.column.forEach((t) => {
2206
- t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`;
2207
- }), this.data.column.splice(l, 0, e), this.$nextTick(() => {
2208
- this.handleSelectWidget(l + 1), this.$emit("change");
2209
- });
2210
- },
2211
- handleWidgetTableSelect(l) {
2212
- this.selectWidget = l;
2213
- },
2214
- handleWidgetTableClone(l, e) {
2215
- const t = _(e);
2216
- t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.$set(l.children.column, l.children.column.length, { ...t }), this.$nextTick(() => {
2217
- this.selectWidget = l.children.column[l.children.column.length - 1], this.$emit("change");
2218
- });
2219
- },
2220
- handleWidgetTableDelete(l, e) {
2221
- l.children.column.length - 1 === e ? e === 0 ? this.selectWidget = l : this.selectWidget = l.children.column[e - 1] : this.selectWidget = l.children.column[e + 1], this.$nextTick(() => {
2222
- l.children.column.splice(e, 1), this.$emit("change");
2223
- });
2014
+ handler(l) {
2015
+ this.list = l;
2016
+ },
2017
+ deep: !0,
2018
+ immediate: !0
2019
+ }
2020
+ },
2021
+ methods: {
2022
+ handleSubmit() {
2023
+ this.$emit("submit", p(this.list)), this.visible = !1;
2224
2024
  },
2225
- handleWidgetGroupAdd(l, e) {
2226
- let t = l.newIndex;
2227
- const a = l.item;
2228
- if (t === 1 && t > e.children.column.length - 1 && (t = 0), ["分组"].includes(a.textContent)) {
2229
- e.children.column.splice(t, 1);
2230
- return;
2231
- }
2232
- const s = _(e.children.column[t]);
2233
- s.prop || (s.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), delete s.icon, s.type === "dynamic" ? s.span = 24 : s.span = 12, this.$set(e.children.column, t, { ...s }), this.selectWidget = e.children.column[t], this.$emit("change");
2025
+ handleDic(l) {
2026
+ console.log(l), this.$message.error("暂未实现");
2234
2027
  }
2235
2028
  }
2236
2029
  };
2237
- var Sa = function() {
2030
+ var Dt = function() {
2238
2031
  var e = this, t = e._self._c;
2239
- return t("div", [t("h4", { directives: [{ name: "show", rawName: "v-show", value: e.column.label, expression: "column.label" }], staticClass: "widget-form-group__head" }, [t("i", { directives: [{ name: "show", rawName: "v-show", value: e.column.icon, expression: "column.icon" }], class: e.column.icon, staticStyle: { "margin-right": "10px" } }), e._v(e._s(e.column.label) + " ")]), t("Draggable", { staticClass: "widget-form-group__body", attrs: { list: e.column.children.column, group: { name: "form" }, "ghost-class": "ghost", animation: 200 }, on: { add: function(a) {
2240
- return e.handleWidgetGroupAdd(a, e.column);
2241
- }, end: function(a) {
2242
- return e.$emit("change");
2243
- } } }, [e._l(e.column.children.column, function(a, s) {
2244
- return [a.type === "dynamic" ? t("div", { key: s, staticClass: "widget-form-table", class: { active: e.selectWidget.prop === a.prop }, on: { click: function(n) {
2245
- return n.stopPropagation(), e.handleWidgetTableSelect(a);
2246
- } } }, [t(P, { attrs: { data: e.column.children, column: a, index: s, select: e.selectWidget }, on: { "update:select": function(n) {
2247
- e.selectWidget = n;
2248
- }, change: function(n) {
2249
- return e.$emit("change");
2250
- } } })], 1) : t(H, { key: s, attrs: { md: a.span || 12, xs: 24, offset: a.offset || 0 } }, [t(i, { staticClass: "widget-form-group__item", class: { active: e.selectWidget.prop === a.prop, required: a.required }, attrs: { label: a.label, prop: a.prop }, nativeOn: { click: function(n) {
2251
- return n.stopPropagation(), e.handleWidgetTableSelect(a);
2252
- } } }, [t(O, { attrs: { item: a, params: e.column.params } }), e.selectWidget.prop === a.prop ? t(p, { staticClass: "widget-form-group__item--delete", attrs: { title: "删除", circle: "", plain: "", type: "danger" }, on: { click: function(n) {
2253
- return n.stopPropagation(), e.handleWidgetTableDelete(e.column, s);
2254
- } } }, [t("i", { staticClass: "iconfont icon-delete" })]) : e._e(), e.selectWidget.prop === a.prop ? t(p, { staticClass: "widget-form-group__item--clone", attrs: { title: "复制", circle: "", plain: "", type: "primary" }, on: { click: function(n) {
2255
- return n.stopPropagation(), e.handleWidgetTableClone(e.column, a);
2256
- } } }, [t("i", { staticClass: "iconfont icon-copy" })]) : e._e()], 1)], 1)];
2257
- })], 2), e.selectWidget.prop === e.column.prop ? t(p, { staticClass: "widget-action-delete", attrs: { title: "删除", circle: "", plain: "", size: "small", type: "danger" }, on: { click: function(a) {
2258
- return a.stopPropagation(), e.handleWidgetDelete(e.index);
2259
- } } }, [t("i", { staticClass: "iconfont icon-delete" })]) : e._e(), e.selectWidget.prop === e.column.prop ? t(p, { staticClass: "widget-action-clear", attrs: { title: "清空", circle: "", plain: "", size: "small", type: "warning" }, on: { click: function(a) {
2260
- return a.stopPropagation(), e.handleWidgetClear(e.index);
2261
- } } }, [t("i", { staticClass: "iconfont icon-clear" })]) : e._e(), e.selectWidget.prop === e.column.prop ? t(p, { staticClass: "widget-action-clone", attrs: { title: "复制", circle: "", plain: "", size: "small", type: "primary" }, on: { click: function(a) {
2262
- return a.stopPropagation(), e.handleWidgetCloneTable(e.index);
2263
- } } }, [t("i", { staticClass: "iconfont icon-copy" })]) : e._e()], 1);
2264
- }, Oa = [], Wa = /* @__PURE__ */ h(
2265
- Fa,
2266
- Sa,
2267
- Oa,
2032
+ return t("ElDrawer", { attrs: { visible: e.visible, size: "80%", "append-to-body": "" }, on: { "update:visible": function(a) {
2033
+ e.visible = a;
2034
+ } } }, [t("ElTable", { attrs: { data: e.list, border: "" } }, [t("ElTableColumn", { attrs: { align: "center", width: "60" }, scopedSlots: e._u([{ key: "header", fn: function() {
2035
+ return [t("ElButton", { attrs: { icon: "el-icon-plus", type: "primary", circle: "", size: "mini" }, on: { click: function(a) {
2036
+ return e.list.push({});
2037
+ } } })];
2038
+ }, proxy: !0 }, { key: "default", fn: function({ $index: a }) {
2039
+ return [t("ElButton", { attrs: { icon: "el-icon-minus", type: "danger", circle: "", size: "mini" }, on: { click: function(i) {
2040
+ return e.list.splice(a, 1);
2041
+ } } })];
2042
+ } }]) }), t("ElTableColumn", { attrs: { label: "字段名", prop: "label", align: "center" }, scopedSlots: e._u([{ key: "default", fn: function({ row: a }) {
2043
+ return [t("ElInput", { attrs: { placeholder: "请输入 字段名" }, model: { value: a.label, callback: function(i) {
2044
+ e.$set(a, "label", i);
2045
+ }, expression: "row.label" } })];
2046
+ } }]) }), t("ElTableColumn", { attrs: { label: "Prop", prop: "prop", align: "center" }, scopedSlots: e._u([{ key: "default", fn: function({ row: a }) {
2047
+ return [t("ElInput", { attrs: { placeholder: "请输入 prop" }, model: { value: a.prop, callback: function(i) {
2048
+ e.$set(a, "prop", i);
2049
+ }, expression: "row.prop" } })];
2050
+ } }]) }), t("ElTableColumn", { attrs: { label: "类型", prop: "type", align: "center" }, scopedSlots: e._u([{ key: "default", fn: function({ row: a }) {
2051
+ return [t("ElSelect", { staticStyle: { width: "100%" }, attrs: { placeholder: "请选择 类型", filterable: "" }, model: { value: a.type, callback: function(i) {
2052
+ e.$set(a, "type", i);
2053
+ }, expression: "row.type" } }, e._l(e.fields, function(i) {
2054
+ return t("ElOption", { key: i.value, attrs: { label: i.value, value: i.value } });
2055
+ }), 1)];
2056
+ } }]) }), t("ElTableColumn", { attrs: { label: "搜索", prop: "search", align: "center" }, scopedSlots: e._u([{ key: "default", fn: function({ row: a }) {
2057
+ return [t("ElSwitch", { model: { value: a.search, callback: function(i) {
2058
+ e.$set(a, "search", i);
2059
+ }, expression: "row.search" } })];
2060
+ } }]) }), t("ElTableColumn", { attrs: { label: "操作", align: "center" }, scopedSlots: e._u([{ key: "default", fn: function({ row: a }) {
2061
+ return [["select", "cascader", "tree", "radio", "checkbox"].includes(a.type) ? [t("ElButton", { attrs: { type: "text" }, on: { click: function(i) {
2062
+ return e.handleDic(a);
2063
+ } } }, [e._v(" 字典配置 ")])] : e._e()];
2064
+ } }]) })], 1), t("span", { staticClass: "afd-drawer-foot" }, [t("ElButton", { attrs: { type: "primary" }, on: { click: e.handleSubmit } }, [e._v("确定")]), t("ElButton", { on: { click: function(a) {
2065
+ e.visible = !1;
2066
+ } } }, [e._v("取消")])], 1)], 1);
2067
+ }, Qt = [], Kt = /* @__PURE__ */ c(
2068
+ Mt,
2069
+ Dt,
2070
+ Qt,
2268
2071
  !1,
2269
2072
  null,
2270
2073
  null
2271
2074
  );
2272
- const Z = Wa.exports, Ia = {
2273
- name: "WidgetForm",
2274
- components: { Draggable: S, WidgetFormItem: O, WidgetFormTable: P, WidgetFormGroup: Z },
2075
+ const jt = Kt.exports, Nt = {
2076
+ name: "ConfigTable",
2077
+ components: { MonacoEditor: f, AfdColumn: jt },
2275
2078
  props: {
2276
- data: Object,
2277
- select: Object
2079
+ data: Object
2278
2080
  },
2279
2081
  data() {
2280
2082
  return {
2281
- selectWidget: this.select,
2282
- form: {}
2083
+ options: {
2084
+ fullScreen: !0,
2085
+ minimap: {
2086
+ enabled: !1
2087
+ }
2088
+ },
2089
+ onLoad: "",
2090
+ formatter: ""
2283
2091
  };
2284
2092
  },
2285
2093
  watch: {
2286
- select(l) {
2287
- this.selectWidget = l;
2094
+ "data.prop": {
2095
+ handler() {
2096
+ const { onLoad: l, formatter: e } = this.data;
2097
+ this.onLoad = l ? `${l}` : "", this.formatter = e ? `${e}` : "";
2098
+ },
2099
+ immediate: !0
2288
2100
  },
2289
- selectWidget: {
2101
+ "data.children.props": {
2290
2102
  handler(l) {
2291
- this.$emit("update:select", l);
2103
+ this.handleOnLoad(l);
2292
2104
  },
2293
2105
  deep: !0
2106
+ },
2107
+ onLoad: {
2108
+ handler(l) {
2109
+ try {
2110
+ this.data.onLoad = u(l);
2111
+ } catch (e) {
2112
+ console.error(e);
2113
+ }
2114
+ }
2294
2115
  }
2295
2116
  },
2296
2117
  methods: {
2297
- handleSelectWidget(l) {
2298
- this.selectWidget = this.data.column[l];
2299
- },
2300
- handleWidgetAdd(l) {
2301
- const e = l.newIndex, t = _(this.data.column[e]);
2302
- t.prop || (t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), delete t.icon, delete t.subfield, t.type === "title" && (delete t.label, this.form[t.prop] = t.value), this.$set(this.data.column, e, t), this.handleSelectWidget(e), this.$emit("change");
2303
- },
2304
- handleWidgetDelete(l) {
2305
- this.data.column.length - 1 === l ? l === 0 ? this.selectWidget = {} : this.handleSelectWidget(l - 1) : this.handleSelectWidget(l + 1), this.$nextTick(() => {
2306
- this.data.column.splice(l, 1), this.$emit("change");
2307
- });
2118
+ handleColumn(l) {
2119
+ this.data.children.column = l;
2308
2120
  },
2309
- handleWidgetClone(l) {
2310
- const e = _(this.data.column[l]);
2311
- e.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.data.column.push(e), this.$nextTick(() => {
2312
- this.handleSelectWidget(this.data.column.length - 1), this.$emit("change");
2313
- });
2121
+ handleOnLoad(l) {
2122
+ const { url: e, method: t, needPage: a, currentPageKey: i, pageSizeKey: s, totalKey: o, recordsKey: r, resKey: n, auto: m } = l;
2123
+ if (!m) return;
2124
+ if (!e) {
2125
+ this.onLoad = "(res, cb) => { }";
2126
+ return;
2127
+ }
2128
+ let { props: d } = this.data;
2129
+ d || (d = { label: "label", value: "value" });
2130
+ const { value: h } = d, k = `(res, cb) => {
2131
+ let { page, value, data } = res
2132
+ if (!page) page = { currentPage: 1, pageSize: 10 }
2133
+ const { currentPage, pageSize } = page
2134
+ let params = { ...data, ${i || "current"}: currentPage, ${s || "page"}: pageSize }
2135
+
2136
+ if (value) params['${h}'] = value
2137
+
2138
+ if ('${t || "get"}' == 'get') params = { params: { ...params } }
2139
+
2140
+ this.$axios['${t}']('${e}', params).then(res => {
2141
+ const response = this.getAsVal(res, '${n || "data.data"}')
2142
+ if (!response) this.$message.error('未查询到数据或者返回层级配置错误')
2143
+
2144
+ let result = {}
2145
+ if (${a}) {
2146
+ const total = this.getAsVal(response, '${o || "total"}')
2147
+ if (total || total == 0) {
2148
+ result.total = total
2149
+ } else {
2150
+ this.$message.error('总条数配置错误')
2151
+ return
2152
+ }
2153
+ const records = this.getAsVal(response, '${r || "records"}')
2154
+ if (records) {
2155
+ result.data = records
2156
+ } else {
2157
+ this.$message.error('列表配置错误')
2158
+ return
2159
+ }
2160
+ } else result = { total: response.length, data: response }
2161
+
2162
+ if (value) {
2163
+ const records = result.data
2164
+ if (records && records.length > 0) cb(records[0])
2165
+ else this.$message.error('根据${h}: ' + value + ' 查询不到结果')
2166
+ } else cb(result)
2167
+ })
2168
+ }`;
2169
+ this.onLoad = k;
2314
2170
  }
2315
2171
  }
2316
2172
  };
2317
- var Ea = function() {
2173
+ var Vt = function() {
2318
2174
  var e = this, t = e._self._c;
2319
- return t("div", { staticClass: "widget-form-container" }, [t(I, { ref: "widgetForm", attrs: { "label-position": e.data.labelPosition || "left", "label-width": e.data.labelWidth ? `${e.data.labelWidth}px` : "100px", "label-suffix": e.data.labelSuffix, model: e.form, size: "small" } }, [t(de, { attrs: { gutter: e.data.gutter } }, [t("Draggable", { staticClass: "widget-form-list", attrs: { list: e.data.column, group: { name: "form" }, "ghost-class": "ghost", animation: 300 }, on: { add: e.handleWidgetAdd, end: function(a) {
2320
- return e.$emit("change");
2321
- } } }, [e._l(e.data.column, function(a, s) {
2322
- return [a.type === "dynamic" ? t("div", { key: s, staticClass: "widget-form-table", class: { active: e.selectWidget.prop === a.prop }, on: { click: function(n) {
2323
- return e.handleSelectWidget(s);
2324
- } } }, [t(P, { attrs: { data: e.data, column: a, index: s, select: e.selectWidget }, on: { "update:select": function(n) {
2325
- e.selectWidget = n;
2326
- }, change: function(n) {
2327
- return e.$emit("change");
2328
- } } })], 1) : a.type === "group" ? t("div", { key: s, staticClass: "widget-form-group", class: { active: e.selectWidget.prop === a.prop }, on: { click: function(n) {
2329
- return e.handleSelectWidget(s);
2330
- } } }, [t(Z, { attrs: { data: e.data, column: a, index: s, select: e.selectWidget }, on: { "update:select": function(n) {
2331
- e.selectWidget = n;
2332
- }, change: function(n) {
2333
- return e.$emit("change");
2334
- } } })], 1) : t(H, { key: s, attrs: { md: a.span || 12, xs: 24, offset: a.offset || 0 } }, [t(i, { staticClass: "widget-form-item", class: [{ active: e.selectWidget.prop === a.prop, required: a.required }, `avue-form__item--${a.labelPosition}` || ""], attrs: { label: a.label, "label-width": a.labelWidth && `${a.labelWidth}px`, prop: a.prop }, nativeOn: { click: function(n) {
2335
- return e.handleSelectWidget(s);
2336
- } } }, [t(O, { attrs: { item: a, params: a.params } }), e.selectWidget.prop === a.prop ? t(p, { staticClass: "widget-action-delete", attrs: { title: "删除", circle: "", plain: "", size: "small", type: "danger" }, on: { click: function(n) {
2337
- return n.stopPropagation(), e.handleWidgetDelete(s);
2338
- } } }, [t("i", { staticClass: "iconfont icon-delete" })]) : e._e(), e.selectWidget.prop === a.prop ? t(p, { staticClass: "widget-action-clone", attrs: { title: "复制", circle: "", plain: "", size: "small", type: "primary" }, on: { click: function(n) {
2339
- return n.stopPropagation(), e.handleWidgetClone(s);
2340
- } } }, [t("i", { staticClass: "iconfont icon-copy" })]) : e._e()], 1)], 1)];
2341
- })], 2)], 1)], 1)], 1);
2342
- }, Ba = [], Ta = /* @__PURE__ */ h(
2343
- Ia,
2344
- Ea,
2345
- Ba,
2175
+ return t("div", [t("ElFormItem", { attrs: { label: "字段配置" } }, [t("ElButton", { attrs: { type: "primary", size: "small" }, on: { click: function(a) {
2176
+ e.$refs.column.visible = !0;
2177
+ } } }, [e._v(" 字段配置 ")])], 1), t("ElFormItem", { attrs: { label: "边框" } }, [t("ElSwitch", { model: { value: e.data.children.border, callback: function(a) {
2178
+ e.$set(e.data.children, "border", a);
2179
+ }, expression: "data.children.border" } })], 1), t("ElFormItem", { attrs: { label: "label" } }, [t("ElInput", { attrs: { placeholder: "label", clearable: "" }, model: { value: e.data.props.label, callback: function(a) {
2180
+ e.$set(e.data.props, "label", a);
2181
+ }, expression: "data.props.label" } })], 1), t("ElFormItem", { attrs: { label: "value" } }, [t("ElInput", { attrs: { placeholder: "value", clearable: "" }, model: { value: e.data.props.value, callback: function(a) {
2182
+ e.$set(e.data.props, "value", a);
2183
+ }, expression: "data.props.value" } })], 1), t("ElFormItem", { attrs: { label: "请求地址" } }, [t("ElInput", { attrs: { type: "textarea", placeholder: "请求地址", autosize: "" }, model: { value: e.data.children.props.url, callback: function(a) {
2184
+ e.$set(e.data.children.props, "url", a);
2185
+ }, expression: "data.children.props.url" } })], 1), t("ElFormItem", { attrs: { label: "请求方法" } }, [t("ElSelect", { attrs: { placeholder: "请求方法", clearable: "" }, model: { value: e.data.children.props.method, callback: function(a) {
2186
+ e.$set(e.data.children.props, "method", a);
2187
+ }, expression: "data.children.props.method" } }, [t("ElOption", { attrs: { label: "GET", value: "get" } }), t("ElOption", { attrs: { label: "POST", value: "post" } })], 1)], 1), t("ElFormItem", { attrs: { label: "分页" } }, [t("ElSwitch", { model: { value: e.data.children.props.needPage, callback: function(a) {
2188
+ e.$set(e.data.children.props, "needPage", a);
2189
+ }, expression: "data.children.props.needPage" } })], 1), e.data.children.props.needPage ? t("ElFormItem", { attrs: { label: "当前页" } }, [t("ElInput", { attrs: { placeholder: "当前页", clearable: "" }, model: { value: e.data.children.props.currentPageKey, callback: function(a) {
2190
+ e.$set(e.data.children.props, "currentPageKey", a);
2191
+ }, expression: "data.children.props.currentPageKey" } })], 1) : e._e(), e.data.children.props.needPage ? t("ElFormItem", { attrs: { label: "每页条数" } }, [t("ElInput", { attrs: { placeholder: "每页条数", clearable: "" }, model: { value: e.data.children.props.pageSizeKey, callback: function(a) {
2192
+ e.$set(e.data.children.props, "pageSizeKey", a);
2193
+ }, expression: "data.children.props.pageSizeKey" } })], 1) : e._e(), e.data.children.props.needPage ? t("ElFormItem", { attrs: { label: "总条数" } }, [t("ElInput", { attrs: { placeholder: "总条数", clearable: "" }, model: { value: e.data.children.props.totalKey, callback: function(a) {
2194
+ e.$set(e.data.children.props, "totalKey", a);
2195
+ }, expression: "data.children.props.totalKey" } })], 1) : e._e(), e.data.children.props.needPage ? t("ElFormItem", { attrs: { label: "列表" } }, [t("ElInput", { attrs: { placeholder: "列表", clearable: "" }, model: { value: e.data.children.props.recordsKey, callback: function(a) {
2196
+ e.$set(e.data.children.props, "recordsKey", a);
2197
+ }, expression: "data.children.props.recordsKey" } })], 1) : e._e(), t("ElFormItem", { attrs: { label: "返回层级" } }, [t("ElInput", { attrs: { placeholder: "返回层级", clearable: "" }, model: { value: e.data.children.props.resKey, callback: function(a) {
2198
+ e.$set(e.data.children.props, "resKey", a);
2199
+ }, expression: "data.children.props.resKey" } })], 1), t("ElFormItem", { attrs: { label: "自动生成" } }, [t("ElSwitch", { model: { value: e.data.children.props.auto, callback: function(a) {
2200
+ e.$set(e.data.children.props, "auto", a);
2201
+ }, expression: "data.children.props.auto" } })], 1), t("div", { staticClass: "el-form--label-top" }, [t("div", { staticClass: "el-form-item" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [t("ElPopover", { attrs: { placement: "top-start", width: 200, trigger: "hover", content: "填写以上配置后会自动生成,若觉得生成的不对请自行修改或关闭自动生成" }, scopedSlots: e._u([{ key: "reference", fn: function() {
2202
+ return [t("ElLink", { attrs: { href: "https://avuejs.com/form/form-input-table.html", underline: !1, target: "_blank" } }, [e._v(" onLoad: "), t("i", { staticClass: "el-icon-question" })])];
2203
+ }, proxy: !0 }]) })], 1), t("div", { staticClass: "el-form-item__content" }, [t("MonacoEditor", { attrs: { height: "200", "key-index": `table-onload-${e.data.prop}`, options: e.options }, model: { value: e.onLoad, callback: function(a) {
2204
+ e.onLoad = a;
2205
+ }, expression: "onLoad" } })], 1)]), t("div", { staticClass: "el-form-item" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("formatter:")]), t("div", { staticClass: "el-form-item__content" }, [t("MonacoEditor", { attrs: { height: "200", "key-index": `table-formatter-${e.data.prop}`, options: e.options }, model: { value: e.formatter, callback: function(a) {
2206
+ e.formatter = a;
2207
+ }, expression: "formatter" } })], 1)])]), t("AfdColumn", { ref: "column", attrs: { column: e.data.children.column }, on: { submit: e.handleColumn } })], 1);
2208
+ }, qt = [], Lt = /* @__PURE__ */ c(
2209
+ Nt,
2210
+ Vt,
2211
+ qt,
2346
2212
  !1,
2347
2213
  null,
2348
2214
  null
2349
2215
  );
2350
- const ee = Ta.exports, za = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUMAAADXCAYAAACAszPmAAAAAXNSR0IArs4c6QAADXRJREFUeAHt3cuLZGcZB+BvLk2PM0ZxFMdJXEQCYRIialrUmPgXuM0qkI3GnVl4ScBtUEFFXOhCEBQ3oiDi36BGkWQ0gpgIZgK59EhIxhBn0nMfz+nqwq6e6upT019933vqPAVxuuty3vc8b/fPU3UufWB9ff1GciNAgMDABQ6363/y5MmBM8y3+mfPnmU2H5lnEwgt0P5OHwzdoeYIECBQSEAYFoJWhgCB2ALCMPZ8dEeAQCEBYVgIWhkCBGILCMPY89EdAQKFBIRhIWhlCBCILbB5aE3sFnVHgEAtgfaQk0Xddh7St6haO+vstj4zw/DPr26knz/3dnrr4vXN199/cjV9/cHjm19/9w/n0nP/vjSx3I9/aDU9+VA/Hv/e0+fSX89O9v/J21fTVz876n9ixeb4ZlEDnaOFqU/t+gMx9cXuJDAAgZlvk3/6l/8HYWtx9frynKxy/vIo4LfP+Nn1S+nbv3tz+12+JkBgIAIH2tPxdttqeOTXo03kb306pZUmNg/NjM5+ibW5/s7VyZ6feiala839v3h49hk57dbfbma2DCdNfddvgUX+PO/8HVpUrZ11pk2krT3zbfL4RW0ILlMQtut18EBK714Zr6F/CRAYusDMMPxE8xnhlWZTaeXg5aE7WX8CBJZcYGYYPrG1s2RRm69Lbmv1CBDokcDMMOzRemRp9f7bj6RrS7STKAuKhRAYiMDMMGwPn2lvj941DI2vPPC+YayotSRA4CaBmfuH2+MIdx5LeNMS3EGAAIElEJi5ZbgE6zfXKoy3hMcHjs/14q0nd9mNfyvL9RoCBBYrIAy3+doK3obhSwIDE5j5NnlgFlaXAIEBC8zcMmzPNR7dJs/hjer13Bsp/fZMSv+9Murw3mZ/yBfvHX39k3+k9MJ/Jju/p3n8sW2Pjx8dn3kz+1zrs2n24ynr49POpX7gw0fS45+x02c8N//mFyj5sU/JWtOkZobh+LOzvhxn+JsXU7qw7RS79tS6Zbmdv3TzudR/evViOv/7N9M3Pvf+ZVlN60GgmsDMc5PHXfUlDL/29Kjjpz6V0pFDy3UK4bRzqb/5bEpXmozc61zq8Rz9S4DAdIE9z03+TnOc4eHmU8VHPjJ9AVHvPdScd+xc6qjT0ReBmAIzd6D8rT3OcMc1/2Kuxqir9jPCu97TbBXOfPMfeQ30RoBALYGlio3xzpJamOoSINBfgZlh+MFjh9LrF66lJ/84WsGPNXuX+3Cl6758xrnfH5v2XOrLy7SXaL8gXk9gHwIzw/Cx+9+bfvzsW+ncxmhPZvTfuxfPXUntWSRDOZf6oZXmOKLmmowvvPB6uuOOOzZ/DF577bV04cKFiR+JY8eOeZzPIH4+XnnllbSxsTHx87+2tjbx/W7fzAzD+06sph99/sTU144Pu5n6YHNnjcfb4wPbs0iGEoa72bufwFAFVlZW0tWro+PrrlzZOuC4I0anQ2s6Lqv608YHS3//weqtFGngZ/9sjh9qbo+vvatIPUUI9EngpZdeSm0gdtky3PPQmj6t+BB7/fsb14a42taZQCeBo0ePpsuXu1+lf+bb5HHFoeyQGK+vfwkQ6L/AiRPTP+Lbbc06heFuL452/ymn6UYbiX4I9EZgqcLwS1sXXeiNvkYJEFiYQHtkRXs7depUpxpLFYad1niJnnTfBw6l5sxDNwIEpgjsPMRsylMm7lqqMGwv09XehrKFaC/yaN7+l0AOgaUKw53XK8wBZBkECAxDYOaFGoZB0N+1/MEzG6n9z40Agf0LLNWW4fHmwtznmotyP7F1LnV7Jesv3DNC6nKl651blvu9kvVHm8/0vrx1QPQPT2+knccFzvP4r56/lJ5/c9uVa5vVOtucN378iE8N9/9rYAnLKNCehjrPbanC8OHm7zv/8l8pvb11nGXtc6kvXrzYzCLP2SHr56834Td56e4TRw+kR+87Ms+8PZfAYATG5+t3XeFOp+MN5aDrrn+DofXY67mnT5/enMHdd9/ddRaeR4DAAgRuu+22PZfa/k77zHBPJk8gQKCPAu1xhuNjDbv0v1Rvk7ussOcQIDAMgXmPM7RlOIyfC2tJgMAeArYM9wC61Yfn3ZN1q3W8jgCBPALCMI/jTUuZd0/WTQtwBwECRQWEYVFuxQgQKCUw77szYbigyYz3YtlCXBCwxRLYQ2De3z1huAforT48756sW63jdQQI5BHoFIZ7HWCcpxVLIUCAQD6B8bsz1zPMZ2pJBAj0UGDed2eOM+zhkLVMgEB+gU5vk/OXXf4lzrsna/lFrCGB2ALCcEHzmXdP1oLasFgCBDoKCMOOUJ5GgEC/BOZ9d9YpDF3Ca/4fgjNnzqTV1dXNS30dPOij2fkFvYLA/gTmfXfWKQz319IwX339+vXU7s16+eWX05133rmJ0O7q37mHq/1/r/HQPM7Hz8eFicCY5/djfX39pt+vGzdupLW1tYll7vaNMNxNJtP9KysrmZZkMQQIzBJog6/9b/vt8OHuEedK19vkuh5c3uVK19sW60sCBIILuNJ18AFpjwCBcgI+2S9nrRIBAoEFhGHg4WiNAIFyAsKwnLVKBAgEFhCGgYejNQIEygkIw3LWKhEgEFhAGAYejtYIECgnIAzLWatEgEBgAWEYeDhaI0CgnIAwLGetEgECgQWEYeDhaI0AgXICnc5i7nrObrm2VSJAgEBeAVuGeT0tjQCBngoIw54OTtsECOQVEIZ5PS2NAIGeCgjDng5O2wQI5BXotAPF30DJi25pBAjEE7BlGG8mOiJAoIKAMKyAriQBAvEEhGG8meiIAIEKAsKwArqSBAjEExCG8WaiIwIEKggIwwroShIgEE9AGMabiY4IEKggIAwroCtJgEA8AWEYbyY6IkCggoAwrICuJAEC8QSEYbyZ6IgAgQoCwrACupIECMQTEIbxZqIjAgQqCAjDCuhKEiAQT0AYxpuJjggQqCAgDCugK0mAQDyBThd39dfx4g1ORwQI5BWwZZjX09IIEOipgDDs6eC0TYBAXgFhmNfT0ggQ6KmAMOzp4LRNgEBegU47UPx1vLzolkaAQDwBW4bxZqIjAgQqCAjDCuhKEiAQT0AYxpuJjggQqCAgDCugK0mAQDwBYRhvJjoiQKCCgDCsgK4kAQLxBIRhvJnoiACBCgLCsAK6kgQIxBMQhvFmoiMCBCoICMMK6EoSIBBPQBjGm4mOCBCoICAMK6ArSYBAPAFhGG8mOiJAoIKAMKyAriQBAvEEhGG8meiIAIEKAsKwArqSBAjEE+h0cVd/HS/e4HREgEBeAVuGeT0tjQCBngoIw54OTtsECOQVEIZ5PS2NAIGeCgjDng5O2wQI5BXotAPFX8fLi25pBAjEE7BlGG8mOiJAoIKAMKyAriQBAvEEhGG8meiIAIEKAsKwArqSBAjEExCG8WaiIwIEKggIwwroShIgEE9AGMabiY4IEKggIAwroCtJgEA8AWEYbyY6IkCggoAwrICuJAEC8QSEYbyZ6IgAgQoCwrACupIECMQTEIbxZqIjAgQqCAjDCuhKEiAQT0AYxpuJjggQqCDQ6XqG/iBUhckoSYBAUQFbhkW5FSNAIKqAMIw6GX0RIFBUQBgW5VaMAIGoAsIw6mT0RYBAUQFhWJRbMQIEogp02pvsr+NFHZ++CBDIJWDLMJek5RAg0GsBYdjr8WmeAIFcAsIwl6TlECDQawFh2OvxaZ4AgVwCwjCXpOUQINBrAWHY6/FpngCBXALCMJek5RAg0GsBYdjr8WmeAIFcAsIwl6TlECDQawFh2OvxaZ4AgVwCwjCXpOUQINBrAWHY6/FpngCBXALCMJek5RAg0GsBYdjr8WmeAIFcAp0u4eUPQuXithwCBKIK2DKMOhl9ESBQVEAYFuVWjACBqALCMOpk9EWAQFEBYViUWzECBKIKCMOok9EXAQJFBYRhUW7FCBCIKiAMo05GXwQIFBUQhkW5FSNAIKqAMIw6GX0RIFBUQBgW5VaMAIGoAsIw6mT0RYBAUQFhWJRbMQIEogoIw6iT0RcBAkUFhGFRbsUIEIgqIAyjTkZfBAgUFRCGRbkVI0AgqoAwjDoZfREgUFRAGBblVowAgagCwjDqZPRFgEBRAWFYlFsxAgSiCgjDqJPRFwECRQWEYVFuxQgQiCogDKNORl8ECBQVEIZFuRUjQCCqgDCMOhl9ESBQVEAYFuVWjACBqALCMOpk9EWAQFEBYViUWzECBKIKCMOok9EXAQJFBYRhUW7FCBCIKiAMo05GXwQIFBUQhkW5FSNAIKqAMIw6GX0RIFBUQBgW5VaMAIGoAsIw6mT0RYBAUQFhWJRbMQIEogoIw6iT0RcBAkUFhGFRbsUIEIgqIAyjTkZfBAgUFRCGRbkVI0AgqoAwjDoZfREgUFRAGBblVowAgagCwjDqZPRFgEBRAWFYlFsxAgSiCgjDqJPRFwECRQWEYVFuxQgQiCogDKNORl8ECBQVEIZFuRUjQCCqgDCMOhl9ESBQVEAYFuVWjACBqALCMOpk9EWAQFEBYViUWzECBKIKCMOok9EXAQJFBYRhUW7FCBCIKiAMo05GXwQIFBUQhkW5FSNAIKqAMIw6GX0RIFBU4H8RUTV123y9kQAAAABJRU5ErkJggg==", Pa = (l) => new Function(`return ${l}`)(), Ra = {
2216
+ const Gt = Lt.exports, Ht = ["year", "month", "week", "date", "datetime", "time", "daterange", "timerange", "datetimerange", "dates"], Ut = {
2217
+ name: "WidgetConfig",
2218
+ components: {
2219
+ ConfigCustom: ee,
2220
+ ConfigInput: se,
2221
+ ConfigTextarea: de,
2222
+ ConfigNumber: fe,
2223
+ ConfigDynamic: ye,
2224
+ ConfigSwitch: Ce,
2225
+ ConfigRate: Ae,
2226
+ ConfigSlider: ze,
2227
+ ConfigColor: Qe,
2228
+ ConfigSelect: qe,
2229
+ ConfigTree: Je,
2230
+ ConfigDate: tt,
2231
+ ConfigUpload: ot,
2232
+ ConfigUEditor: pt,
2233
+ ConfigMap: bt,
2234
+ ConfigGroup: Et,
2235
+ ConfigArray: wt,
2236
+ ConfigTitle: Ot,
2237
+ ConfigEvent: Rt,
2238
+ ConfigTable: Gt
2239
+ },
2240
+ props: {
2241
+ data: Object,
2242
+ defaultValues: Object
2243
+ },
2351
2244
  data() {
2352
2245
  return {
2353
- historySteps: {
2354
- index: 0,
2355
- maxStep: 20,
2356
- steps: [],
2357
- storage: !1
2246
+ fields: _,
2247
+ collapse: ["1", "2", "3"],
2248
+ validator: {
2249
+ type: null,
2250
+ required: null,
2251
+ pattern: null,
2252
+ length: null
2358
2253
  }
2359
2254
  };
2360
2255
  },
2256
+ computed: {
2257
+ getComponent() {
2258
+ const l = "config-", { type: e, component: t } = this.data;
2259
+ if ((!e || t) && e !== "u-editor")
2260
+ return `${l}custom`;
2261
+ let a = "input";
2262
+ return [void 0, "input", "password", "url"].includes(e) ? a = "input" : Ht.includes(e) ? a = "date" : ["array", "img"].includes(e) ? a = "array" : ["tree", "cascader"].includes(e) ? a = "tree" : ["radio", "checkbox", "select"].includes(e) ? a = "select" : a = e, l + a;
2263
+ }
2264
+ },
2361
2265
  watch: {
2362
- historySteps: {
2363
- handler(l) {
2364
- l.storage ? localStorage.setItem("avue-form-history", T(l)) : localStorage.removeItem("avue-form-history");
2365
- },
2366
- deep: !0
2266
+ "data.required"(l) {
2267
+ l ? this.validator.required = { required: !0, message: `${this.data.label}必须填写` } : this.validator.required = null, this.generateRule();
2268
+ },
2269
+ "data.pattern"(l) {
2270
+ l ? this.validator.pattern = { pattern: new RegExp(l), message: `${this.data.label}格式不匹配` } : this.validator.pattern = null, this.generateRule();
2367
2271
  }
2368
2272
  },
2369
2273
  methods: {
2370
- initHistory(l) {
2371
- if (l.storage) {
2372
- const a = localStorage.getItem("avue-form-history");
2373
- if (a) {
2374
- this.historySteps = Pa(a);
2375
- const { index: s, steps: n } = this.historySteps;
2376
- return W(n[s]);
2377
- }
2378
- }
2379
- this.historySteps = {
2380
- ...this.historySteps,
2381
- ...l
2382
- };
2383
- const { index: e, steps: t } = this.historySteps;
2384
- return W(t[e]);
2385
- },
2386
- handleHistoryChange(l) {
2387
- this.historySteps.index === this.historySteps.maxStep - 1 ? this.historySteps.steps.shift() : this.historySteps.index++, this.historySteps.steps[this.historySteps.index] = W(l), this.historySteps.index < this.historySteps.steps.length - 1 && (this.historySteps.steps = this.historySteps.steps.slice(0, this.historySteps.index + 1));
2388
- },
2389
- handleUndo() {
2390
- return this.historySteps.index !== 0 && this.historySteps.index--, W(this.historySteps.steps[this.historySteps.index]);
2274
+ handleChangeType(l) {
2275
+ if (!l) return;
2276
+ let e;
2277
+ for (const t of this.fields)
2278
+ if (e = t.list.find((a) => a.type === l), e) break;
2279
+ if (e)
2280
+ for (const t in e)
2281
+ e && Object.prototype.hasOwnProperty.call(e, t) && !["icon", "label", "span"].includes(t) && (this.data[t] = e[t]);
2391
2282
  },
2392
- handleRedo() {
2393
- return this.historySteps.index !== this.historySteps.steps.length - 1 && this.historySteps.index++, W(this.historySteps.steps[this.historySteps.index]);
2283
+ generateRule() {
2284
+ const l = [];
2285
+ Object.keys(this.validator).forEach((e) => {
2286
+ this.validator[e] && l.push(this.validator[e]);
2287
+ }), l.length === 0 ? delete this.data.rules : this.data.rules = l;
2394
2288
  }
2395
2289
  }
2396
- }, Da = {
2290
+ };
2291
+ var Jt = function() {
2292
+ var e = this, t = e._self._c;
2293
+ return t("div", { staticClass: "widget-config" }, [e.data && Object.keys(e.data).length > 0 ? t("ElForm", { attrs: { "label-suffix": ":", "label-position": "left", "label-width": "90px", size: "small" } }, [t("ElCollapse", { model: { value: e.collapse, callback: function(a) {
2294
+ e.collapse = a;
2295
+ }, expression: "collapse" } }, [t("ElCollapseItem", { attrs: { name: "1", title: "基本属性" } }, [e.data.type && !e.data.component ? t("ElFormItem", { attrs: { label: "类型" } }, [t("ElSelect", { staticStyle: { width: "100%" }, attrs: { placeholder: "请选择类型" }, on: { change: e.handleChangeType }, model: { value: e.data.type, callback: function(a) {
2296
+ e.$set(e.data, "type", a);
2297
+ }, expression: "data.type" } }, e._l(e.fields, function(a) {
2298
+ return t("ElOptionGroup", { key: a.title, attrs: { label: a.title } }, e._l(a.list, function(i) {
2299
+ return t("ElOption", { key: i.type, attrs: { label: i.label, value: i.type } });
2300
+ }), 1);
2301
+ }), 1)], 1) : e._e(), t("ElFormItem", { attrs: { label: "属性值" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "属性值" }, model: { value: e.data.prop, callback: function(a) {
2302
+ e.$set(e.data, "prop", a);
2303
+ }, expression: "data.prop" } })], 1), t("ElFormItem", { attrs: { label: "标题" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "标题" }, model: { value: e.data.label, callback: function(a) {
2304
+ e.$set(e.data, "label", a);
2305
+ }, expression: "data.label" } })], 1), ["group", "dynamic", "title"].includes(e.data.type) ? e._e() : t("ElFormItem", { attrs: { label: "标题宽度" } }, [t("ElInputNumber", { staticStyle: { width: "100%" }, attrs: { min: 80, step: 10, "controls-position": "right", placeholder: "标签宽度" }, model: { value: e.data.labelWidth, callback: function(a) {
2306
+ e.$set(e.data, "labelWidth", a);
2307
+ }, expression: "data.labelWidth" } })], 1), e.data.subfield ? e._e() : t("ElFormItem", { attrs: { label: "标签位置" } }, [t("ElSelect", { attrs: { placeholder: "标签位置", clearable: "" }, model: { value: e.data.labelPosition, callback: function(a) {
2308
+ e.$set(e.data, "labelPosition", a);
2309
+ }, expression: "data.labelPosition" } }, [t("ElOption", { attrs: { label: "上", value: "top" } }), t("ElOption", { attrs: { label: "左", value: "left" } }), t("ElOption", { attrs: { label: "右", value: "right" } })], 1)], 1), e.data.subfield ? t("ElFormItem", { attrs: { label: "宽度" } }, [t("ElInputNumber", { staticStyle: { width: "100%" }, attrs: { "controls-position": "right", placeholder: "宽度", min: 100 }, model: { value: e.data.width, callback: function(a) {
2310
+ e.$set(e.data, "width", a);
2311
+ }, expression: "data.width" } })], 1) : e._e(), !e.data.subfield && !["group"].includes(e.data.type) ? t("ElFormItem", { attrs: { label: "表单栅格" } }, [t("ElInputNumber", { staticStyle: { width: "100%" }, attrs: { "controls-position": "right", placeholder: "表单栅格", min: 2, max: 24 }, model: { value: e.data.span, callback: function(a) {
2312
+ e.$set(e.data, "span", a);
2313
+ }, expression: "data.span" } })], 1) : e._e(), ["cascader", "checkbox", "radio", "select", "tree", "upload", "img", "array", "slider", "timerange", "daterange", "datetimerange"].includes(
2314
+ e.data.type
2315
+ ) ? t("ElFormItem", { attrs: { label: "数据类型" }, scopedSlots: e._u([{ key: "label", fn: function() {
2316
+ return [t("ElLink", { attrs: { underline: !1, href: "https://avuejs.com/docs/datatype.html", target: "_blank" } }, [e._v(" 数据类型 "), t("i", { staticClass: "el-icon-question" })])];
2317
+ }, proxy: !0 }], null, !1, 3051713203) }, [t("ElSelect", { attrs: { placeholder: "数据类型", clearable: "" }, model: { value: e.data.dataType, callback: function(a) {
2318
+ e.$set(e.data, "dataType", a);
2319
+ }, expression: "data.dataType" } }, [t("ElOption", { attrs: { label: "String", value: "string" } }), t("ElOption", { attrs: { label: "Number", value: "number" } }), t("ElOption", { attrs: { label: "Array", value: "array" } })], 1)], 1) : e._e(), t("ElFormItem", { attrs: { label: "字段提示" }, scopedSlots: e._u([{ key: "label", fn: function() {
2320
+ return [t("ElLink", { attrs: { underline: !1, href: "https://avuejs.com/form/form-tip.html", target: "_blank" } }, [e._v(" 字段提示 "), t("i", { staticClass: "el-icon-question" })])];
2321
+ }, proxy: !0 }], null, !1, 708991366) }, [t("ElInput", { attrs: { clearable: "", placeholder: "字段提示" }, model: { value: e.data.tip, callback: function(a) {
2322
+ e.$set(e.data, "tip", a);
2323
+ }, expression: "data.tip" } })], 1), e.data.tip && !["upload"].includes(e.data.type) ? t("ElFormItem", { attrs: { label: "字段提示位置", "label-width": "110px" } }, [t("ElSelect", { attrs: { placeholder: "字段提示位置", clearable: "" }, model: { value: e.data.tipPlacement, callback: function(a) {
2324
+ e.$set(e.data, "tipPlacement", a);
2325
+ }, expression: "data.tipPlacement" } }, [t("ElOption", { attrs: { label: "上", value: "top" } }), t("ElOption", { attrs: { label: "下", value: "bottom" } }), t("ElOption", { attrs: { label: "左", value: "left" } }), t("ElOption", { attrs: { label: "右", value: "right" } })], 1)], 1) : e._e(), t("ElFormItem", { attrs: { label: "标题提示" }, scopedSlots: e._u([{ key: "label", fn: function() {
2326
+ return [t("ElLink", { attrs: { underline: !1, href: "https://avuejs.com/form/form-tip.html", target: "_blank" } }, [e._v(" 标题提示 "), t("i", { staticClass: "el-icon-question" })])];
2327
+ }, proxy: !0 }], null, !1, 1033131739) }, [t("ElInput", { attrs: { clearable: "", placeholder: "标题提示" }, model: { value: e.data.labelTip, callback: function(a) {
2328
+ e.$set(e.data, "labelTip", a);
2329
+ }, expression: "data.labelTip" } })], 1), e.data.labelTip && !["upload"].includes(e.data.type) ? t("ElFormItem", { attrs: { label: "标题提示位置", "label-width": "110px" } }, [t("ElSelect", { attrs: { placeholder: "标题提示位置", clearable: "" }, model: { value: e.data.labelTipPlacement, callback: function(a) {
2330
+ e.$set(e.data, "labelTipPlacement", a);
2331
+ }, expression: "data.labelTipPlacement" } }, [t("ElOption", { attrs: { label: "上", value: "top" } }), t("ElOption", { attrs: { label: "下", value: "bottom" } }), t("ElOption", { attrs: { label: "左", value: "left" } }), t("ElOption", { attrs: { label: "右", value: "right" } })], 1)], 1) : e._e(), ["color", "dynamic", "group", "ueditor", "upload", "map"].includes(e.data.type) ? e._e() : t("ElFormItem", { attrs: { label: "默认值" } }, [e.defaultValues && e.defaultValues[e.data.type] ? [t("ElSelect", { attrs: { "allow-create": "", clearable: "", filterable: "", placeholder: "默认值" }, model: { value: e.data.value, callback: function(a) {
2332
+ e.$set(e.data, "value", a);
2333
+ }, expression: "data.value" } }, e._l(e.defaultValues[e.data.type], function(a) {
2334
+ return t("ElOption", { key: a.value, attrs: { label: a.label, value: a.value } });
2335
+ }), 1)] : [t("ElInput", { attrs: { clearable: "", placeholder: "默认值" }, model: { value: e.data.value, callback: function(a) {
2336
+ e.$set(e.data, "value", a);
2337
+ }, expression: "data.value" } })]], 2), t("ElFormItem", { attrs: { label: "详情模式" } }, [t("ElSwitch", { model: { value: e.data.detail, callback: function(a) {
2338
+ e.$set(e.data, "detail", a);
2339
+ }, expression: "data.detail" } })], 1), t("ElFormItem", { attrs: { label: "是否只读" } }, [t("ElSwitch", { model: { value: e.data.readonly, callback: function(a) {
2340
+ e.$set(e.data, "readonly", a);
2341
+ }, expression: "data.readonly" } })], 1), t("ElFormItem", { attrs: { label: "是否禁用" } }, [t("ElSwitch", { model: { value: e.data.disabled, callback: function(a) {
2342
+ e.$set(e.data, "disabled", a);
2343
+ }, expression: "data.disabled" } })], 1), t("ElFormItem", { attrs: { label: "是否可见" } }, [t("ElSwitch", { model: { value: e.data.display, callback: function(a) {
2344
+ e.$set(e.data, "display", a);
2345
+ }, expression: "data.display" } })], 1), t("ElFormItem", { attrs: { label: "是否必填" } }, [t("ElSwitch", { model: { value: e.data.required, callback: function(a) {
2346
+ e.$set(e.data, "required", a);
2347
+ }, expression: "data.required" } }), e.data.required ? t("ElInput", { attrs: { placeholder: "正则表达式" }, model: { value: e.data.pattern, callback: function(a) {
2348
+ e.$set(e.data, "pattern", a);
2349
+ }, expression: "data.pattern" } }) : e._e()], 1)], 1), t("ElCollapseItem", { attrs: { name: "2", title: "组件属性" } }, [t(e.getComponent, { tag: "Component", attrs: { data: e.data, "default-values": e.defaultValues } })], 1), ["group"].includes(e.data.type) ? e._e() : t("ElCollapseItem", { attrs: { name: "3", title: "事件属性" } }, [t("ConfigEvent", { attrs: { data: e.data } })], 1)], 1)], 1) : [t("FyEmpty", { staticStyle: { "margin-top": "100%" }, attrs: { desc: "拖拽字段进行配置" } })]], 2);
2350
+ }, Yt = [], Xt = /* @__PURE__ */ c(
2351
+ Ut,
2352
+ Jt,
2353
+ Yt,
2354
+ !1,
2355
+ null,
2356
+ null
2357
+ );
2358
+ const Zt = Xt.exports, ea = {
2397
2359
  name: "FyFormDesign",
2398
- components: { Draggable: S, WidgetForm: ee, FormConfig: U, WidgetConfig: X, MonacoEditor: g },
2399
- mixins: [Ra],
2360
+ components: { Draggable: b, WidgetForm: V, FormConfig: U, WidgetConfig: Zt, MonacoEditor: f },
2361
+ mixins: [w],
2400
2362
  props: {
2401
2363
  options: {
2402
2364
  type: [Object, String],
@@ -2429,7 +2391,7 @@ const ee = Ta.exports, za = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUMAA
2429
2391
  type: Array,
2430
2392
  default: () => {
2431
2393
  const l = [];
2432
- return D.forEach((e) => {
2394
+ return _.forEach((e) => {
2433
2395
  e.list.forEach((t) => {
2434
2396
  l.push(t.type);
2435
2397
  });
@@ -2445,8 +2407,8 @@ const ee = Ta.exports, za = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUMAA
2445
2407
  },
2446
2408
  data() {
2447
2409
  return {
2448
- widgetEmpty: za,
2449
- fields: D,
2410
+ widgetEmpty: $,
2411
+ fields: _,
2450
2412
  widgetForm: {
2451
2413
  column: [],
2452
2414
  labelPosition: "left",
@@ -2490,7 +2452,7 @@ const ee = Ta.exports, za = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUMAA
2490
2452
  let e = l;
2491
2453
  if (typeof e == "string")
2492
2454
  try {
2493
- e = y(`(${e})`);
2455
+ e = u(`(${e})`);
2494
2456
  } catch {
2495
2457
  console.error("非法配置"), e = { column: [] };
2496
2458
  }
@@ -2516,7 +2478,7 @@ const ee = Ta.exports, za = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUMAA
2516
2478
  let l = this.options;
2517
2479
  if (typeof l == "string")
2518
2480
  try {
2519
- l = y(l);
2481
+ l = u(l);
2520
2482
  } catch {
2521
2483
  console.error("非法配置"), l = { column: [] };
2522
2484
  }
@@ -2574,7 +2536,7 @@ const ee = Ta.exports, za = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUMAA
2574
2536
  this.transformToAvueOptions(this.widgetForm).then((l) => {
2575
2537
  this.configOption.generateType && this.configOption.generateType === "string" ? this.$emit(
2576
2538
  "submit",
2577
- T(l, {
2539
+ v(l, {
2578
2540
  minify: !0,
2579
2541
  ...this.configOption
2580
2542
  })
@@ -2585,7 +2547,7 @@ const ee = Ta.exports, za = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUMAA
2585
2547
  handleCopy() {
2586
2548
  this.transformToAvueOptions(this.widgetForm).then((l) => {
2587
2549
  this.$Clipboard({
2588
- text: T(l, {
2550
+ text: v(l, {
2589
2551
  minify: !0,
2590
2552
  ...this.configOption
2591
2553
  })
@@ -2627,24 +2589,24 @@ const ee = Ta.exports, za = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUMAA
2627
2589
  transformToAvueOptions(l, e = !1) {
2628
2590
  return new Promise((t, a) => {
2629
2591
  try {
2630
- const s = _(l);
2631
- for (const n in s)
2632
- q(s[n]) && delete s[n];
2633
- for (let n = 0; n < s.column.length; n++) {
2634
- const o = s.column[n];
2635
- if (e && (["change", "blur", "click", "focus"].forEach((u) => {
2636
- o[u] && (o[u] = y(`${o[u]}`.replace(/this/g, "_this")));
2637
- }), o.event && Object.keys(o.event).forEach((u) => {
2638
- o.event[u] = y(`${o.event[u]}`.replace(/this/g, "_this"));
2592
+ const i = p(l);
2593
+ for (const s in i)
2594
+ E(i[s]) && delete i[s];
2595
+ for (let s = 0; s < i.column.length; s++) {
2596
+ const o = i.column[s];
2597
+ if (e && (["change", "blur", "click", "focus"].forEach((n) => {
2598
+ o[n] && (o[n] = u(`${o[n]}`.replace(/this/g, "_this")));
2599
+ }), o.event && Object.keys(o.event).forEach((n) => {
2600
+ o.event[n] = u(`${o.event[n]}`.replace(/this/g, "_this"));
2639
2601
  })), o.type === "dynamic" && o.children && o.children.column && o.children.column.length > 0)
2640
- o.children.column.forEach((u) => {
2641
- delete u.subfield;
2642
- }), this.transformToAvueOptions(o.children, e).then((u) => {
2643
- o.children = u;
2602
+ o.children.column.forEach((n) => {
2603
+ delete n.subfield;
2604
+ }), this.transformToAvueOptions(o.children, e).then((n) => {
2605
+ o.children = n;
2644
2606
  });
2645
2607
  else if (o.type === "group") {
2646
- s.group || (s.group = []);
2647
- const m = {
2608
+ i.group || (i.group = []);
2609
+ const r = {
2648
2610
  label: o.label,
2649
2611
  icon: o.icon,
2650
2612
  prop: o.prop,
@@ -2652,147 +2614,147 @@ const ee = Ta.exports, za = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUMAA
2652
2614
  collapse: o.collapse,
2653
2615
  display: o.display
2654
2616
  };
2655
- this.transformToAvueOptions(o.children, e).then((u) => {
2656
- m.column = u.column, s.group.push(m);
2657
- }), s.column.splice(n, 1), n--;
2617
+ this.transformToAvueOptions(o.children, e).then((n) => {
2618
+ r.column = n.column, i.group.push(r);
2619
+ }), i.column.splice(s, 1), s--;
2658
2620
  } else if (["checkbox", "radio", "tree", "cascader", "select"].includes(o.type)) {
2659
2621
  if (o.dicOption === "static") {
2660
2622
  delete o.dicUrl, delete o.dicMethod, delete o.dicQuery, delete o.dicQueryConfig;
2661
- const { label: m, value: u, desc: x } = o.props;
2662
- o.dicData.forEach((v) => {
2663
- if (v.label) {
2664
- const k = v.label;
2665
- delete v.label, v[m] = k;
2623
+ const { label: r, value: n, desc: m } = o.props;
2624
+ o.dicData.forEach((d) => {
2625
+ if (d.label) {
2626
+ const h = d.label;
2627
+ delete d.label, d[r] = h;
2666
2628
  }
2667
- if (v.value) {
2668
- const k = v.value;
2669
- delete v.value, v[u] = k;
2629
+ if (d.value) {
2630
+ const h = d.value;
2631
+ delete d.value, d[n] = h;
2670
2632
  }
2671
- if (v.desc) {
2672
- const k = v.desc;
2673
- delete v.desc, v[x] = k;
2633
+ if (d.desc) {
2634
+ const h = d.desc;
2635
+ delete d.desc, d[m] = h;
2674
2636
  }
2675
2637
  });
2676
2638
  } else if (o.dicOption === "remote")
2677
2639
  if (delete o.dicData, o.dicQueryConfig && o.dicQueryConfig.length > 0) {
2678
- const m = {};
2679
- o.dicQueryConfig.forEach((u) => {
2680
- u.key && u.value && (m[u.key] = u.value);
2681
- }), o.dicQuery = m, delete o.dicQueryConfig;
2640
+ const r = {};
2641
+ o.dicQueryConfig.forEach((n) => {
2642
+ n.key && n.value && (r[n.key] = n.value);
2643
+ }), o.dicQuery = r, delete o.dicQueryConfig;
2682
2644
  } else delete o.dicQueryConfig;
2683
2645
  delete o.dicOption;
2684
2646
  } else if (["upload"].includes(o.type)) {
2685
2647
  if (o.headersConfig && o.headersConfig.length > 0) {
2686
- const m = {};
2687
- o.headersConfig.forEach((u) => {
2688
- u.key && u.value && (m[u.key] = u.value);
2689
- }), o.headers = m;
2648
+ const r = {};
2649
+ o.headersConfig.forEach((n) => {
2650
+ n.key && n.value && (r[n.key] = n.value);
2651
+ }), o.headers = r;
2690
2652
  } else delete o.headers;
2691
2653
  if (delete o.headersConfig, o.dataConfig && o.dataConfig.length > 0) {
2692
- const m = {};
2693
- o.dataConfig.forEach((u) => {
2694
- u.key && u.value && (m[u.key] = u.value);
2695
- }), o.data = m;
2654
+ const r = {};
2655
+ o.dataConfig.forEach((n) => {
2656
+ n.key && n.value && (r[n.key] = n.value);
2657
+ }), o.data = r;
2696
2658
  } else delete o.data;
2697
2659
  delete o.dataConfig;
2698
2660
  }
2699
- for (const m in o)
2700
- q(o[m]) && delete o[m];
2661
+ for (const r in o)
2662
+ E(o[r]) && delete o[r];
2701
2663
  }
2702
- t(s);
2703
- } catch (s) {
2704
- a(s);
2664
+ t(i);
2665
+ } catch (i) {
2666
+ a(i);
2705
2667
  }
2706
2668
  });
2707
2669
  },
2708
2670
  // Avue配置项 转化为 表单设计器配置项
2709
2671
  transAvueOptionsToFormDesigner(l) {
2710
- typeof l == "string" && (l = y(l));
2711
- const e = _(l);
2672
+ typeof l == "string" && (l = u(l));
2673
+ const e = p(l);
2712
2674
  return new Promise((t, a) => {
2713
2675
  try {
2714
- if (e.column && e.column.length > 0 && e.column.forEach((s) => {
2715
- if (s.type === "dynamic" && s.children && s.children.column && s.children.column.length > 0)
2716
- s.children.column.forEach((o) => {
2676
+ if (e.column && e.column.length > 0 && e.column.forEach((i) => {
2677
+ if (i.type === "dynamic" && i.children && i.children.column && i.children.column.length > 0)
2678
+ i.children.column.forEach((o) => {
2717
2679
  o.subfield = !0;
2718
- }), this.transAvueOptionsToFormDesigner(s.children).then((o) => {
2719
- s.children = o;
2680
+ }), this.transAvueOptionsToFormDesigner(i.children).then((o) => {
2681
+ i.children = o;
2720
2682
  });
2721
- else if (["checkbox", "radio", "tree", "cascader", "select"].includes(s.type)) {
2722
- if (!s.dicData && s.dicQuery && typeof s.dicQuery == "object") {
2723
- const n = [];
2724
- for (const o in s.dicQuery)
2725
- n.push({
2683
+ else if (["checkbox", "radio", "tree", "cascader", "select"].includes(i.type)) {
2684
+ if (!i.dicData && i.dicQuery && typeof i.dicQuery == "object") {
2685
+ const s = [];
2686
+ for (const o in i.dicQuery)
2687
+ s.push({
2726
2688
  key: o,
2727
- value: s.dicQuery[o],
2689
+ value: i.dicQuery[o],
2728
2690
  $cellEdit: !0
2729
2691
  });
2730
- s.dicQueryConfig = n;
2692
+ i.dicQueryConfig = s;
2731
2693
  }
2732
- s.dicUrl ? s.dicOption = "remote" : s.dicOption = "static", s.dicData ? s.props && s.dicData.forEach((n) => {
2733
- const { label: o, value: m, desc: u } = s.props;
2694
+ i.dicUrl ? i.dicOption = "remote" : i.dicOption = "static", i.dicData ? i.props && i.dicData.forEach((s) => {
2695
+ const { label: o, value: r, desc: n } = i.props;
2734
2696
  if (o) {
2735
- const x = n[o];
2736
- delete n[o], n.label = x;
2697
+ const m = s[o];
2698
+ delete s[o], s.label = m;
2737
2699
  }
2738
- if (m) {
2739
- const x = n[m];
2740
- delete n[m], n.value = x;
2700
+ if (r) {
2701
+ const m = s[r];
2702
+ delete s[r], s.value = m;
2741
2703
  }
2742
- if (u) {
2743
- const x = n[u];
2744
- delete n[u], n.desc = x;
2704
+ if (n) {
2705
+ const m = s[n];
2706
+ delete s[n], s.desc = m;
2745
2707
  }
2746
- }) : s.dicData = [];
2747
- } else if (["upload"].includes(s.type)) {
2748
- if (s.headers && typeof s.headers == "object") {
2749
- const n = [];
2750
- for (const o in s.headers)
2751
- n.push({
2708
+ }) : i.dicData = [];
2709
+ } else if (["upload"].includes(i.type)) {
2710
+ if (i.headers && typeof i.headers == "object") {
2711
+ const s = [];
2712
+ for (const o in i.headers)
2713
+ s.push({
2752
2714
  key: o,
2753
- value: s.headers[o],
2715
+ value: i.headers[o],
2754
2716
  $cellEdit: !0
2755
2717
  });
2756
- s.headersConfig = n;
2757
- } else s.headersConfig = [];
2758
- if (s.data && typeof s.data == "object") {
2759
- const n = [];
2760
- for (const o in s.data)
2761
- n.push({
2718
+ i.headersConfig = s;
2719
+ } else i.headersConfig = [];
2720
+ if (i.data && typeof i.data == "object") {
2721
+ const s = [];
2722
+ for (const o in i.data)
2723
+ s.push({
2762
2724
  key: o,
2763
- value: s.data[o],
2725
+ value: i.data[o],
2764
2726
  $cellEdit: !0
2765
2727
  });
2766
- s.dataConfig = n;
2767
- } else s.dataConfig = [];
2728
+ i.dataConfig = s;
2729
+ } else i.dataConfig = [];
2768
2730
  }
2769
2731
  }), e.group && e.group.length > 0) {
2770
- for (let s = 0; s < e.group.length; s++) {
2732
+ for (let i = 0; i < e.group.length; i++) {
2771
2733
  e.column || (e.column = []);
2772
- const n = e.group[s], o = {
2734
+ const s = e.group[i], o = {
2773
2735
  type: "group",
2774
- label: n.label,
2775
- icon: n.icon,
2776
- prop: n.prop,
2777
- arrow: n.arrow,
2778
- collapse: n.collapse,
2779
- display: n.display
2736
+ label: s.label,
2737
+ icon: s.icon,
2738
+ prop: s.prop,
2739
+ arrow: s.arrow,
2740
+ collapse: s.collapse,
2741
+ display: s.display
2780
2742
  };
2781
- this.transAvueOptionsToFormDesigner(n).then((m) => {
2782
- o.children = m, e.column.push(o);
2743
+ this.transAvueOptionsToFormDesigner(s).then((r) => {
2744
+ o.children = r, e.column.push(o);
2783
2745
  });
2784
2746
  }
2785
2747
  delete e.group;
2786
2748
  }
2787
2749
  t(e);
2788
- } catch (s) {
2789
- a(s);
2750
+ } catch (i) {
2751
+ a(i);
2790
2752
  }
2791
2753
  });
2792
2754
  },
2793
2755
  async getData(l = "json", e = {}) {
2794
2756
  if (l === "string")
2795
- return T(await this.transformToAvueOptions(this.widgetForm), {
2757
+ return v(await this.transformToAvueOptions(this.widgetForm), {
2796
2758
  minify: !0,
2797
2759
  ...e
2798
2760
  });
@@ -2809,82 +2771,82 @@ const ee = Ta.exports, za = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUMAA
2809
2771
  }
2810
2772
  }
2811
2773
  };
2812
- var Ma = function() {
2774
+ var ta = function() {
2813
2775
  var e = this, t = e._self._c;
2814
- return t(V, { staticClass: "form-designer" }, [t(j, { attrs: { width: e.leftWidth } }, [t("div", { staticClass: "fields-list" }, [e.customFields && e.customFields.length > 0 ? [e.customFields[0].title && e.customFields[0].list && e.customFields[0].list.length > 0 ? [e._l(e.customFields, function(a, s) {
2815
- return [t("div", { key: `f_${s}`, staticClass: "field-title" }, [e._v(" " + e._s(a.title) + " ")]), t("Draggable", { key: `d_${s}`, attrs: { tag: "ul", list: a.list, group: { name: "form", pull: "clone", put: !1 }, "ghost-class": "ghost", sort: !1 } }, [e._l(a.list, function(n, o) {
2816
- return [t("li", { key: `c_${o}`, staticClass: "field-label" }, [t("a", { on: { click: function(m) {
2817
- return e.handleFieldClick(n);
2818
- } } }, [t("i", { staticClass: "icon iconfont", class: n.icon }), t("span", [e._v(e._s(n.title || n.label))])])])];
2776
+ return t("ElContainer", { staticClass: "form-designer" }, [t("ElAside", { attrs: { width: e.leftWidth } }, [t("div", { staticClass: "fields-list" }, [e.customFields && e.customFields.length > 0 ? [e.customFields[0].title && e.customFields[0].list && e.customFields[0].list.length > 0 ? [e._l(e.customFields, function(a, i) {
2777
+ return [t("div", { key: `f_${i}`, staticClass: "field-title" }, [e._v(" " + e._s(a.title) + " ")]), t("Draggable", { key: `d_${i}`, attrs: { tag: "ul", list: a.list, group: { name: "form", pull: "clone", put: !1 }, "ghost-class": "ghost", sort: !1 } }, [e._l(a.list, function(s, o) {
2778
+ return [t("li", { key: `c_${o}`, staticClass: "field-label" }, [t("a", { on: { click: function(r) {
2779
+ return e.handleFieldClick(s);
2780
+ } } }, [t("i", { staticClass: "icon iconfont", class: s.icon }), t("span", [e._v(e._s(s.title || s.label))])])])];
2819
2781
  })], 2)];
2820
- })] : [t($, { staticClass: "field-title", attrs: { underline: !1, href: "https://github.com/sscfaith/avue-form-design/blob/master/CHANGELOG.md#2020-09-22", target: "_blank" } }, [e._v(" 自定义字段 "), t("i", { staticClass: "el-icon-question" })]), t("Draggable", { attrs: { tag: "ul", list: e.customFields, group: { name: "form", pull: "clone", put: !1 }, "ghost-class": "ghost", sort: !1 } }, [e._l(e.customFields, function(a, s) {
2821
- return [a.tips ? t(me, { key: s, attrs: { effect: "dark", content: a.tips } }, [t("li", { key: s, staticClass: "field-label" }, [t("a", { staticStyle: { padding: "0 5px" }, on: { click: function(n) {
2782
+ })] : [t("ElLink", { staticClass: "field-title", attrs: { underline: !1, href: "https://github.com/sscfaith/avue-form-design/blob/master/CHANGELOG.md#2020-09-22", target: "_blank" } }, [e._v(" 自定义字段 "), t("i", { staticClass: "el-icon-question" })]), t("Draggable", { attrs: { tag: "ul", list: e.customFields, group: { name: "form", pull: "clone", put: !1 }, "ghost-class": "ghost", sort: !1 } }, [e._l(e.customFields, function(a, i) {
2783
+ return [a.tips ? t("ElTooltip", { key: i, attrs: { effect: "dark", content: a.tips } }, [t("li", { key: i, staticClass: "field-label" }, [t("a", { staticStyle: { padding: "0 5px" }, on: { click: function(s) {
2822
2784
  return e.handleFieldClick(a);
2823
- } } }, [t("i", { class: a.icon }), t("span", { staticStyle: { "margin-left": "5px" } }, [e._v(e._s(a.title || a.label))])])])]) : t("li", { key: s, staticClass: "field-label" }, [t("a", { staticStyle: { padding: "0 5px" }, on: { click: function(n) {
2785
+ } } }, [t("i", { class: a.icon }), t("span", { staticStyle: { "margin-left": "5px" } }, [e._v(e._s(a.title || a.label))])])])]) : t("li", { key: i, staticClass: "field-label" }, [t("a", { staticStyle: { padding: "0 5px" }, on: { click: function(s) {
2824
2786
  return e.handleFieldClick(a);
2825
2787
  } } }, [t("i", { class: a.icon }), t("span", { staticStyle: { "margin-left": "5px" } }, [e._v(e._s(a.title || a.label))])])])];
2826
- })], 2)]] : e._e(), e._l(e.fields, function(a, s) {
2827
- return t("div", { key: s }, [a.list.find((n) => e.includeFields.includes(n.type)) ? [t("div", { staticClass: "field-title" }, [e._v(" " + e._s(a.title) + " ")]), t("Draggable", { attrs: { tag: "ul", list: a.list, group: { name: "form", pull: "clone", put: !1 }, "ghost-class": "ghost", sort: !1 } }, [e._l(a.list, function(n, o) {
2828
- return [e.includeFields.includes(n.type) ? t("li", { key: `c_${o}`, staticClass: "field-label" }, [t("a", { on: { click: function(m) {
2829
- return e.handleFieldClick(n);
2830
- } } }, [t("i", { staticClass: "icon iconfont", class: n.icon }), t("span", [e._v(e._s(n.title || n.label))])])]) : e._e()];
2788
+ })], 2)]] : e._e(), e._l(e.fields, function(a, i) {
2789
+ return t("div", { key: i }, [a.list.find((s) => e.includeFields.includes(s.type)) ? [t("div", { staticClass: "field-title" }, [e._v(" " + e._s(a.title) + " ")]), t("Draggable", { attrs: { tag: "ul", list: a.list, group: { name: "form", pull: "clone", put: !1 }, "ghost-class": "ghost", sort: !1 } }, [e._l(a.list, function(s, o) {
2790
+ return [e.includeFields.includes(s.type) ? t("li", { key: `c_${o}`, staticClass: "field-label" }, [t("a", { on: { click: function(r) {
2791
+ return e.handleFieldClick(s);
2792
+ } } }, [t("i", { staticClass: "icon iconfont", class: s.icon }), t("span", [e._v(e._s(s.title || s.label))])])]) : e._e()];
2831
2793
  })], 2)] : e._e()], 2);
2832
- })], 2)]), t(V, { staticClass: "widget-container", attrs: { direction: "vertical" } }, [t(ue, { staticClass: "widget-container-header" }, [t("div", [e.undoRedo ? [t(p, { attrs: { type: "text", size: "medium", icon: "el-icon-refresh-left", disabled: e.historySteps.index === 0 }, on: { click: function(a) {
2794
+ })], 2)]), t("ElContainer", { staticClass: "widget-container", attrs: { direction: "vertical" } }, [t("ElHeader", { staticClass: "widget-container-header" }, [t("div", [e.undoRedo ? [t("ElButton", { attrs: { type: "text", size: "medium", icon: "el-icon-refresh-left", disabled: e.historySteps.index === 0 }, on: { click: function(a) {
2833
2795
  e.widgetForm = e.handleUndo();
2834
- } } }, [e._v(" 撤销 ")]), t(p, { attrs: { type: "text", size: "medium", icon: "el-icon-refresh-right", disabled: e.historySteps.index === e.historySteps.steps.length - 1 }, on: { click: function(a) {
2796
+ } } }, [e._v(" 撤销 ")]), t("ElButton", { attrs: { type: "text", size: "medium", icon: "el-icon-refresh-right", disabled: e.historySteps.index === e.historySteps.steps.length - 1 }, on: { click: function(a) {
2835
2797
  e.widgetForm = e.handleRedo();
2836
- } } }, [e._v(" 重做 ")])] : e._e()], 2), t("div", { staticStyle: { display: "flex", "align-items": "center" } }, [e.showGithubStar ? t("iframe", { staticStyle: { "margin-left": "10px" }, attrs: { src: "https://ghbtns.com/github-btn.html?user=sscfaith&repo=avue-form-design&type=star&count=true", frameborder: "0", scrolling: "0", width: "100", height: "20", title: "GitHub" } }) : e._e(), e._t("toolbar-left"), e.toolbar.includes("avue-doc") ? t(p, { attrs: { type: "text", size: "medium", icon: "el-icon-document" }, on: { click: e.handleAvueDoc } }, [e._v(" Avue文档 ")]) : e._e(), e.toolbar.includes("import") ? t(p, { attrs: { type: "text", size: "medium", icon: "el-icon-upload2" }, on: { click: function(a) {
2798
+ } } }, [e._v(" 重做 ")])] : e._e()], 2), t("div", { staticStyle: { display: "flex", "align-items": "center" } }, [e.showGithubStar ? t("iframe", { staticStyle: { "margin-left": "10px" }, attrs: { src: "https://ghbtns.com/github-btn.html?user=sscfaith&repo=avue-form-design&type=star&count=true", frameborder: "0", scrolling: "0", width: "100", height: "20", title: "GitHub" } }) : e._e(), e._t("toolbar-left"), e.toolbar.includes("avue-doc") ? t("ElButton", { attrs: { type: "text", size: "medium", icon: "el-icon-document" }, on: { click: e.handleAvueDoc } }, [e._v(" Avue文档 ")]) : e._e(), e.toolbar.includes("import") ? t("ElButton", { attrs: { type: "text", size: "medium", icon: "el-icon-upload2" }, on: { click: function(a) {
2837
2799
  e.importJsonVisible = !0;
2838
- } } }, [e._v(" 导入JSON ")]) : e._e(), e.toolbar.includes("generate") ? t(p, { attrs: { type: "text", size: "medium", icon: "el-icon-download" }, on: { click: e.handleGenerateJson } }, [e._v(" 生成JSON ")]) : e._e(), e.toolbar.includes("preview") ? t(p, { attrs: { type: "text", size: "medium", icon: "el-icon-view" }, on: { click: e.handlePreview } }, [e._v(" 预览 ")]) : e._e(), e.toolbar.includes("clear") ? t(p, { staticClass: "danger", attrs: { type: "text", size: "medium", icon: "el-icon-delete" }, on: { click: e.handleClear } }, [e._v(" 清空 ")]) : e._e(), e._t("toolbar")], 2)]), t(pe, { style: { background: e.widgetForm.column.length === 0 ? `url(${e.widgetEmpty}) no-repeat 50%` : "" } }, [t(ee, { ref: "widgetForm", attrs: { data: e.widgetForm, select: e.widgetFormSelect }, on: { "update:select": function(a) {
2800
+ } } }, [e._v(" 导入JSON ")]) : e._e(), e.toolbar.includes("generate") ? t("ElButton", { attrs: { type: "text", size: "medium", icon: "el-icon-download" }, on: { click: e.handleGenerateJson } }, [e._v(" 生成JSON ")]) : e._e(), e.toolbar.includes("preview") ? t("ElButton", { attrs: { type: "text", size: "medium", icon: "el-icon-view" }, on: { click: e.handlePreview } }, [e._v(" 预览 ")]) : e._e(), e.toolbar.includes("clear") ? t("ElButton", { staticClass: "danger", attrs: { type: "text", size: "medium", icon: "el-icon-delete" }, on: { click: e.handleClear } }, [e._v(" 清空 ")]) : e._e(), e._t("toolbar")], 2)]), t("ElMain", { style: { background: e.widgetForm.column.length === 0 ? `url(${e.widgetEmpty}) no-repeat 50%` : "" } }, [t("WidgetForm", { ref: "widgetForm", attrs: { data: e.widgetForm, select: e.widgetFormSelect }, on: { "update:select": function(a) {
2839
2801
  e.widgetFormSelect = a;
2840
2802
  }, change: function(a) {
2841
2803
  return e.handleHistoryChange(e.widgetForm);
2842
- } } })], 1)], 1), t(j, { staticClass: "widget-config-container", attrs: { width: e.rightWidth } }, [t(Q, { attrs: { stretch: "" }, model: { value: e.configTab, callback: function(a) {
2804
+ } } })], 1)], 1), t("ElAside", { staticClass: "widget-config-container", attrs: { width: e.rightWidth } }, [t("ElTabs", { attrs: { stretch: "" }, model: { value: e.configTab, callback: function(a) {
2843
2805
  e.configTab = a;
2844
- }, expression: "configTab" } }, [t(F, { staticStyle: { padding: "0 10px" }, attrs: { label: "字段属性", name: "widget" } }, [t(X, { attrs: { data: e.widgetFormSelect, "default-values": e.defaultValues } })], 1), t(F, { staticStyle: { padding: "0 10px" }, attrs: { label: "表单属性", name: "form", lazy: "" } }, [t(U, { attrs: { data: e.widgetForm } })], 1)], 1)], 1), t(E, { attrs: { title: "导入JSON", visible: e.importJsonVisible, size: "50%", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(a) {
2806
+ }, expression: "configTab" } }, [t("ElTabPane", { staticStyle: { padding: "0 10px" }, attrs: { label: "字段属性", name: "widget" } }, [t("WidgetConfig", { attrs: { data: e.widgetFormSelect, "default-values": e.defaultValues } })], 1), t("ElTabPane", { staticStyle: { padding: "0 10px" }, attrs: { label: "表单属性", name: "form", lazy: "" } }, [t("FormConfig", { attrs: { data: e.widgetForm } })], 1)], 1)], 1), t("ElDrawer", { attrs: { title: "导入JSON", visible: e.importJsonVisible, size: "50%", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(a) {
2845
2807
  e.importJsonVisible = a;
2846
- } } }, [t(g, { attrs: { "key-index": "import", height: "82%" }, model: { value: e.importJson, callback: function(a) {
2808
+ } } }, [t("MonacoEditor", { attrs: { "key-index": "import", height: "82%" }, model: { value: e.importJson, callback: function(a) {
2847
2809
  e.importJson = a;
2848
- }, expression: "importJson" } }), t("div", { staticClass: "afd-drawer-foot" }, [t(p, { attrs: { size: "medium", type: "primary" }, on: { click: e.handleImportJsonSubmit } }, [e._v(" 确定 ")]), t(p, { attrs: { size: "medium", type: "danger" }, on: { click: function(a) {
2810
+ }, expression: "importJson" } }), t("div", { staticClass: "afd-drawer-foot" }, [t("ElButton", { attrs: { size: "medium", type: "primary" }, on: { click: e.handleImportJsonSubmit } }, [e._v(" 确定 ")]), t("ElButton", { attrs: { size: "medium", type: "danger" }, on: { click: function(a) {
2849
2811
  e.importJsonVisible = !1;
2850
- } } }, [e._v(" 取消 ")])], 1)], 1), t(E, { attrs: { title: "生成JSON", visible: e.generateJsonVisible, size: "50%", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(a) {
2812
+ } } }, [e._v(" 取消 ")])], 1)], 1), t("ElDrawer", { attrs: { title: "生成JSON", visible: e.generateJsonVisible, size: "50%", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(a) {
2851
2813
  e.generateJsonVisible = a;
2852
- } } }, [t(g, { attrs: { "key-index": "generate", height: "82%", "read-only": !0 }, model: { value: e.option, callback: function(a) {
2814
+ } } }, [t("MonacoEditor", { attrs: { "key-index": "generate", height: "82%", "read-only": !0 }, model: { value: e.option, callback: function(a) {
2853
2815
  e.option = a;
2854
- }, expression: "option" } }), t("div", { staticClass: "afd-drawer-foot" }, [t(p, { attrs: { size: "medium", type: "primary" }, on: { click: e.handleGenerate } }, [e._v(" 生成 ")]), t(B, { attrs: { placement: "top", trigger: "hover", width: "350px" }, scopedSlots: e._u([{ key: "reference", fn: function() {
2855
- return [t(p, { staticStyle: { "margin-left": "10px" }, attrs: { size: "medium", type: "primary" }, on: { click: e.handleCopy } }, [e._v(" 复制 ")])];
2856
- }, proxy: !0 }]) }, [t(I, { staticStyle: { padding: "0 20px" }, attrs: { "label-suffix": ":", "label-width": "180px", "label-position": "left" }, model: { value: e.configOption, callback: function(a) {
2816
+ }, expression: "option" } }), t("div", { staticClass: "afd-drawer-foot" }, [t("ElButton", { attrs: { size: "medium", type: "primary" }, on: { click: e.handleGenerate } }, [e._v(" 生成 ")]), t("ElPopover", { attrs: { placement: "top", trigger: "hover", width: "350px" }, scopedSlots: e._u([{ key: "reference", fn: function() {
2817
+ return [t("ElButton", { staticStyle: { "margin-left": "10px" }, attrs: { size: "medium", type: "primary" }, on: { click: e.handleCopy } }, [e._v(" 复制 ")])];
2818
+ }, proxy: !0 }]) }, [t("ElForm", { staticStyle: { padding: "0 20px" }, attrs: { "label-suffix": ":", "label-width": "180px", "label-position": "left" }, model: { value: e.configOption, callback: function(a) {
2857
2819
  e.configOption = a;
2858
- }, expression: "configOption" } }, [t(i, { attrs: { label: "类型" } }, [t(B, { staticStyle: { "margin-right": "15px" }, attrs: { placement: "top-start", trigger: "hover", content: "复制json对象" }, scopedSlots: e._u([{ key: "reference", fn: function() {
2859
- return [t(w, { attrs: { label: "json" }, model: { value: e.configOption.generateType, callback: function(a) {
2820
+ }, expression: "configOption" } }, [t("ElFormItem", { attrs: { label: "类型" } }, [t("ElPopover", { staticStyle: { "margin-right": "15px" }, attrs: { placement: "top-start", trigger: "hover", content: "复制json对象" }, scopedSlots: e._u([{ key: "reference", fn: function() {
2821
+ return [t("ElRadio", { attrs: { label: "json" }, model: { value: e.configOption.generateType, callback: function(a) {
2860
2822
  e.$set(e.configOption, "generateType", a);
2861
2823
  }, expression: "configOption.generateType" } }, [e._v(" json ")])];
2862
- }, proxy: !0 }]) }), t(B, { attrs: { placement: "top-start", trigger: "hover", content: "复制string字符串,可直接用于后端保存无需再次处理。" }, scopedSlots: e._u([{ key: "reference", fn: function() {
2863
- return [t(w, { attrs: { label: "string" }, model: { value: e.configOption.generateType, callback: function(a) {
2824
+ }, proxy: !0 }]) }), t("ElPopover", { attrs: { placement: "top-start", trigger: "hover", content: "复制string字符串,可直接用于后端保存无需再次处理。" }, scopedSlots: e._u([{ key: "reference", fn: function() {
2825
+ return [t("ElRadio", { attrs: { label: "string" }, model: { value: e.configOption.generateType, callback: function(a) {
2864
2826
  e.$set(e.configOption, "generateType", a);
2865
2827
  }, expression: "configOption.generateType" } }, [e._v(" string ")])];
2866
- }, proxy: !0 }]) })], 1), t(i, { attrs: { label: "缩进长度-空格数量" } }, [t(le, { attrs: { "show-stops": "", marks: { 1: "1", 2: "2", 3: "3", 4: "4" }, min: 1, max: 4, step: 1 }, model: { value: e.configOption.space, callback: function(a) {
2828
+ }, proxy: !0 }]) })], 1), t("ElFormItem", { attrs: { label: "缩进长度-空格数量" } }, [t("ElSlider", { attrs: { "show-stops": "", marks: { 1: "1", 2: "2", 3: "3", 4: "4" }, min: 1, max: 4, step: 1 }, model: { value: e.configOption.space, callback: function(a) {
2867
2829
  e.$set(e.configOption, "space", a);
2868
- }, expression: "configOption.space" } })], 1), t(i, { attrs: { label: "引号类型" } }, [t(c, { attrs: { "active-value": "single", "inactive-value": "double", "active-text": "单引号", "inactive-text": "双引号" }, model: { value: e.configOption.quoteType, callback: function(a) {
2830
+ }, expression: "configOption.space" } })], 1), t("ElFormItem", { attrs: { label: "引号类型" } }, [t("ElSwitch", { attrs: { "active-value": "single", "inactive-value": "double", "active-text": "单引号", "inactive-text": "双引号" }, model: { value: e.configOption.quoteType, callback: function(a) {
2869
2831
  e.$set(e.configOption, "quoteType", a);
2870
- }, expression: "configOption.quoteType" } })], 1), t(i, { attrs: { label: "移除key的引号" } }, [t(c, { model: { value: e.configOption.dropQuotesOnKeys, callback: function(a) {
2832
+ }, expression: "configOption.quoteType" } })], 1), t("ElFormItem", { attrs: { label: "移除key的引号" } }, [t("ElSwitch", { model: { value: e.configOption.dropQuotesOnKeys, callback: function(a) {
2871
2833
  e.$set(e.configOption, "dropQuotesOnKeys", a);
2872
- }, expression: "configOption.dropQuotesOnKeys" } })], 1), t(i, { attrs: { label: "移除数字字符串的引号" } }, [t(c, { model: { value: e.configOption.dropQuotesOnNumbers, callback: function(a) {
2834
+ }, expression: "configOption.dropQuotesOnKeys" } })], 1), t("ElFormItem", { attrs: { label: "移除数字字符串的引号" } }, [t("ElSwitch", { model: { value: e.configOption.dropQuotesOnNumbers, callback: function(a) {
2873
2835
  e.$set(e.configOption, "dropQuotesOnNumbers", a);
2874
- }, expression: "configOption.dropQuotesOnNumbers" } })], 1)], 1)], 1)], 1)], 1), t(E, { attrs: { title: "预览", visible: e.previewVisible, size: "60%", "append-to-body": "", "before-close": e.handleBeforeClose }, on: { "update:visible": function(a) {
2836
+ }, expression: "configOption.dropQuotesOnNumbers" } })], 1)], 1)], 1)], 1)], 1), t("ElDrawer", { attrs: { title: "预览", visible: e.previewVisible, size: "60%", "append-to-body": "", "before-close": e.handleBeforeClose }, on: { "update:visible": function(a) {
2875
2837
  e.previewVisible = a;
2876
- } } }, [e.previewVisible ? t(ae, { ref: "form", staticClass: "afd-preview-form", attrs: { option: e.option }, on: { submit: e.handlePreviewSubmit }, model: { value: e.form, callback: function(a) {
2838
+ } } }, [e.previewVisible ? t("FyForm", { ref: "form", staticClass: "afd-preview-form", attrs: { option: e.option }, on: { submit: e.handlePreviewSubmit }, model: { value: e.form, callback: function(a) {
2877
2839
  e.form = a;
2878
- }, expression: "form" } }) : e._e(), t("div", { staticClass: "afd-drawer-foot" }, [t(p, { attrs: { size: "medium", type: "primary" }, on: { click: e.handlePreviewSubmit } }, [e._v(" 确定 ")]), t(p, { attrs: { size: "medium", type: "danger" }, on: { click: e.handleBeforeClose } }, [e._v(" 取消 ")])], 1)], 1)], 1);
2879
- }, Qa = [], Ka = /* @__PURE__ */ h(
2880
- Da,
2881
- Ma,
2882
- Qa,
2840
+ }, expression: "form" } }) : e._e(), t("div", { staticClass: "afd-drawer-foot" }, [t("ElButton", { attrs: { size: "medium", type: "primary" }, on: { click: e.handlePreviewSubmit } }, [e._v(" 确定 ")]), t("ElButton", { attrs: { size: "medium", type: "danger" }, on: { click: e.handleBeforeClose } }, [e._v(" 取消 ")])], 1)], 1)], 1);
2841
+ }, aa = [], la = /* @__PURE__ */ c(
2842
+ ea,
2843
+ ta,
2844
+ aa,
2883
2845
  !1,
2884
2846
  null,
2885
2847
  null
2886
2848
  );
2887
- const Tl = Ka.exports;
2849
+ const ua = la.exports;
2888
2850
  export {
2889
- Tl as default
2851
+ ua as default
2890
2852
  };