@web-utils/component 3.2.3 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunks/{FormTemp.0ezzipG4.mjs → FormTemp.2IfXIr8o.mjs} +6 -5
- package/chunks/{form-input-mixin.DLHG0EnH.mjs → form-input-mixin.IKogWBfn.mjs} +2 -2
- package/chunks/{form-item-mixin.gd9p9Rrj.mjs → form-item-mixin.BilKDUlK.mjs} +1 -1
- package/chunks/{index.Uf8ONhVI.mjs → index.LGsb2aDq.mjs} +3 -3
- package/data-display/index.mjs +15 -129
- package/data-table-picker/index.mjs +1 -1
- package/easy-popup/index.mjs +7 -8
- package/editable-tree/index.mjs +1 -1
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow-designer/index.mjs +164 -218
- package/flow-viewer/index.mjs +73 -161
- package/form-button/index.mjs +11 -25
- package/form-cascader/index.mjs +2 -2
- package/form-checkbox-group/index.mjs +2 -2
- package/form-date-picker/index.mjs +2 -2
- package/form-holder/index.mjs +1 -1
- package/form-input/index.mjs +2 -2
- package/form-input-email/index.mjs +2 -2
- package/form-input-id-card/index.mjs +2 -2
- package/form-input-number/index.mjs +2 -2
- package/form-input-phone-number/index.mjs +2 -2
- package/form-input-tag/index.mjs +31 -155
- package/form-input-time/index.mjs +2 -2
- package/form-item/index.mjs +1 -1
- package/form-radio-group/index.mjs +2 -2
- package/form-select/index.mjs +2 -2
- package/form-switch/index.mjs +2 -2
- package/form-textarea/index.mjs +2 -2
- package/form-view/index.mjs +13 -12
- package/fy-curd/index.mjs +5 -4
- package/fy-form/index.mjs +1 -1
- package/fy-form-design/index.mjs +329 -498
- package/fy-input-icon/index.mjs +21 -20
- package/fy-u-editor/index.mjs +237 -75
- package/highlight-j-s/index.mjs +3 -4
- package/icon-temp/index.mjs +6 -7
- package/nav-bar/index.mjs +6 -7
- package/package.json +1 -1
- package/page/index.mjs +0 -1
- package/page-header/index.mjs +2 -3
- package/page-skeleton/index.mjs +17 -95
- package/pageable-table/index.mjs +1 -1
- package/pageable-view/index.mjs +8 -8
- package/present-view/index.mjs +4 -3
- package/resize-observer/index.mjs +3 -4
- package/split-pane/index.mjs +4 -3
- package/swiper/index.mjs +4 -3
- package/table-view/index.mjs +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +9 -10
- package/chunks/FyUEditor.c06LkvIy.mjs +0 -224
- package/chunks/FyUEditor.vue_vue_type_style_index_0_lang.0-PDx197.mjs +0 -167
- package/chunks/IconTemp.tzsg5qth.mjs +0 -29
- package/chunks/ResizeObserver.sOHk2Cm-.mjs +0 -51
package/fy-form-design/index.mjs
CHANGED
|
@@ -1,208 +1,39 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var F = Object.defineProperty;
|
|
2
|
+
var k = Object.getOwnPropertySymbols;
|
|
3
|
+
var S = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var $ = (l, e, t) => e in l ? F(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t, p = (l, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
|
|
6
|
+
S.call(e, t) && $(l, t, e[t]);
|
|
7
|
+
if (k)
|
|
8
|
+
for (var t of k(e))
|
|
9
|
+
A.call(e, t) && $(l, t, e[t]);
|
|
10
10
|
return l;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var s = (
|
|
12
|
+
var y = (l, e, t) => new Promise((a, i) => {
|
|
13
|
+
var s = (o) => {
|
|
14
14
|
try {
|
|
15
|
-
r(t.next(
|
|
15
|
+
r(t.next(o));
|
|
16
16
|
} catch (u) {
|
|
17
17
|
i(u);
|
|
18
18
|
}
|
|
19
|
-
},
|
|
19
|
+
}, n = (o) => {
|
|
20
20
|
try {
|
|
21
|
-
r(t.throw(
|
|
21
|
+
r(t.throw(o));
|
|
22
22
|
} catch (u) {
|
|
23
23
|
i(u);
|
|
24
24
|
}
|
|
25
|
-
}, r = (
|
|
25
|
+
}, r = (o) => o.done ? a(o.value) : Promise.resolve(o.value).then(s, n);
|
|
26
26
|
r((t = t.apply(l, e)).next());
|
|
27
27
|
});
|
|
28
|
-
import {
|
|
29
|
-
import
|
|
30
|
-
import "
|
|
31
|
-
import { c as
|
|
32
|
-
import { n as c } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
33
|
-
import v from "vuedraggable";
|
|
28
|
+
import { isBlank as C } from "@web-utils/core";
|
|
29
|
+
import b from "./monaco-editor/index.mjs";
|
|
30
|
+
import g from "vuedraggable";
|
|
31
|
+
import { c as _ } from "../chunks/json-beautifier.fUZFSW5j.mjs";
|
|
34
32
|
import { d as m, z as h } from "../chunks/util.y1gUGRqi.mjs";
|
|
35
|
-
import { cloneDeep as
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
diffEditor: { type: Boolean, default: !1 },
|
|
40
|
-
// 是否使用diff模式
|
|
41
|
-
width: { type: [String, Number], default: "100%" },
|
|
42
|
-
height: { type: [String, Number], default: "100%" },
|
|
43
|
-
original: String,
|
|
44
|
-
// 只有在diff模式下有效
|
|
45
|
-
value: [String, Object],
|
|
46
|
-
language: { type: String, default: "javascript" },
|
|
47
|
-
theme: { type: String, default: "vs" },
|
|
48
|
-
readOnly: { type: Boolean, default: !1 },
|
|
49
|
-
options: {
|
|
50
|
-
type: Object,
|
|
51
|
-
default() {
|
|
52
|
-
return {};
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
editorMounted: { type: Function, default: w },
|
|
56
|
-
editorBeforeMount: { type: Function, default: w },
|
|
57
|
-
keyIndex: { type: String }
|
|
58
|
-
},
|
|
59
|
-
computed: {
|
|
60
|
-
style() {
|
|
61
|
-
return {
|
|
62
|
-
width: /^\d+$/.test(this.width) ? `${this.width}px` : this.width,
|
|
63
|
-
height: /^\d+$/.test(this.height) ? `${this.height}px` : this.height,
|
|
64
|
-
position: "relative"
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
watch: {
|
|
69
|
-
options: {
|
|
70
|
-
deep: !0,
|
|
71
|
-
handler(l) {
|
|
72
|
-
this.editor && this.editor.updateOptions(l);
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
keyIndex() {
|
|
76
|
-
let l = this.value;
|
|
77
|
-
typeof l == "object" && (l = g(l)), this.editor && l !== this._getValue() && this._setValue(l);
|
|
78
|
-
},
|
|
79
|
-
language() {
|
|
80
|
-
if (this.editor)
|
|
81
|
-
if (this.diffEditor) {
|
|
82
|
-
const { original: l, modified: e } = this.editor.getModel();
|
|
83
|
-
f.editor.setModelLanguage(l, this.language), f.editor.setModelLanguage(e, this.language);
|
|
84
|
-
} else
|
|
85
|
-
f.editor.setModelLanguage(this.editor.getModel(), this.language);
|
|
86
|
-
},
|
|
87
|
-
theme() {
|
|
88
|
-
this.editor && f.editor.setTheme(this.theme);
|
|
89
|
-
},
|
|
90
|
-
style() {
|
|
91
|
-
this.editor && this.$nextTick(() => {
|
|
92
|
-
this.editor.layout();
|
|
93
|
-
});
|
|
94
|
-
},
|
|
95
|
-
value(l) {
|
|
96
|
-
this.editor && l !== this._getValue() && this._setValue(l);
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
mounted() {
|
|
100
|
-
this.initMonaco();
|
|
101
|
-
},
|
|
102
|
-
beforeDestroy() {
|
|
103
|
-
var l;
|
|
104
|
-
(l = this.editor) == null || l.dispose();
|
|
105
|
-
},
|
|
106
|
-
methods: {
|
|
107
|
-
initMonaco() {
|
|
108
|
-
const { value: l, language: e, theme: t, readOnly: a, options: i } = this;
|
|
109
|
-
Object.assign(i, this._editorBeforeMount()), this.editor = f.editor[this.diffEditor ? "createDiffEditor" : "create"](this.$el, p({
|
|
110
|
-
value: typeof l == "string" ? l : g(l),
|
|
111
|
-
language: e,
|
|
112
|
-
theme: t,
|
|
113
|
-
readOnly: a
|
|
114
|
-
}, i)), this.diffEditor && this._setModel(this.value, this.original), this._editorMounted(this.editor);
|
|
115
|
-
},
|
|
116
|
-
_handleFullScreen() {
|
|
117
|
-
this.isMaximum ? this.minEditor() : this.maxEditor();
|
|
118
|
-
},
|
|
119
|
-
// 放大
|
|
120
|
-
maxEditor() {
|
|
121
|
-
this.isMaximum = !0;
|
|
122
|
-
const l = this.$el;
|
|
123
|
-
this.originSize = {
|
|
124
|
-
width: l.clientWidth,
|
|
125
|
-
height: l.clientHeight
|
|
126
|
-
}, l.classList.add("editor-fullscreen"), this.editor.layout({
|
|
127
|
-
height: document.body.clientHeight,
|
|
128
|
-
width: document.body.clientWidth
|
|
129
|
-
}), document.addEventListener("keyup", this.handleEsc);
|
|
130
|
-
},
|
|
131
|
-
handleEsc(l) {
|
|
132
|
-
l.keyCode === 27 && this.minEditor();
|
|
133
|
-
},
|
|
134
|
-
// 缩小
|
|
135
|
-
minEditor() {
|
|
136
|
-
this.isMaximum = !1, this.$el.classList.remove("editor-fullscreen"), this.editor.layout({
|
|
137
|
-
height: this.originSize.height,
|
|
138
|
-
width: this.originSize.width
|
|
139
|
-
}), document.removeEventListener("keyup", this.handleEsc);
|
|
140
|
-
},
|
|
141
|
-
_getEditor() {
|
|
142
|
-
return this.editor ? this.diffEditor ? this.editor.modifiedEditor : this.editor : null;
|
|
143
|
-
},
|
|
144
|
-
_setModel(l, e) {
|
|
145
|
-
const { language: t } = this, a = f.editor.createModel(e, t), i = f.editor.createModel(l, t);
|
|
146
|
-
this.editor.setModel({
|
|
147
|
-
original: a,
|
|
148
|
-
modified: i
|
|
149
|
-
});
|
|
150
|
-
},
|
|
151
|
-
_setValue(l) {
|
|
152
|
-
const e = this._getEditor();
|
|
153
|
-
if (e)
|
|
154
|
-
return e.setValue(l);
|
|
155
|
-
},
|
|
156
|
-
_getValue() {
|
|
157
|
-
const l = this._getEditor();
|
|
158
|
-
return l ? l.getValue() : "";
|
|
159
|
-
},
|
|
160
|
-
_editorBeforeMount() {
|
|
161
|
-
return this.editorBeforeMount(f) || {};
|
|
162
|
-
},
|
|
163
|
-
_editorMounted(l) {
|
|
164
|
-
this.editorMounted(l, f), this.diffEditor ? l.onDidUpdateDiff((e) => {
|
|
165
|
-
const t = this._getValue();
|
|
166
|
-
this._emitChange(t, e);
|
|
167
|
-
}) : l.onDidChangeModelContent((e) => {
|
|
168
|
-
const t = this._getValue();
|
|
169
|
-
this._emitChange(t, e);
|
|
170
|
-
});
|
|
171
|
-
},
|
|
172
|
-
_emitChange(l, e) {
|
|
173
|
-
this.$emit("change", l, e), this.$emit("input", l);
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
render(l) {
|
|
177
|
-
const e = this.options.fullScreen;
|
|
178
|
-
return l("div", { class: "monaco_editor_container", style: this.style }, [
|
|
179
|
-
e ? l("i", {
|
|
180
|
-
class: "el-icon-full-screen",
|
|
181
|
-
style: {
|
|
182
|
-
width: "1.2em",
|
|
183
|
-
height: "1.2em",
|
|
184
|
-
position: "absolute",
|
|
185
|
-
left: "0px",
|
|
186
|
-
top: "0px",
|
|
187
|
-
zIndex: "1",
|
|
188
|
-
cursor: "pointer"
|
|
189
|
-
},
|
|
190
|
-
on: { click: this._handleFullScreen }
|
|
191
|
-
}) : ""
|
|
192
|
-
]);
|
|
193
|
-
}
|
|
194
|
-
}, T = null, M = null;
|
|
195
|
-
var z = /* @__PURE__ */ c(
|
|
196
|
-
W,
|
|
197
|
-
T,
|
|
198
|
-
M,
|
|
199
|
-
!1,
|
|
200
|
-
null,
|
|
201
|
-
null,
|
|
202
|
-
null,
|
|
203
|
-
null
|
|
204
|
-
);
|
|
205
|
-
const _ = z.exports, x = [
|
|
33
|
+
import { cloneDeep as v } from "@web-utils/integrations/lodash";
|
|
34
|
+
import "./fy-u-editor/style.css";
|
|
35
|
+
import { n as c } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
36
|
+
const E = [
|
|
206
37
|
{
|
|
207
38
|
title: "布局字段",
|
|
208
39
|
list: [
|
|
@@ -675,7 +506,7 @@ const _ = z.exports, x = [
|
|
|
675
506
|
}
|
|
676
507
|
]
|
|
677
508
|
}
|
|
678
|
-
],
|
|
509
|
+
], O = "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==", B = (l) => new Function(`return ${l}`)(), W = {
|
|
679
510
|
data() {
|
|
680
511
|
return {
|
|
681
512
|
historySteps: {
|
|
@@ -689,7 +520,7 @@ const _ = z.exports, x = [
|
|
|
689
520
|
watch: {
|
|
690
521
|
historySteps: {
|
|
691
522
|
handler(l) {
|
|
692
|
-
l.storage ? localStorage.setItem("avue-form-history",
|
|
523
|
+
l.storage ? localStorage.setItem("avue-form-history", _(l)) : localStorage.removeItem("avue-form-history");
|
|
693
524
|
},
|
|
694
525
|
deep: !0
|
|
695
526
|
}
|
|
@@ -699,28 +530,28 @@ const _ = z.exports, x = [
|
|
|
699
530
|
if (l.storage) {
|
|
700
531
|
const a = localStorage.getItem("avue-form-history");
|
|
701
532
|
if (a) {
|
|
702
|
-
this.historySteps =
|
|
533
|
+
this.historySteps = B(a);
|
|
703
534
|
const { index: i, steps: s } = this.historySteps;
|
|
704
|
-
return
|
|
535
|
+
return v(s[i]);
|
|
705
536
|
}
|
|
706
537
|
}
|
|
707
538
|
this.historySteps = p(p({}, this.historySteps), l);
|
|
708
539
|
const { index: e, steps: t } = this.historySteps;
|
|
709
|
-
return
|
|
540
|
+
return v(t[e]);
|
|
710
541
|
},
|
|
711
542
|
handleHistoryChange(l) {
|
|
712
|
-
this.historySteps.index === this.historySteps.maxStep - 1 ? this.historySteps.steps.shift() : this.historySteps.index++, this.historySteps.steps[this.historySteps.index] =
|
|
543
|
+
this.historySteps.index === this.historySteps.maxStep - 1 ? this.historySteps.steps.shift() : this.historySteps.index++, this.historySteps.steps[this.historySteps.index] = v(l), this.historySteps.index < this.historySteps.steps.length - 1 && (this.historySteps.steps = this.historySteps.steps.slice(0, this.historySteps.index + 1));
|
|
713
544
|
},
|
|
714
545
|
handleUndo() {
|
|
715
|
-
return this.historySteps.index !== 0 && this.historySteps.index--,
|
|
546
|
+
return this.historySteps.index !== 0 && this.historySteps.index--, v(this.historySteps.steps[this.historySteps.index]);
|
|
716
547
|
},
|
|
717
548
|
handleRedo() {
|
|
718
|
-
return this.historySteps.index !== this.historySteps.steps.length - 1 && this.historySteps.index++,
|
|
549
|
+
return this.historySteps.index !== this.historySteps.steps.length - 1 && this.historySteps.index++, v(this.historySteps.steps[this.historySteps.index]);
|
|
719
550
|
}
|
|
720
551
|
}
|
|
721
|
-
},
|
|
552
|
+
}, T = {
|
|
722
553
|
name: "WidgetFormItem",
|
|
723
|
-
components: { FyUEditor: () => import("
|
|
554
|
+
components: { FyUEditor: () => import("./fy-u-editor/index.mjs") },
|
|
724
555
|
props: {
|
|
725
556
|
item: {
|
|
726
557
|
type: Object,
|
|
@@ -778,22 +609,22 @@ const _ = z.exports, x = [
|
|
|
778
609
|
}
|
|
779
610
|
}
|
|
780
611
|
};
|
|
781
|
-
var
|
|
612
|
+
var z = function() {
|
|
782
613
|
var e = this, t = e._self._c;
|
|
783
614
|
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);
|
|
784
|
-
},
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
615
|
+
}, R = [], P = /* @__PURE__ */ c(
|
|
616
|
+
T,
|
|
617
|
+
z,
|
|
618
|
+
R,
|
|
788
619
|
!1,
|
|
789
620
|
null,
|
|
790
621
|
null,
|
|
791
622
|
null,
|
|
792
623
|
null
|
|
793
624
|
);
|
|
794
|
-
const
|
|
625
|
+
const x = P.exports, D = {
|
|
795
626
|
name: "WidgetFormTable",
|
|
796
|
-
components: { WidgetFormItem:
|
|
627
|
+
components: { WidgetFormItem: x, Draggable: g },
|
|
797
628
|
props: {
|
|
798
629
|
data: Object,
|
|
799
630
|
column: Object,
|
|
@@ -862,7 +693,7 @@ const k = V.exports, N = {
|
|
|
862
693
|
}
|
|
863
694
|
}
|
|
864
695
|
};
|
|
865
|
-
var
|
|
696
|
+
var M = function() {
|
|
866
697
|
var e = this, t = e._self._c;
|
|
867
698
|
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) {
|
|
868
699
|
return e.handleWidgetTableAdd(a, e.column);
|
|
@@ -886,19 +717,19 @@ var L = function() {
|
|
|
886
717
|
} } }, [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) {
|
|
887
718
|
return a.stopPropagation(), e.handleWidgetCloneTable(e.index);
|
|
888
719
|
} } }, [t("i", { staticClass: "iconfont icon-copy" })]) : e._e()], 1);
|
|
889
|
-
},
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
720
|
+
}, Q = [], j = /* @__PURE__ */ c(
|
|
721
|
+
D,
|
|
722
|
+
M,
|
|
723
|
+
Q,
|
|
893
724
|
!1,
|
|
894
725
|
null,
|
|
895
726
|
null,
|
|
896
727
|
null,
|
|
897
728
|
null
|
|
898
729
|
);
|
|
899
|
-
const
|
|
730
|
+
const w = j.exports, K = {
|
|
900
731
|
name: "WidgetFormGroup",
|
|
901
|
-
components: { WidgetFormItem:
|
|
732
|
+
components: { WidgetFormItem: x, WidgetFormTable: w, Draggable: g },
|
|
902
733
|
props: {
|
|
903
734
|
data: Object,
|
|
904
735
|
column: Object,
|
|
@@ -967,7 +798,7 @@ const F = G.exports, H = {
|
|
|
967
798
|
}
|
|
968
799
|
}
|
|
969
800
|
};
|
|
970
|
-
var
|
|
801
|
+
var N = function() {
|
|
971
802
|
var e = this, t = e._self._c;
|
|
972
803
|
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) {
|
|
973
804
|
return e.handleWidgetGroupAdd(a, e.column);
|
|
@@ -994,19 +825,19 @@ var U = function() {
|
|
|
994
825
|
} } }, [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) {
|
|
995
826
|
return a.stopPropagation(), e.handleWidgetCloneTable(e.index);
|
|
996
827
|
} } }, [t("i", { staticClass: "iconfont icon-copy" })]) : e._e()], 1);
|
|
997
|
-
},
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
828
|
+
}, V = [], q = /* @__PURE__ */ c(
|
|
829
|
+
K,
|
|
830
|
+
N,
|
|
831
|
+
V,
|
|
1001
832
|
!1,
|
|
1002
833
|
null,
|
|
1003
834
|
null,
|
|
1004
835
|
null,
|
|
1005
836
|
null
|
|
1006
837
|
);
|
|
1007
|
-
const
|
|
838
|
+
const L = q.exports, G = {
|
|
1008
839
|
name: "WidgetForm",
|
|
1009
|
-
components: { Draggable:
|
|
840
|
+
components: { Draggable: g, WidgetFormItem: x, WidgetFormTable: w, WidgetFormGroup: L },
|
|
1010
841
|
props: {
|
|
1011
842
|
data: Object,
|
|
1012
843
|
select: Object
|
|
@@ -1049,7 +880,7 @@ const X = Y.exports, Z = {
|
|
|
1049
880
|
}
|
|
1050
881
|
}
|
|
1051
882
|
};
|
|
1052
|
-
var
|
|
883
|
+
var H = function() {
|
|
1053
884
|
var e = this, t = e._self._c;
|
|
1054
885
|
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) {
|
|
1055
886
|
return e.$emit("change");
|
|
@@ -1077,23 +908,23 @@ var ee = function() {
|
|
|
1077
908
|
return s.stopPropagation(), e.handleWidgetClone(i);
|
|
1078
909
|
} } }, [t("i", { staticClass: "iconfont icon-copy" })]) : e._e()], 1)], 1)];
|
|
1079
910
|
})], 2)], 1)], 1)], 1);
|
|
1080
|
-
},
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
911
|
+
}, U = [], J = /* @__PURE__ */ c(
|
|
912
|
+
G,
|
|
913
|
+
H,
|
|
914
|
+
U,
|
|
1084
915
|
!1,
|
|
1085
916
|
null,
|
|
1086
917
|
null,
|
|
1087
918
|
null,
|
|
1088
919
|
null
|
|
1089
920
|
);
|
|
1090
|
-
const
|
|
921
|
+
const Y = J.exports, X = {
|
|
1091
922
|
name: "FormConfig",
|
|
1092
923
|
props: {
|
|
1093
924
|
data: Object
|
|
1094
925
|
}
|
|
1095
926
|
};
|
|
1096
|
-
var
|
|
927
|
+
var Z = function() {
|
|
1097
928
|
var e = this, t = e._self._c;
|
|
1098
929
|
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) {
|
|
1099
930
|
e.$set(e.data, "labelPosition", a);
|
|
@@ -1122,19 +953,19 @@ var se = function() {
|
|
|
1122
953
|
}, expression: "data.readonly" } })], 1), t("ElFormItem", { attrs: { label: "全局禁用" } }, [t("ElSwitch", { model: { value: e.data.disabled, callback: function(a) {
|
|
1123
954
|
e.$set(e.data, "disabled", a);
|
|
1124
955
|
}, expression: "data.disabled" } })], 1)], 1)], 1);
|
|
1125
|
-
},
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
956
|
+
}, ee = [], te = /* @__PURE__ */ c(
|
|
957
|
+
X,
|
|
958
|
+
Z,
|
|
959
|
+
ee,
|
|
1129
960
|
!1,
|
|
1130
961
|
null,
|
|
1131
962
|
null,
|
|
1132
963
|
null,
|
|
1133
964
|
null
|
|
1134
965
|
);
|
|
1135
|
-
const
|
|
966
|
+
const ae = te.exports, le = {
|
|
1136
967
|
name: "ConfigCustom",
|
|
1137
|
-
components: { MonacoEditor:
|
|
968
|
+
components: { MonacoEditor: b },
|
|
1138
969
|
props: {
|
|
1139
970
|
data: Object
|
|
1140
971
|
},
|
|
@@ -1171,30 +1002,30 @@ const re = ne.exports, ce = {
|
|
|
1171
1002
|
}
|
|
1172
1003
|
}
|
|
1173
1004
|
};
|
|
1174
|
-
var
|
|
1005
|
+
var ie = function() {
|
|
1175
1006
|
var e = this, t = e._self._c;
|
|
1176
1007
|
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) {
|
|
1177
1008
|
e.params = a;
|
|
1178
1009
|
}, 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) {
|
|
1179
1010
|
e.event = a;
|
|
1180
1011
|
}, expression: "event" } })], 1)])]);
|
|
1181
|
-
},
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1012
|
+
}, se = [], ne = /* @__PURE__ */ c(
|
|
1013
|
+
le,
|
|
1014
|
+
ie,
|
|
1015
|
+
se,
|
|
1185
1016
|
!1,
|
|
1186
1017
|
null,
|
|
1187
1018
|
null,
|
|
1188
1019
|
null,
|
|
1189
1020
|
null
|
|
1190
1021
|
);
|
|
1191
|
-
const
|
|
1022
|
+
const oe = ne.exports, re = {
|
|
1192
1023
|
name: "ConfigInput",
|
|
1193
1024
|
props: {
|
|
1194
1025
|
data: Object
|
|
1195
1026
|
}
|
|
1196
1027
|
};
|
|
1197
|
-
var
|
|
1028
|
+
var ce = function() {
|
|
1198
1029
|
var e = this, t = e._self._c;
|
|
1199
1030
|
return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
|
|
1200
1031
|
e.$set(e.data, "placeholder", a);
|
|
@@ -1209,23 +1040,23 @@ var fe = function() {
|
|
|
1209
1040
|
}, expression: "data.showWordLimit" } })], 1) : e._e(), e.data.type === "password" ? t("ElFormItem", { attrs: { label: "显示密码" } }, [t("ElSwitch", { model: { value: e.data.showPassword, callback: function(a) {
|
|
1210
1041
|
e.$set(e.data, "showPassword", a);
|
|
1211
1042
|
}, expression: "data.showPassword" } })], 1) : e._e()], 1);
|
|
1212
|
-
},
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1043
|
+
}, de = [], pe = /* @__PURE__ */ c(
|
|
1044
|
+
re,
|
|
1045
|
+
ce,
|
|
1046
|
+
de,
|
|
1216
1047
|
!1,
|
|
1217
1048
|
null,
|
|
1218
1049
|
null,
|
|
1219
1050
|
null,
|
|
1220
1051
|
null
|
|
1221
1052
|
);
|
|
1222
|
-
const
|
|
1053
|
+
const ue = pe.exports, me = {
|
|
1223
1054
|
name: "ConfigTextarea",
|
|
1224
1055
|
props: {
|
|
1225
1056
|
data: Object
|
|
1226
1057
|
}
|
|
1227
1058
|
};
|
|
1228
|
-
var
|
|
1059
|
+
var he = function() {
|
|
1229
1060
|
var e = this, t = e._self._c;
|
|
1230
1061
|
return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { type: "textarea", autosize: "", clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
|
|
1231
1062
|
e.$set(e.data, "placeholder", a);
|
|
@@ -1238,23 +1069,23 @@ var ye = function() {
|
|
|
1238
1069
|
}, 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) {
|
|
1239
1070
|
e.$set(e.data, "maxRows", a);
|
|
1240
1071
|
}, expression: "data.maxRows" } })], 1)], 1);
|
|
1241
|
-
},
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1072
|
+
}, fe = [], be = /* @__PURE__ */ c(
|
|
1073
|
+
me,
|
|
1074
|
+
he,
|
|
1075
|
+
fe,
|
|
1245
1076
|
!1,
|
|
1246
1077
|
null,
|
|
1247
1078
|
null,
|
|
1248
1079
|
null,
|
|
1249
1080
|
null
|
|
1250
1081
|
);
|
|
1251
|
-
const
|
|
1082
|
+
const ge = be.exports, ve = {
|
|
1252
1083
|
name: "ConfigNumber",
|
|
1253
1084
|
props: {
|
|
1254
1085
|
data: Object
|
|
1255
1086
|
}
|
|
1256
1087
|
};
|
|
1257
|
-
var
|
|
1088
|
+
var _e = function() {
|
|
1258
1089
|
var e = this, t = e._self._c;
|
|
1259
1090
|
return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
|
|
1260
1091
|
e.$set(e.data, "placeholder", a);
|
|
@@ -1273,23 +1104,23 @@ var Ce = function() {
|
|
|
1273
1104
|
}, expression: "data.controlsPosition" } }, [e._v(" 默认 ")]), t("ElRadio", { attrs: { label: "right" }, model: { value: e.data.controlsPosition, callback: function(a) {
|
|
1274
1105
|
e.$set(e.data, "controlsPosition", a);
|
|
1275
1106
|
}, expression: "data.controlsPosition" } }, [e._v(" 右 ")])], 1) : e._e()], 1);
|
|
1276
|
-
},
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1107
|
+
}, ye = [], Ee = /* @__PURE__ */ c(
|
|
1108
|
+
ve,
|
|
1109
|
+
_e,
|
|
1110
|
+
ye,
|
|
1280
1111
|
!1,
|
|
1281
1112
|
null,
|
|
1282
1113
|
null,
|
|
1283
1114
|
null,
|
|
1284
1115
|
null
|
|
1285
1116
|
);
|
|
1286
|
-
const
|
|
1117
|
+
const xe = Ee.exports, ke = {
|
|
1287
1118
|
name: "ConfigDynamic",
|
|
1288
1119
|
props: {
|
|
1289
1120
|
data: Object
|
|
1290
1121
|
}
|
|
1291
1122
|
};
|
|
1292
|
-
var
|
|
1123
|
+
var $e = function() {
|
|
1293
1124
|
var e = this, t = e._self._c;
|
|
1294
1125
|
return t("div", [t("ElFormItem", { attrs: { label: "对齐方式" } }, [t("ElSelect", { attrs: { placeholder: "对齐方式", clearable: "" }, model: { value: e.data.children.align, callback: function(a) {
|
|
1295
1126
|
e.$set(e.data.children, "align", a);
|
|
@@ -1304,17 +1135,17 @@ var Ae = function() {
|
|
|
1304
1135
|
}, expression: "data.children.addBtn" } })], 1), t("ElFormItem", { attrs: { label: "删除按钮" } }, [t("ElSwitch", { model: { value: e.data.children.delBtn, callback: function(a) {
|
|
1305
1136
|
e.$set(e.data.children, "delBtn", a);
|
|
1306
1137
|
}, expression: "data.children.delBtn" } })], 1)], 1);
|
|
1307
|
-
},
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1138
|
+
}, Ce = [], we = /* @__PURE__ */ c(
|
|
1139
|
+
ke,
|
|
1140
|
+
$e,
|
|
1141
|
+
Ce,
|
|
1311
1142
|
!1,
|
|
1312
1143
|
null,
|
|
1313
1144
|
null,
|
|
1314
1145
|
null,
|
|
1315
1146
|
null
|
|
1316
1147
|
);
|
|
1317
|
-
const
|
|
1148
|
+
const Ie = we.exports, Fe = {
|
|
1318
1149
|
name: "ConfigSwitch",
|
|
1319
1150
|
props: {
|
|
1320
1151
|
data: Object
|
|
@@ -1328,7 +1159,7 @@ const We = Be.exports, Te = {
|
|
|
1328
1159
|
}
|
|
1329
1160
|
}
|
|
1330
1161
|
};
|
|
1331
|
-
var
|
|
1162
|
+
var Se = function() {
|
|
1332
1163
|
var e = this, t = e._self._c;
|
|
1333
1164
|
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) {
|
|
1334
1165
|
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) {
|
|
@@ -1337,17 +1168,17 @@ var Me = function() {
|
|
|
1337
1168
|
e.$set(a, "value", s);
|
|
1338
1169
|
}, expression: "item.value" } })], 1);
|
|
1339
1170
|
})], 2)], 1);
|
|
1340
|
-
},
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1171
|
+
}, Ae = [], Oe = /* @__PURE__ */ c(
|
|
1172
|
+
Fe,
|
|
1173
|
+
Se,
|
|
1174
|
+
Ae,
|
|
1344
1175
|
!1,
|
|
1345
1176
|
null,
|
|
1346
1177
|
"c46fca4d",
|
|
1347
1178
|
null,
|
|
1348
1179
|
null
|
|
1349
1180
|
);
|
|
1350
|
-
const
|
|
1181
|
+
const Be = Oe.exports, We = {
|
|
1351
1182
|
name: "ConfigRate",
|
|
1352
1183
|
props: {
|
|
1353
1184
|
data: Object
|
|
@@ -1393,7 +1224,7 @@ const De = Re.exports, Pe = {
|
|
|
1393
1224
|
// }
|
|
1394
1225
|
}
|
|
1395
1226
|
};
|
|
1396
|
-
var
|
|
1227
|
+
var Te = function() {
|
|
1397
1228
|
var e = this, t = e._self._c;
|
|
1398
1229
|
return t("div", [t("ElFormItem", { attrs: { label: "最大星数" } }, [t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "最大星数" }, model: { value: e.data.max, callback: function(a) {
|
|
1399
1230
|
e.$set(e.data, "max", a);
|
|
@@ -1414,23 +1245,23 @@ var Qe = function() {
|
|
|
1414
1245
|
}), t("ElColorPicker", { staticClass: "color-picker", attrs: { size: "mini" }, on: { change: e.handleColorConfirm }, model: { value: e.colorValue, callback: function(a) {
|
|
1415
1246
|
e.colorValue = a;
|
|
1416
1247
|
}, expression: "colorValue" } })], 2)], 1);
|
|
1417
|
-
},
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1248
|
+
}, ze = [], Re = /* @__PURE__ */ c(
|
|
1249
|
+
We,
|
|
1250
|
+
Te,
|
|
1251
|
+
ze,
|
|
1421
1252
|
!1,
|
|
1422
1253
|
null,
|
|
1423
1254
|
"49f19745",
|
|
1424
1255
|
null,
|
|
1425
1256
|
null
|
|
1426
1257
|
);
|
|
1427
|
-
const
|
|
1258
|
+
const Pe = Re.exports, De = {
|
|
1428
1259
|
name: "ConfigSlider",
|
|
1429
1260
|
props: {
|
|
1430
1261
|
data: Object
|
|
1431
1262
|
}
|
|
1432
1263
|
};
|
|
1433
|
-
var
|
|
1264
|
+
var Me = function() {
|
|
1434
1265
|
var e = this, t = e._self._c;
|
|
1435
1266
|
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) {
|
|
1436
1267
|
e.$set(e.data, "min", a);
|
|
@@ -1445,40 +1276,40 @@ var Le = function() {
|
|
|
1445
1276
|
}, expression: "data.showInput" } })], 1), t("ElFormItem", { attrs: { label: "范围" } }, [t("ElSwitch", { model: { value: e.data.range, callback: function(a) {
|
|
1446
1277
|
e.$set(e.data, "range", a);
|
|
1447
1278
|
}, expression: "data.range" } })], 1)], 1);
|
|
1448
|
-
},
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1279
|
+
}, Qe = [], je = /* @__PURE__ */ c(
|
|
1280
|
+
De,
|
|
1281
|
+
Me,
|
|
1282
|
+
Qe,
|
|
1452
1283
|
!1,
|
|
1453
1284
|
null,
|
|
1454
1285
|
null,
|
|
1455
1286
|
null,
|
|
1456
1287
|
null
|
|
1457
1288
|
);
|
|
1458
|
-
const
|
|
1289
|
+
const Ke = je.exports, Ne = {
|
|
1459
1290
|
name: "ConfigColor",
|
|
1460
1291
|
props: {
|
|
1461
1292
|
data: Object
|
|
1462
1293
|
}
|
|
1463
1294
|
};
|
|
1464
|
-
var
|
|
1295
|
+
var Ve = function() {
|
|
1465
1296
|
var e = this, t = e._self._c;
|
|
1466
1297
|
return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
|
|
1467
1298
|
e.$set(e.data, "placeholder", a);
|
|
1468
1299
|
}, expression: "data.placeholder" } })], 1)], 1);
|
|
1469
|
-
},
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1300
|
+
}, qe = [], Le = /* @__PURE__ */ c(
|
|
1301
|
+
Ne,
|
|
1302
|
+
Ve,
|
|
1303
|
+
qe,
|
|
1473
1304
|
!1,
|
|
1474
1305
|
null,
|
|
1475
1306
|
null,
|
|
1476
1307
|
null,
|
|
1477
1308
|
null
|
|
1478
1309
|
);
|
|
1479
|
-
const
|
|
1310
|
+
const Ge = Le.exports, He = {
|
|
1480
1311
|
name: "ConfigSelect",
|
|
1481
|
-
components: { Draggable:
|
|
1312
|
+
components: { Draggable: g, MonacoEditor: b },
|
|
1482
1313
|
props: {
|
|
1483
1314
|
data: Object
|
|
1484
1315
|
},
|
|
@@ -1545,7 +1376,7 @@ const Ze = Xe.exports, et = {
|
|
|
1545
1376
|
}
|
|
1546
1377
|
}
|
|
1547
1378
|
};
|
|
1548
|
-
var
|
|
1379
|
+
var Ue = function() {
|
|
1549
1380
|
var e = this, t = e._self._c;
|
|
1550
1381
|
return t("div", [e.data.type === "select" ? t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
|
|
1551
1382
|
e.$set(e.data, "placeholder", a);
|
|
@@ -1604,19 +1435,19 @@ var tt = function() {
|
|
|
1604
1435
|
}, 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) {
|
|
1605
1436
|
e.$set(e.data, "size", a);
|
|
1606
1437
|
}, 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);
|
|
1607
|
-
},
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1438
|
+
}, Je = [], Ye = /* @__PURE__ */ c(
|
|
1439
|
+
He,
|
|
1440
|
+
Ue,
|
|
1441
|
+
Je,
|
|
1611
1442
|
!1,
|
|
1612
1443
|
null,
|
|
1613
1444
|
null,
|
|
1614
1445
|
null,
|
|
1615
1446
|
null
|
|
1616
1447
|
);
|
|
1617
|
-
const
|
|
1448
|
+
const Xe = Ye.exports, Ze = {
|
|
1618
1449
|
name: "ConfigTree",
|
|
1619
|
-
components: { MonacoEditor:
|
|
1450
|
+
components: { MonacoEditor: b, Draggable: g },
|
|
1620
1451
|
props: {
|
|
1621
1452
|
data: Object
|
|
1622
1453
|
},
|
|
@@ -1715,7 +1546,7 @@ const it = lt.exports, st = {
|
|
|
1715
1546
|
}
|
|
1716
1547
|
}
|
|
1717
1548
|
};
|
|
1718
|
-
var
|
|
1549
|
+
var et = function() {
|
|
1719
1550
|
var e = this, t = e._self._c;
|
|
1720
1551
|
return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
|
|
1721
1552
|
e.$set(e.data, "placeholder", a);
|
|
@@ -1776,23 +1607,23 @@ var ot = function() {
|
|
|
1776
1607
|
}, proxy: !0 }]), model: { value: e.dialogForm.value, callback: function(a) {
|
|
1777
1608
|
e.$set(e.dialogForm, "value", a);
|
|
1778
1609
|
}, expression: "dialogForm.value" } })], 1)], 1)], 1)], 2);
|
|
1779
|
-
},
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1610
|
+
}, tt = [], at = /* @__PURE__ */ c(
|
|
1611
|
+
Ze,
|
|
1612
|
+
et,
|
|
1613
|
+
tt,
|
|
1783
1614
|
!1,
|
|
1784
1615
|
null,
|
|
1785
1616
|
"806989ec",
|
|
1786
1617
|
null,
|
|
1787
1618
|
null
|
|
1788
1619
|
);
|
|
1789
|
-
const
|
|
1620
|
+
const lt = at.exports, it = {
|
|
1790
1621
|
name: "ConfigDate",
|
|
1791
1622
|
props: {
|
|
1792
1623
|
data: Object
|
|
1793
1624
|
}
|
|
1794
1625
|
};
|
|
1795
|
-
var
|
|
1626
|
+
var st = function() {
|
|
1796
1627
|
var e = this, t = e._self._c;
|
|
1797
1628
|
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) {
|
|
1798
1629
|
e.$set(e.data, "startPlaceholder", a);
|
|
@@ -1807,17 +1638,17 @@ var pt = function() {
|
|
|
1807
1638
|
}, 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) {
|
|
1808
1639
|
e.$set(e.data, "unlinkPanels", a);
|
|
1809
1640
|
}, expression: "data.unlinkPanels" } })], 1) : e._e()], 2);
|
|
1810
|
-
},
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1641
|
+
}, nt = [], ot = /* @__PURE__ */ c(
|
|
1642
|
+
it,
|
|
1643
|
+
st,
|
|
1644
|
+
nt,
|
|
1814
1645
|
!1,
|
|
1815
1646
|
null,
|
|
1816
1647
|
null,
|
|
1817
1648
|
null,
|
|
1818
1649
|
null
|
|
1819
1650
|
);
|
|
1820
|
-
const
|
|
1651
|
+
const rt = ot.exports, ct = {
|
|
1821
1652
|
name: "ConfigUpload",
|
|
1822
1653
|
props: {
|
|
1823
1654
|
data: Object
|
|
@@ -1856,7 +1687,7 @@ const ht = mt.exports, ft = {
|
|
|
1856
1687
|
}
|
|
1857
1688
|
}
|
|
1858
1689
|
};
|
|
1859
|
-
var
|
|
1690
|
+
var dt = function() {
|
|
1860
1691
|
var e = this, t = e._self._c;
|
|
1861
1692
|
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) {
|
|
1862
1693
|
e.$set(e.data, "action", a);
|
|
@@ -1915,17 +1746,17 @@ var bt = function() {
|
|
|
1915
1746
|
}, 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) {
|
|
1916
1747
|
e.$set(e.data.canvasOption, "ratio", a);
|
|
1917
1748
|
}, expression: "data.canvasOption.ratio" } })], 1)]) : e._e()], 1);
|
|
1918
|
-
},
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1749
|
+
}, pt = [], ut = /* @__PURE__ */ c(
|
|
1750
|
+
ct,
|
|
1751
|
+
dt,
|
|
1752
|
+
pt,
|
|
1922
1753
|
!1,
|
|
1923
1754
|
null,
|
|
1924
1755
|
null,
|
|
1925
1756
|
null,
|
|
1926
1757
|
null
|
|
1927
1758
|
);
|
|
1928
|
-
const
|
|
1759
|
+
const mt = ut.exports, ht = {
|
|
1929
1760
|
name: "ConfigUEditor",
|
|
1930
1761
|
props: {
|
|
1931
1762
|
data: Object
|
|
@@ -1936,7 +1767,7 @@ const _t = vt.exports, yt = {
|
|
|
1936
1767
|
}
|
|
1937
1768
|
}
|
|
1938
1769
|
};
|
|
1939
|
-
var
|
|
1770
|
+
var ft = function() {
|
|
1940
1771
|
var e = this, t = e._self._c;
|
|
1941
1772
|
return t("div", [t("ElFormItem", { attrs: { label: "图片上传地址", "label-width": "110px" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "图片上传地址" }, model: { value: e.data.options.action, callback: function(a) {
|
|
1942
1773
|
e.$set(e.data.options, "action", a);
|
|
@@ -1967,38 +1798,38 @@ var Et = function() {
|
|
|
1967
1798
|
}, 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) {
|
|
1968
1799
|
e.$set(e.data.options.ali, "bucket", a);
|
|
1969
1800
|
}, expression: "data.options.ali.bucket" } })], 1)])] : e._e()], 2);
|
|
1970
|
-
},
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1801
|
+
}, bt = [], gt = /* @__PURE__ */ c(
|
|
1802
|
+
ht,
|
|
1803
|
+
ft,
|
|
1804
|
+
bt,
|
|
1974
1805
|
!1,
|
|
1975
1806
|
null,
|
|
1976
1807
|
null,
|
|
1977
1808
|
null,
|
|
1978
1809
|
null
|
|
1979
1810
|
);
|
|
1980
|
-
const
|
|
1811
|
+
const vt = gt.exports, _t = {
|
|
1981
1812
|
name: "ConfigMap",
|
|
1982
1813
|
props: {
|
|
1983
1814
|
data: Object
|
|
1984
1815
|
}
|
|
1985
1816
|
};
|
|
1986
|
-
var
|
|
1817
|
+
var yt = function() {
|
|
1987
1818
|
var e = this, t = e._self._c;
|
|
1988
1819
|
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) {
|
|
1989
1820
|
e.$set(e.data, "value", a);
|
|
1990
1821
|
}, expression: "data.value" } })], 1)], 1);
|
|
1991
|
-
},
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1822
|
+
}, Et = [], xt = /* @__PURE__ */ c(
|
|
1823
|
+
_t,
|
|
1824
|
+
yt,
|
|
1825
|
+
Et,
|
|
1995
1826
|
!1,
|
|
1996
1827
|
null,
|
|
1997
1828
|
null,
|
|
1998
1829
|
null,
|
|
1999
1830
|
null
|
|
2000
1831
|
);
|
|
2001
|
-
const
|
|
1832
|
+
const kt = xt.exports, $t = {
|
|
2002
1833
|
name: "ConfigGroup",
|
|
2003
1834
|
props: {
|
|
2004
1835
|
data: Object
|
|
@@ -2014,7 +1845,7 @@ const St = Ft.exports, At = {
|
|
|
2014
1845
|
};
|
|
2015
1846
|
}
|
|
2016
1847
|
};
|
|
2017
|
-
var
|
|
1848
|
+
var Ct = function() {
|
|
2018
1849
|
var e = this, t = e._self._c;
|
|
2019
1850
|
return t("div", [t("ElFormItem", { attrs: { label: "图标" } }, [t("FyInputIcon", { attrs: { "icon-list": e.iconList, placeholder: "图标" }, model: { value: e.data.icon, callback: function(a) {
|
|
2020
1851
|
e.$set(e.data, "icon", a);
|
|
@@ -2023,40 +1854,40 @@ var Ot = function() {
|
|
|
2023
1854
|
}, expression: "data.arrow" } })], 1), e.data.arrow ? t("ElFormItem", { attrs: { label: "默认展开" } }, [t("ElSwitch", { model: { value: e.data.collapse, callback: function(a) {
|
|
2024
1855
|
e.$set(e.data, "collapse", a);
|
|
2025
1856
|
}, expression: "data.collapse" } })], 1) : e._e()], 1);
|
|
2026
|
-
},
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
1857
|
+
}, wt = [], It = /* @__PURE__ */ c(
|
|
1858
|
+
$t,
|
|
1859
|
+
Ct,
|
|
1860
|
+
wt,
|
|
2030
1861
|
!1,
|
|
2031
1862
|
null,
|
|
2032
1863
|
null,
|
|
2033
1864
|
null,
|
|
2034
1865
|
null
|
|
2035
1866
|
);
|
|
2036
|
-
const
|
|
1867
|
+
const Ft = It.exports, St = {
|
|
2037
1868
|
name: "ConfigArray",
|
|
2038
1869
|
props: {
|
|
2039
1870
|
data: Object
|
|
2040
1871
|
}
|
|
2041
1872
|
};
|
|
2042
|
-
var
|
|
1873
|
+
var At = function() {
|
|
2043
1874
|
var e = this, t = e._self._c;
|
|
2044
1875
|
return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
|
|
2045
1876
|
e.$set(e.data, "placeholder", a);
|
|
2046
1877
|
}, expression: "data.placeholder" } })], 1), t("ElFormItem", { attrs: { label: "尺寸" } }, [t("ElRadioGroup", { attrs: { size: "mini" }, model: { value: e.data.size, callback: function(a) {
|
|
2047
1878
|
e.$set(e.data, "size", a);
|
|
2048
1879
|
}, 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);
|
|
2049
|
-
},
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
1880
|
+
}, Ot = [], Bt = /* @__PURE__ */ c(
|
|
1881
|
+
St,
|
|
1882
|
+
At,
|
|
1883
|
+
Ot,
|
|
2053
1884
|
!1,
|
|
2054
1885
|
null,
|
|
2055
1886
|
null,
|
|
2056
1887
|
null,
|
|
2057
1888
|
null
|
|
2058
1889
|
);
|
|
2059
|
-
const
|
|
1890
|
+
const Wt = Bt.exports, Tt = {
|
|
2060
1891
|
name: "ConfigTitle",
|
|
2061
1892
|
props: {
|
|
2062
1893
|
data: Object
|
|
@@ -2085,7 +1916,7 @@ const Pt = Dt.exports, Qt = {
|
|
|
2085
1916
|
};
|
|
2086
1917
|
}
|
|
2087
1918
|
};
|
|
2088
|
-
var
|
|
1919
|
+
var zt = function() {
|
|
2089
1920
|
var e = this, t = e._self._c;
|
|
2090
1921
|
return t("div", [t("ElFormItem", { attrs: { label: "文本对齐" } }, [t("ElRadioGroup", { model: { value: e.data.styles.textAlign, callback: function(a) {
|
|
2091
1922
|
e.$set(e.data.styles, "textAlign", a);
|
|
@@ -2098,19 +1929,19 @@ var jt = function() {
|
|
|
2098
1929
|
}, expression: "data.styles.fontWeight" } }, e._l(e.options, function(a) {
|
|
2099
1930
|
return t("ElOption", { key: a, attrs: { label: a, value: a } });
|
|
2100
1931
|
}), 1)], 1)], 1);
|
|
2101
|
-
},
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
1932
|
+
}, Rt = [], Pt = /* @__PURE__ */ c(
|
|
1933
|
+
Tt,
|
|
1934
|
+
zt,
|
|
1935
|
+
Rt,
|
|
2105
1936
|
!1,
|
|
2106
1937
|
null,
|
|
2107
1938
|
null,
|
|
2108
1939
|
null,
|
|
2109
1940
|
null
|
|
2110
1941
|
);
|
|
2111
|
-
const
|
|
1942
|
+
const Dt = Pt.exports, Mt = {
|
|
2112
1943
|
name: "ConfigEvent",
|
|
2113
|
-
components: { MonacoEditor:
|
|
1944
|
+
components: { MonacoEditor: b },
|
|
2114
1945
|
props: {
|
|
2115
1946
|
data: Object
|
|
2116
1947
|
},
|
|
@@ -2158,7 +1989,7 @@ const Nt = Vt.exports, Lt = {
|
|
|
2158
1989
|
});
|
|
2159
1990
|
}
|
|
2160
1991
|
};
|
|
2161
|
-
var
|
|
1992
|
+
var Qt = function() {
|
|
2162
1993
|
var e = this, t = e._self._c;
|
|
2163
1994
|
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) {
|
|
2164
1995
|
e.change = a;
|
|
@@ -2169,17 +2000,17 @@ var qt = function() {
|
|
|
2169
2000
|
}, 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) {
|
|
2170
2001
|
e.blur = a;
|
|
2171
2002
|
}, expression: "blur" } })], 1)])]);
|
|
2172
|
-
},
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2003
|
+
}, jt = [], Kt = /* @__PURE__ */ c(
|
|
2004
|
+
Mt,
|
|
2005
|
+
Qt,
|
|
2006
|
+
jt,
|
|
2176
2007
|
!1,
|
|
2177
2008
|
null,
|
|
2178
2009
|
null,
|
|
2179
2010
|
null,
|
|
2180
2011
|
null
|
|
2181
2012
|
);
|
|
2182
|
-
const
|
|
2013
|
+
const Nt = Kt.exports, Vt = [
|
|
2183
2014
|
{
|
|
2184
2015
|
label: "输入框",
|
|
2185
2016
|
value: "input"
|
|
@@ -2272,7 +2103,7 @@ const Ut = Ht.exports, Jt = [
|
|
|
2272
2103
|
label: "年",
|
|
2273
2104
|
value: "year"
|
|
2274
2105
|
}
|
|
2275
|
-
],
|
|
2106
|
+
], qt = {
|
|
2276
2107
|
name: "AfdColumn",
|
|
2277
2108
|
props: {
|
|
2278
2109
|
column: {
|
|
@@ -2283,7 +2114,7 @@ const Ut = Ht.exports, Jt = [
|
|
|
2283
2114
|
emits: ["submit"],
|
|
2284
2115
|
data() {
|
|
2285
2116
|
return {
|
|
2286
|
-
fields:
|
|
2117
|
+
fields: Vt,
|
|
2287
2118
|
visible: !1,
|
|
2288
2119
|
list: []
|
|
2289
2120
|
};
|
|
@@ -2306,7 +2137,7 @@ const Ut = Ht.exports, Jt = [
|
|
|
2306
2137
|
}
|
|
2307
2138
|
}
|
|
2308
2139
|
};
|
|
2309
|
-
var
|
|
2140
|
+
var Lt = function() {
|
|
2310
2141
|
var e = this, t = e._self._c;
|
|
2311
2142
|
return t("ElDrawer", { attrs: { visible: e.visible, size: "80%", "append-to-body": "" }, on: { "update:visible": function(a) {
|
|
2312
2143
|
e.visible = a;
|
|
@@ -2343,19 +2174,19 @@ var Xt = function() {
|
|
|
2343
2174
|
} }]) })], 1), t("span", { staticClass: "afd-drawer-foot" }, [t("ElButton", { attrs: { type: "primary" }, on: { click: e.handleSubmit } }, [e._v("确定")]), t("ElButton", { on: { click: function(a) {
|
|
2344
2175
|
e.visible = !1;
|
|
2345
2176
|
} } }, [e._v("取消")])], 1)], 1);
|
|
2346
|
-
},
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2177
|
+
}, Gt = [], Ht = /* @__PURE__ */ c(
|
|
2178
|
+
qt,
|
|
2179
|
+
Lt,
|
|
2180
|
+
Gt,
|
|
2350
2181
|
!1,
|
|
2351
2182
|
null,
|
|
2352
2183
|
null,
|
|
2353
2184
|
null,
|
|
2354
2185
|
null
|
|
2355
2186
|
);
|
|
2356
|
-
const
|
|
2187
|
+
const Ut = Ht.exports, Jt = {
|
|
2357
2188
|
name: "ConfigTable",
|
|
2358
|
-
components: { MonacoEditor:
|
|
2189
|
+
components: { MonacoEditor: b, AfdColumn: Ut },
|
|
2359
2190
|
props: {
|
|
2360
2191
|
data: Object
|
|
2361
2192
|
},
|
|
@@ -2400,7 +2231,7 @@ const ta = ea.exports, aa = {
|
|
|
2400
2231
|
this.data.children.column = l;
|
|
2401
2232
|
},
|
|
2402
2233
|
handleOnLoad(l) {
|
|
2403
|
-
const { url: e, method: t, needPage: a, currentPageKey: i, pageSizeKey: s, totalKey:
|
|
2234
|
+
const { url: e, method: t, needPage: a, currentPageKey: i, pageSizeKey: s, totalKey: n, recordsKey: r, resKey: o, auto: u } = l;
|
|
2404
2235
|
if (!u)
|
|
2405
2236
|
return;
|
|
2406
2237
|
if (!e) {
|
|
@@ -2409,23 +2240,23 @@ const ta = ea.exports, aa = {
|
|
|
2409
2240
|
}
|
|
2410
2241
|
let { props: d } = this.data;
|
|
2411
2242
|
d || (d = { label: "label", value: "value" });
|
|
2412
|
-
const { value:
|
|
2243
|
+
const { value: f } = d, I = `(res, cb) => {
|
|
2413
2244
|
let { page, value, data } = res
|
|
2414
2245
|
if (!page) page = { currentPage: 1, pageSize: 10 }
|
|
2415
2246
|
const { currentPage, pageSize } = page
|
|
2416
2247
|
let params = { ...data, ${i || "current"}: currentPage, ${s || "page"}: pageSize }
|
|
2417
2248
|
|
|
2418
|
-
if (value) params['${
|
|
2249
|
+
if (value) params['${f}'] = value
|
|
2419
2250
|
|
|
2420
2251
|
if ('${t || "get"}' == 'get') params = { params: { ...params } }
|
|
2421
2252
|
|
|
2422
2253
|
this.$axios['${t}']('${e}', params).then(res => {
|
|
2423
|
-
const response = this.getAsVal(res, '${
|
|
2254
|
+
const response = this.getAsVal(res, '${o || "data.data"}')
|
|
2424
2255
|
if (!response) this.$message.error('未查询到数据或者返回层级配置错误')
|
|
2425
2256
|
|
|
2426
2257
|
let result = {}
|
|
2427
2258
|
if (${a}) {
|
|
2428
|
-
const total = this.getAsVal(response, '${
|
|
2259
|
+
const total = this.getAsVal(response, '${n || "total"}')
|
|
2429
2260
|
if (total || total == 0) {
|
|
2430
2261
|
result.total = total
|
|
2431
2262
|
} else {
|
|
@@ -2444,15 +2275,15 @@ const ta = ea.exports, aa = {
|
|
|
2444
2275
|
if (value) {
|
|
2445
2276
|
const records = result.data
|
|
2446
2277
|
if (records && records.length > 0) cb(records[0])
|
|
2447
|
-
else this.$message.error('根据${
|
|
2278
|
+
else this.$message.error('根据${f}: ' + value + ' 查询不到结果')
|
|
2448
2279
|
} else cb(result)
|
|
2449
2280
|
})
|
|
2450
2281
|
}`;
|
|
2451
|
-
this.onLoad =
|
|
2282
|
+
this.onLoad = I;
|
|
2452
2283
|
}
|
|
2453
2284
|
}
|
|
2454
2285
|
};
|
|
2455
|
-
var
|
|
2286
|
+
var Yt = function() {
|
|
2456
2287
|
var e = this, t = e._self._c;
|
|
2457
2288
|
return t("div", [t("ElFormItem", { attrs: { label: "字段配置" } }, [t("ElButton", { attrs: { type: "primary", size: "small" }, on: { click: function(a) {
|
|
2458
2289
|
e.$refs.column.visible = !0;
|
|
@@ -2487,17 +2318,17 @@ var la = function() {
|
|
|
2487
2318
|
}, 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) {
|
|
2488
2319
|
e.formatter = a;
|
|
2489
2320
|
}, expression: "formatter" } })], 1)])]), t("AfdColumn", { ref: "column", attrs: { column: e.data.children.column }, on: { submit: e.handleColumn } })], 1);
|
|
2490
|
-
},
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2321
|
+
}, Xt = [], Zt = /* @__PURE__ */ c(
|
|
2322
|
+
Jt,
|
|
2323
|
+
Yt,
|
|
2324
|
+
Xt,
|
|
2494
2325
|
!1,
|
|
2495
2326
|
null,
|
|
2496
2327
|
null,
|
|
2497
2328
|
null,
|
|
2498
2329
|
null
|
|
2499
2330
|
);
|
|
2500
|
-
const
|
|
2331
|
+
const ea = Zt.exports, ta = [
|
|
2501
2332
|
"year",
|
|
2502
2333
|
"month",
|
|
2503
2334
|
"week",
|
|
@@ -2508,29 +2339,29 @@ const oa = sa.exports, na = [
|
|
|
2508
2339
|
"timerange",
|
|
2509
2340
|
"datetimerange",
|
|
2510
2341
|
"dates"
|
|
2511
|
-
],
|
|
2342
|
+
], aa = {
|
|
2512
2343
|
name: "WidgetConfig",
|
|
2513
2344
|
components: {
|
|
2514
|
-
ConfigCustom:
|
|
2515
|
-
ConfigInput:
|
|
2516
|
-
ConfigTextarea:
|
|
2517
|
-
ConfigNumber:
|
|
2518
|
-
ConfigDynamic:
|
|
2519
|
-
ConfigSwitch:
|
|
2520
|
-
ConfigRate:
|
|
2521
|
-
ConfigSlider:
|
|
2522
|
-
ConfigColor:
|
|
2523
|
-
ConfigSelect:
|
|
2524
|
-
ConfigTree:
|
|
2525
|
-
ConfigDate:
|
|
2526
|
-
ConfigUpload:
|
|
2527
|
-
ConfigUEditor:
|
|
2528
|
-
ConfigMap:
|
|
2529
|
-
ConfigGroup:
|
|
2530
|
-
ConfigArray:
|
|
2531
|
-
ConfigTitle:
|
|
2532
|
-
ConfigEvent:
|
|
2533
|
-
ConfigTable:
|
|
2345
|
+
ConfigCustom: oe,
|
|
2346
|
+
ConfigInput: ue,
|
|
2347
|
+
ConfigTextarea: ge,
|
|
2348
|
+
ConfigNumber: xe,
|
|
2349
|
+
ConfigDynamic: Ie,
|
|
2350
|
+
ConfigSwitch: Be,
|
|
2351
|
+
ConfigRate: Pe,
|
|
2352
|
+
ConfigSlider: Ke,
|
|
2353
|
+
ConfigColor: Ge,
|
|
2354
|
+
ConfigSelect: Xe,
|
|
2355
|
+
ConfigTree: lt,
|
|
2356
|
+
ConfigDate: rt,
|
|
2357
|
+
ConfigUpload: mt,
|
|
2358
|
+
ConfigUEditor: vt,
|
|
2359
|
+
ConfigMap: kt,
|
|
2360
|
+
ConfigGroup: Ft,
|
|
2361
|
+
ConfigArray: Wt,
|
|
2362
|
+
ConfigTitle: Dt,
|
|
2363
|
+
ConfigEvent: Nt,
|
|
2364
|
+
ConfigTable: ea
|
|
2534
2365
|
},
|
|
2535
2366
|
props: {
|
|
2536
2367
|
data: Object,
|
|
@@ -2538,7 +2369,7 @@ const oa = sa.exports, na = [
|
|
|
2538
2369
|
},
|
|
2539
2370
|
data() {
|
|
2540
2371
|
return {
|
|
2541
|
-
fields:
|
|
2372
|
+
fields: E,
|
|
2542
2373
|
collapse: ["1", "2", "3"],
|
|
2543
2374
|
validator: {
|
|
2544
2375
|
type: null,
|
|
@@ -2554,7 +2385,7 @@ const oa = sa.exports, na = [
|
|
|
2554
2385
|
if ((!e || t) && e !== "u-editor")
|
|
2555
2386
|
return `${l}custom`;
|
|
2556
2387
|
let a = "input";
|
|
2557
|
-
return [void 0, "input", "password", "url"].includes(e) ? a = "input" :
|
|
2388
|
+
return [void 0, "input", "password", "url"].includes(e) ? a = "input" : ta.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;
|
|
2558
2389
|
}
|
|
2559
2390
|
},
|
|
2560
2391
|
watch: {
|
|
@@ -2585,7 +2416,7 @@ const oa = sa.exports, na = [
|
|
|
2585
2416
|
}
|
|
2586
2417
|
}
|
|
2587
2418
|
};
|
|
2588
|
-
var
|
|
2419
|
+
var la = function() {
|
|
2589
2420
|
var e = this, t = e._self._c;
|
|
2590
2421
|
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) {
|
|
2591
2422
|
e.collapse = a;
|
|
@@ -2655,20 +2486,20 @@ var ca = function() {
|
|
|
2655
2486
|
}, expression: "data.required" } }), e.data.required ? t("ElInput", { attrs: { placeholder: "正则表达式" }, model: { value: e.data.pattern, callback: function(a) {
|
|
2656
2487
|
e.$set(e.data, "pattern", a);
|
|
2657
2488
|
}, 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);
|
|
2658
|
-
},
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2489
|
+
}, ia = [], sa = /* @__PURE__ */ c(
|
|
2490
|
+
aa,
|
|
2491
|
+
la,
|
|
2492
|
+
ia,
|
|
2662
2493
|
!1,
|
|
2663
2494
|
null,
|
|
2664
2495
|
null,
|
|
2665
2496
|
null,
|
|
2666
2497
|
null
|
|
2667
2498
|
);
|
|
2668
|
-
const
|
|
2499
|
+
const na = sa.exports, oa = {
|
|
2669
2500
|
name: "FyFormDesign",
|
|
2670
|
-
components: { Draggable:
|
|
2671
|
-
mixins: [
|
|
2501
|
+
components: { Draggable: g, WidgetForm: Y, FormConfig: ae, WidgetConfig: na, MonacoEditor: b },
|
|
2502
|
+
mixins: [W],
|
|
2672
2503
|
props: {
|
|
2673
2504
|
options: {
|
|
2674
2505
|
type: [Object, String],
|
|
@@ -2701,7 +2532,7 @@ const ua = pa.exports, ma = {
|
|
|
2701
2532
|
type: Array,
|
|
2702
2533
|
default: () => {
|
|
2703
2534
|
const l = [];
|
|
2704
|
-
return
|
|
2535
|
+
return E.forEach((e) => {
|
|
2705
2536
|
e.list.forEach((t) => {
|
|
2706
2537
|
l.push(t.type);
|
|
2707
2538
|
});
|
|
@@ -2717,8 +2548,8 @@ const ua = pa.exports, ma = {
|
|
|
2717
2548
|
},
|
|
2718
2549
|
data() {
|
|
2719
2550
|
return {
|
|
2720
|
-
widgetEmpty:
|
|
2721
|
-
fields:
|
|
2551
|
+
widgetEmpty: O,
|
|
2552
|
+
fields: E,
|
|
2722
2553
|
widgetForm: {
|
|
2723
2554
|
column: [],
|
|
2724
2555
|
labelPosition: "left",
|
|
@@ -2785,7 +2616,7 @@ const ua = pa.exports, ma = {
|
|
|
2785
2616
|
methods: {
|
|
2786
2617
|
// 组件初始化时加载本地存储中的options(需开启storage),若不存在则读取用户配置的options
|
|
2787
2618
|
handleLoadStorage() {
|
|
2788
|
-
return
|
|
2619
|
+
return y(this, null, function* () {
|
|
2789
2620
|
let l = this.options;
|
|
2790
2621
|
if (typeof l == "string")
|
|
2791
2622
|
try {
|
|
@@ -2848,7 +2679,7 @@ const ua = pa.exports, ma = {
|
|
|
2848
2679
|
this.transformToAvueOptions(this.widgetForm).then((l) => {
|
|
2849
2680
|
this.configOption.generateType && this.configOption.generateType === "string" ? this.$emit(
|
|
2850
2681
|
"submit",
|
|
2851
|
-
|
|
2682
|
+
_(l, p({
|
|
2852
2683
|
minify: !0
|
|
2853
2684
|
}, this.configOption))
|
|
2854
2685
|
) : this.$emit("submit", l);
|
|
@@ -2858,7 +2689,7 @@ const ua = pa.exports, ma = {
|
|
|
2858
2689
|
handleCopy() {
|
|
2859
2690
|
this.transformToAvueOptions(this.widgetForm).then((l) => {
|
|
2860
2691
|
this.$Clipboard({
|
|
2861
|
-
text:
|
|
2692
|
+
text: _(l, p({
|
|
2862
2693
|
minify: !0
|
|
2863
2694
|
}, this.configOption))
|
|
2864
2695
|
}).then(() => {
|
|
@@ -2901,78 +2732,78 @@ const ua = pa.exports, ma = {
|
|
|
2901
2732
|
try {
|
|
2902
2733
|
const i = m(l);
|
|
2903
2734
|
for (const s in i)
|
|
2904
|
-
|
|
2735
|
+
C(i[s]) && delete i[s];
|
|
2905
2736
|
for (let s = 0; s < i.column.length; s++) {
|
|
2906
|
-
const
|
|
2907
|
-
if (e && (["change", "blur", "click", "focus"].forEach((
|
|
2908
|
-
o
|
|
2909
|
-
}),
|
|
2910
|
-
|
|
2911
|
-
})),
|
|
2912
|
-
|
|
2913
|
-
delete
|
|
2914
|
-
}), this.transformToAvueOptions(
|
|
2915
|
-
|
|
2737
|
+
const n = i.column[s];
|
|
2738
|
+
if (e && (["change", "blur", "click", "focus"].forEach((o) => {
|
|
2739
|
+
n[o] && (n[o] = h(`${n[o]}`.replace(/this/g, "_this")));
|
|
2740
|
+
}), n.event && Object.keys(n.event).forEach((o) => {
|
|
2741
|
+
n.event[o] = h(`${n.event[o]}`.replace(/this/g, "_this"));
|
|
2742
|
+
})), n.type === "dynamic" && n.children && n.children.column && n.children.column.length > 0)
|
|
2743
|
+
n.children.column.forEach((o) => {
|
|
2744
|
+
delete o.subfield;
|
|
2745
|
+
}), this.transformToAvueOptions(n.children, e).then((o) => {
|
|
2746
|
+
n.children = o;
|
|
2916
2747
|
});
|
|
2917
|
-
else if (
|
|
2748
|
+
else if (n.type === "group") {
|
|
2918
2749
|
i.group || (i.group = []);
|
|
2919
2750
|
const r = {
|
|
2920
|
-
label:
|
|
2921
|
-
icon:
|
|
2922
|
-
prop:
|
|
2923
|
-
arrow:
|
|
2924
|
-
collapse:
|
|
2925
|
-
display:
|
|
2751
|
+
label: n.label,
|
|
2752
|
+
icon: n.icon,
|
|
2753
|
+
prop: n.prop,
|
|
2754
|
+
arrow: n.arrow,
|
|
2755
|
+
collapse: n.collapse,
|
|
2756
|
+
display: n.display
|
|
2926
2757
|
};
|
|
2927
|
-
this.transformToAvueOptions(
|
|
2928
|
-
r.column =
|
|
2758
|
+
this.transformToAvueOptions(n.children, e).then((o) => {
|
|
2759
|
+
r.column = o.column, i.group.push(r);
|
|
2929
2760
|
}), i.column.splice(s, 1), s--;
|
|
2930
|
-
} else if (["checkbox", "radio", "tree", "cascader", "select"].includes(
|
|
2931
|
-
if (
|
|
2932
|
-
delete
|
|
2933
|
-
const { label: r, value:
|
|
2934
|
-
|
|
2761
|
+
} else if (["checkbox", "radio", "tree", "cascader", "select"].includes(n.type)) {
|
|
2762
|
+
if (n.dicOption === "static") {
|
|
2763
|
+
delete n.dicUrl, delete n.dicMethod, delete n.dicQuery, delete n.dicQueryConfig;
|
|
2764
|
+
const { label: r, value: o, desc: u } = n.props;
|
|
2765
|
+
n.dicData.forEach((d) => {
|
|
2935
2766
|
if (d.label) {
|
|
2936
|
-
const
|
|
2937
|
-
delete d.label, d[r] =
|
|
2767
|
+
const f = d.label;
|
|
2768
|
+
delete d.label, d[r] = f;
|
|
2938
2769
|
}
|
|
2939
2770
|
if (d.value) {
|
|
2940
|
-
const
|
|
2941
|
-
delete d.value, d[
|
|
2771
|
+
const f = d.value;
|
|
2772
|
+
delete d.value, d[o] = f;
|
|
2942
2773
|
}
|
|
2943
2774
|
if (d.desc) {
|
|
2944
|
-
const
|
|
2945
|
-
delete d.desc, d[u] =
|
|
2775
|
+
const f = d.desc;
|
|
2776
|
+
delete d.desc, d[u] = f;
|
|
2946
2777
|
}
|
|
2947
2778
|
});
|
|
2948
|
-
} else if (
|
|
2949
|
-
if (delete
|
|
2779
|
+
} else if (n.dicOption === "remote")
|
|
2780
|
+
if (delete n.dicData, n.dicQueryConfig && n.dicQueryConfig.length > 0) {
|
|
2950
2781
|
const r = {};
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
}),
|
|
2782
|
+
n.dicQueryConfig.forEach((o) => {
|
|
2783
|
+
o.key && o.value && (r[o.key] = o.value);
|
|
2784
|
+
}), n.dicQuery = r, delete n.dicQueryConfig;
|
|
2954
2785
|
} else
|
|
2955
|
-
delete
|
|
2956
|
-
delete
|
|
2957
|
-
} else if (["upload"].includes(
|
|
2958
|
-
if (
|
|
2786
|
+
delete n.dicQueryConfig;
|
|
2787
|
+
delete n.dicOption;
|
|
2788
|
+
} else if (["upload"].includes(n.type)) {
|
|
2789
|
+
if (n.headersConfig && n.headersConfig.length > 0) {
|
|
2959
2790
|
const r = {};
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
}),
|
|
2791
|
+
n.headersConfig.forEach((o) => {
|
|
2792
|
+
o.key && o.value && (r[o.key] = o.value);
|
|
2793
|
+
}), n.headers = r;
|
|
2963
2794
|
} else
|
|
2964
|
-
delete
|
|
2965
|
-
if (delete
|
|
2795
|
+
delete n.headers;
|
|
2796
|
+
if (delete n.headersConfig, n.dataConfig && n.dataConfig.length > 0) {
|
|
2966
2797
|
const r = {};
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
}),
|
|
2798
|
+
n.dataConfig.forEach((o) => {
|
|
2799
|
+
o.key && o.value && (r[o.key] = o.value);
|
|
2800
|
+
}), n.data = r;
|
|
2970
2801
|
} else
|
|
2971
|
-
delete
|
|
2972
|
-
delete
|
|
2802
|
+
delete n.data;
|
|
2803
|
+
delete n.dataConfig;
|
|
2973
2804
|
}
|
|
2974
|
-
for (const r in
|
|
2975
|
-
|
|
2805
|
+
for (const r in n)
|
|
2806
|
+
C(n[r]) && delete n[r];
|
|
2976
2807
|
}
|
|
2977
2808
|
t(i);
|
|
2978
2809
|
} catch (i) {
|
|
@@ -2988,44 +2819,44 @@ const ua = pa.exports, ma = {
|
|
|
2988
2819
|
try {
|
|
2989
2820
|
if (e.column && e.column.length > 0 && e.column.forEach((i) => {
|
|
2990
2821
|
if (i.type === "dynamic" && i.children && i.children.column && i.children.column.length > 0)
|
|
2991
|
-
i.children.column.forEach((
|
|
2992
|
-
|
|
2993
|
-
}), this.transAvueOptionsToFormDesigner(i.children).then((
|
|
2994
|
-
i.children =
|
|
2822
|
+
i.children.column.forEach((n) => {
|
|
2823
|
+
n.subfield = !0;
|
|
2824
|
+
}), this.transAvueOptionsToFormDesigner(i.children).then((n) => {
|
|
2825
|
+
i.children = n;
|
|
2995
2826
|
});
|
|
2996
2827
|
else if (["checkbox", "radio", "tree", "cascader", "select"].includes(i.type)) {
|
|
2997
2828
|
if (!i.dicData && i.dicQuery && typeof i.dicQuery == "object") {
|
|
2998
2829
|
const s = [];
|
|
2999
|
-
for (const
|
|
2830
|
+
for (const n in i.dicQuery)
|
|
3000
2831
|
s.push({
|
|
3001
|
-
key:
|
|
3002
|
-
value: i.dicQuery[
|
|
2832
|
+
key: n,
|
|
2833
|
+
value: i.dicQuery[n],
|
|
3003
2834
|
$cellEdit: !0
|
|
3004
2835
|
});
|
|
3005
2836
|
i.dicQueryConfig = s;
|
|
3006
2837
|
}
|
|
3007
2838
|
i.dicUrl ? i.dicOption = "remote" : i.dicOption = "static", i.dicData ? i.props && i.dicData.forEach((s) => {
|
|
3008
|
-
const { label:
|
|
3009
|
-
if (
|
|
3010
|
-
const u = s[
|
|
3011
|
-
delete s[
|
|
2839
|
+
const { label: n, value: r, desc: o } = i.props;
|
|
2840
|
+
if (n) {
|
|
2841
|
+
const u = s[n];
|
|
2842
|
+
delete s[n], s.label = u;
|
|
3012
2843
|
}
|
|
3013
2844
|
if (r) {
|
|
3014
2845
|
const u = s[r];
|
|
3015
2846
|
delete s[r], s.value = u;
|
|
3016
2847
|
}
|
|
3017
|
-
if (
|
|
3018
|
-
const u = s[
|
|
3019
|
-
delete s[
|
|
2848
|
+
if (o) {
|
|
2849
|
+
const u = s[o];
|
|
2850
|
+
delete s[o], s.desc = u;
|
|
3020
2851
|
}
|
|
3021
2852
|
}) : i.dicData = [];
|
|
3022
2853
|
} else if (["upload"].includes(i.type)) {
|
|
3023
2854
|
if (i.headers && typeof i.headers == "object") {
|
|
3024
2855
|
const s = [];
|
|
3025
|
-
for (const
|
|
2856
|
+
for (const n in i.headers)
|
|
3026
2857
|
s.push({
|
|
3027
|
-
key:
|
|
3028
|
-
value: i.headers[
|
|
2858
|
+
key: n,
|
|
2859
|
+
value: i.headers[n],
|
|
3029
2860
|
$cellEdit: !0
|
|
3030
2861
|
});
|
|
3031
2862
|
i.headersConfig = s;
|
|
@@ -3033,10 +2864,10 @@ const ua = pa.exports, ma = {
|
|
|
3033
2864
|
i.headersConfig = [];
|
|
3034
2865
|
if (i.data && typeof i.data == "object") {
|
|
3035
2866
|
const s = [];
|
|
3036
|
-
for (const
|
|
2867
|
+
for (const n in i.data)
|
|
3037
2868
|
s.push({
|
|
3038
|
-
key:
|
|
3039
|
-
value: i.data[
|
|
2869
|
+
key: n,
|
|
2870
|
+
value: i.data[n],
|
|
3040
2871
|
$cellEdit: !0
|
|
3041
2872
|
});
|
|
3042
2873
|
i.dataConfig = s;
|
|
@@ -3046,7 +2877,7 @@ const ua = pa.exports, ma = {
|
|
|
3046
2877
|
}), e.group && e.group.length > 0) {
|
|
3047
2878
|
for (let i = 0; i < e.group.length; i++) {
|
|
3048
2879
|
e.column || (e.column = []);
|
|
3049
|
-
const s = e.group[i],
|
|
2880
|
+
const s = e.group[i], n = {
|
|
3050
2881
|
type: "group",
|
|
3051
2882
|
label: s.label,
|
|
3052
2883
|
icon: s.icon,
|
|
@@ -3056,7 +2887,7 @@ const ua = pa.exports, ma = {
|
|
|
3056
2887
|
display: s.display
|
|
3057
2888
|
};
|
|
3058
2889
|
this.transAvueOptionsToFormDesigner(s).then((r) => {
|
|
3059
|
-
|
|
2890
|
+
n.children = r, e.column.push(n);
|
|
3060
2891
|
});
|
|
3061
2892
|
}
|
|
3062
2893
|
delete e.group;
|
|
@@ -3068,9 +2899,9 @@ const ua = pa.exports, ma = {
|
|
|
3068
2899
|
});
|
|
3069
2900
|
},
|
|
3070
2901
|
getData() {
|
|
3071
|
-
return
|
|
2902
|
+
return y(this, arguments, function* (l = "json", e = {}) {
|
|
3072
2903
|
if (l === "string")
|
|
3073
|
-
return
|
|
2904
|
+
return _(yield this.transformToAvueOptions(this.widgetForm), p({
|
|
3074
2905
|
minify: !0
|
|
3075
2906
|
}, e));
|
|
3076
2907
|
if (l === "app") {
|
|
@@ -3088,11 +2919,11 @@ const ua = pa.exports, ma = {
|
|
|
3088
2919
|
}
|
|
3089
2920
|
}
|
|
3090
2921
|
};
|
|
3091
|
-
var
|
|
2922
|
+
var ra = function() {
|
|
3092
2923
|
var e = this, t = e._self._c;
|
|
3093
2924
|
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) {
|
|
3094
|
-
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,
|
|
3095
|
-
return [t("li", { key: `c_${
|
|
2925
|
+
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, n) {
|
|
2926
|
+
return [t("li", { key: `c_${n}`, staticClass: "field-label" }, [t("a", { on: { click: function(r) {
|
|
3096
2927
|
return e.handleFieldClick(s);
|
|
3097
2928
|
} } }, [t("i", { staticClass: "icon iconfont", class: s.icon }), t("span", [e._v(e._s(s.title || s.label))])])])];
|
|
3098
2929
|
})], 2)];
|
|
@@ -3103,8 +2934,8 @@ var ha = function() {
|
|
|
3103
2934
|
return e.handleFieldClick(a);
|
|
3104
2935
|
} } }, [t("i", { class: a.icon }), t("span", { staticStyle: { "margin-left": "5px" } }, [e._v(e._s(a.title || a.label))])])])];
|
|
3105
2936
|
})], 2)]] : e._e(), e._l(e.fields, function(a, i) {
|
|
3106
|
-
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,
|
|
3107
|
-
return [e.includeFields.includes(s.type) ? t("li", { key: `c_${
|
|
2937
|
+
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, n) {
|
|
2938
|
+
return [e.includeFields.includes(s.type) ? t("li", { key: `c_${n}`, staticClass: "field-label" }, [t("a", { on: { click: function(r) {
|
|
3108
2939
|
return e.handleFieldClick(s);
|
|
3109
2940
|
} } }, [t("i", { staticClass: "icon iconfont", class: s.icon }), t("span", [e._v(e._s(s.title || s.label))])])]) : e._e()];
|
|
3110
2941
|
})], 2)] : e._e()], 2);
|
|
@@ -3155,17 +2986,17 @@ var ha = function() {
|
|
|
3155
2986
|
} } }, [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) {
|
|
3156
2987
|
e.form = a;
|
|
3157
2988
|
}, 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);
|
|
3158
|
-
},
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
2989
|
+
}, ca = [], da = /* @__PURE__ */ c(
|
|
2990
|
+
oa,
|
|
2991
|
+
ra,
|
|
2992
|
+
ca,
|
|
3162
2993
|
!1,
|
|
3163
2994
|
null,
|
|
3164
2995
|
null,
|
|
3165
2996
|
null,
|
|
3166
2997
|
null
|
|
3167
2998
|
);
|
|
3168
|
-
const
|
|
2999
|
+
const ya = da.exports;
|
|
3169
3000
|
export {
|
|
3170
|
-
|
|
3001
|
+
ya as default
|
|
3171
3002
|
};
|