sun-form-v3 1.0.159 → 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.
@@ -1,6 +1,6 @@
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 { _ as E, c as H } from "./index-Bx6UhCW6.js";
3
- const h = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidden" }, T = /* @__PURE__ */ Object.assign({ name: "commonStyleConfig" }, {
1
+ import { computed as j, ref as y, resolveComponent as i, openBlock as h, createElementBlock as k, Fragment as U, createVNode as e, withCtx as l, createTextVNode as V, unref as d, isRef as z, createElementVNode as m, pushScopeId as I, popScopeId as J } from "vue";
2
+ import { _ as E, c as H } from "./index-D5RTYUUr.js";
3
+ const B = (r) => (I("data-v-657a5bea"), r = r(), J(), r), T = /* @__PURE__ */ B(() => /* @__PURE__ */ m("span", null, "数据配置", -1)), D = { class: "h-full flex flex-col" }, F = { class: "flex-1 overflow-hidden" }, M = /* @__PURE__ */ Object.assign({ name: "commonStyleConfig" }, {
4
4
  __name: "dataConfig",
5
5
  props: {
6
6
  modelValue: [Object, null],
@@ -9,68 +9,68 @@ const h = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidde
9
9
  }
10
10
  },
11
11
  emits: ["update:modelValue"],
12
- setup(w, { emit: a }) {
13
- let g = w;
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({
12
+ setup(r, { emit: a }) {
13
+ let v = r;
14
+ const c = j(() => v.widget.props);
15
+ let t = y(!1);
16
+ const p = y([]), s = (x) => {
17
+ p.value.splice(x, 1);
18
+ }, g = () => {
19
+ p.value.push({
20
20
  title: null,
21
21
  value: null,
22
22
  key: null,
23
23
  unit: null
24
24
  });
25
- }, y = () => {
26
- f.value.data && (s.value = JSON.parse(JSON.stringify(f.value.data))), t.value = !0;
27
- }, d = () => {
25
+ }, w = () => {
26
+ c.value.data && (p.value = JSON.parse(JSON.stringify(c.value.data))), t.value = !0;
27
+ }, n = () => {
28
28
  t.value = !1;
29
- }, N = () => {
30
- f.value.data = JSON.parse(JSON.stringify(s.value)), t.value = !1;
29
+ }, O = () => {
30
+ c.value.data = JSON.parse(JSON.stringify(p.value)), t.value = !1;
31
31
  };
32
- return (C, n) => {
33
- const c = p("el-button"), b = p("el-input"), _ = p("vxe-column"), j = p("vxe-table"), S = p("vxe-modal");
34
- return k(), U(O, null, [
35
- e(c, {
32
+ return (x, C) => {
33
+ const f = i("el-button"), b = i("el-input"), _ = i("vxe-column"), S = i("vxe-table"), N = i("vxe-modal");
34
+ return h(), k(U, null, [
35
+ e(f, {
36
36
  plain: "",
37
37
  icon: "Setting",
38
- onClick: y,
39
- type: f.value.data.length ? "primary" : ""
38
+ onClick: w,
39
+ type: c.value.data.length ? "primary" : ""
40
40
  }, {
41
- default: l(() => n[1] || (n[1] = [
41
+ default: l(() => [
42
42
  V(" 数据配置 ")
43
- ])),
43
+ ]),
44
44
  _: 1
45
45
  }, 8, ["type"]),
46
- e(S, {
46
+ e(N, {
47
47
  transfer: "",
48
- modelValue: u(t),
49
- "onUpdate:modelValue": n[0] || (n[0] = (o) => J(t) ? t.value = o : t = o),
48
+ modelValue: d(t),
49
+ "onUpdate:modelValue": C[0] || (C[0] = (o) => z(t) ? t.value = o : t = o),
50
50
  width: "830px",
51
51
  height: "700px",
52
52
  "show-footer": "",
53
- onClose: d
53
+ onClose: n
54
54
  }, {
55
- title: l(() => n[2] || (n[2] = [
56
- m("span", null, "数据配置", -1)
57
- ])),
55
+ title: l(() => [
56
+ T
57
+ ]),
58
58
  default: l(() => [
59
- m("div", h, [
60
- e(c, {
59
+ m("div", D, [
60
+ e(f, {
61
61
  type: "primary",
62
62
  class: "w-16 mb-2",
63
- onClick: v
63
+ onClick: g
64
64
  }, {
65
- default: l(() => n[3] || (n[3] = [
65
+ default: l(() => [
66
66
  V("新增")
67
- ])),
67
+ ]),
68
68
  _: 1
69
69
  }),
70
- m("div", B, [
71
- e(j, {
70
+ m("div", F, [
71
+ e(S, {
72
72
  ref: "mainTable",
73
- data: s.value,
73
+ data: p.value,
74
74
  height: "auto",
75
75
  "row-config": { isCurrent: !0, isHover: !0 },
76
76
  size: "mini",
@@ -89,7 +89,7 @@ const h = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidde
89
89
  m("div", null, [
90
90
  e(b, {
91
91
  modelValue: o.title,
92
- "onUpdate:modelValue": (i) => o.title = i
92
+ "onUpdate:modelValue": (u) => o.title = u
93
93
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
94
94
  ])
95
95
  ]),
@@ -103,7 +103,7 @@ const h = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidde
103
103
  m("div", null, [
104
104
  e(b, {
105
105
  modelValue: o.value,
106
- "onUpdate:modelValue": (i) => o.value = i
106
+ "onUpdate:modelValue": (u) => o.value = u
107
107
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
108
108
  ])
109
109
  ]),
@@ -117,7 +117,7 @@ const h = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidde
117
117
  m("div", null, [
118
118
  e(b, {
119
119
  modelValue: o.unit,
120
- "onUpdate:modelValue": (i) => o.unit = i
120
+ "onUpdate:modelValue": (u) => o.unit = u
121
121
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
122
122
  ])
123
123
  ]),
@@ -131,7 +131,7 @@ const h = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidde
131
131
  m("div", null, [
132
132
  e(b, {
133
133
  modelValue: o.key,
134
- "onUpdate:modelValue": (i) => o.key = i
134
+ "onUpdate:modelValue": (u) => o.key = u
135
135
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
136
136
  ])
137
137
  ]),
@@ -142,16 +142,16 @@ const h = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidde
142
142
  width: "60",
143
143
  align: "center"
144
144
  }, {
145
- default: l(({ row: o, rowIndex: i }) => [
146
- e(c, {
145
+ default: l(({ row: o, rowIndex: u }) => [
146
+ e(f, {
147
147
  link: "",
148
148
  type: "primary",
149
149
  size: "small",
150
- onClick: (F) => r(i)
150
+ onClick: ($) => s(u)
151
151
  }, {
152
- default: l(() => n[4] || (n[4] = [
152
+ default: l(() => [
153
153
  V("删除")
154
- ])),
154
+ ]),
155
155
  _: 2
156
156
  }, 1032, ["onClick"])
157
157
  ]),
@@ -164,25 +164,25 @@ const h = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidde
164
164
  ])
165
165
  ]),
166
166
  footer: l(() => [
167
- e(c, {
167
+ e(f, {
168
168
  icon: "Close",
169
169
  size: "small",
170
- onClick: d
170
+ onClick: n
171
171
  }, {
172
- default: l(() => n[5] || (n[5] = [
172
+ default: l(() => [
173
173
  V("关闭")
174
- ])),
174
+ ]),
175
175
  _: 1
176
176
  }),
177
- e(c, {
177
+ e(f, {
178
178
  icon: "Check",
179
179
  type: "primary",
180
180
  size: "small",
181
- onClick: N
181
+ onClick: O
182
182
  }, {
183
- default: l(() => n[6] || (n[6] = [
183
+ default: l(() => [
184
184
  V("确认")
185
- ])),
185
+ ]),
186
186
  _: 1
187
187
  })
188
188
  ]),
@@ -191,7 +191,7 @@ const h = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidde
191
191
  ], 64);
192
192
  };
193
193
  }
194
- }), D = /* @__PURE__ */ E(T, [["__scopeId", "data-v-657a5bea"]]), R = /* @__PURE__ */ Object.assign({ name: "config-statistic" }, {
194
+ }), R = /* @__PURE__ */ E(M, [["__scopeId", "data-v-657a5bea"]]), G = /* @__PURE__ */ Object.assign({ name: "config-statistic" }, {
195
195
  __name: "index",
196
196
  props: {
197
197
  designer: {
@@ -203,71 +203,71 @@ const h = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidde
203
203
  default: {}
204
204
  }
205
205
  },
206
- setup(w) {
207
- let a = w;
208
- const g = x(H);
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: "背景颜色" }, {
206
+ setup(r) {
207
+ let a = r;
208
+ const v = y(H);
209
+ return (c, t) => {
210
+ const p = i("el-color-picker"), s = i("common-label-container"), g = i("el-input"), w = i("el-input-number");
211
+ return h(), k(U, null, [
212
+ e(s, { label: "背景颜色" }, {
213
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),
214
+ e(p, {
215
+ modelValue: d(a).widget.props.color,
216
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => d(a).widget.props.color = n),
217
217
  "show-alpha": "",
218
- predefine: g.value
218
+ predefine: v.value
219
219
  }, null, 8, ["modelValue", "predefine"])
220
220
  ]),
221
221
  _: 1
222
222
  }),
223
- e(r, { label: "字体颜色" }, {
223
+ e(s, { label: "字体颜色" }, {
224
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),
225
+ e(p, {
226
+ modelValue: d(a).widget.props.fontColor,
227
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => d(a).widget.props.fontColor = n),
228
228
  "show-alpha": "",
229
- predefine: g.value
229
+ predefine: v.value
230
230
  }, null, 8, ["modelValue", "predefine"])
231
231
  ]),
232
232
  _: 1
233
233
  }),
234
- e(r, { label: "统计标题" }, {
234
+ e(s, { label: "统计标题" }, {
235
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),
236
+ e(g, {
237
+ modelValue: d(a).widget.props.title,
238
+ "onUpdate:modelValue": t[2] || (t[2] = (n) => d(a).widget.props.title = n),
239
239
  placeholder: "填写统计标题"
240
240
  }, null, 8, ["modelValue"])
241
241
  ]),
242
242
  _: 1
243
243
  }),
244
- e(r, { label: "单位" }, {
244
+ e(s, { label: "单位" }, {
245
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),
246
+ e(g, {
247
+ modelValue: d(a).widget.props.unit,
248
+ "onUpdate:modelValue": t[3] || (t[3] = (n) => d(a).widget.props.unit = n),
249
249
  placeholder: "填写统计单位"
250
250
  }, null, 8, ["modelValue"])
251
251
  ]),
252
252
  _: 1
253
253
  }),
254
- e(r, { label: "子项拆分" }, {
254
+ e(s, { label: "子项拆分" }, {
255
255
  default: l(() => [
256
- e(y, {
256
+ e(w, {
257
257
  class: "w-full",
258
258
  placeholder: "子项拆分几个",
259
- modelValue: u(a).widget.props.split,
260
- "onUpdate:modelValue": t[4] || (t[4] = (d) => u(a).widget.props.split = d),
259
+ modelValue: d(a).widget.props.split,
260
+ "onUpdate:modelValue": t[4] || (t[4] = (n) => d(a).widget.props.split = n),
261
261
  min: 1,
262
262
  "controls-position": "right"
263
263
  }, null, 8, ["modelValue"])
264
264
  ]),
265
265
  _: 1
266
266
  }),
267
- e(r, { label: "子项数据" }, {
267
+ e(s, { label: "子项数据" }, {
268
268
  default: l(() => [
269
- e(D, {
270
- widget: u(a).widget
269
+ e(R, {
270
+ widget: d(a).widget
271
271
  }, null, 8, ["widget"])
272
272
  ]),
273
273
  _: 1
@@ -277,5 +277,5 @@ const h = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidde
277
277
  }
278
278
  });
279
279
  export {
280
- R as default
280
+ G as default
281
281
  };
@@ -0,0 +1 @@
1
+ import "./index-D5RTYUUr.js";