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