sun-form-v3 1.0.89 → 1.0.91
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index-B1QWb5lT.js +280 -0
- package/dist/index-B62u8sUu.js +64889 -0
- package/dist/index-BAEL_Fhr.js +127 -0
- package/dist/{index-DWuwZ-Ao.js → index-BAWzyr2e.js} +98 -108
- package/dist/index-BJ0vPF5A.js +44 -0
- package/dist/index-BVgTyiQP.js +281 -0
- package/dist/index-BYbxnzUx.js +105 -0
- package/dist/index-Bk8CdvWe.js +148 -0
- package/dist/{index-CxNAuKj7.js → index-CIaeKFCl.js} +26 -27
- package/dist/index-CXNYHPLK.js +43 -0
- package/dist/index-C_4SKQvs.js +246 -0
- package/dist/index-CifChfEv.js +20 -0
- package/dist/index-CzkuANsf.js +20 -0
- package/dist/index-DqEO436K.js +127 -0
- package/dist/index-ZVIqhtUw.js +132 -0
- package/dist/index-dGJDj4ro.js +97 -0
- package/dist/index-kUQct_cM.js +172 -0
- package/dist/style.css +1 -1
- package/dist/sun-form-v3.es.js +1 -1
- package/dist/sun-form-v3.umd.js +113 -34
- package/package.json +6 -3
- package/dist/index-CITbTrFx.js +0 -33
- package/dist/index-bnFfSfHE.js +0 -18066
@@ -0,0 +1,281 @@
|
|
1
|
+
import { computed as j, ref as y, resolveComponent as i, openBlock as h, createElementBlock as k, Fragment as U, createVNode as e, withCtx as l, createTextVNode as V, unref as d, isRef as z, createElementVNode as m, pushScopeId as I, popScopeId as J } from "vue";
|
2
|
+
import { _ as E, c as H } from "./index-B62u8sUu.js";
|
3
|
+
const B = (r) => (I("data-v-657a5bea"), r = r(), J(), r), T = /* @__PURE__ */ B(() => /* @__PURE__ */ m("span", null, "数据配置", -1)), D = { class: "h-full flex flex-col" }, F = { class: "flex-1 overflow-hidden" }, M = /* @__PURE__ */ Object.assign({ name: "commonStyleConfig" }, {
|
4
|
+
__name: "dataConfig",
|
5
|
+
props: {
|
6
|
+
modelValue: [Object, null],
|
7
|
+
widget: {
|
8
|
+
type: Object
|
9
|
+
}
|
10
|
+
},
|
11
|
+
emits: ["update:modelValue"],
|
12
|
+
setup(r, { emit: a }) {
|
13
|
+
let v = r;
|
14
|
+
const c = j(() => v.widget.props);
|
15
|
+
let t = y(!1);
|
16
|
+
const p = y([]), s = (x) => {
|
17
|
+
p.value.splice(x, 1);
|
18
|
+
}, g = () => {
|
19
|
+
p.value.push({
|
20
|
+
title: null,
|
21
|
+
value: null,
|
22
|
+
key: null,
|
23
|
+
unit: null
|
24
|
+
});
|
25
|
+
}, w = () => {
|
26
|
+
c.value.data && (p.value = JSON.parse(JSON.stringify(c.value.data))), t.value = !0;
|
27
|
+
}, n = () => {
|
28
|
+
t.value = !1;
|
29
|
+
}, O = () => {
|
30
|
+
c.value.data = JSON.parse(JSON.stringify(p.value)), t.value = !1;
|
31
|
+
};
|
32
|
+
return (x, C) => {
|
33
|
+
const f = i("el-button"), b = i("el-input"), _ = i("vxe-column"), S = i("vxe-table"), N = i("vxe-modal");
|
34
|
+
return h(), k(U, null, [
|
35
|
+
e(f, {
|
36
|
+
plain: "",
|
37
|
+
icon: "Setting",
|
38
|
+
onClick: w,
|
39
|
+
type: c.value.data.length ? "primary" : ""
|
40
|
+
}, {
|
41
|
+
default: l(() => [
|
42
|
+
V(" 数据配置 ")
|
43
|
+
]),
|
44
|
+
_: 1
|
45
|
+
}, 8, ["type"]),
|
46
|
+
e(N, {
|
47
|
+
transfer: "",
|
48
|
+
modelValue: d(t),
|
49
|
+
"onUpdate:modelValue": C[0] || (C[0] = (o) => z(t) ? t.value = o : t = o),
|
50
|
+
width: "830px",
|
51
|
+
height: "700px",
|
52
|
+
"show-footer": "",
|
53
|
+
onClose: n
|
54
|
+
}, {
|
55
|
+
title: l(() => [
|
56
|
+
T
|
57
|
+
]),
|
58
|
+
default: l(() => [
|
59
|
+
m("div", D, [
|
60
|
+
e(f, {
|
61
|
+
type: "primary",
|
62
|
+
class: "w-16 mb-2",
|
63
|
+
onClick: g
|
64
|
+
}, {
|
65
|
+
default: l(() => [
|
66
|
+
V("新增")
|
67
|
+
]),
|
68
|
+
_: 1
|
69
|
+
}),
|
70
|
+
m("div", F, [
|
71
|
+
e(S, {
|
72
|
+
ref: "mainTable",
|
73
|
+
data: p.value,
|
74
|
+
height: "auto",
|
75
|
+
"row-config": { isCurrent: !0, isHover: !0 },
|
76
|
+
size: "mini",
|
77
|
+
border: "",
|
78
|
+
"scroll-y": { enabled: !0 },
|
79
|
+
"column-config": { resizable: !0 },
|
80
|
+
align: "left",
|
81
|
+
class: "w-full"
|
82
|
+
}, {
|
83
|
+
default: l(() => [
|
84
|
+
e(_, {
|
85
|
+
field: "title",
|
86
|
+
title: "子项标题"
|
87
|
+
}, {
|
88
|
+
default: l(({ row: o }) => [
|
89
|
+
m("div", null, [
|
90
|
+
e(b, {
|
91
|
+
modelValue: o.title,
|
92
|
+
"onUpdate:modelValue": (u) => o.title = u
|
93
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
94
|
+
])
|
95
|
+
]),
|
96
|
+
_: 1
|
97
|
+
}),
|
98
|
+
e(_, {
|
99
|
+
field: "value",
|
100
|
+
title: "子项值"
|
101
|
+
}, {
|
102
|
+
default: l(({ row: o }) => [
|
103
|
+
m("div", null, [
|
104
|
+
e(b, {
|
105
|
+
modelValue: o.value,
|
106
|
+
"onUpdate:modelValue": (u) => o.value = u
|
107
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
108
|
+
])
|
109
|
+
]),
|
110
|
+
_: 1
|
111
|
+
}),
|
112
|
+
e(_, {
|
113
|
+
field: "unit",
|
114
|
+
title: "子项单位"
|
115
|
+
}, {
|
116
|
+
default: l(({ row: o }) => [
|
117
|
+
m("div", null, [
|
118
|
+
e(b, {
|
119
|
+
modelValue: o.unit,
|
120
|
+
"onUpdate:modelValue": (u) => o.unit = u
|
121
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
122
|
+
])
|
123
|
+
]),
|
124
|
+
_: 1
|
125
|
+
}),
|
126
|
+
e(_, {
|
127
|
+
field: "key",
|
128
|
+
title: "子项字段"
|
129
|
+
}, {
|
130
|
+
default: l(({ row: o }) => [
|
131
|
+
m("div", null, [
|
132
|
+
e(b, {
|
133
|
+
modelValue: o.key,
|
134
|
+
"onUpdate:modelValue": (u) => o.key = u
|
135
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
136
|
+
])
|
137
|
+
]),
|
138
|
+
_: 1
|
139
|
+
}),
|
140
|
+
e(_, {
|
141
|
+
title: "操作栏",
|
142
|
+
width: "60",
|
143
|
+
align: "center"
|
144
|
+
}, {
|
145
|
+
default: l(({ row: o, rowIndex: u }) => [
|
146
|
+
e(f, {
|
147
|
+
link: "",
|
148
|
+
type: "primary",
|
149
|
+
size: "small",
|
150
|
+
onClick: ($) => s(u)
|
151
|
+
}, {
|
152
|
+
default: l(() => [
|
153
|
+
V("删除")
|
154
|
+
]),
|
155
|
+
_: 2
|
156
|
+
}, 1032, ["onClick"])
|
157
|
+
]),
|
158
|
+
_: 1
|
159
|
+
})
|
160
|
+
]),
|
161
|
+
_: 1
|
162
|
+
}, 8, ["data"])
|
163
|
+
])
|
164
|
+
])
|
165
|
+
]),
|
166
|
+
footer: l(() => [
|
167
|
+
e(f, {
|
168
|
+
icon: "Close",
|
169
|
+
size: "small",
|
170
|
+
onClick: n
|
171
|
+
}, {
|
172
|
+
default: l(() => [
|
173
|
+
V("关闭")
|
174
|
+
]),
|
175
|
+
_: 1
|
176
|
+
}),
|
177
|
+
e(f, {
|
178
|
+
icon: "Check",
|
179
|
+
type: "primary",
|
180
|
+
size: "small",
|
181
|
+
onClick: O
|
182
|
+
}, {
|
183
|
+
default: l(() => [
|
184
|
+
V("确认")
|
185
|
+
]),
|
186
|
+
_: 1
|
187
|
+
})
|
188
|
+
]),
|
189
|
+
_: 1
|
190
|
+
}, 8, ["modelValue"])
|
191
|
+
], 64);
|
192
|
+
};
|
193
|
+
}
|
194
|
+
}), R = /* @__PURE__ */ E(M, [["__scopeId", "data-v-657a5bea"]]), G = /* @__PURE__ */ Object.assign({ name: "config-statistic" }, {
|
195
|
+
__name: "index",
|
196
|
+
props: {
|
197
|
+
designer: {
|
198
|
+
type: Object,
|
199
|
+
default: {}
|
200
|
+
},
|
201
|
+
widget: {
|
202
|
+
type: Object,
|
203
|
+
default: {}
|
204
|
+
}
|
205
|
+
},
|
206
|
+
setup(r) {
|
207
|
+
let a = r;
|
208
|
+
const v = y(H);
|
209
|
+
return (c, t) => {
|
210
|
+
const p = i("el-color-picker"), s = i("common-label-container"), g = i("el-input"), w = i("el-input-number");
|
211
|
+
return h(), k(U, null, [
|
212
|
+
e(s, { label: "背景颜色" }, {
|
213
|
+
default: l(() => [
|
214
|
+
e(p, {
|
215
|
+
modelValue: d(a).widget.props.color,
|
216
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => d(a).widget.props.color = n),
|
217
|
+
"show-alpha": "",
|
218
|
+
predefine: v.value
|
219
|
+
}, null, 8, ["modelValue", "predefine"])
|
220
|
+
]),
|
221
|
+
_: 1
|
222
|
+
}),
|
223
|
+
e(s, { label: "字体颜色" }, {
|
224
|
+
default: l(() => [
|
225
|
+
e(p, {
|
226
|
+
modelValue: d(a).widget.props.fontColor,
|
227
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => d(a).widget.props.fontColor = n),
|
228
|
+
"show-alpha": "",
|
229
|
+
predefine: v.value
|
230
|
+
}, null, 8, ["modelValue", "predefine"])
|
231
|
+
]),
|
232
|
+
_: 1
|
233
|
+
}),
|
234
|
+
e(s, { label: "统计标题" }, {
|
235
|
+
default: l(() => [
|
236
|
+
e(g, {
|
237
|
+
modelValue: d(a).widget.props.title,
|
238
|
+
"onUpdate:modelValue": t[2] || (t[2] = (n) => d(a).widget.props.title = n),
|
239
|
+
placeholder: "填写统计标题"
|
240
|
+
}, null, 8, ["modelValue"])
|
241
|
+
]),
|
242
|
+
_: 1
|
243
|
+
}),
|
244
|
+
e(s, { label: "单位" }, {
|
245
|
+
default: l(() => [
|
246
|
+
e(g, {
|
247
|
+
modelValue: d(a).widget.props.unit,
|
248
|
+
"onUpdate:modelValue": t[3] || (t[3] = (n) => d(a).widget.props.unit = n),
|
249
|
+
placeholder: "填写统计单位"
|
250
|
+
}, null, 8, ["modelValue"])
|
251
|
+
]),
|
252
|
+
_: 1
|
253
|
+
}),
|
254
|
+
e(s, { label: "子项拆分" }, {
|
255
|
+
default: l(() => [
|
256
|
+
e(w, {
|
257
|
+
class: "w-full",
|
258
|
+
placeholder: "子项拆分几个",
|
259
|
+
modelValue: d(a).widget.props.split,
|
260
|
+
"onUpdate:modelValue": t[4] || (t[4] = (n) => d(a).widget.props.split = n),
|
261
|
+
min: 1,
|
262
|
+
"controls-position": "right"
|
263
|
+
}, null, 8, ["modelValue"])
|
264
|
+
]),
|
265
|
+
_: 1
|
266
|
+
}),
|
267
|
+
e(s, { label: "子项数据" }, {
|
268
|
+
default: l(() => [
|
269
|
+
e(R, {
|
270
|
+
widget: d(a).widget
|
271
|
+
}, null, 8, ["widget"])
|
272
|
+
]),
|
273
|
+
_: 1
|
274
|
+
})
|
275
|
+
], 64);
|
276
|
+
};
|
277
|
+
}
|
278
|
+
});
|
279
|
+
export {
|
280
|
+
G as default
|
281
|
+
};
|
@@ -0,0 +1,105 @@
|
|
1
|
+
import { resolveComponent as u, openBlock as c, createElementBlock as _, Fragment as b, createVNode as e, withCtx as p, unref as a } from "vue";
|
2
|
+
const w = /* @__PURE__ */ Object.assign({ name: "config-text" }, {
|
3
|
+
__name: "index",
|
4
|
+
props: {
|
5
|
+
designer: {
|
6
|
+
type: Object,
|
7
|
+
default: {}
|
8
|
+
},
|
9
|
+
widget: {
|
10
|
+
type: Object,
|
11
|
+
default: {}
|
12
|
+
}
|
13
|
+
},
|
14
|
+
setup(s) {
|
15
|
+
let l = s;
|
16
|
+
return (g, t) => {
|
17
|
+
const o = u("el-option"), r = u("el-select"), d = u("common-label-container"), i = u("el-input-number"), m = u("el-switch");
|
18
|
+
return c(), _(b, null, [
|
19
|
+
e(d, { label: "组件尺寸" }, {
|
20
|
+
default: p(() => [
|
21
|
+
e(r, {
|
22
|
+
modelValue: a(l).widget.props.size,
|
23
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => a(l).widget.props.size = n)
|
24
|
+
}, {
|
25
|
+
default: p(() => [
|
26
|
+
e(o, {
|
27
|
+
label: "大尺寸",
|
28
|
+
value: "large"
|
29
|
+
}),
|
30
|
+
e(o, {
|
31
|
+
label: "默认",
|
32
|
+
value: "default"
|
33
|
+
}),
|
34
|
+
e(o, {
|
35
|
+
label: "小尺寸",
|
36
|
+
value: "small"
|
37
|
+
})
|
38
|
+
]),
|
39
|
+
_: 1
|
40
|
+
}, 8, ["modelValue"])
|
41
|
+
]),
|
42
|
+
_: 1
|
43
|
+
}),
|
44
|
+
e(d, { label: "组件类型" }, {
|
45
|
+
default: p(() => [
|
46
|
+
e(r, {
|
47
|
+
modelValue: a(l).widget.props.type,
|
48
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => a(l).widget.props.type = n)
|
49
|
+
}, {
|
50
|
+
default: p(() => [
|
51
|
+
e(o, {
|
52
|
+
label: "primary",
|
53
|
+
value: "primary"
|
54
|
+
}),
|
55
|
+
e(o, {
|
56
|
+
label: "success",
|
57
|
+
value: "success"
|
58
|
+
}),
|
59
|
+
e(o, {
|
60
|
+
label: "info",
|
61
|
+
value: "info"
|
62
|
+
}),
|
63
|
+
e(o, {
|
64
|
+
label: "warning",
|
65
|
+
value: "warning"
|
66
|
+
}),
|
67
|
+
e(o, {
|
68
|
+
label: "danger",
|
69
|
+
value: "danger"
|
70
|
+
})
|
71
|
+
]),
|
72
|
+
_: 1
|
73
|
+
}, 8, ["modelValue"])
|
74
|
+
]),
|
75
|
+
_: 1
|
76
|
+
}),
|
77
|
+
e(d, { label: "最大行数" }, {
|
78
|
+
default: p(() => [
|
79
|
+
e(i, {
|
80
|
+
class: "w-full",
|
81
|
+
placeholder: "填写最大行数",
|
82
|
+
modelValue: a(l).widget.props.lineClamp,
|
83
|
+
"onUpdate:modelValue": t[2] || (t[2] = (n) => a(l).widget.props.lineClamp = n),
|
84
|
+
min: 0,
|
85
|
+
"controls-position": "right"
|
86
|
+
}, null, 8, ["modelValue"])
|
87
|
+
]),
|
88
|
+
_: 1
|
89
|
+
}),
|
90
|
+
e(d, { label: "显示省略号" }, {
|
91
|
+
default: p(() => [
|
92
|
+
e(m, {
|
93
|
+
modelValue: a(l).widget.props.truncated,
|
94
|
+
"onUpdate:modelValue": t[3] || (t[3] = (n) => a(l).widget.props.truncated = n)
|
95
|
+
}, null, 8, ["modelValue"])
|
96
|
+
]),
|
97
|
+
_: 1
|
98
|
+
})
|
99
|
+
], 64);
|
100
|
+
};
|
101
|
+
}
|
102
|
+
});
|
103
|
+
export {
|
104
|
+
w as default
|
105
|
+
};
|
@@ -0,0 +1,148 @@
|
|
1
|
+
import { ref as g, resolveComponent as u, openBlock as b, createElementBlock as V, Fragment as w, createVNode as e, withCtx as n, unref as a } from "vue";
|
2
|
+
import { c } from "./index-B62u8sUu.js";
|
3
|
+
const k = /* @__PURE__ */ Object.assign({ name: "config-text" }, {
|
4
|
+
__name: "index",
|
5
|
+
props: {
|
6
|
+
designer: {
|
7
|
+
type: Object,
|
8
|
+
default: {}
|
9
|
+
},
|
10
|
+
widget: {
|
11
|
+
type: Object,
|
12
|
+
default: {}
|
13
|
+
}
|
14
|
+
},
|
15
|
+
setup(i) {
|
16
|
+
let l = i;
|
17
|
+
const m = g(c);
|
18
|
+
return (_, o) => {
|
19
|
+
const d = u("el-option"), r = u("el-select"), p = u("common-label-container"), s = u("el-switch"), f = u("el-color-picker");
|
20
|
+
return b(), V(w, null, [
|
21
|
+
e(p, { label: "组件尺寸" }, {
|
22
|
+
default: n(() => [
|
23
|
+
e(r, {
|
24
|
+
modelValue: a(l).widget.props.size,
|
25
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => a(l).widget.props.size = t)
|
26
|
+
}, {
|
27
|
+
default: n(() => [
|
28
|
+
e(d, {
|
29
|
+
label: "大尺寸",
|
30
|
+
value: "large"
|
31
|
+
}),
|
32
|
+
e(d, {
|
33
|
+
label: "默认",
|
34
|
+
value: "default"
|
35
|
+
}),
|
36
|
+
e(d, {
|
37
|
+
label: "小尺寸",
|
38
|
+
value: "small"
|
39
|
+
})
|
40
|
+
]),
|
41
|
+
_: 1
|
42
|
+
}, 8, ["modelValue"])
|
43
|
+
]),
|
44
|
+
_: 1
|
45
|
+
}),
|
46
|
+
e(p, { label: "组件类型" }, {
|
47
|
+
default: n(() => [
|
48
|
+
e(r, {
|
49
|
+
modelValue: a(l).widget.props.type,
|
50
|
+
"onUpdate:modelValue": o[1] || (o[1] = (t) => a(l).widget.props.type = t)
|
51
|
+
}, {
|
52
|
+
default: n(() => [
|
53
|
+
e(d, {
|
54
|
+
label: "primary",
|
55
|
+
value: "primary"
|
56
|
+
}),
|
57
|
+
e(d, {
|
58
|
+
label: "success",
|
59
|
+
value: "success"
|
60
|
+
}),
|
61
|
+
e(d, {
|
62
|
+
label: "info",
|
63
|
+
value: "info"
|
64
|
+
}),
|
65
|
+
e(d, {
|
66
|
+
label: "warning",
|
67
|
+
value: "warning"
|
68
|
+
}),
|
69
|
+
e(d, {
|
70
|
+
label: "danger",
|
71
|
+
value: "danger"
|
72
|
+
})
|
73
|
+
]),
|
74
|
+
_: 1
|
75
|
+
}, 8, ["modelValue"])
|
76
|
+
]),
|
77
|
+
_: 1
|
78
|
+
}),
|
79
|
+
e(p, { label: "主题" }, {
|
80
|
+
default: n(() => [
|
81
|
+
e(r, {
|
82
|
+
modelValue: a(l).widget.props.effect,
|
83
|
+
"onUpdate:modelValue": o[2] || (o[2] = (t) => a(l).widget.props.effect = t)
|
84
|
+
}, {
|
85
|
+
default: n(() => [
|
86
|
+
e(d, {
|
87
|
+
label: "light",
|
88
|
+
value: "light"
|
89
|
+
}),
|
90
|
+
e(d, {
|
91
|
+
label: "dark",
|
92
|
+
value: "dark"
|
93
|
+
}),
|
94
|
+
e(d, {
|
95
|
+
label: "plain",
|
96
|
+
value: "plain"
|
97
|
+
})
|
98
|
+
]),
|
99
|
+
_: 1
|
100
|
+
}, 8, ["modelValue"])
|
101
|
+
]),
|
102
|
+
_: 1
|
103
|
+
}),
|
104
|
+
e(p, { label: "是否可关闭" }, {
|
105
|
+
default: n(() => [
|
106
|
+
e(s, {
|
107
|
+
modelValue: a(l).widget.props.closable,
|
108
|
+
"onUpdate:modelValue": o[3] || (o[3] = (t) => a(l).widget.props.closable = t)
|
109
|
+
}, null, 8, ["modelValue"])
|
110
|
+
]),
|
111
|
+
_: 1
|
112
|
+
}),
|
113
|
+
e(p, { label: "边框描边" }, {
|
114
|
+
default: n(() => [
|
115
|
+
e(s, {
|
116
|
+
modelValue: a(l).widget.props.hit,
|
117
|
+
"onUpdate:modelValue": o[4] || (o[4] = (t) => a(l).widget.props.hit = t)
|
118
|
+
}, null, 8, ["modelValue"])
|
119
|
+
]),
|
120
|
+
_: 1
|
121
|
+
}),
|
122
|
+
e(p, { label: "是否圆形" }, {
|
123
|
+
default: n(() => [
|
124
|
+
e(s, {
|
125
|
+
modelValue: a(l).widget.props.round,
|
126
|
+
"onUpdate:modelValue": o[5] || (o[5] = (t) => a(l).widget.props.round = t)
|
127
|
+
}, null, 8, ["modelValue"])
|
128
|
+
]),
|
129
|
+
_: 1
|
130
|
+
}),
|
131
|
+
e(p, { label: "背景颜色" }, {
|
132
|
+
default: n(() => [
|
133
|
+
e(f, {
|
134
|
+
modelValue: a(l).widget.props.color,
|
135
|
+
"onUpdate:modelValue": o[6] || (o[6] = (t) => a(l).widget.props.color = t),
|
136
|
+
"show-alpha": "",
|
137
|
+
predefine: m.value
|
138
|
+
}, null, 8, ["modelValue", "predefine"])
|
139
|
+
]),
|
140
|
+
_: 1
|
141
|
+
})
|
142
|
+
], 64);
|
143
|
+
};
|
144
|
+
}
|
145
|
+
});
|
146
|
+
export {
|
147
|
+
k as default
|
148
|
+
};
|
@@ -11,26 +11,16 @@ const S = /* @__PURE__ */ Object.assign({ name: "config-form" }, {
|
|
11
11
|
default: {}
|
12
12
|
}
|
13
13
|
},
|
14
|
-
setup(
|
15
|
-
let e =
|
16
|
-
return (
|
17
|
-
const
|
14
|
+
setup(r) {
|
15
|
+
let e = r;
|
16
|
+
return (B, o) => {
|
17
|
+
const w = n("el-input"), p = n("common-label-container"), u = n("el-radio-button"), b = n("el-radio-group"), i = n("el-switch"), s = n("common-api-config");
|
18
18
|
return m(), f(U, null, [
|
19
|
-
t(p, { label: "表单高度" }, {
|
20
|
-
default: d(() => [
|
21
|
-
t(b, {
|
22
|
-
modelValue: l(e).widget.props.height,
|
23
|
-
"onUpdate:modelValue": o[0] || (o[0] = (a) => l(e).widget.props.height = a),
|
24
|
-
placeholder: "填写表单容器高度"
|
25
|
-
}, null, 8, ["modelValue"])
|
26
|
-
]),
|
27
|
-
_: 1
|
28
|
-
}),
|
29
19
|
t(p, { label: "提交按钮文字" }, {
|
30
20
|
default: d(() => [
|
31
|
-
t(
|
21
|
+
t(w, {
|
32
22
|
modelValue: l(e).widget.props.submitButtonText,
|
33
|
-
"onUpdate:modelValue": o[
|
23
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => l(e).widget.props.submitButtonText = a),
|
34
24
|
placeholder: "填写提交按钮文字"
|
35
25
|
}, null, 8, ["modelValue"])
|
36
26
|
]),
|
@@ -38,9 +28,9 @@ const S = /* @__PURE__ */ Object.assign({ name: "config-form" }, {
|
|
38
28
|
}),
|
39
29
|
t(p, { label: "表单类型" }, {
|
40
30
|
default: d(() => [
|
41
|
-
t(
|
31
|
+
t(b, {
|
42
32
|
modelValue: l(e).widget.props.formType,
|
43
|
-
"onUpdate:modelValue": o[
|
33
|
+
"onUpdate:modelValue": o[1] || (o[1] = (a) => l(e).widget.props.formType = a)
|
44
34
|
}, {
|
45
35
|
default: d(() => [
|
46
36
|
t(u, {
|
@@ -63,9 +53,9 @@ const S = /* @__PURE__ */ Object.assign({ name: "config-form" }, {
|
|
63
53
|
}),
|
64
54
|
t(p, { label: "按钮位置" }, {
|
65
55
|
default: d(() => [
|
66
|
-
t(
|
56
|
+
t(b, {
|
67
57
|
modelValue: l(e).widget.props.buttonAlign,
|
68
|
-
"onUpdate:modelValue": o[
|
58
|
+
"onUpdate:modelValue": o[2] || (o[2] = (a) => l(e).widget.props.buttonAlign = a)
|
69
59
|
}, {
|
70
60
|
default: d(() => [
|
71
61
|
t(u, {
|
@@ -82,9 +72,18 @@ const S = /* @__PURE__ */ Object.assign({ name: "config-form" }, {
|
|
82
72
|
]),
|
83
73
|
_: 1
|
84
74
|
}),
|
75
|
+
t(p, { label: "是否有边框" }, {
|
76
|
+
default: d(() => [
|
77
|
+
t(i, {
|
78
|
+
modelValue: l(e).widget.props.hasBorder,
|
79
|
+
"onUpdate:modelValue": o[3] || (o[3] = (a) => l(e).widget.props.hasBorder = a)
|
80
|
+
}, null, 8, ["modelValue"])
|
81
|
+
]),
|
82
|
+
_: 1
|
83
|
+
}),
|
85
84
|
t(p, { label: "底部显示底色" }, {
|
86
85
|
default: d(() => [
|
87
|
-
t(
|
86
|
+
t(i, {
|
88
87
|
modelValue: l(e).widget.props.hasFooterBg,
|
89
88
|
"onUpdate:modelValue": o[4] || (o[4] = (a) => l(e).widget.props.hasFooterBg = a)
|
90
89
|
}, null, 8, ["modelValue"])
|
@@ -93,7 +92,7 @@ const S = /* @__PURE__ */ Object.assign({ name: "config-form" }, {
|
|
93
92
|
}),
|
94
93
|
t(p, { label: "是否显示底部" }, {
|
95
94
|
default: d(() => [
|
96
|
-
t(
|
95
|
+
t(i, {
|
97
96
|
modelValue: l(e).widget.props.hasFooter,
|
98
97
|
"onUpdate:modelValue": o[5] || (o[5] = (a) => l(e).widget.props.hasFooter = a)
|
99
98
|
}, null, 8, ["modelValue"])
|
@@ -102,7 +101,7 @@ const S = /* @__PURE__ */ Object.assign({ name: "config-form" }, {
|
|
102
101
|
}),
|
103
102
|
t(p, { label: "显示提交按钮" }, {
|
104
103
|
default: d(() => [
|
105
|
-
t(
|
104
|
+
t(i, {
|
106
105
|
modelValue: l(e).widget.props.hasSubmitButton,
|
107
106
|
"onUpdate:modelValue": o[6] || (o[6] = (a) => l(e).widget.props.hasSubmitButton = a)
|
108
107
|
}, null, 8, ["modelValue"])
|
@@ -111,7 +110,7 @@ const S = /* @__PURE__ */ Object.assign({ name: "config-form" }, {
|
|
111
110
|
}),
|
112
111
|
t(p, { label: "显示重置按钮" }, {
|
113
112
|
default: d(() => [
|
114
|
-
t(
|
113
|
+
t(i, {
|
115
114
|
modelValue: l(e).widget.props.hasResetButton,
|
116
115
|
"onUpdate:modelValue": o[7] || (o[7] = (a) => l(e).widget.props.hasResetButton = a)
|
117
116
|
}, null, 8, ["modelValue"])
|
@@ -122,7 +121,7 @@ const S = /* @__PURE__ */ Object.assign({ name: "config-form" }, {
|
|
122
121
|
default: d(() => [
|
123
122
|
l(e).widget.props.apiSetCreate ? (m(), g(s, {
|
124
123
|
key: 0,
|
125
|
-
designer:
|
124
|
+
designer: r.designer,
|
126
125
|
modelValue: l(e).widget.props.apiSetCreate,
|
127
126
|
"onUpdate:modelValue": o[8] || (o[8] = (a) => l(e).widget.props.apiSetCreate = a)
|
128
127
|
}, null, 8, ["designer", "modelValue"])) : V("", !0)
|
@@ -133,7 +132,7 @@ const S = /* @__PURE__ */ Object.assign({ name: "config-form" }, {
|
|
133
132
|
default: d(() => [
|
134
133
|
l(e).widget.props.apiSetUpdate ? (m(), g(s, {
|
135
134
|
key: 0,
|
136
|
-
designer:
|
135
|
+
designer: r.designer,
|
137
136
|
modelValue: l(e).widget.props.apiSetUpdate,
|
138
137
|
"onUpdate:modelValue": o[9] || (o[9] = (a) => l(e).widget.props.apiSetUpdate = a)
|
139
138
|
}, null, 8, ["designer", "modelValue"])) : V("", !0)
|
@@ -144,7 +143,7 @@ const S = /* @__PURE__ */ Object.assign({ name: "config-form" }, {
|
|
144
143
|
default: d(() => [
|
145
144
|
l(e).widget.props.apiSetDetail ? (m(), g(s, {
|
146
145
|
key: 0,
|
147
|
-
designer:
|
146
|
+
designer: r.designer,
|
148
147
|
modelValue: l(e).widget.props.apiSetDetail,
|
149
148
|
"onUpdate:modelValue": o[10] || (o[10] = (a) => l(e).widget.props.apiSetDetail = a)
|
150
149
|
}, null, 8, ["designer", "modelValue"])) : V("", !0)
|