sun-form-v3 1.0.160 → 1.0.161

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sun-form-v3",
3
3
  "private": false,
4
- "version": "1.0.160",
4
+ "version": "1.0.161",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -20,16 +20,19 @@
20
20
  "@logicflow/extension": "^1.2.0",
21
21
  "@rollup/plugin-commonjs": "^26.0.1",
22
22
  "@tinymce/tinymce-vue": "^5",
23
+ "@vue/compiler-sfc": "^3.5.20",
24
+ "@vue/shared": "^3.5.20",
23
25
  "autoprefixer": "^10.4.19",
24
26
  "axios": "^1.7.0",
27
+ "echarts-gl": "^2.0.9",
25
28
  "js-md5": "^0.8.3",
26
29
  "postcss": "^8.4.38",
27
30
  "qrcode": "^1.5.4",
28
31
  "qs": "^6.12.1",
29
- "sass": "^1.77.2",
30
32
  "sortablejs": "^1.15.2",
31
33
  "tailwindcss": "^3.4.3",
32
34
  "vue": "^3.4.21",
35
+ "vue3-sfc-loader": "^0.9.5",
33
36
  "vuedraggable": "^4.1.0",
34
37
  "xe-utils": "^3.5.26"
35
38
  },
@@ -40,6 +43,7 @@
40
43
  "@vitejs/plugin-vue": "^5.0.4",
41
44
  "echarts": "^5.5.1",
42
45
  "element-plus": "^2.7.3",
46
+ "sass": "^1.91.0",
43
47
  "terser": "^5.31.0",
44
48
  "vite": "^5.2.8",
45
49
  "vite-plugin-static-copy": "^1.0.6",
