zforg 1.0.1
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/README.md +136 -0
- package/dist/cdn.sunform.tech/libs/monaco-editor/min/vs/loader.js +11 -0
- package/dist/cdn.sunform.tech/libs/monaco-editor/min-maps/vs/out-editor/vs/loader.js +1898 -0
- package/dist/favicon.ico +0 -0
- package/dist/index-B0fldwhm.js +99 -0
- package/dist/index-B1b5cejN.js +105 -0
- package/dist/index-B2ieNi21.js +95 -0
- package/dist/index-BAEL_Fhr.js +127 -0
- package/dist/index-BFMI5eOW.js +246 -0
- package/dist/index-BGxc5ryR.js +25894 -0
- package/dist/index-BJ0vPF5A.js +44 -0
- package/dist/index-BLCD8R_e.js +834 -0
- package/dist/index-BMvtKcYA.js +148 -0
- package/dist/index-BV8ZIDLP.js +255135 -0
- package/dist/index-BYbxnzUx.js +105 -0
- package/dist/index-BZ_40krq.js +265 -0
- package/dist/index-BcUJtkEW.js +159 -0
- package/dist/index-BkftF1Ew.js +33 -0
- package/dist/index-C0NmmaE2.js +252 -0
- package/dist/index-C78PiK5v.js +20 -0
- package/dist/index-CE0gDB6E.js +140 -0
- package/dist/index-CHAFY_vi.js +159 -0
- package/dist/index-CIaeKFCl.js +159 -0
- package/dist/index-CXNYHPLK.js +43 -0
- package/dist/index-CiNAZsvy.js +100 -0
- package/dist/index-CifChfEv.js +20 -0
- package/dist/index-CjKir6nk.js +280 -0
- package/dist/index-CvnfmMTc.js +202 -0
- package/dist/index-CzkuANsf.js +20 -0
- package/dist/index-D7zr1ztZ.js +73 -0
- package/dist/index-DHjsGntq.js +157 -0
- package/dist/index-DQ3y00Pa.js +65 -0
- package/dist/index-DYFp4hH-.js +95 -0
- package/dist/index-Dag4zSq7.js +88 -0
- package/dist/index-DnmLceC9.js +281 -0
- package/dist/index-Dz10Ntti.js +127 -0
- package/dist/index-FVwll8uc.js +124 -0
- package/dist/index-HNpIFY7h.js +44 -0
- package/dist/index-ZVIqhtUw.js +132 -0
- package/dist/index-c0zw96Jm.js +139 -0
- package/dist/index-dGJDj4ro.js +97 -0
- package/dist/index-kUQct_cM.js +172 -0
- package/dist/index-kzElMYkk.js +256 -0
- package/dist/index-nY_E-1Gm.js +180 -0
- package/dist/index-zkXVDNsL.js +184 -0
- package/dist/js/loader.js +11 -0
- package/dist/style.css +1 -0
- package/dist/sun-form-v3.es.js +4 -0
- package/dist/sun-form-v3.umd.js +7064 -0
- package/package.json +62 -0
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { computed as z, ref as x, resolveComponent as p, openBlock as k, createElementBlock as U, Fragment as O, createVNode as e, withCtx as l, createTextVNode as V, unref as u, isRef as J, createElementVNode as m } from "vue";
|
|
2
|
+
import { ae as h, ah as E } from "./index-BV8ZIDLP.js";
|
|
3
|
+
const H = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidden" }, T = /* @__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(b, { emit: a }) {
|
|
13
|
+
let g = b;
|
|
14
|
+
const f = z(() => g.widget.props);
|
|
15
|
+
let t = x(!1);
|
|
16
|
+
const s = x([]), r = (C) => {
|
|
17
|
+
s.value.splice(C, 1);
|
|
18
|
+
}, v = () => {
|
|
19
|
+
s.value.push({
|
|
20
|
+
title: null,
|
|
21
|
+
value: null,
|
|
22
|
+
key: null,
|
|
23
|
+
unit: null
|
|
24
|
+
});
|
|
25
|
+
}, y = () => {
|
|
26
|
+
f.value.data && (s.value = JSON.parse(JSON.stringify(f.value.data))), t.value = !0;
|
|
27
|
+
}, d = () => {
|
|
28
|
+
t.value = !1;
|
|
29
|
+
}, N = () => {
|
|
30
|
+
f.value.data = JSON.parse(JSON.stringify(s.value)), t.value = !1;
|
|
31
|
+
};
|
|
32
|
+
return (C, n) => {
|
|
33
|
+
const c = p("el-button"), w = p("el-input"), _ = p("vxe-column"), j = p("vxe-table"), S = p("vxe-modal");
|
|
34
|
+
return k(), U(O, null, [
|
|
35
|
+
e(c, {
|
|
36
|
+
plain: "",
|
|
37
|
+
icon: "Setting",
|
|
38
|
+
onClick: y,
|
|
39
|
+
type: f.value.data.length ? "primary" : ""
|
|
40
|
+
}, {
|
|
41
|
+
default: l(() => [...n[1] || (n[1] = [
|
|
42
|
+
V(" 数据配置 ", -1)
|
|
43
|
+
])]),
|
|
44
|
+
_: 1
|
|
45
|
+
}, 8, ["type"]),
|
|
46
|
+
e(S, {
|
|
47
|
+
transfer: "",
|
|
48
|
+
modelValue: u(t),
|
|
49
|
+
"onUpdate:modelValue": n[0] || (n[0] = (o) => J(t) ? t.value = o : t = o),
|
|
50
|
+
width: "830px",
|
|
51
|
+
height: "700px",
|
|
52
|
+
"show-footer": "",
|
|
53
|
+
onClose: d
|
|
54
|
+
}, {
|
|
55
|
+
title: l(() => [...n[2] || (n[2] = [
|
|
56
|
+
m("span", null, "数据配置", -1)
|
|
57
|
+
])]),
|
|
58
|
+
default: l(() => [
|
|
59
|
+
m("div", H, [
|
|
60
|
+
e(c, {
|
|
61
|
+
type: "primary",
|
|
62
|
+
class: "w-16 mb-2",
|
|
63
|
+
onClick: v
|
|
64
|
+
}, {
|
|
65
|
+
default: l(() => [...n[3] || (n[3] = [
|
|
66
|
+
V("新增", -1)
|
|
67
|
+
])]),
|
|
68
|
+
_: 1
|
|
69
|
+
}),
|
|
70
|
+
m("div", B, [
|
|
71
|
+
e(j, {
|
|
72
|
+
ref: "mainTable",
|
|
73
|
+
data: s.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(w, {
|
|
91
|
+
modelValue: o.title,
|
|
92
|
+
"onUpdate:modelValue": (i) => o.title = i
|
|
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(w, {
|
|
105
|
+
modelValue: o.value,
|
|
106
|
+
"onUpdate:modelValue": (i) => o.value = i
|
|
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(w, {
|
|
119
|
+
modelValue: o.unit,
|
|
120
|
+
"onUpdate:modelValue": (i) => o.unit = i
|
|
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(w, {
|
|
133
|
+
modelValue: o.key,
|
|
134
|
+
"onUpdate:modelValue": (i) => o.key = i
|
|
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: i }) => [
|
|
146
|
+
e(c, {
|
|
147
|
+
link: "",
|
|
148
|
+
type: "primary",
|
|
149
|
+
size: "small",
|
|
150
|
+
onClick: (F) => r(i)
|
|
151
|
+
}, {
|
|
152
|
+
default: l(() => [...n[4] || (n[4] = [
|
|
153
|
+
V("删除", -1)
|
|
154
|
+
])]),
|
|
155
|
+
_: 1
|
|
156
|
+
}, 8, ["onClick"])
|
|
157
|
+
]),
|
|
158
|
+
_: 1
|
|
159
|
+
})
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
}, 8, ["data"])
|
|
163
|
+
])
|
|
164
|
+
])
|
|
165
|
+
]),
|
|
166
|
+
footer: l(() => [
|
|
167
|
+
e(c, {
|
|
168
|
+
icon: "Close",
|
|
169
|
+
size: "small",
|
|
170
|
+
onClick: d
|
|
171
|
+
}, {
|
|
172
|
+
default: l(() => [...n[5] || (n[5] = [
|
|
173
|
+
V("关闭", -1)
|
|
174
|
+
])]),
|
|
175
|
+
_: 1
|
|
176
|
+
}),
|
|
177
|
+
e(c, {
|
|
178
|
+
icon: "Check",
|
|
179
|
+
type: "primary",
|
|
180
|
+
size: "small",
|
|
181
|
+
onClick: N
|
|
182
|
+
}, {
|
|
183
|
+
default: l(() => [...n[6] || (n[6] = [
|
|
184
|
+
V("确认", -1)
|
|
185
|
+
])]),
|
|
186
|
+
_: 1
|
|
187
|
+
})
|
|
188
|
+
]),
|
|
189
|
+
_: 1
|
|
190
|
+
}, 8, ["modelValue"])
|
|
191
|
+
], 64);
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
}), D = /* @__PURE__ */ h(T, [["__scopeId", "data-v-14946e81"]]), R = /* @__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(b) {
|
|
207
|
+
let a = b;
|
|
208
|
+
const g = x(E);
|
|
209
|
+
return (f, t) => {
|
|
210
|
+
const s = p("el-color-picker"), r = p("common-label-container"), v = p("el-input"), y = p("el-input-number");
|
|
211
|
+
return k(), U(O, null, [
|
|
212
|
+
e(r, { label: "背景颜色" }, {
|
|
213
|
+
default: l(() => [
|
|
214
|
+
e(s, {
|
|
215
|
+
modelValue: u(a).widget.props.color,
|
|
216
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => u(a).widget.props.color = d),
|
|
217
|
+
"show-alpha": "",
|
|
218
|
+
predefine: g.value
|
|
219
|
+
}, null, 8, ["modelValue", "predefine"])
|
|
220
|
+
]),
|
|
221
|
+
_: 1
|
|
222
|
+
}),
|
|
223
|
+
e(r, { label: "字体颜色" }, {
|
|
224
|
+
default: l(() => [
|
|
225
|
+
e(s, {
|
|
226
|
+
modelValue: u(a).widget.props.fontColor,
|
|
227
|
+
"onUpdate:modelValue": t[1] || (t[1] = (d) => u(a).widget.props.fontColor = d),
|
|
228
|
+
"show-alpha": "",
|
|
229
|
+
predefine: g.value
|
|
230
|
+
}, null, 8, ["modelValue", "predefine"])
|
|
231
|
+
]),
|
|
232
|
+
_: 1
|
|
233
|
+
}),
|
|
234
|
+
e(r, { label: "统计标题" }, {
|
|
235
|
+
default: l(() => [
|
|
236
|
+
e(v, {
|
|
237
|
+
modelValue: u(a).widget.props.title,
|
|
238
|
+
"onUpdate:modelValue": t[2] || (t[2] = (d) => u(a).widget.props.title = d),
|
|
239
|
+
placeholder: "填写统计标题"
|
|
240
|
+
}, null, 8, ["modelValue"])
|
|
241
|
+
]),
|
|
242
|
+
_: 1
|
|
243
|
+
}),
|
|
244
|
+
e(r, { label: "单位" }, {
|
|
245
|
+
default: l(() => [
|
|
246
|
+
e(v, {
|
|
247
|
+
modelValue: u(a).widget.props.unit,
|
|
248
|
+
"onUpdate:modelValue": t[3] || (t[3] = (d) => u(a).widget.props.unit = d),
|
|
249
|
+
placeholder: "填写统计单位"
|
|
250
|
+
}, null, 8, ["modelValue"])
|
|
251
|
+
]),
|
|
252
|
+
_: 1
|
|
253
|
+
}),
|
|
254
|
+
e(r, { label: "子项拆分" }, {
|
|
255
|
+
default: l(() => [
|
|
256
|
+
e(y, {
|
|
257
|
+
class: "w-full",
|
|
258
|
+
placeholder: "子项拆分几个",
|
|
259
|
+
modelValue: u(a).widget.props.split,
|
|
260
|
+
"onUpdate:modelValue": t[4] || (t[4] = (d) => u(a).widget.props.split = d),
|
|
261
|
+
min: 1,
|
|
262
|
+
"controls-position": "right"
|
|
263
|
+
}, null, 8, ["modelValue"])
|
|
264
|
+
]),
|
|
265
|
+
_: 1
|
|
266
|
+
}),
|
|
267
|
+
e(r, { label: "子项数据" }, {
|
|
268
|
+
default: l(() => [
|
|
269
|
+
e(D, {
|
|
270
|
+
widget: u(a).widget
|
|
271
|
+
}, null, 8, ["widget"])
|
|
272
|
+
]),
|
|
273
|
+
_: 1
|
|
274
|
+
})
|
|
275
|
+
], 64);
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
export {
|
|
280
|
+
R as default
|
|
281
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { computed as j, ref as g, onMounted as $, resolveComponent as f, openBlock as v, createElementBlock as h, Fragment as x, createVNode as u, withCtx as o, createTextVNode as C, createElementVNode as a, renderList as B, unref as V, toDisplayString as N, nextTick as U, createBlock as D } from "vue";
|
|
2
|
+
import { af as E, ag as M } from "./index-BV8ZIDLP.js";
|
|
3
|
+
const R = { class: "flex-wrap flex" }, S = ["onClick"], T = { class: "inner cursor-pointer hover:shadow-md hover:shadow-blue-200 border w-full h-full p-1 flex flex-col overflow-hidden items-center rounded-md shadow-sm" }, z = { class: "lab border-t w-full text-center mt-1 font-bold" }, F = /* @__PURE__ */ Object.assign({ name: "chatChoose" }, {
|
|
4
|
+
__name: "chartChoose",
|
|
5
|
+
props: {
|
|
6
|
+
modelValue: [String, null],
|
|
7
|
+
default: null
|
|
8
|
+
},
|
|
9
|
+
emits: ["update:modelValue"],
|
|
10
|
+
setup(_, { emit: d }) {
|
|
11
|
+
const w = d, i = _, n = j({
|
|
12
|
+
get() {
|
|
13
|
+
return i.modelValue;
|
|
14
|
+
},
|
|
15
|
+
set(l) {
|
|
16
|
+
w("update:modelValue", l);
|
|
17
|
+
}
|
|
18
|
+
}), m = g([]), k = (l, e) => {
|
|
19
|
+
n.value = e, r.value = !1;
|
|
20
|
+
}, r = g(!1), y = (l, e, s) => {
|
|
21
|
+
l && !m[s] && U(() => {
|
|
22
|
+
const p = M(l);
|
|
23
|
+
p.setOption(e, null, {
|
|
24
|
+
renderer: "svg",
|
|
25
|
+
useDirtyRect: !0
|
|
26
|
+
}), m[s] = p;
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
return $(() => {
|
|
30
|
+
}), (l, e) => {
|
|
31
|
+
const s = f("el-button"), p = f("el-input"), O = f("vxe-modal");
|
|
32
|
+
return v(), h(x, null, [
|
|
33
|
+
u(p, {
|
|
34
|
+
modelValue: n.value,
|
|
35
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => n.value = t),
|
|
36
|
+
placeholder: "请选择图表",
|
|
37
|
+
readonly: ""
|
|
38
|
+
}, {
|
|
39
|
+
append: o(() => [
|
|
40
|
+
u(s, {
|
|
41
|
+
onClick: e[0] || (e[0] = (t) => r.value = !0)
|
|
42
|
+
}, {
|
|
43
|
+
default: o(() => [...e[4] || (e[4] = [
|
|
44
|
+
C("选择", -1)
|
|
45
|
+
])]),
|
|
46
|
+
_: 1
|
|
47
|
+
})
|
|
48
|
+
]),
|
|
49
|
+
_: 1
|
|
50
|
+
}, 8, ["modelValue"]),
|
|
51
|
+
u(O, {
|
|
52
|
+
transfer: "",
|
|
53
|
+
modelValue: r.value,
|
|
54
|
+
"onUpdate:modelValue": e[3] || (e[3] = (t) => r.value = t),
|
|
55
|
+
width: "80%",
|
|
56
|
+
height: "80%",
|
|
57
|
+
"show-footer": ""
|
|
58
|
+
}, {
|
|
59
|
+
title: o(() => [...e[5] || (e[5] = [
|
|
60
|
+
a("span", null, "图表选择", -1)
|
|
61
|
+
])]),
|
|
62
|
+
default: o(() => [
|
|
63
|
+
a("div", R, [
|
|
64
|
+
(v(!0), h(x, null, B(V(E), (t, c) => (v(), h("div", {
|
|
65
|
+
key: c,
|
|
66
|
+
class: "w-1/4 h-80 p-1",
|
|
67
|
+
onClick: (b) => k(t, c)
|
|
68
|
+
}, [
|
|
69
|
+
a("div", T, [
|
|
70
|
+
a("div", {
|
|
71
|
+
class: "chart flex-1 w-full p-1",
|
|
72
|
+
ref_for: !0,
|
|
73
|
+
ref: (b) => y(b, t, c)
|
|
74
|
+
}, null, 512),
|
|
75
|
+
a("div", z, N(c), 1)
|
|
76
|
+
])
|
|
77
|
+
], 8, S))), 128))
|
|
78
|
+
])
|
|
79
|
+
]),
|
|
80
|
+
footer: o(() => [
|
|
81
|
+
u(s, {
|
|
82
|
+
icon: "Close",
|
|
83
|
+
size: "small",
|
|
84
|
+
onClick: e[2] || (e[2] = (t) => r.value = !1)
|
|
85
|
+
}, {
|
|
86
|
+
default: o(() => [...e[6] || (e[6] = [
|
|
87
|
+
C("关闭", -1)
|
|
88
|
+
])]),
|
|
89
|
+
_: 1
|
|
90
|
+
})
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
}, 8, ["modelValue"])
|
|
94
|
+
], 64);
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
}), A = /* @__PURE__ */ Object.assign({ name: "config-echarts" }, {
|
|
98
|
+
__name: "index",
|
|
99
|
+
props: {
|
|
100
|
+
designer: {
|
|
101
|
+
type: Object,
|
|
102
|
+
default: {}
|
|
103
|
+
},
|
|
104
|
+
widget: {
|
|
105
|
+
type: Object,
|
|
106
|
+
default: {}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
setup(_) {
|
|
110
|
+
let d = _;
|
|
111
|
+
return (w, i) => {
|
|
112
|
+
const n = f("common-label-container");
|
|
113
|
+
return v(), D(n, { label: "图表类型" }, {
|
|
114
|
+
default: o(() => [
|
|
115
|
+
u(F, {
|
|
116
|
+
modelValue: V(d).widget.props.type,
|
|
117
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => V(d).widget.props.type = m)
|
|
118
|
+
}, null, 8, ["modelValue"])
|
|
119
|
+
]),
|
|
120
|
+
_: 1
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
export {
|
|
126
|
+
A as default
|
|
127
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { resolveComponent as r, openBlock as n, createElementBlock as V, Fragment as b, createVNode as l, withCtx as p, createBlock as i, createCommentVNode as m } from "vue";
|
|
2
|
+
const c = /* @__PURE__ */ Object.assign({ name: "config-layout" }, {
|
|
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
|
+
const e = s;
|
|
16
|
+
return (y, t) => {
|
|
17
|
+
const a = r("el-option"), g = r("el-select"), d = r("common-label-container"), u = r("el-input");
|
|
18
|
+
return n(), V(b, null, [
|
|
19
|
+
l(d, { label: "布局模式" }, {
|
|
20
|
+
default: p(() => [
|
|
21
|
+
l(g, {
|
|
22
|
+
modelValue: e.widget.props.layoutType,
|
|
23
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.widget.props.layoutType = o)
|
|
24
|
+
}, {
|
|
25
|
+
default: p(() => [
|
|
26
|
+
l(a, {
|
|
27
|
+
label: "左右结构 (左固右自)",
|
|
28
|
+
value: "LR"
|
|
29
|
+
}),
|
|
30
|
+
l(a, {
|
|
31
|
+
label: "右左结构 (右固左自)",
|
|
32
|
+
value: "RL"
|
|
33
|
+
}),
|
|
34
|
+
l(a, {
|
|
35
|
+
label: "上下结构 (上固下自)",
|
|
36
|
+
value: "TB"
|
|
37
|
+
}),
|
|
38
|
+
l(a, {
|
|
39
|
+
label: "下上结构 (下固上自)",
|
|
40
|
+
value: "BT"
|
|
41
|
+
}),
|
|
42
|
+
l(a, {
|
|
43
|
+
label: "左中右结构 (两边固中间自)",
|
|
44
|
+
value: "LCR"
|
|
45
|
+
}),
|
|
46
|
+
l(a, {
|
|
47
|
+
label: "上中下结构 (两边固中间自)",
|
|
48
|
+
value: "TCB"
|
|
49
|
+
})
|
|
50
|
+
]),
|
|
51
|
+
_: 1
|
|
52
|
+
}, 8, ["modelValue"])
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
}),
|
|
56
|
+
["LR", "LCR"].includes(e.widget.props.layoutType) ? (n(), i(d, {
|
|
57
|
+
key: 0,
|
|
58
|
+
label: "左侧宽度"
|
|
59
|
+
}, {
|
|
60
|
+
default: p(() => [
|
|
61
|
+
l(u, {
|
|
62
|
+
modelValue: e.widget.props.leftWidth,
|
|
63
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => e.widget.props.leftWidth = o),
|
|
64
|
+
placeholder: "例如: 200px"
|
|
65
|
+
}, null, 8, ["modelValue"])
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
})) : m("", !0),
|
|
69
|
+
["RL", "LCR"].includes(e.widget.props.layoutType) ? (n(), i(d, {
|
|
70
|
+
key: 1,
|
|
71
|
+
label: "右侧宽度"
|
|
72
|
+
}, {
|
|
73
|
+
default: p(() => [
|
|
74
|
+
l(u, {
|
|
75
|
+
modelValue: e.widget.props.rightWidth,
|
|
76
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => e.widget.props.rightWidth = o),
|
|
77
|
+
placeholder: "例如: 200px"
|
|
78
|
+
}, null, 8, ["modelValue"])
|
|
79
|
+
]),
|
|
80
|
+
_: 1
|
|
81
|
+
})) : m("", !0),
|
|
82
|
+
["TB", "TCB"].includes(e.widget.props.layoutType) ? (n(), i(d, {
|
|
83
|
+
key: 2,
|
|
84
|
+
label: "顶部高度"
|
|
85
|
+
}, {
|
|
86
|
+
default: p(() => [
|
|
87
|
+
l(u, {
|
|
88
|
+
modelValue: e.widget.props.topHeight,
|
|
89
|
+
"onUpdate:modelValue": t[3] || (t[3] = (o) => e.widget.props.topHeight = o),
|
|
90
|
+
placeholder: "例如: 60px"
|
|
91
|
+
}, null, 8, ["modelValue"])
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
})) : m("", !0),
|
|
95
|
+
["BT", "TCB"].includes(e.widget.props.layoutType) ? (n(), i(d, {
|
|
96
|
+
key: 3,
|
|
97
|
+
label: "底部高度"
|
|
98
|
+
}, {
|
|
99
|
+
default: p(() => [
|
|
100
|
+
l(u, {
|
|
101
|
+
modelValue: e.widget.props.bottomHeight,
|
|
102
|
+
"onUpdate:modelValue": t[4] || (t[4] = (o) => e.widget.props.bottomHeight = o),
|
|
103
|
+
placeholder: "例如: 60px"
|
|
104
|
+
}, null, 8, ["modelValue"])
|
|
105
|
+
]),
|
|
106
|
+
_: 1
|
|
107
|
+
})) : m("", !0),
|
|
108
|
+
l(d, { label: "间距" }, {
|
|
109
|
+
default: p(() => [
|
|
110
|
+
l(u, {
|
|
111
|
+
modelValue: e.widget.props.gap,
|
|
112
|
+
"onUpdate:modelValue": t[5] || (t[5] = (o) => e.widget.props.gap = o),
|
|
113
|
+
placeholder: "例如: 10px"
|
|
114
|
+
}, null, 8, ["modelValue"])
|
|
115
|
+
]),
|
|
116
|
+
_: 1
|
|
117
|
+
})
|
|
118
|
+
], 64);
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
export {
|
|
123
|
+
c as default
|
|
124
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { computed as r, resolveComponent as a, openBlock as i, createElementBlock as _, createVNode as o, withCtx as p, unref as l } from "vue";
|
|
2
|
+
const f = { class: "w-full" }, g = /* @__PURE__ */ Object.assign({ name: "config-slot" }, {
|
|
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 u = s, e = r(() => u.widget.props);
|
|
16
|
+
return (b, t) => {
|
|
17
|
+
const d = a("el-input"), m = a("common-label-container"), c = a("common-type-input");
|
|
18
|
+
return i(), _("div", f, [
|
|
19
|
+
o(m, { label: "插槽名称" }, {
|
|
20
|
+
default: p(() => [
|
|
21
|
+
o(d, {
|
|
22
|
+
modelValue: l(e).slotName,
|
|
23
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => l(e).slotName = n),
|
|
24
|
+
placeholder: "请输入插槽名称"
|
|
25
|
+
}, null, 8, ["modelValue"])
|
|
26
|
+
]),
|
|
27
|
+
_: 1
|
|
28
|
+
}),
|
|
29
|
+
o(m, { label: "默认参数" }, {
|
|
30
|
+
default: p(() => [
|
|
31
|
+
o(c, {
|
|
32
|
+
modelValue: l(e).slotData,
|
|
33
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => l(e).slotData = n)
|
|
34
|
+
}, null, 8, ["modelValue"])
|
|
35
|
+
]),
|
|
36
|
+
_: 1
|
|
37
|
+
})
|
|
38
|
+
]);
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export {
|
|
43
|
+
g as default
|
|
44
|
+
};
|