sun-form-v3 1.0.80 → 1.0.82
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{index-D1Uhevdr.js → index-BVfC-7wG.js} +23 -22
- package/dist/{index-YCzX4CbR.js → index-BYSQOsYK.js} +64 -44
- package/dist/index-Bb57DL9x.js +87 -0
- package/dist/index-C0NmmaE2.js +252 -0
- package/dist/{index-BRM5MvQH.js → index-CvnfmMTc.js} +62 -49
- package/dist/index-CxNAuKj7.js +160 -0
- package/dist/index-DM5DPltp.js +86 -0
- package/dist/index-DVgKDMax.js +86 -0
- package/dist/index-D_wobfCy.js +18053 -0
- package/dist/index-Q7GA7AiH.js +581 -0
- package/dist/index-XP0bVDnU.js +90 -0
- package/dist/index-c0zw96Jm.js +139 -0
- package/dist/index-eJQFWCeP.js +113 -0
- package/dist/index-zkXVDNsL.js +184 -0
- package/dist/style.css +1 -1
- package/dist/sun-form-v3.es.js +2 -16880
- package/dist/sun-form-v3.umd.js +29 -29
- package/package.json +1 -1
- package/dist/index-mdiGENIF.js +0 -288
@@ -0,0 +1,581 @@
|
|
1
|
+
import { ref as x, resolveComponent as s, openBlock as k, createElementBlock as T, Fragment as E, createVNode as e, unref as l, withCtx as a, createTextVNode as b, isRef as L, createElementVNode as g, toDisplayString as y, createCommentVNode as D, pushScopeId as B, popScopeId as J } from "vue";
|
2
|
+
import { _ as R } from "./index-D_wobfCy.js";
|
3
|
+
const I = (v) => (B("data-v-75dc2686"), v = v(), J(), v), W = /* @__PURE__ */ I(() => /* @__PURE__ */ g("span", null, "复杂表头配置", -1)), q = {
|
4
|
+
key: 0,
|
5
|
+
class: "flex h-full flex-col"
|
6
|
+
}, G = { class: "flex-1 flex items-center justify-between" }, K = /* @__PURE__ */ I(() => /* @__PURE__ */ g("span", null, "选择表头", -1)), Q = {
|
7
|
+
key: 0,
|
8
|
+
class: "flex h-full"
|
9
|
+
}, X = { class: "w-full h-full" }, Y = /* @__PURE__ */ Object.assign({ name: "headerTreeConfig" }, {
|
10
|
+
__name: "headerTreeConfig",
|
11
|
+
props: {
|
12
|
+
modelValue: [Object, null],
|
13
|
+
widget: {
|
14
|
+
type: Object
|
15
|
+
}
|
16
|
+
},
|
17
|
+
emits: ["update:modelValue"],
|
18
|
+
setup(v, { emit: o }) {
|
19
|
+
let C = v;
|
20
|
+
C.designer, x(null);
|
21
|
+
let t = x({});
|
22
|
+
const r = x(JSON.parse(JSON.stringify(C.widget.props.headerTree))), U = x(C.widget.widgetList.filter((p) => p.compType === 2));
|
23
|
+
JSON.parse(JSON.stringify(U));
|
24
|
+
const n = (p, w) => {
|
25
|
+
p.push({
|
26
|
+
id: (/* @__PURE__ */ new Date()).getTime(),
|
27
|
+
children: [],
|
28
|
+
label: null
|
29
|
+
});
|
30
|
+
}, m = (p) => {
|
31
|
+
t.value = p, c.value = !0;
|
32
|
+
}, S = (p) => {
|
33
|
+
t.value.label = p.props.label, t.value.id = p.id, t.value.isComponent = !0, c.value = !1;
|
34
|
+
}, u = (p, w) => {
|
35
|
+
const f = p.parent, z = f.data.children || f.data, F = z.findIndex((N) => N.id === w.id);
|
36
|
+
z.splice(F, 1), r.value = [...r.value];
|
37
|
+
}, d = {
|
38
|
+
children: "children",
|
39
|
+
label: "label"
|
40
|
+
};
|
41
|
+
let _ = x(!1), c = x(!1);
|
42
|
+
const M = ({ row: p }) => {
|
43
|
+
console.log(p);
|
44
|
+
}, P = () => {
|
45
|
+
_.value = !0;
|
46
|
+
}, j = () => {
|
47
|
+
_.value = !1;
|
48
|
+
}, $ = () => {
|
49
|
+
_.value = !1, C.widget.props.headerTree = r.value;
|
50
|
+
};
|
51
|
+
return (p, w) => {
|
52
|
+
const f = s("el-button"), z = s("el-input"), F = s("el-button-group"), N = s("el-tree"), H = s("vxe-modal"), h = s("vxe-column"), A = s("vxe-table");
|
53
|
+
return k(), T(E, null, [
|
54
|
+
e(f, {
|
55
|
+
plain: "",
|
56
|
+
type: l(C).widget.props.headerTree.length ? "primary" : "",
|
57
|
+
icon: "Setting",
|
58
|
+
onClick: P
|
59
|
+
}, {
|
60
|
+
default: a(() => [
|
61
|
+
b(" 复杂表头 ")
|
62
|
+
]),
|
63
|
+
_: 1
|
64
|
+
}, 8, ["type"]),
|
65
|
+
e(H, {
|
66
|
+
transfer: "",
|
67
|
+
modelValue: l(_),
|
68
|
+
"onUpdate:modelValue": w[1] || (w[1] = (i) => L(_) ? _.value = i : _ = i),
|
69
|
+
width: "800px",
|
70
|
+
height: "700px",
|
71
|
+
"show-footer": "",
|
72
|
+
onClose: j
|
73
|
+
}, {
|
74
|
+
title: a(() => [
|
75
|
+
W
|
76
|
+
]),
|
77
|
+
default: a(() => [
|
78
|
+
l(_) ? (k(), T("div", q, [
|
79
|
+
e(f, {
|
80
|
+
type: "primary",
|
81
|
+
size: "small",
|
82
|
+
class: "w-20 mb-2",
|
83
|
+
onClick: w[0] || (w[0] = (i) => n(r.value))
|
84
|
+
}, {
|
85
|
+
default: a(() => [
|
86
|
+
b("一级添加")
|
87
|
+
]),
|
88
|
+
_: 1
|
89
|
+
}),
|
90
|
+
e(N, {
|
91
|
+
data: r.value,
|
92
|
+
props: d,
|
93
|
+
"node-key": "id",
|
94
|
+
"expand-on-click-node": !1,
|
95
|
+
"default-expand-all": "",
|
96
|
+
class: "w-full mt-2 flex-1 overflow-auto"
|
97
|
+
}, {
|
98
|
+
default: a(({ node: i, data: V }) => [
|
99
|
+
g("div", G, [
|
100
|
+
g("div", null, [
|
101
|
+
g("div", null, [
|
102
|
+
b(y(V.children && V.children.length ? "分类" : "组件") + " ", 1),
|
103
|
+
e(z, {
|
104
|
+
modelValue: V.label,
|
105
|
+
"onUpdate:modelValue": (O) => V.label = O,
|
106
|
+
size: "small",
|
107
|
+
class: "w-[120px]"
|
108
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
109
|
+
])
|
110
|
+
]),
|
111
|
+
g("div", null, [
|
112
|
+
e(F, null, {
|
113
|
+
default: a(() => [
|
114
|
+
e(f, {
|
115
|
+
onClick: (O) => n(V.children),
|
116
|
+
link: "",
|
117
|
+
type: "primary",
|
118
|
+
size: "small"
|
119
|
+
}, {
|
120
|
+
default: a(() => [
|
121
|
+
b("新增")
|
122
|
+
]),
|
123
|
+
_: 2
|
124
|
+
}, 1032, ["onClick"]),
|
125
|
+
e(f, {
|
126
|
+
link: "",
|
127
|
+
type: "danger",
|
128
|
+
onClick: (O) => u(i, V),
|
129
|
+
size: "small"
|
130
|
+
}, {
|
131
|
+
default: a(() => [
|
132
|
+
b("删除")
|
133
|
+
]),
|
134
|
+
_: 2
|
135
|
+
}, 1032, ["onClick"]),
|
136
|
+
e(f, {
|
137
|
+
disabled: V.children && !!V.children.length,
|
138
|
+
onClick: (O) => m(V),
|
139
|
+
link: "",
|
140
|
+
type: "success",
|
141
|
+
size: "small"
|
142
|
+
}, {
|
143
|
+
default: a(() => [
|
144
|
+
b("选择")
|
145
|
+
]),
|
146
|
+
_: 2
|
147
|
+
}, 1032, ["disabled", "onClick"])
|
148
|
+
]),
|
149
|
+
_: 2
|
150
|
+
}, 1024)
|
151
|
+
])
|
152
|
+
])
|
153
|
+
]),
|
154
|
+
_: 1
|
155
|
+
}, 8, ["data"])
|
156
|
+
])) : D("", !0)
|
157
|
+
]),
|
158
|
+
footer: a(() => [
|
159
|
+
e(f, {
|
160
|
+
icon: "Close",
|
161
|
+
size: "small",
|
162
|
+
onClick: j
|
163
|
+
}, {
|
164
|
+
default: a(() => [
|
165
|
+
b("关闭")
|
166
|
+
]),
|
167
|
+
_: 1
|
168
|
+
}),
|
169
|
+
e(f, {
|
170
|
+
icon: "Check",
|
171
|
+
type: "primary",
|
172
|
+
size: "small",
|
173
|
+
onClick: $
|
174
|
+
}, {
|
175
|
+
default: a(() => [
|
176
|
+
b("确认")
|
177
|
+
]),
|
178
|
+
_: 1
|
179
|
+
})
|
180
|
+
]),
|
181
|
+
_: 1
|
182
|
+
}, 8, ["modelValue"]),
|
183
|
+
e(H, {
|
184
|
+
transfer: "",
|
185
|
+
modelValue: l(c),
|
186
|
+
"onUpdate:modelValue": w[2] || (w[2] = (i) => L(c) ? c.value = i : c = i),
|
187
|
+
width: "700px",
|
188
|
+
height: "600px"
|
189
|
+
}, {
|
190
|
+
title: a(() => [
|
191
|
+
K
|
192
|
+
]),
|
193
|
+
default: a(() => [
|
194
|
+
l(c) ? (k(), T("div", Q, [
|
195
|
+
g("div", X, [
|
196
|
+
e(A, {
|
197
|
+
ref: "mainTable",
|
198
|
+
data: U.value,
|
199
|
+
height: "auto",
|
200
|
+
"row-config": { isCurrent: !0, isHover: !0 },
|
201
|
+
onCurrentChange: M,
|
202
|
+
size: "mini",
|
203
|
+
border: "",
|
204
|
+
"scroll-y": { enabled: !0 },
|
205
|
+
"column-config": { resizable: !0 },
|
206
|
+
align: "left",
|
207
|
+
class: "w-full"
|
208
|
+
}, {
|
209
|
+
default: a(() => [
|
210
|
+
e(h, {
|
211
|
+
field: "name",
|
212
|
+
title: "表头标签"
|
213
|
+
}, {
|
214
|
+
default: a(({ row: i }) => [
|
215
|
+
g("div", null, y(i.props.label), 1)
|
216
|
+
]),
|
217
|
+
_: 1
|
218
|
+
}),
|
219
|
+
e(h, {
|
220
|
+
field: "name",
|
221
|
+
title: "表头字段"
|
222
|
+
}, {
|
223
|
+
default: a(({ row: i }) => [
|
224
|
+
g("div", null, y(i.props.zdname), 1)
|
225
|
+
]),
|
226
|
+
_: 1
|
227
|
+
}),
|
228
|
+
e(h, {
|
229
|
+
field: "name",
|
230
|
+
title: "组件id",
|
231
|
+
width: "180"
|
232
|
+
}, {
|
233
|
+
default: a(({ row: i }) => [
|
234
|
+
g("div", null, y(i.id), 1)
|
235
|
+
]),
|
236
|
+
_: 1
|
237
|
+
}),
|
238
|
+
e(h, {
|
239
|
+
field: "name",
|
240
|
+
title: "组件类型"
|
241
|
+
}, {
|
242
|
+
default: a(({ row: i }) => [
|
243
|
+
g("div", null, y(i.displayName), 1)
|
244
|
+
]),
|
245
|
+
_: 1
|
246
|
+
}),
|
247
|
+
e(h, {
|
248
|
+
title: "操作栏",
|
249
|
+
width: "60",
|
250
|
+
align: "center"
|
251
|
+
}, {
|
252
|
+
default: a(({ row: i }) => [
|
253
|
+
e(f, {
|
254
|
+
link: "",
|
255
|
+
type: "primary",
|
256
|
+
size: "small",
|
257
|
+
onClick: (V) => S(i)
|
258
|
+
}, {
|
259
|
+
default: a(() => [
|
260
|
+
b("选择")
|
261
|
+
]),
|
262
|
+
_: 2
|
263
|
+
}, 1032, ["onClick"])
|
264
|
+
]),
|
265
|
+
_: 1
|
266
|
+
})
|
267
|
+
]),
|
268
|
+
_: 1
|
269
|
+
}, 8, ["data"])
|
270
|
+
])
|
271
|
+
])) : D("", !0)
|
272
|
+
]),
|
273
|
+
_: 1
|
274
|
+
}, 8, ["modelValue"])
|
275
|
+
], 64);
|
276
|
+
};
|
277
|
+
}
|
278
|
+
}), Z = /* @__PURE__ */ R(Y, [["__scopeId", "data-v-75dc2686"]]), ee = { key: 0 }, oe = /* @__PURE__ */ Object.assign({ name: "config-datatable" }, {
|
279
|
+
__name: "index",
|
280
|
+
props: {
|
281
|
+
designer: {
|
282
|
+
type: Object,
|
283
|
+
default: {}
|
284
|
+
},
|
285
|
+
widget: {
|
286
|
+
type: Object,
|
287
|
+
default: {}
|
288
|
+
}
|
289
|
+
},
|
290
|
+
setup(v) {
|
291
|
+
let o = v;
|
292
|
+
return (C, t) => {
|
293
|
+
const r = s("el-option"), U = s("el-select"), n = s("common-label-container"), m = s("el-input"), S = s("el-input-number"), u = s("el-switch");
|
294
|
+
return k(), T(E, null, [
|
295
|
+
e(n, { label: "组件尺寸" }, {
|
296
|
+
default: a(() => [
|
297
|
+
e(U, {
|
298
|
+
modelValue: l(o).widget.props.size,
|
299
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => l(o).widget.props.size = d)
|
300
|
+
}, {
|
301
|
+
default: a(() => [
|
302
|
+
e(r, {
|
303
|
+
label: "默认",
|
304
|
+
value: "medium"
|
305
|
+
}),
|
306
|
+
e(r, {
|
307
|
+
label: "小尺寸",
|
308
|
+
value: "small"
|
309
|
+
}),
|
310
|
+
e(r, {
|
311
|
+
label: "超小尺寸",
|
312
|
+
value: "mini"
|
313
|
+
})
|
314
|
+
]),
|
315
|
+
_: 1
|
316
|
+
}, 8, ["modelValue"])
|
317
|
+
]),
|
318
|
+
_: 1
|
319
|
+
}),
|
320
|
+
e(n, { label: "表格高度" }, {
|
321
|
+
default: a(() => [
|
322
|
+
e(m, {
|
323
|
+
modelValue: l(o).widget.props.height,
|
324
|
+
"onUpdate:modelValue": t[1] || (t[1] = (d) => l(o).widget.props.height = d),
|
325
|
+
placeholder: "填写表格高度"
|
326
|
+
}, null, 8, ["modelValue"])
|
327
|
+
]),
|
328
|
+
_: 1
|
329
|
+
}),
|
330
|
+
e(n, { label: "操作栏宽度" }, {
|
331
|
+
default: a(() => [
|
332
|
+
e(m, {
|
333
|
+
modelValue: l(o).widget.props.oprateWidth,
|
334
|
+
"onUpdate:modelValue": t[2] || (t[2] = (d) => l(o).widget.props.oprateWidth = d),
|
335
|
+
placeholder: "不填则按默认宽度"
|
336
|
+
}, null, 8, ["modelValue"])
|
337
|
+
]),
|
338
|
+
_: 1
|
339
|
+
}),
|
340
|
+
e(n, { label: "数据字段" }, {
|
341
|
+
default: a(() => [
|
342
|
+
e(m, {
|
343
|
+
modelValue: l(o).widget.props.rows,
|
344
|
+
"onUpdate:modelValue": t[3] || (t[3] = (d) => l(o).widget.props.rows = d),
|
345
|
+
placeholder: "数据字段"
|
346
|
+
}, null, 8, ["modelValue"])
|
347
|
+
]),
|
348
|
+
_: 1
|
349
|
+
}),
|
350
|
+
e(n, { label: "总数字段" }, {
|
351
|
+
default: a(() => [
|
352
|
+
e(m, {
|
353
|
+
modelValue: l(o).widget.props.count,
|
354
|
+
"onUpdate:modelValue": t[4] || (t[4] = (d) => l(o).widget.props.count = d),
|
355
|
+
placeholder: "总数字段"
|
356
|
+
}, null, 8, ["modelValue"])
|
357
|
+
]),
|
358
|
+
_: 1
|
359
|
+
}),
|
360
|
+
e(n, { label: "分页字段" }, {
|
361
|
+
default: a(() => [
|
362
|
+
e(m, {
|
363
|
+
modelValue: l(o).widget.props.page,
|
364
|
+
"onUpdate:modelValue": t[5] || (t[5] = (d) => l(o).widget.props.page = d),
|
365
|
+
placeholder: "分页字段"
|
366
|
+
}, null, 8, ["modelValue"])
|
367
|
+
]),
|
368
|
+
_: 1
|
369
|
+
}),
|
370
|
+
e(n, { label: "页数字段" }, {
|
371
|
+
default: a(() => [
|
372
|
+
e(m, {
|
373
|
+
modelValue: l(o).widget.props.limit,
|
374
|
+
"onUpdate:modelValue": t[6] || (t[6] = (d) => l(o).widget.props.limit = d),
|
375
|
+
placeholder: "页数字段"
|
376
|
+
}, null, 8, ["modelValue"])
|
377
|
+
]),
|
378
|
+
_: 1
|
379
|
+
}),
|
380
|
+
e(n, { label: "默认页数" }, {
|
381
|
+
default: a(() => [
|
382
|
+
e(S, {
|
383
|
+
class: "w-full",
|
384
|
+
placeholder: "默认页数",
|
385
|
+
modelValue: l(o).widget.props.pageDefault,
|
386
|
+
"onUpdate:modelValue": t[7] || (t[7] = (d) => l(o).widget.props.pageDefault = d),
|
387
|
+
min: 0,
|
388
|
+
"controls-position": "right"
|
389
|
+
}, null, 8, ["modelValue"])
|
390
|
+
]),
|
391
|
+
_: 1
|
392
|
+
}),
|
393
|
+
e(n, { label: "对齐方式" }, {
|
394
|
+
default: a(() => [
|
395
|
+
e(U, {
|
396
|
+
modelValue: l(o).widget.props.align,
|
397
|
+
"onUpdate:modelValue": t[8] || (t[8] = (d) => l(o).widget.props.align = d)
|
398
|
+
}, {
|
399
|
+
default: a(() => [
|
400
|
+
e(r, {
|
401
|
+
label: "中间",
|
402
|
+
value: "center"
|
403
|
+
}),
|
404
|
+
e(r, {
|
405
|
+
label: "左侧",
|
406
|
+
value: "left"
|
407
|
+
}),
|
408
|
+
e(r, {
|
409
|
+
label: "右侧",
|
410
|
+
value: "right"
|
411
|
+
})
|
412
|
+
]),
|
413
|
+
_: 1
|
414
|
+
}, 8, ["modelValue"])
|
415
|
+
]),
|
416
|
+
_: 1
|
417
|
+
}),
|
418
|
+
e(n, { label: "是否单选" }, {
|
419
|
+
default: a(() => [
|
420
|
+
e(u, {
|
421
|
+
modelValue: l(o).widget.props.singleselect,
|
422
|
+
"onUpdate:modelValue": t[9] || (t[9] = (d) => l(o).widget.props.singleselect = d)
|
423
|
+
}, null, 8, ["modelValue"])
|
424
|
+
]),
|
425
|
+
_: 1
|
426
|
+
}),
|
427
|
+
e(n, { label: "是否分页" }, {
|
428
|
+
default: a(() => [
|
429
|
+
e(u, {
|
430
|
+
modelValue: l(o).widget.props.hasPage,
|
431
|
+
"onUpdate:modelValue": t[10] || (t[10] = (d) => l(o).widget.props.hasPage = d)
|
432
|
+
}, null, 8, ["modelValue"])
|
433
|
+
]),
|
434
|
+
_: 1
|
435
|
+
}),
|
436
|
+
e(n, { label: "初始加载数据" }, {
|
437
|
+
default: a(() => [
|
438
|
+
e(u, {
|
439
|
+
modelValue: l(o).widget.props.initLoadData,
|
440
|
+
"onUpdate:modelValue": t[11] || (t[11] = (d) => l(o).widget.props.initLoadData = d)
|
441
|
+
}, null, 8, ["modelValue"])
|
442
|
+
]),
|
443
|
+
_: 1
|
444
|
+
}),
|
445
|
+
e(n, { label: "内容过长隐藏" }, {
|
446
|
+
default: a(() => [
|
447
|
+
e(u, {
|
448
|
+
modelValue: l(o).widget.props.showOverFlow,
|
449
|
+
"onUpdate:modelValue": t[12] || (t[12] = (d) => l(o).widget.props.showOverFlow = d)
|
450
|
+
}, null, 8, ["modelValue"])
|
451
|
+
]),
|
452
|
+
_: 1
|
453
|
+
}),
|
454
|
+
e(n, { label: "是否有斑马线" }, {
|
455
|
+
default: a(() => [
|
456
|
+
e(u, {
|
457
|
+
modelValue: l(o).widget.props.isStripe,
|
458
|
+
"onUpdate:modelValue": t[13] || (t[13] = (d) => l(o).widget.props.isStripe = d)
|
459
|
+
}, null, 8, ["modelValue"])
|
460
|
+
]),
|
461
|
+
_: 1
|
462
|
+
}),
|
463
|
+
e(n, { label: "隐藏选择栏" }, {
|
464
|
+
default: a(() => [
|
465
|
+
e(u, {
|
466
|
+
modelValue: l(o).widget.props.isHideChoose,
|
467
|
+
"onUpdate:modelValue": t[14] || (t[14] = (d) => l(o).widget.props.isHideChoose = d)
|
468
|
+
}, null, 8, ["modelValue"])
|
469
|
+
]),
|
470
|
+
_: 1
|
471
|
+
}),
|
472
|
+
e(n, { label: "收缩操作栏" }, {
|
473
|
+
default: a(() => [
|
474
|
+
e(u, {
|
475
|
+
modelValue: l(o).widget.props.hideHandleBtn,
|
476
|
+
"onUpdate:modelValue": t[15] || (t[15] = (d) => l(o).widget.props.hideHandleBtn = d)
|
477
|
+
}, null, 8, ["modelValue"])
|
478
|
+
]),
|
479
|
+
_: 1
|
480
|
+
}),
|
481
|
+
e(n, { label: "是否树形表格" }, {
|
482
|
+
default: a(() => [
|
483
|
+
e(u, {
|
484
|
+
modelValue: l(o).widget.props.treeMode,
|
485
|
+
"onUpdate:modelValue": t[16] || (t[16] = (d) => l(o).widget.props.treeMode = d)
|
486
|
+
}, null, 8, ["modelValue"])
|
487
|
+
]),
|
488
|
+
_: 1
|
489
|
+
}),
|
490
|
+
l(o).widget.props.treeMode ? (k(), T("div", ee, [
|
491
|
+
e(n, { label: "本级树节点" }, {
|
492
|
+
default: a(() => [
|
493
|
+
e(m, {
|
494
|
+
modelValue: l(o).widget.props.treeRowField,
|
495
|
+
"onUpdate:modelValue": t[17] || (t[17] = (d) => l(o).widget.props.treeRowField = d),
|
496
|
+
placeholder: "本级树节点"
|
497
|
+
}, null, 8, ["modelValue"])
|
498
|
+
]),
|
499
|
+
_: 1
|
500
|
+
}),
|
501
|
+
e(n, { label: "父级树节点" }, {
|
502
|
+
default: a(() => [
|
503
|
+
e(m, {
|
504
|
+
modelValue: l(o).widget.props.treeParentField,
|
505
|
+
"onUpdate:modelValue": t[18] || (t[18] = (d) => l(o).widget.props.treeParentField = d),
|
506
|
+
placeholder: "父级树节点"
|
507
|
+
}, null, 8, ["modelValue"])
|
508
|
+
]),
|
509
|
+
_: 1
|
510
|
+
}),
|
511
|
+
e(n, { label: "树子节点容器" }, {
|
512
|
+
default: a(() => [
|
513
|
+
e(m, {
|
514
|
+
modelValue: l(o).widget.props.treeChildrenField,
|
515
|
+
"onUpdate:modelValue": t[19] || (t[19] = (d) => l(o).widget.props.treeChildrenField = d),
|
516
|
+
placeholder: "树子节点容器"
|
517
|
+
}, null, 8, ["modelValue"])
|
518
|
+
]),
|
519
|
+
_: 1
|
520
|
+
}),
|
521
|
+
e(n, { label: "是否扁平数据" }, {
|
522
|
+
default: a(() => [
|
523
|
+
e(u, {
|
524
|
+
modelValue: l(o).widget.props.treeTransform,
|
525
|
+
"onUpdate:modelValue": t[20] || (t[20] = (d) => l(o).widget.props.treeTransform = d)
|
526
|
+
}, null, 8, ["modelValue"])
|
527
|
+
]),
|
528
|
+
_: 1
|
529
|
+
}),
|
530
|
+
e(n, { label: "是否展开全部" }, {
|
531
|
+
default: a(() => [
|
532
|
+
e(u, {
|
533
|
+
modelValue: l(o).widget.props.treeExpandAll,
|
534
|
+
"onUpdate:modelValue": t[21] || (t[21] = (d) => l(o).widget.props.treeExpandAll = d)
|
535
|
+
}, null, 8, ["modelValue"])
|
536
|
+
]),
|
537
|
+
_: 1
|
538
|
+
}),
|
539
|
+
e(n, { label: "是否手风琴" }, {
|
540
|
+
default: a(() => [
|
541
|
+
e(u, {
|
542
|
+
modelValue: l(o).widget.props.treeAccordion,
|
543
|
+
"onUpdate:modelValue": t[22] || (t[22] = (d) => l(o).widget.props.treeAccordion = d)
|
544
|
+
}, null, 8, ["modelValue"])
|
545
|
+
]),
|
546
|
+
_: 1
|
547
|
+
}),
|
548
|
+
e(n, { label: "是否带连接线" }, {
|
549
|
+
default: a(() => [
|
550
|
+
e(u, {
|
551
|
+
modelValue: l(o).widget.props.isLine,
|
552
|
+
"onUpdate:modelValue": t[23] || (t[23] = (d) => l(o).widget.props.isLine = d)
|
553
|
+
}, null, 8, ["modelValue"])
|
554
|
+
]),
|
555
|
+
_: 1
|
556
|
+
}),
|
557
|
+
e(n, { label: "是否带连接线" }, {
|
558
|
+
default: a(() => [
|
559
|
+
e(u, {
|
560
|
+
modelValue: l(o).widget.props.isLine,
|
561
|
+
"onUpdate:modelValue": t[24] || (t[24] = (d) => l(o).widget.props.isLine = d)
|
562
|
+
}, null, 8, ["modelValue"])
|
563
|
+
]),
|
564
|
+
_: 1
|
565
|
+
})
|
566
|
+
])) : D("", !0),
|
567
|
+
e(n, { label: "复杂表头设置" }, {
|
568
|
+
default: a(() => [
|
569
|
+
e(Z, {
|
570
|
+
widget: l(o).widget
|
571
|
+
}, null, 8, ["widget"])
|
572
|
+
]),
|
573
|
+
_: 1
|
574
|
+
})
|
575
|
+
], 64);
|
576
|
+
};
|
577
|
+
}
|
578
|
+
});
|
579
|
+
export {
|
580
|
+
oe as default
|
581
|
+
};
|
@@ -0,0 +1,90 @@
|
|
1
|
+
import { resolveComponent as p, openBlock as w, createElementBlock as _, Fragment as b, createVNode as e, withCtx as n, unref as t } from "vue";
|
2
|
+
const c = /* @__PURE__ */ Object.assign({ name: "config-rate" }, {
|
3
|
+
__name: "index",
|
4
|
+
props: {
|
5
|
+
designer: {
|
6
|
+
type: Object,
|
7
|
+
default: {}
|
8
|
+
},
|
9
|
+
widget: {
|
10
|
+
type: Object,
|
11
|
+
default: {}
|
12
|
+
}
|
13
|
+
},
|
14
|
+
setup(m) {
|
15
|
+
let l = m;
|
16
|
+
return (f, o) => {
|
17
|
+
const u = p("el-option"), r = p("el-select"), d = p("common-label-container"), i = p("el-input-number"), s = p("el-switch");
|
18
|
+
return w(), _(b, null, [
|
19
|
+
e(d, { label: "组件尺寸" }, {
|
20
|
+
default: n(() => [
|
21
|
+
e(r, {
|
22
|
+
modelValue: t(l).widget.props.size,
|
23
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => t(l).widget.props.size = a)
|
24
|
+
}, {
|
25
|
+
default: n(() => [
|
26
|
+
e(u, {
|
27
|
+
label: "大尺寸",
|
28
|
+
value: "large"
|
29
|
+
}),
|
30
|
+
e(u, {
|
31
|
+
label: "默认",
|
32
|
+
value: "default"
|
33
|
+
}),
|
34
|
+
e(u, {
|
35
|
+
label: "小尺寸",
|
36
|
+
value: "small"
|
37
|
+
})
|
38
|
+
]),
|
39
|
+
_: 1
|
40
|
+
}, 8, ["modelValue"])
|
41
|
+
]),
|
42
|
+
_: 1
|
43
|
+
}),
|
44
|
+
e(d, { label: "最大分值" }, {
|
45
|
+
default: n(() => [
|
46
|
+
e(i, {
|
47
|
+
class: "w-full",
|
48
|
+
placeholder: "填写最大输入长度",
|
49
|
+
modelValue: t(l).widget.props.max,
|
50
|
+
"onUpdate:modelValue": o[1] || (o[1] = (a) => t(l).widget.props.max = a),
|
51
|
+
min: 0,
|
52
|
+
"controls-position": "right"
|
53
|
+
}, null, 8, ["modelValue"])
|
54
|
+
]),
|
55
|
+
_: 1
|
56
|
+
}),
|
57
|
+
e(d, { label: "是否禁用" }, {
|
58
|
+
default: n(() => [
|
59
|
+
e(s, {
|
60
|
+
modelValue: t(l).widget.props.disabled,
|
61
|
+
"onUpdate:modelValue": o[2] || (o[2] = (a) => t(l).widget.props.disabled = a)
|
62
|
+
}, null, 8, ["modelValue"])
|
63
|
+
]),
|
64
|
+
_: 1
|
65
|
+
}),
|
66
|
+
e(d, { label: "是否可半选" }, {
|
67
|
+
default: n(() => [
|
68
|
+
e(s, {
|
69
|
+
modelValue: t(l).widget.props.allowHalf,
|
70
|
+
"onUpdate:modelValue": o[3] || (o[3] = (a) => t(l).widget.props.allowHalf = a)
|
71
|
+
}, null, 8, ["modelValue"])
|
72
|
+
]),
|
73
|
+
_: 1
|
74
|
+
}),
|
75
|
+
e(d, { label: "是否显示分数" }, {
|
76
|
+
default: n(() => [
|
77
|
+
e(s, {
|
78
|
+
modelValue: t(l).widget.props.showScore,
|
79
|
+
"onUpdate:modelValue": o[4] || (o[4] = (a) => t(l).widget.props.showScore = a)
|
80
|
+
}, null, 8, ["modelValue"])
|
81
|
+
]),
|
82
|
+
_: 1
|
83
|
+
})
|
84
|
+
], 64);
|
85
|
+
};
|
86
|
+
}
|
87
|
+
});
|
88
|
+
export {
|
89
|
+
c as default
|
90
|
+
};
|