sun-form-v3 1.0.108 → 1.0.110

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
- import { computed as N, ref as h, resolveComponent as u, openBlock as C, createElementBlock as U, Fragment as k, createVNode as e, withCtx as l, createTextVNode as g, unref as d, isRef as j, createElementVNode as c, pushScopeId as I, popScopeId as J } from "vue";
2
- import { _ as T } from "./index-bVwrXTS-.js";
3
- const E = (m) => (I("data-v-ede8dcab"), m = m(), J(), m), H = /* @__PURE__ */ E(() => /* @__PURE__ */ c("span", null, "数据配置", -1)), B = { class: "h-full flex flex-col" }, D = { class: "flex-1 overflow-hidden" }, F = {
1
+ import { computed as S, ref as C, resolveComponent as p, openBlock as U, createElementBlock as k, Fragment as O, createVNode as e, withCtx as l, createTextVNode as g, unref as i, isRef as J, createElementVNode as f } from "vue";
2
+ import { _ as T } from "./index-vu5RguVQ.js";
3
+ const E = { class: "h-full flex flex-col" }, H = { class: "flex-1 overflow-hidden" }, B = {
4
4
  __name: "dataConfig",
5
5
  props: {
6
6
  modelValue: [Object, null],
@@ -9,68 +9,68 @@ const E = (m) => (I("data-v-ede8dcab"), m = m(), J(), m), H = /* @__PURE__ */ E(
9
9
  }
10
10
  },
11
11
  emits: ["update:modelValue"],
12
- setup(m, { emit: o }) {
13
- let b = m;
14
- const t = N(() => b.widget.props);
15
- let a = h(!1);
16
- const p = h([]), s = (x) => {
17
- p.value.splice(x, 1);
12
+ setup(v, { emit: a }) {
13
+ let w = v;
14
+ const t = S(() => w.widget.props);
15
+ let n = C(!1);
16
+ const s = C([]), m = (y) => {
17
+ s.value.splice(y, 1);
18
18
  }, _ = () => {
19
- p.value.push({
19
+ s.value.push({
20
20
  title: null,
21
21
  value: null,
22
22
  key: null,
23
23
  unit: null
24
24
  });
25
- }, i = () => {
26
- t.value.data && (p.value = JSON.parse(JSON.stringify(t.value.data))), a.value = !0;
27
- }, w = () => {
28
- a.value = !1;
29
- }, O = () => {
30
- t.value.data = JSON.parse(JSON.stringify(p.value)), a.value = !1;
25
+ }, u = () => {
26
+ t.value.data && (s.value = JSON.parse(JSON.stringify(t.value.data))), n.value = !0;
27
+ }, x = () => {
28
+ n.value = !1;
29
+ }, z = () => {
30
+ t.value.data = JSON.parse(JSON.stringify(s.value)), n.value = !1;
31
31
  };
32
- return (x, y) => {
33
- const f = u("el-button"), V = u("el-input"), v = u("vxe-column"), S = u("vxe-table"), z = u("vxe-modal");
34
- return C(), U(k, null, [
35
- e(f, {
32
+ return (y, o) => {
33
+ const c = p("el-button"), b = p("el-input"), V = p("vxe-column"), N = p("vxe-table"), j = p("vxe-modal");
34
+ return U(), k(O, null, [
35
+ e(c, {
36
36
  plain: "",
37
37
  icon: "Setting",
38
- onClick: i,
38
+ onClick: u,
39
39
  type: t.value.data.length ? "primary" : ""
40
40
  }, {
41
- default: l(() => [
41
+ default: l(() => o[1] || (o[1] = [
42
42
  g(" 数据配置 ")
43
- ]),
43
+ ])),
44
44
  _: 1
45
45
  }, 8, ["type"]),
46
- e(z, {
46
+ e(j, {
47
47
  transfer: "",
48
- modelValue: d(a),
49
- "onUpdate:modelValue": y[0] || (y[0] = (n) => j(a) ? a.value = n : a = n),
48
+ modelValue: i(n),
49
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => J(n) ? n.value = d : n = d),
50
50
  width: "830px",
51
51
  height: "700px",
52
52
  "show-footer": "",
53
- onClose: w
53
+ onClose: x
54
54
  }, {
55
- title: l(() => [
56
- H
57
- ]),
55
+ title: l(() => o[2] || (o[2] = [
56
+ f("span", null, "数据配置", -1)
57
+ ])),
58
58
  default: l(() => [
59
- c("div", B, [
60
- e(f, {
59
+ f("div", E, [
60
+ e(c, {
61
61
  type: "primary",
62
62
  class: "w-16 mb-2",
63
63
  onClick: _
64
64
  }, {
65
- default: l(() => [
65
+ default: l(() => o[3] || (o[3] = [
66
66
  g("新增")
67
- ]),
67
+ ])),
68
68
  _: 1
69
69
  }),
70
- c("div", D, [
71
- e(S, {
70
+ f("div", H, [
71
+ e(N, {
72
72
  ref: "mainTable",
73
- data: p.value,
73
+ data: s.value,
74
74
  height: "auto",
75
75
  "row-config": { isCurrent: !0, isHover: !0 },
76
76
  size: "mini",
@@ -81,63 +81,63 @@ const E = (m) => (I("data-v-ede8dcab"), m = m(), J(), m), H = /* @__PURE__ */ E(
81
81
  class: "w-full"
82
82
  }, {
83
83
  default: l(() => [
84
- e(v, {
84
+ e(V, {
85
85
  field: "time",
86
86
  title: "时间"
87
87
  }, {
88
- default: l(({ row: n }) => [
89
- c("div", null, [
90
- e(V, {
91
- modelValue: n.time,
92
- "onUpdate:modelValue": (r) => n.time = r
88
+ default: l(({ row: d }) => [
89
+ f("div", null, [
90
+ e(b, {
91
+ modelValue: d.time,
92
+ "onUpdate:modelValue": (r) => d.time = r
93
93
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
94
94
  ])
95
95
  ]),
96
96
  _: 1
97
97
  }),
98
- e(v, {
98
+ e(V, {
99
99
  field: "title",
100
100
  title: "标题"
101
101
  }, {
102
- default: l(({ row: n }) => [
103
- c("div", null, [
104
- e(V, {
105
- modelValue: n.title,
106
- "onUpdate:modelValue": (r) => n.title = r
102
+ default: l(({ row: d }) => [
103
+ f("div", null, [
104
+ e(b, {
105
+ modelValue: d.title,
106
+ "onUpdate:modelValue": (r) => d.title = r
107
107
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
108
108
  ])
109
109
  ]),
110
110
  _: 1
111
111
  }),
112
- e(v, {
112
+ e(V, {
113
113
  field: "description",
114
114
  title: "描述"
115
115
  }, {
116
- default: l(({ row: n }) => [
117
- c("div", null, [
118
- e(V, {
119
- modelValue: n.description,
120
- "onUpdate:modelValue": (r) => n.description = r
116
+ default: l(({ row: d }) => [
117
+ f("div", null, [
118
+ e(b, {
119
+ modelValue: d.description,
120
+ "onUpdate:modelValue": (r) => d.description = r
121
121
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
122
122
  ])
123
123
  ]),
124
124
  _: 1
125
125
  }),
126
- e(v, {
126
+ e(V, {
127
127
  title: "操作栏",
128
128
  width: "60",
129
129
  align: "center"
130
130
  }, {
131
- default: l(({ row: n, rowIndex: r }) => [
132
- e(f, {
131
+ default: l(({ row: d, rowIndex: r }) => [
132
+ e(c, {
133
133
  link: "",
134
134
  type: "primary",
135
135
  size: "small",
136
- onClick: (R) => s(r)
136
+ onClick: (F) => m(r)
137
137
  }, {
138
- default: l(() => [
138
+ default: l(() => o[4] || (o[4] = [
139
139
  g("删除")
140
- ]),
140
+ ])),
141
141
  _: 2
142
142
  }, 1032, ["onClick"])
143
143
  ]),
@@ -150,25 +150,25 @@ const E = (m) => (I("data-v-ede8dcab"), m = m(), J(), m), H = /* @__PURE__ */ E(
150
150
  ])
151
151
  ]),
152
152
  footer: l(() => [
153
- e(f, {
153
+ e(c, {
154
154
  icon: "Close",
155
155
  size: "small",
156
- onClick: w
156
+ onClick: x
157
157
  }, {
158
- default: l(() => [
158
+ default: l(() => o[5] || (o[5] = [
159
159
  g("关闭")
160
- ]),
160
+ ])),
161
161
  _: 1
162
162
  }),
163
- e(f, {
163
+ e(c, {
164
164
  icon: "Check",
165
165
  type: "primary",
166
166
  size: "small",
167
- onClick: O
167
+ onClick: z
168
168
  }, {
169
- default: l(() => [
169
+ default: l(() => o[6] || (o[6] = [
170
170
  g("确认")
171
- ]),
171
+ ])),
172
172
  _: 1
173
173
  })
174
174
  ]),
@@ -177,7 +177,7 @@ const E = (m) => (I("data-v-ede8dcab"), m = m(), J(), m), H = /* @__PURE__ */ E(
177
177
  ], 64);
178
178
  };
179
179
  }
180
- }, M = /* @__PURE__ */ T(F, [["__scopeId", "data-v-ede8dcab"]]), A = /* @__PURE__ */ Object.assign({ name: "config-timeline" }, {
180
+ }, D = /* @__PURE__ */ T(B, [["__scopeId", "data-v-ede8dcab"]]), R = /* @__PURE__ */ Object.assign({ name: "config-timeline" }, {
181
181
  __name: "index",
182
182
  props: {
183
183
  designer: {
@@ -189,23 +189,23 @@ const E = (m) => (I("data-v-ede8dcab"), m = m(), J(), m), H = /* @__PURE__ */ E(
189
189
  default: {}
190
190
  }
191
191
  },
192
- setup(m) {
193
- let o = m;
194
- return (b, t) => {
195
- const a = u("el-radio-button"), p = u("el-radio-group"), s = u("common-label-container"), _ = u("el-switch");
196
- return C(), U(k, null, [
197
- e(s, { label: "时间戳位置" }, {
192
+ setup(v) {
193
+ let a = v;
194
+ return (w, t) => {
195
+ const n = p("el-radio-button"), s = p("el-radio-group"), m = p("common-label-container"), _ = p("el-switch");
196
+ return U(), k(O, null, [
197
+ e(m, { label: "时间戳位置" }, {
198
198
  default: l(() => [
199
- e(p, {
200
- modelValue: d(o).widget.props.placement,
201
- "onUpdate:modelValue": t[0] || (t[0] = (i) => d(o).widget.props.placement = i)
199
+ e(s, {
200
+ modelValue: i(a).widget.props.placement,
201
+ "onUpdate:modelValue": t[0] || (t[0] = (u) => i(a).widget.props.placement = u)
202
202
  }, {
203
203
  default: l(() => [
204
- e(a, {
204
+ e(n, {
205
205
  value: "top",
206
206
  label: "top"
207
207
  }),
208
- e(a, {
208
+ e(n, {
209
209
  value: "bottom",
210
210
  label: "bottom"
211
211
  })
@@ -215,18 +215,18 @@ const E = (m) => (I("data-v-ede8dcab"), m = m(), J(), m), H = /* @__PURE__ */ E(
215
215
  ]),
216
216
  _: 1
217
217
  }),
218
- e(s, { label: "节点尺寸" }, {
218
+ e(m, { label: "节点尺寸" }, {
219
219
  default: l(() => [
220
- e(p, {
221
- modelValue: d(o).widget.props.size,
222
- "onUpdate:modelValue": t[1] || (t[1] = (i) => d(o).widget.props.size = i)
220
+ e(s, {
221
+ modelValue: i(a).widget.props.size,
222
+ "onUpdate:modelValue": t[1] || (t[1] = (u) => i(a).widget.props.size = u)
223
223
  }, {
224
224
  default: l(() => [
225
- e(a, {
225
+ e(n, {
226
226
  value: "normal",
227
227
  label: "normal"
228
228
  }),
229
- e(a, {
229
+ e(n, {
230
230
  value: "large",
231
231
  label: "large"
232
232
  })
@@ -236,37 +236,37 @@ const E = (m) => (I("data-v-ede8dcab"), m = m(), J(), m), H = /* @__PURE__ */ E(
236
236
  ]),
237
237
  _: 1
238
238
  }),
239
- e(s, { label: "隐藏时间戳" }, {
239
+ e(m, { label: "隐藏时间戳" }, {
240
240
  default: l(() => [
241
241
  e(_, {
242
- modelValue: d(o).widget.props.hideTimestamp,
243
- "onUpdate:modelValue": t[2] || (t[2] = (i) => d(o).widget.props.hideTimestamp = i)
242
+ modelValue: i(a).widget.props.hideTimestamp,
243
+ "onUpdate:modelValue": t[2] || (t[2] = (u) => i(a).widget.props.hideTimestamp = u)
244
244
  }, null, 8, ["modelValue"])
245
245
  ]),
246
246
  _: 1
247
247
  }),
248
- e(s, { label: "垂直居中" }, {
248
+ e(m, { label: "垂直居中" }, {
249
249
  default: l(() => [
250
250
  e(_, {
251
- modelValue: d(o).widget.props.center,
252
- "onUpdate:modelValue": t[3] || (t[3] = (i) => d(o).widget.props.center = i)
251
+ modelValue: i(a).widget.props.center,
252
+ "onUpdate:modelValue": t[3] || (t[3] = (u) => i(a).widget.props.center = u)
253
253
  }, null, 8, ["modelValue"])
254
254
  ]),
255
255
  _: 1
256
256
  }),
257
- e(s, { label: "是否空心点" }, {
257
+ e(m, { label: "是否空心点" }, {
258
258
  default: l(() => [
259
259
  e(_, {
260
- modelValue: d(o).widget.props.hollow,
261
- "onUpdate:modelValue": t[4] || (t[4] = (i) => d(o).widget.props.hollow = i)
260
+ modelValue: i(a).widget.props.hollow,
261
+ "onUpdate:modelValue": t[4] || (t[4] = (u) => i(a).widget.props.hollow = u)
262
262
  }, null, 8, ["modelValue"])
263
263
  ]),
264
264
  _: 1
265
265
  }),
266
- e(s, { label: "时间线数据" }, {
266
+ e(m, { label: "时间线数据" }, {
267
267
  default: l(() => [
268
- e(M, {
269
- widget: d(o).widget
268
+ e(D, {
269
+ widget: i(a).widget
270
270
  }, null, 8, ["widget"])
271
271
  ]),
272
272
  _: 1
@@ -276,5 +276,5 @@ const E = (m) => (I("data-v-ede8dcab"), m = m(), J(), m), H = /* @__PURE__ */ E(
276
276
  }
277
277
  });
278
278
  export {
279
- A as default
279
+ R as default
280
280
  };