@@ -1,246 +0,0 @@
1
- import { computed as S, ref as C, resolveComponent as u, openBlock as k, createElementBlock as O, Fragment as U, createVNode as e, withCtx as l, createTextVNode as f, unref as i, isRef as J, createElementVNode as c } from "vue";
2
- import { _ as E } from "./index-QH0Aiubd.js";
3
- const H = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidden" }, T = {
4
- __name: "dataConfig",
5
- props: {
6
- modelValue: [Object, null],
7
- widget: {
8
- type: Object
9
- }
10
- },
11
- emits: ["update:modelValue"],
12
- setup(v, { emit: a }) {
13
- let w = v;
14
- const o = S(() => w.widget.props);
15
- let s = C(!1);
16
- const n = C([]), _ = (x) => {
17
- n.value.splice(x, 1);
18
- }, V = () => {
19
- n.value.push({
20
- title: null,
21
- value: null,
22
- key: null,
23
- unit: null
24
- });
25
- }, g = () => {
26
- o.value.data && (n.value = JSON.parse(JSON.stringify(o.value.data))), s.value = !0;
27
- }, d = () => {
28
- s.value = !1;
29
- }, z = () => {
30
- o.value.data = JSON.parse(JSON.stringify(n.value)), s.value = !1;
31
- };
32
- return (x, t) => {
33
- const r = u("el-button"), y = u("el-input"), b = u("vxe-column"), N = u("vxe-table"), j = u("vxe-modal");
34
- return k(), O(U, null, [
35
- e(r, {
36
- plain: "",
37
- icon: "Setting",
38
- onClick: g,
39
- type: o.value.data.length ? "primary" : ""
40
- }, {
41
- default: l(() => t[1] || (t[1] = [
42
- f(" 数据配置 ")
43
- ])),
44
- _: 1
45
- }, 8, ["type"]),
46
- e(j, {
47
- transfer: "",
48
- modelValue: i(s),
49
- "onUpdate:modelValue": t[0] || (t[0] = (p) => J(s) ? s.value = p : s = p),
50
- width: "830px",
51
- height: "700px",
52
- "show-footer": "",
53
- onClose: d
54
- }, {
55
- title: l(() => t[2] || (t[2] = [
56
- c("span", null, "数据配置", -1)
57
- ])),
58
- default: l(() => [
59
- c("div", H, [
60
- e(r, {
61
- type: "primary",
62
- class: "w-16 mb-2",
63
- onClick: V
64
- }, {
65
- default: l(() => t[3] || (t[3] = [
66
- f("新增")
67
- ])),
68
- _: 1
69
- }),
70
- c("div", B, [
71
- e(N, {
72
- ref: "mainTable",
73
- data: n.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(b, {
85
- field: "title",
86
- title: "标题"
87
- }, {
88
- default: l(({ row: p }) => [
89
- c("div", null, [
90
- e(y, {
91
- modelValue: p.title,
92
- "onUpdate:modelValue": (m) => p.title = m
93
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
94
- ])
95
- ]),
96
- _: 1
97
- }),
98
- e(b, {
99
- field: "value",
100
- title: "描述"
101
- }, {
102
- default: l(({ row: p }) => [
103
- c("div", null, [
104
- e(y, {
105
- modelValue: p.description,
106
- "onUpdate:modelValue": (m) => p.description = m
107
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
108
- ])
109
- ]),
110
- _: 1
111
- }),
112
- e(b, {
113
- title: "操作栏",
114
- width: "60",
115
- align: "center"
116
- }, {
117
- default: l(({ row: p, rowIndex: m }) => [
118
- e(r, {
119
- link: "",
120
- type: "primary",
121
- size: "small",
122
- onClick: (D) => _(m)
123
- }, {
124
- default: l(() => t[4] || (t[4] = [
125
- f("删除")
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: d
143
- }, {
144
- default: l(() => t[5] || (t[5] = [
145
- f("关闭")
146
- ])),
147
- _: 1
148
- }),
149
- e(r, {
150
- icon: "Check",
151
- type: "primary",
152
- size: "small",
153
- onClick: z
154
- }, {
155
- default: l(() => t[6] || (t[6] = [
156
- f("确认")
157
- ])),
158
- _: 1
159
- })
160
- ]),
161
- _: 1
162
- }, 8, ["modelValue"])
163
- ], 64);
164
- };
165
- }
166
- }, h = /* @__PURE__ */ E(T, [["__scopeId", "data-v-4c8b2df2"]]), M = /* @__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(v) {
179
- let a = v;
180
- return (w, o) => {
181
- const s = u("el-input"), n = u("common-label-container"), _ = u("el-radio-button"), V = u("el-radio-group"), g = u("el-switch");
182
- return k(), O(U, null, [
183
- e(n, { label: "间距" }, {
184
- default: l(() => [
185
- e(s, {
186
- modelValue: i(a).widget.props.space,
187
- "onUpdate:modelValue": o[0] || (o[0] = (d) => i(a).widget.props.space = d),
188
- placeholder: "填写间距"
189
- }, null, 8, ["modelValue"])
190
- ]),
191
- _: 1
192
- }),
193
- e(n, { label: "显示方向" }, {
194
- default: l(() => [
195
- e(V, {
196
- modelValue: i(a).widget.props.direction,
197
- "onUpdate:modelValue": o[1] || (o[1] = (d) => i(a).widget.props.direction = d)
198
- }, {
199
- default: l(() => [
200
- e(_, {
201
- value: "horizontal",
202
- label: "horizontal"
203
- }),
204
- e(_, {
205
- value: "vertical",
206
- label: "vertical"
207
- })
208
- ]),
209
- _: 1
210
- }, 8, ["modelValue"])
211
- ]),
212
- _: 1
213
- }),
214
- e(n, { label: "是否居中对齐" }, {
215
- default: l(() => [
216
- e(g, {
217
- modelValue: i(a).widget.props.alignCenter,
218
- "onUpdate:modelValue": o[2] || (o[2] = (d) => i(a).widget.props.alignCenter = d)
219
- }, null, 8, ["modelValue"])
220
- ]),
221
- _: 1
222
- }),
223
- e(n, { label: "是否简洁风格" }, {
224
- default: l(() => [
225
- e(g, {
226
- modelValue: i(a).widget.props.simple,
227
- "onUpdate:modelValue": o[3] || (o[3] = (d) => i(a).widget.props.simple = d)
228
- }, null, 8, ["modelValue"])
229
- ]),
230
- _: 1
231
- }),
232
- e(n, { label: "步骤数据" }, {
233
- default: l(() => [
234
- e(h, {
235
- widget: i(a).widget
236
- }, null, 8, ["widget"])
237
- ]),
238
- _: 1
239
- })
240
- ], 64);
241
- };
242
- }
243
- });
244
- export {
245
- M as default
246
- };
@@ -1,127 +0,0 @@
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 { e as E, i as M } from "./index-QH0Aiubd.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("选择")
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("关闭")
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
- };