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.
@@ -0,0 +1,246 @@
1
+ import { computed as N, ref as y, resolveComponent as i, openBlock as C, createElementBlock as k, Fragment as O, createVNode as e, withCtx as l, createTextVNode as m, unref as d, isRef as j, createElementVNode as _, pushScopeId as I, popScopeId as J } from "vue";
2
+ import { _ as E } from "./index-DAk2H32-.js";
3
+ const H = (p) => (I("data-v-4c8b2df2"), p = p(), J(), p), B = /* @__PURE__ */ H(() => /* @__PURE__ */ _("span", null, "数据配置", -1)), T = { class: "h-full flex flex-col" }, D = { class: "flex-1 overflow-hidden" }, F = {
4
+ __name: "dataConfig",
5
+ props: {
6
+ modelValue: [Object, null],
7
+ widget: {
8
+ type: Object
9
+ }
10
+ },
11
+ emits: ["update:modelValue"],
12
+ setup(p, { emit: a }) {
13
+ let b = p;
14
+ const t = N(() => b.widget.props);
15
+ let u = y(!1);
16
+ const o = y([]), f = (w) => {
17
+ o.value.splice(w, 1);
18
+ }, v = () => {
19
+ o.value.push({
20
+ title: null,
21
+ value: null,
22
+ key: null,
23
+ unit: null
24
+ });
25
+ }, g = () => {
26
+ t.value.data && (o.value = JSON.parse(JSON.stringify(t.value.data))), u.value = !0;
27
+ }, n = () => {
28
+ u.value = !1;
29
+ }, U = () => {
30
+ t.value.data = JSON.parse(JSON.stringify(o.value)), u.value = !1;
31
+ };
32
+ return (w, x) => {
33
+ const r = i("el-button"), h = i("el-input"), V = i("vxe-column"), S = i("vxe-table"), z = i("vxe-modal");
34
+ return C(), k(O, null, [
35
+ e(r, {
36
+ plain: "",
37
+ icon: "Setting",
38
+ onClick: g,
39
+ type: t.value.data.length ? "primary" : ""
40
+ }, {
41
+ default: l(() => [
42
+ m(" 数据配置 ")
43
+ ]),
44
+ _: 1
45
+ }, 8, ["type"]),
46
+ e(z, {
47
+ transfer: "",
48
+ modelValue: d(u),
49
+ "onUpdate:modelValue": x[0] || (x[0] = (s) => j(u) ? u.value = s : u = s),
50
+ width: "830px",
51
+ height: "700px",
52
+ "show-footer": "",
53
+ onClose: n
54
+ }, {
55
+ title: l(() => [
56
+ B
57
+ ]),
58
+ default: l(() => [
59
+ _("div", T, [
60
+ e(r, {
61
+ type: "primary",
62
+ class: "w-16 mb-2",
63
+ onClick: v
64
+ }, {
65
+ default: l(() => [
66
+ m("新增")
67
+ ]),
68
+ _: 1
69
+ }),
70
+ _("div", D, [
71
+ e(S, {
72
+ ref: "mainTable",
73
+ data: o.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(V, {
85
+ field: "title",
86
+ title: "标题"
87
+ }, {
88
+ default: l(({ row: s }) => [
89
+ _("div", null, [
90
+ e(h, {
91
+ modelValue: s.title,
92
+ "onUpdate:modelValue": (c) => s.title = c
93
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
94
+ ])
95
+ ]),
96
+ _: 1
97
+ }),
98
+ e(V, {
99
+ field: "value",
100
+ title: "描述"
101
+ }, {
102
+ default: l(({ row: s }) => [
103
+ _("div", null, [
104
+ e(h, {
105
+ modelValue: s.description,
106
+ "onUpdate:modelValue": (c) => s.description = c
107
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
108
+ ])
109
+ ]),
110
+ _: 1
111
+ }),
112
+ e(V, {
113
+ title: "操作栏",
114
+ width: "60",
115
+ align: "center"
116
+ }, {
117
+ default: l(({ row: s, rowIndex: c }) => [
118
+ e(r, {
119
+ link: "",
120
+ type: "primary",
121
+ size: "small",
122
+ onClick: (R) => f(c)
123
+ }, {
124
+ default: l(() => [
125
+ m("删除")
126
+ ]),
127
+ _: 2
128
+ }, 1032, ["onClick"])
129
+ ]),
130
+ _: 1
131
+ })
132
+ ]),
133
+ _: 1
134
+ }, 8, ["data"])
135
+ ])
136
+ ])
137
+ ]),
138
+ footer: l(() => [
139
+ e(r, {
140
+ icon: "Close",
141
+ size: "small",
142
+ onClick: n
143
+ }, {
144
+ default: l(() => [
145
+ m("关闭")
146
+ ]),
147
+ _: 1
148
+ }),
149
+ e(r, {
150
+ icon: "Check",
151
+ type: "primary",
152
+ size: "small",
153
+ onClick: U
154
+ }, {
155
+ default: l(() => [
156
+ m("确认")
157
+ ]),
158
+ _: 1
159
+ })
160
+ ]),
161
+ _: 1
162
+ }, 8, ["modelValue"])
163
+ ], 64);
164
+ };
165
+ }
166
+ }, M = /* @__PURE__ */ E(F, [["__scopeId", "data-v-4c8b2df2"]]), A = /* @__PURE__ */ Object.assign({ name: "config-steps" }, {
167
+ __name: "index",
168
+ props: {
169
+ designer: {
170
+ type: Object,
171
+ default: {}
172
+ },
173
+ widget: {
174
+ type: Object,
175
+ default: {}
176
+ }
177
+ },
178
+ setup(p) {
179
+ let a = p;
180
+ return (b, t) => {
181
+ const u = i("el-input"), o = i("common-label-container"), f = i("el-radio-button"), v = i("el-radio-group"), g = i("el-switch");
182
+ return C(), k(O, null, [
183
+ e(o, { label: "间距" }, {
184
+ default: l(() => [
185
+ e(u, {
186
+ modelValue: d(a).widget.props.space,
187
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => d(a).widget.props.space = n),
188
+ placeholder: "填写间距"
189
+ }, null, 8, ["modelValue"])
190
+ ]),
191
+ _: 1
192
+ }),
193
+ e(o, { label: "显示方向" }, {
194
+ default: l(() => [
195
+ e(v, {
196
+ modelValue: d(a).widget.props.direction,
197
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => d(a).widget.props.direction = n)
198
+ }, {
199
+ default: l(() => [
200
+ e(f, {
201
+ value: "horizontal",
202
+ label: "horizontal"
203
+ }),
204
+ e(f, {
205
+ value: "vertical",
206
+ label: "vertical"
207
+ })
208
+ ]),
209
+ _: 1
210
+ }, 8, ["modelValue"])
211
+ ]),
212
+ _: 1
213
+ }),
214
+ e(o, { label: "是否居中对齐" }, {
215
+ default: l(() => [
216
+ e(g, {
217
+ modelValue: d(a).widget.props.alignCenter,
218
+ "onUpdate:modelValue": t[2] || (t[2] = (n) => d(a).widget.props.alignCenter = n)
219
+ }, null, 8, ["modelValue"])
220
+ ]),
221
+ _: 1
222
+ }),
223
+ e(o, { label: "是否简洁风格" }, {
224
+ default: l(() => [
225
+ e(g, {
226
+ modelValue: d(a).widget.props.simple,
227
+ "onUpdate:modelValue": t[3] || (t[3] = (n) => d(a).widget.props.simple = n)
228
+ }, null, 8, ["modelValue"])
229
+ ]),
230
+ _: 1
231
+ }),
232
+ e(o, { label: "步骤数据" }, {
233
+ default: l(() => [
234
+ e(M, {
235
+ widget: d(a).widget
236
+ }, null, 8, ["widget"])
237
+ ]),
238
+ _: 1
239
+ })
240
+ ], 64);
241
+ };
242
+ }
243
+ });
244
+ export {
245
+ A as default
246
+ };
@@ -0,0 +1,20 @@
1
+ import "vue";
2
+ const p = /* @__PURE__ */ Object.assign({ name: "config-homepage" }, {
3
+ __name: "index",
4
+ props: {
5
+ designer: {
6
+ type: Object,
7
+ default: {}
8
+ },
9
+ widget: {
10
+ type: Object,
11
+ default: {}
12
+ }
13
+ },
14
+ setup(e) {
15
+ return (t, n) => null;
16
+ }
17
+ });
18
+ export {
19
+ p as default
20
+ };
@@ -0,0 +1,20 @@
1
+ import "vue";
2
+ const r = /* @__PURE__ */ Object.assign({ name: "config-codeEditor" }, {
3
+ __name: "index",
4
+ props: {
5
+ designer: {
6
+ type: Object,
7
+ default: {}
8
+ },
9
+ widget: {
10
+ type: Object,
11
+ default: {}
12
+ }
13
+ },
14
+ setup(e) {
15
+ return (t, n) => null;
16
+ }
17
+ });
18
+ export {
19
+ r as default
20
+ };