sun-form-v3 1.0.109 → 1.0.110

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sun-form-v3",
3
3
  "private": false,
4
- "version": "1.0.109",
4
+ "version": "1.0.110",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -32,6 +32,9 @@
32
32
  "vuedraggable": "^4.1.0",
33
33
  "xe-utils": "^3.5.26"
34
34
  },
35
+ "peerDependencies": {
36
+ "element-plus": "^2.7.3"
37
+ },
35
38
  "devDependencies": {
36
39
  "@vitejs/plugin-vue": "^5.0.4",
37
40
  "echarts": "^5.5.1",
@@ -41,4 +44,4 @@
41
44
  "vite-plugin-static-copy": "^1.0.6",
42
45
  "vxe-table": "^4.6.17"
43
46
  }
44
- }
47
+ }
@@ -1,127 +0,0 @@
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-CbNGZTlq.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
- };
@@ -1,246 +0,0 @@
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-CbNGZTlq.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
- };