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