sun-form-v3 1.0.89 → 1.0.92
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index-BAEL_Fhr.js +127 -0
- package/dist/index-BJ0vPF5A.js +44 -0
- package/dist/index-BYbxnzUx.js +105 -0
- package/dist/index-BZbp6-Wo.js +281 -0
- package/dist/{index-CxNAuKj7.js → index-CIaeKFCl.js} +26 -27
- package/dist/index-CMXtGqAB.js +280 -0
- package/dist/index-CUkyE7mr.js +148 -0
- package/dist/index-CXNYHPLK.js +43 -0
- package/dist/index-CaLnMRtp.js +246 -0
- package/dist/index-CifChfEv.js +20 -0
- package/dist/index-CzkuANsf.js +20 -0
- package/dist/{index-DWuwZ-Ao.js → index-D9V97sYL.js} +98 -108
- package/dist/index-DAk2H32-.js +65340 -0
- package/dist/index-DdQjo-g4.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 +150 -34
- package/package.json +6 -3
- package/dist/index-CITbTrFx.js +0 -33
- package/dist/index-bnFfSfHE.js +0 -18066
@@ -0,0 +1,127 @@
|
|
1
|
+
import { resolveComponent as p, openBlock as f, createElementBlock as b, Fragment as c, createVNode as e, withCtx as n, unref as o } from "vue";
|
2
|
+
const g = /* @__PURE__ */ Object.assign({ name: "config-div" }, {
|
3
|
+
__name: "index",
|
4
|
+
props: {
|
5
|
+
designer: {
|
6
|
+
type: Object,
|
7
|
+
default: {}
|
8
|
+
},
|
9
|
+
widget: {
|
10
|
+
type: Object,
|
11
|
+
default: {}
|
12
|
+
}
|
13
|
+
},
|
14
|
+
setup(m) {
|
15
|
+
let l = m;
|
16
|
+
return (w, t) => {
|
17
|
+
const i = p("el-switch"), d = p("common-label-container"), u = p("el-radio-button"), s = p("el-radio-group"), r = p("el-radio");
|
18
|
+
return f(), b(c, null, [
|
19
|
+
e(d, { label: "是否弹性布局" }, {
|
20
|
+
default: n(() => [
|
21
|
+
e(i, {
|
22
|
+
modelValue: o(l).widget.props.flex,
|
23
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => o(l).widget.props.flex = a)
|
24
|
+
}, null, 8, ["modelValue"])
|
25
|
+
]),
|
26
|
+
_: 1
|
27
|
+
}),
|
28
|
+
e(d, { label: "是否弹性换行" }, {
|
29
|
+
default: n(() => [
|
30
|
+
e(i, {
|
31
|
+
modelValue: o(l).widget.props.flexWrap,
|
32
|
+
"onUpdate:modelValue": t[1] || (t[1] = (a) => o(l).widget.props.flexWrap = a)
|
33
|
+
}, null, 8, ["modelValue"])
|
34
|
+
]),
|
35
|
+
_: 1
|
36
|
+
}),
|
37
|
+
e(d, { label: "弹性方向" }, {
|
38
|
+
default: n(() => [
|
39
|
+
e(s, {
|
40
|
+
modelValue: o(l).widget.props.flexDirection,
|
41
|
+
"onUpdate:modelValue": t[2] || (t[2] = (a) => o(l).widget.props.flexDirection = a)
|
42
|
+
}, {
|
43
|
+
default: n(() => [
|
44
|
+
e(u, {
|
45
|
+
value: "row",
|
46
|
+
label: "row"
|
47
|
+
}),
|
48
|
+
e(u, {
|
49
|
+
value: "column",
|
50
|
+
label: "column"
|
51
|
+
})
|
52
|
+
]),
|
53
|
+
_: 1
|
54
|
+
}, 8, ["modelValue"])
|
55
|
+
]),
|
56
|
+
_: 1
|
57
|
+
}),
|
58
|
+
e(d, { label: "横向对齐" }, {
|
59
|
+
default: n(() => [
|
60
|
+
e(s, {
|
61
|
+
modelValue: o(l).widget.props.alignItems,
|
62
|
+
"onUpdate:modelValue": t[3] || (t[3] = (a) => o(l).widget.props.alignItems = a)
|
63
|
+
}, {
|
64
|
+
default: n(() => [
|
65
|
+
e(u, {
|
66
|
+
value: "center",
|
67
|
+
label: "center"
|
68
|
+
}),
|
69
|
+
e(u, {
|
70
|
+
value: "flex-start",
|
71
|
+
label: "start"
|
72
|
+
}),
|
73
|
+
e(u, {
|
74
|
+
value: "flex-end",
|
75
|
+
label: "end"
|
76
|
+
})
|
77
|
+
]),
|
78
|
+
_: 1
|
79
|
+
}, 8, ["modelValue"])
|
80
|
+
]),
|
81
|
+
_: 1
|
82
|
+
}),
|
83
|
+
e(d, { label: "纵向对齐" }, {
|
84
|
+
default: n(() => [
|
85
|
+
e(s, {
|
86
|
+
modelValue: o(l).widget.props.justifyContent,
|
87
|
+
"onUpdate:modelValue": t[4] || (t[4] = (a) => o(l).widget.props.justifyContent = a)
|
88
|
+
}, {
|
89
|
+
default: n(() => [
|
90
|
+
e(r, {
|
91
|
+
class: "w-full",
|
92
|
+
value: "space-between",
|
93
|
+
label: "between"
|
94
|
+
}),
|
95
|
+
e(r, {
|
96
|
+
class: "w-full",
|
97
|
+
value: "space-around",
|
98
|
+
label: "around"
|
99
|
+
}),
|
100
|
+
e(r, {
|
101
|
+
class: "w-full",
|
102
|
+
value: "center",
|
103
|
+
label: "center"
|
104
|
+
}),
|
105
|
+
e(r, {
|
106
|
+
class: "w-full",
|
107
|
+
value: "flex-start",
|
108
|
+
label: "start"
|
109
|
+
}),
|
110
|
+
e(r, {
|
111
|
+
class: "w-full",
|
112
|
+
value: "flex-end",
|
113
|
+
label: "end"
|
114
|
+
})
|
115
|
+
]),
|
116
|
+
_: 1
|
117
|
+
}, 8, ["modelValue"])
|
118
|
+
]),
|
119
|
+
_: 1
|
120
|
+
})
|
121
|
+
], 64);
|
122
|
+
};
|
123
|
+
}
|
124
|
+
});
|
125
|
+
export {
|
126
|
+
g as default
|
127
|
+
};
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { resolveComponent as p, openBlock as s, createElementBlock as u, Fragment as c, createVNode as l, withCtx as i, unref as o } from "vue";
|
2
|
+
const g = /* @__PURE__ */ Object.assign({ name: "config-card" }, {
|
3
|
+
__name: "index",
|
4
|
+
props: {
|
5
|
+
designer: {
|
6
|
+
type: Object,
|
7
|
+
default: {}
|
8
|
+
},
|
9
|
+
widget: {
|
10
|
+
type: Object,
|
11
|
+
default: {}
|
12
|
+
}
|
13
|
+
},
|
14
|
+
setup(d) {
|
15
|
+
let e = d;
|
16
|
+
return (_, t) => {
|
17
|
+
const r = p("el-input"), a = p("common-label-container"), m = p("el-switch");
|
18
|
+
return s(), u(c, null, [
|
19
|
+
l(a, { label: "卡片标题" }, {
|
20
|
+
default: i(() => [
|
21
|
+
l(r, {
|
22
|
+
modelValue: o(e).widget.props.title,
|
23
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => o(e).widget.props.title = n),
|
24
|
+
placeholder: "填写卡片标题"
|
25
|
+
}, null, 8, ["modelValue"])
|
26
|
+
]),
|
27
|
+
_: 1
|
28
|
+
}),
|
29
|
+
l(a, { label: "是否有分割线" }, {
|
30
|
+
default: i(() => [
|
31
|
+
l(m, {
|
32
|
+
modelValue: o(e).widget.props.hasSplitLine,
|
33
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => o(e).widget.props.hasSplitLine = n)
|
34
|
+
}, null, 8, ["modelValue"])
|
35
|
+
]),
|
36
|
+
_: 1
|
37
|
+
})
|
38
|
+
], 64);
|
39
|
+
};
|
40
|
+
}
|
41
|
+
});
|
42
|
+
export {
|
43
|
+
g as default
|
44
|
+
};
|
@@ -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,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-DAk2H32-.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
|
+
};
|
@@ -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)
|