sun-form-v3 1.0.88 → 1.0.91

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,43 @@
1
+ import { resolveComponent as d, openBlock as u, createElementBlock as i, Fragment as s, createVNode as t, withCtx as p, unref as l } from "vue";
2
+ const f = /* @__PURE__ */ Object.assign({ name: "config-editor" }, {
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 e = m;
16
+ return (c, o) => {
17
+ const r = d("el-switch"), a = d("common-label-container");
18
+ return u(), i(s, null, [
19
+ t(a, { label: "是否必填" }, {
20
+ default: p(() => [
21
+ t(r, {
22
+ modelValue: l(e).widget.props.required,
23
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => l(e).widget.props.required = n)
24
+ }, null, 8, ["modelValue"])
25
+ ]),
26
+ _: 1
27
+ }),
28
+ t(a, { label: "是否只读" }, {
29
+ default: p(() => [
30
+ t(r, {
31
+ modelValue: l(e).widget.props.readonly,
32
+ "onUpdate:modelValue": o[1] || (o[1] = (n) => l(e).widget.props.readonly = n)
33
+ }, null, 8, ["modelValue"])
34
+ ]),
35
+ _: 1
36
+ })
37
+ ], 64);
38
+ };
39
+ }
40
+ });
41
+ export {
42
+ f as default
43
+ };
@@ -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-B62u8sUu.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
+ };
@@ -0,0 +1,127 @@
1
+ import { computed as j, ref as g, onMounted as $, resolveComponent as f, openBlock as _, createElementBlock as v, Fragment as x, createVNode as r, withCtx as o, createTextVNode as C, createElementVNode as u, renderList as B, unref as V, toDisplayString as N, nextTick as U, createBlock as D } from "vue";
2
+ import { e as E, i as M } from "./index-B62u8sUu.js";
3
+ const R = /* @__PURE__ */ u("span", null, "图表选择", -1), S = { class: "flex-wrap flex" }, T = ["onClick"], z = { 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" }, F = { class: "lab border-t w-full text-center mt-1 font-bold" }, L = /* @__PURE__ */ Object.assign({ name: "chatChoose" }, {
4
+ __name: "chartChoose",
5
+ props: {
6
+ modelValue: [String, null],
7
+ default: null
8
+ },
9
+ emits: ["update:modelValue"],
10
+ setup(h, { emit: d }) {
11
+ const w = d, c = h, n = j({
12
+ get() {
13
+ return c.modelValue;
14
+ },
15
+ set(l) {
16
+ w("update:modelValue", l);
17
+ }
18
+ }), i = g([]), k = (l, e) => {
19
+ n.value = e, a.value = !1;
20
+ }, a = g(!1), y = (l, e, s) => {
21
+ l && !i[s] && U(() => {
22
+ const m = M(l);
23
+ m.setOption(e, null, {
24
+ renderer: "svg",
25
+ useDirtyRect: !0
26
+ }), i[s] = m;
27
+ });
28
+ };
29
+ return $(() => {
30
+ }), (l, e) => {
31
+ const s = f("el-button"), m = f("el-input"), O = f("vxe-modal");
32
+ return _(), v(x, null, [
33
+ r(m, {
34
+ modelValue: n.value,
35
+ "onUpdate:modelValue": e[1] || (e[1] = (t) => n.value = t),
36
+ placeholder: "请选择图表",
37
+ readonly: ""
38
+ }, {
39
+ append: o(() => [
40
+ r(s, {
41
+ onClick: e[0] || (e[0] = (t) => a.value = !0)
42
+ }, {
43
+ default: o(() => [
44
+ C("选择")
45
+ ]),
46
+ _: 1
47
+ })
48
+ ]),
49
+ _: 1
50
+ }, 8, ["modelValue"]),
51
+ r(O, {
52
+ transfer: "",
53
+ modelValue: a.value,
54
+ "onUpdate:modelValue": e[3] || (e[3] = (t) => a.value = t),
55
+ width: "80%",
56
+ height: "80%",
57
+ "show-footer": ""
58
+ }, {
59
+ title: o(() => [
60
+ R
61
+ ]),
62
+ default: o(() => [
63
+ u("div", S, [
64
+ (_(!0), v(x, null, B(V(E), (t, p) => (_(), v("div", {
65
+ key: p,
66
+ class: "w-1/4 h-80 p-1",
67
+ onClick: (b) => k(t, p)
68
+ }, [
69
+ u("div", z, [
70
+ u("div", {
71
+ class: "chart flex-1 w-full p-1",
72
+ ref_for: !0,
73
+ ref: (b) => y(b, t, p)
74
+ }, null, 512),
75
+ u("div", F, N(p), 1)
76
+ ])
77
+ ], 8, T))), 128))
78
+ ])
79
+ ]),
80
+ footer: o(() => [
81
+ r(s, {
82
+ icon: "Close",
83
+ size: "small",
84
+ onClick: e[2] || (e[2] = (t) => a.value = !1)
85
+ }, {
86
+ default: o(() => [
87
+ C("关闭")
88
+ ]),
89
+ _: 1
90
+ })
91
+ ]),
92
+ _: 1
93
+ }, 8, ["modelValue"])
94
+ ], 64);
95
+ };
96
+ }
97
+ }), G = /* @__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(h) {
110
+ let d = h;
111
+ return (w, c) => {
112
+ const n = f("common-label-container");
113
+ return _(), D(n, { label: "图表类型" }, {
114
+ default: o(() => [
115
+ r(L, {
116
+ modelValue: V(d).widget.props.type,
117
+ "onUpdate:modelValue": c[0] || (c[0] = (i) => V(d).widget.props.type = i)
118
+ }, null, 8, ["modelValue"])
119
+ ]),
120
+ _: 1
121
+ });
122
+ };
123
+ }
124
+ });
125
+ export {
126
+ G as default
127
+ };
@@ -0,0 +1,132 @@
1
+ import { resolveComponent as u, openBlock as g, createElementBlock as V, Fragment as w, createVNode as e, withCtx as d, unref as t } from "vue";
2
+ const c = /* @__PURE__ */ Object.assign({ name: "config-alert" }, {
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 (f, o) => {
17
+ const p = u("el-option"), i = u("el-select"), n = u("common-label-container"), r = u("el-input"), s = u("el-switch");
18
+ return g(), V(w, null, [
19
+ e(n, { label: "警告类型" }, {
20
+ default: d(() => [
21
+ e(i, {
22
+ modelValue: t(l).widget.props.type,
23
+ "onUpdate:modelValue": o[0] || (o[0] = (a) => t(l).widget.props.type = a)
24
+ }, {
25
+ default: d(() => [
26
+ e(p, {
27
+ label: "info",
28
+ value: "info"
29
+ }),
30
+ e(p, {
31
+ label: "success",
32
+ value: "success"
33
+ }),
34
+ e(p, {
35
+ label: "warning",
36
+ value: "warning"
37
+ }),
38
+ e(p, {
39
+ label: "error",
40
+ value: "error"
41
+ })
42
+ ]),
43
+ _: 1
44
+ }, 8, ["modelValue"])
45
+ ]),
46
+ _: 1
47
+ }),
48
+ e(n, { label: "主题类型" }, {
49
+ default: d(() => [
50
+ e(i, {
51
+ modelValue: t(l).widget.props.effect,
52
+ "onUpdate:modelValue": o[1] || (o[1] = (a) => t(l).widget.props.effect = a)
53
+ }, {
54
+ default: d(() => [
55
+ e(p, {
56
+ label: "light",
57
+ value: "light"
58
+ }),
59
+ e(p, {
60
+ label: "dark",
61
+ value: "dark"
62
+ })
63
+ ]),
64
+ _: 1
65
+ }, 8, ["modelValue"])
66
+ ]),
67
+ _: 1
68
+ }),
69
+ e(n, { label: "标题文字" }, {
70
+ default: d(() => [
71
+ e(r, {
72
+ modelValue: t(l).widget.props.title,
73
+ "onUpdate:modelValue": o[2] || (o[2] = (a) => t(l).widget.props.title = a),
74
+ placeholder: "填写标题文字"
75
+ }, null, 8, ["modelValue"])
76
+ ]),
77
+ _: 1
78
+ }),
79
+ e(n, { label: "描述文字" }, {
80
+ default: d(() => [
81
+ e(r, {
82
+ modelValue: t(l).widget.props.description,
83
+ "onUpdate:modelValue": o[3] || (o[3] = (a) => t(l).widget.props.description = a),
84
+ placeholder: "填写描述文字"
85
+ }, null, 8, ["modelValue"])
86
+ ]),
87
+ _: 1
88
+ }),
89
+ e(n, { label: "是否有图标" }, {
90
+ default: d(() => [
91
+ e(s, {
92
+ modelValue: t(l).widget.props.showIcon,
93
+ "onUpdate:modelValue": o[4] || (o[4] = (a) => t(l).widget.props.showIcon = a)
94
+ }, null, 8, ["modelValue"])
95
+ ]),
96
+ _: 1
97
+ }),
98
+ e(n, { label: "是否有居中" }, {
99
+ default: d(() => [
100
+ e(s, {
101
+ modelValue: t(l).widget.props.center,
102
+ "onUpdate:modelValue": o[5] || (o[5] = (a) => t(l).widget.props.center = a)
103
+ }, null, 8, ["modelValue"])
104
+ ]),
105
+ _: 1
106
+ }),
107
+ e(n, { label: "是否可关闭" }, {
108
+ default: d(() => [
109
+ e(s, {
110
+ modelValue: t(l).widget.props.closable,
111
+ "onUpdate:modelValue": o[6] || (o[6] = (a) => t(l).widget.props.closable = a)
112
+ }, null, 8, ["modelValue"])
113
+ ]),
114
+ _: 1
115
+ }),
116
+ e(n, { label: "关闭文字" }, {
117
+ default: d(() => [
118
+ e(r, {
119
+ modelValue: t(l).widget.props.closeText,
120
+ "onUpdate:modelValue": o[7] || (o[7] = (a) => t(l).widget.props.closeText = a),
121
+ placeholder: "填写关闭文字"
122
+ }, null, 8, ["modelValue"])
123
+ ]),
124
+ _: 1
125
+ })
126
+ ], 64);
127
+ };
128
+ }
129
+ });
130
+ export {
131
+ c as default
132
+ };
@@ -0,0 +1,97 @@
1
+ import { resolveComponent as i, openBlock as c, createElementBlock as g, Fragment as w, createVNode as e, withCtx as a, unref as t } from "vue";
2
+ const V = /* @__PURE__ */ Object.assign({ name: "config-image" }, {
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 (_, o) => {
17
+ const d = i("el-option"), r = i("el-select"), p = i("common-label-container"), u = i("el-input"), s = i("el-switch");
18
+ return c(), g(w, null, [
19
+ e(p, { label: "适应容器" }, {
20
+ default: a(() => [
21
+ e(r, {
22
+ modelValue: t(l).widget.props.fit,
23
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => t(l).widget.props.fit = n)
24
+ }, {
25
+ default: a(() => [
26
+ e(d, {
27
+ label: "fill",
28
+ value: "fill"
29
+ }),
30
+ e(d, {
31
+ label: "contain",
32
+ value: "contain"
33
+ }),
34
+ e(d, {
35
+ label: "cover",
36
+ value: "cover"
37
+ }),
38
+ e(d, {
39
+ label: "none",
40
+ value: "none"
41
+ }),
42
+ e(d, {
43
+ label: "scale-down",
44
+ value: "scale-down"
45
+ })
46
+ ]),
47
+ _: 1
48
+ }, 8, ["modelValue"])
49
+ ]),
50
+ _: 1
51
+ }),
52
+ e(p, { label: "文字描述" }, {
53
+ default: a(() => [
54
+ e(u, {
55
+ modelValue: t(l).widget.props.alt,
56
+ "onUpdate:modelValue": o[1] || (o[1] = (n) => t(l).widget.props.alt = n),
57
+ placeholder: "填写文字描述"
58
+ }, null, 8, ["modelValue"])
59
+ ]),
60
+ _: 1
61
+ }),
62
+ e(p, { label: "图片宽度" }, {
63
+ default: a(() => [
64
+ e(u, {
65
+ modelValue: t(l).widget.props.imgWidth,
66
+ "onUpdate:modelValue": o[2] || (o[2] = (n) => t(l).widget.props.imgWidth = n),
67
+ placeholder: "填写图片宽度"
68
+ }, null, 8, ["modelValue"])
69
+ ]),
70
+ _: 1
71
+ }),
72
+ e(p, { label: "图片高度" }, {
73
+ default: a(() => [
74
+ e(u, {
75
+ modelValue: t(l).widget.props.imgHeight,
76
+ "onUpdate:modelValue": o[3] || (o[3] = (n) => t(l).widget.props.imgHeight = n),
77
+ placeholder: "填写图片高度"
78
+ }, null, 8, ["modelValue"])
79
+ ]),
80
+ _: 1
81
+ }),
82
+ e(p, { label: "是否可预览" }, {
83
+ default: a(() => [
84
+ e(s, {
85
+ modelValue: t(l).widget.props.canPreview,
86
+ "onUpdate:modelValue": o[4] || (o[4] = (n) => t(l).widget.props.canPreview = n)
87
+ }, null, 8, ["modelValue"])
88
+ ]),
89
+ _: 1
90
+ })
91
+ ], 64);
92
+ };
93
+ }
94
+ });
95
+ export {
96
+ V as default
97
+ };