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/dist/index-B6-ZAd03.js +246 -0
- package/dist/{index-TMY_iT1q.js → index-Bq9YDxLo.js} +89 -89
- package/dist/{index-ClLoOagm.js → index-CgZIGTO6.js} +1 -1
- package/dist/index-D1gtY3fW.js +127 -0
- package/dist/{index-Bhrln_aP.js → index-DZhx9NrJ.js} +165 -165
- package/dist/{index-1mhHvaqm.js → index-DqiuJ1Kx.js} +100 -100
- package/dist/{index-CbNGZTlq.js → index-vu5RguVQ.js} +26579 -26521
- package/dist/style.css +1 -1
- package/dist/sun-form-v3.es.js +1 -1
- package/dist/sun-form-v3.umd.js +135 -135
- package/package.json +5 -2
- package/dist/index-SUiZvJlC.js +0 -127
- package/dist/index-hoaNwJl5.js +0 -246
@@ -1,6 +1,6 @@
|
|
1
|
-
import { computed as
|
2
|
-
import { _ as T } from "./index-
|
3
|
-
const E =
|
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(
|
13
|
-
let
|
14
|
-
const t =
|
15
|
-
let
|
16
|
-
const
|
17
|
-
|
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
|
-
|
19
|
+
s.value.push({
|
20
20
|
title: null,
|
21
21
|
value: null,
|
22
22
|
key: null,
|
23
23
|
unit: null
|
24
24
|
});
|
25
|
-
},
|
26
|
-
t.value.data && (
|
27
|
-
},
|
28
|
-
|
29
|
-
},
|
30
|
-
t.value.data = JSON.parse(JSON.stringify(
|
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 (
|
33
|
-
const
|
34
|
-
return
|
35
|
-
e(
|
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:
|
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(
|
46
|
+
e(j, {
|
47
47
|
transfer: "",
|
48
|
-
modelValue:
|
49
|
-
"onUpdate:modelValue":
|
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:
|
53
|
+
onClose: x
|
54
54
|
}, {
|
55
|
-
title: l(() => [
|
56
|
-
|
57
|
-
]),
|
55
|
+
title: l(() => o[2] || (o[2] = [
|
56
|
+
f("span", null, "数据配置", -1)
|
57
|
+
])),
|
58
58
|
default: l(() => [
|
59
|
-
|
60
|
-
e(
|
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
|
-
|
71
|
-
e(
|
70
|
+
f("div", H, [
|
71
|
+
e(N, {
|
72
72
|
ref: "mainTable",
|
73
|
-
data:
|
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(
|
84
|
+
e(V, {
|
85
85
|
field: "time",
|
86
86
|
title: "时间"
|
87
87
|
}, {
|
88
|
-
default: l(({ row:
|
89
|
-
|
90
|
-
e(
|
91
|
-
modelValue:
|
92
|
-
"onUpdate:modelValue": (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(
|
98
|
+
e(V, {
|
99
99
|
field: "title",
|
100
100
|
title: "标题"
|
101
101
|
}, {
|
102
|
-
default: l(({ row:
|
103
|
-
|
104
|
-
e(
|
105
|
-
modelValue:
|
106
|
-
"onUpdate:modelValue": (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(
|
112
|
+
e(V, {
|
113
113
|
field: "description",
|
114
114
|
title: "描述"
|
115
115
|
}, {
|
116
|
-
default: l(({ row:
|
117
|
-
|
118
|
-
e(
|
119
|
-
modelValue:
|
120
|
-
"onUpdate:modelValue": (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(
|
126
|
+
e(V, {
|
127
127
|
title: "操作栏",
|
128
128
|
width: "60",
|
129
129
|
align: "center"
|
130
130
|
}, {
|
131
|
-
default: l(({ row:
|
132
|
-
e(
|
131
|
+
default: l(({ row: d, rowIndex: r }) => [
|
132
|
+
e(c, {
|
133
133
|
link: "",
|
134
134
|
type: "primary",
|
135
135
|
size: "small",
|
136
|
-
onClick: (
|
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(
|
153
|
+
e(c, {
|
154
154
|
icon: "Close",
|
155
155
|
size: "small",
|
156
|
-
onClick:
|
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(
|
163
|
+
e(c, {
|
164
164
|
icon: "Check",
|
165
165
|
type: "primary",
|
166
166
|
size: "small",
|
167
|
-
onClick:
|
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
|
-
},
|
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(
|
193
|
-
let
|
194
|
-
return (
|
195
|
-
const
|
196
|
-
return
|
197
|
-
e(
|
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(
|
200
|
-
modelValue:
|
201
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
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(
|
204
|
+
e(n, {
|
205
205
|
value: "top",
|
206
206
|
label: "top"
|
207
207
|
}),
|
208
|
-
e(
|
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(
|
218
|
+
e(m, { label: "节点尺寸" }, {
|
219
219
|
default: l(() => [
|
220
|
-
e(
|
221
|
-
modelValue:
|
222
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
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(
|
225
|
+
e(n, {
|
226
226
|
value: "normal",
|
227
227
|
label: "normal"
|
228
228
|
}),
|
229
|
-
e(
|
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(
|
239
|
+
e(m, { label: "隐藏时间戳" }, {
|
240
240
|
default: l(() => [
|
241
241
|
e(_, {
|
242
|
-
modelValue:
|
243
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
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(
|
248
|
+
e(m, { label: "垂直居中" }, {
|
249
249
|
default: l(() => [
|
250
250
|
e(_, {
|
251
|
-
modelValue:
|
252
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
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(
|
257
|
+
e(m, { label: "是否空心点" }, {
|
258
258
|
default: l(() => [
|
259
259
|
e(_, {
|
260
|
-
modelValue:
|
261
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
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(
|
266
|
+
e(m, { label: "时间线数据" }, {
|
267
267
|
default: l(() => [
|
268
|
-
e(
|
269
|
-
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
|
-
|
279
|
+
R as default
|
280
280
|
};
|