sun-form-v3 1.0.192 → 1.0.194
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.
- package/dist/{index-DM5DPltp.js → index-B2ieNi21.js} +20 -11
- package/dist/{index-D6DipB2R.js → index-BSGl4Vv9.js} +1 -1
- package/dist/{index-CqGhylH7.js → index-BkfKMI7z.js} +1 -1
- package/dist/{index-BoS6_PQt.js → index-BtabEesn.js} +1 -1
- package/dist/{index-t9owy5ix.js → index-BuIFE0t3.js} +158 -113
- package/dist/{index-CZZfzYn7.js → index-CE0gDB6E.js} +21 -12
- package/dist/{index-2xVS8z0w.js → index-ChARClC3.js} +1 -1
- package/dist/index-DEmlgSVA.js +1 -0
- package/dist/{index-BHLrHcnL.js → index-DMdS11ZQ.js} +1 -1
- package/dist/{index-CV2zl3zV.js → index-r7iW8fWf.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/sun-form-v3.es.js +1 -1
- package/dist/sun-form-v3.umd.js +9 -9
- package/package.json +1 -1
- package/dist/index-JnHs7PZ4.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent as
|
|
1
|
+
import { resolveComponent as p, openBlock as m, createElementBlock as g, Fragment as V, createVNode as e, withCtx as a, unref as t } from "vue";
|
|
2
2
|
const f = /* @__PURE__ */ Object.assign({ name: "config-checkbox" }, {
|
|
3
3
|
__name: "index",
|
|
4
4
|
props: {
|
|
@@ -13,12 +13,12 @@ const f = /* @__PURE__ */ Object.assign({ name: "config-checkbox" }, {
|
|
|
13
13
|
},
|
|
14
14
|
setup(i) {
|
|
15
15
|
let l = i;
|
|
16
|
-
return (
|
|
17
|
-
const s =
|
|
18
|
-
return
|
|
16
|
+
return (b, o) => {
|
|
17
|
+
const s = p("el-option"), r = p("el-select"), n = p("common-label-container"), u = p("el-switch");
|
|
18
|
+
return m(), g(V, null, [
|
|
19
19
|
e(n, { label: "组件尺寸" }, {
|
|
20
20
|
default: a(() => [
|
|
21
|
-
e(
|
|
21
|
+
e(r, {
|
|
22
22
|
modelValue: t(l).widget.props.size,
|
|
23
23
|
"onUpdate:modelValue": o[0] || (o[0] = (d) => t(l).widget.props.size = d)
|
|
24
24
|
}, {
|
|
@@ -43,7 +43,7 @@ const f = /* @__PURE__ */ Object.assign({ name: "config-checkbox" }, {
|
|
|
43
43
|
}),
|
|
44
44
|
e(n, { label: "是否按钮" }, {
|
|
45
45
|
default: a(() => [
|
|
46
|
-
e(
|
|
46
|
+
e(u, {
|
|
47
47
|
modelValue: t(l).widget.props.isButton,
|
|
48
48
|
"onUpdate:modelValue": o[1] || (o[1] = (d) => t(l).widget.props.isButton = d)
|
|
49
49
|
}, null, 8, ["modelValue"])
|
|
@@ -52,27 +52,36 @@ const f = /* @__PURE__ */ Object.assign({ name: "config-checkbox" }, {
|
|
|
52
52
|
}),
|
|
53
53
|
e(n, { label: "是否块状" }, {
|
|
54
54
|
default: a(() => [
|
|
55
|
-
e(
|
|
55
|
+
e(u, {
|
|
56
56
|
modelValue: t(l).widget.props.isBlock,
|
|
57
57
|
"onUpdate:modelValue": o[2] || (o[2] = (d) => t(l).widget.props.isBlock = d)
|
|
58
58
|
}, null, 8, ["modelValue"])
|
|
59
59
|
]),
|
|
60
60
|
_: 1
|
|
61
61
|
}),
|
|
62
|
+
e(n, { label: "值为字符串" }, {
|
|
63
|
+
default: a(() => [
|
|
64
|
+
e(u, {
|
|
65
|
+
modelValue: t(l).widget.props.valueAsString,
|
|
66
|
+
"onUpdate:modelValue": o[3] || (o[3] = (d) => t(l).widget.props.valueAsString = d)
|
|
67
|
+
}, null, 8, ["modelValue"])
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
}),
|
|
62
71
|
e(n, { label: "是否必填" }, {
|
|
63
72
|
default: a(() => [
|
|
64
|
-
e(
|
|
73
|
+
e(u, {
|
|
65
74
|
modelValue: t(l).widget.props.required,
|
|
66
|
-
"onUpdate:modelValue": o[
|
|
75
|
+
"onUpdate:modelValue": o[4] || (o[4] = (d) => t(l).widget.props.required = d)
|
|
67
76
|
}, null, 8, ["modelValue"])
|
|
68
77
|
]),
|
|
69
78
|
_: 1
|
|
70
79
|
}),
|
|
71
80
|
e(n, { label: "是否禁用" }, {
|
|
72
81
|
default: a(() => [
|
|
73
|
-
e(
|
|
82
|
+
e(u, {
|
|
74
83
|
modelValue: t(l).widget.props.disabled,
|
|
75
|
-
"onUpdate:modelValue": o[
|
|
84
|
+
"onUpdate:modelValue": o[5] || (o[5] = (d) => t(l).widget.props.disabled = d)
|
|
76
85
|
}, null, 8, ["modelValue"])
|
|
77
86
|
]),
|
|
78
87
|
_: 1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as C, resolveComponent as m, openBlock as k, createElementBlock as S, Fragment as M, createVNode as e, unref as l, withCtx as a, createTextVNode as b, isRef as j, createElementVNode as g, toDisplayString as T, createCommentVNode as O, pushScopeId as q, popScopeId as J, createBlock as K } from "vue";
|
|
2
|
-
import { _ as Q } from "./index-
|
|
2
|
+
import { _ as Q } from "./index-BuIFE0t3.js";
|
|
3
3
|
const A = (_) => (q("data-v-75dc2686"), _ = _(), J(), _), W = /* @__PURE__ */ A(() => /* @__PURE__ */ g("span", null, "复杂表头配置", -1)), h = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex h-full flex-col"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as g, resolveComponent as u, openBlock as b, createElementBlock as V, Fragment as w, createVNode as e, withCtx as n, unref as a } from "vue";
|
|
2
|
-
import { c } from "./index-
|
|
2
|
+
import { c } from "./index-BuIFE0t3.js";
|
|
3
3
|
const k = /* @__PURE__ */ Object.assign({ name: "config-text" }, {
|
|
4
4
|
__name: "index",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { e as E, i as M } from "./index-BuIFE0t3.js";
|
|
3
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
4
|
__name: "chartChoose",
|
|
5
5
|
props: {
|
|
@@ -2329,9 +2329,13 @@ const kXe = {
|
|
|
2329
2329
|
let a = ve(() => r.widget.props);
|
|
2330
2330
|
const o = ve({
|
|
2331
2331
|
set: (l) => {
|
|
2332
|
-
a.value.
|
|
2332
|
+
const c = a.value.valueAsString && Array.isArray(l) ? l.join(",") : l;
|
|
2333
|
+
a.value.isTableItem ? i("update:modelValue", c) : a.value.value = c;
|
|
2333
2334
|
},
|
|
2334
|
-
get: () =>
|
|
2335
|
+
get: () => {
|
|
2336
|
+
let l;
|
|
2337
|
+
return a.value.isTableItem ? r.modelValue === void 0 ? l = a.value.value : l = r.modelValue : l = a.value.value, a.value.valueAsString && typeof l == "string" && l ? l.split(",") : Array.isArray(l) ? l : l ? [l] : [];
|
|
2338
|
+
}
|
|
2335
2339
|
}), s = (l) => {
|
|
2336
2340
|
r.designer.eventHandle({
|
|
2337
2341
|
eventType: "onChange",
|
|
@@ -100556,6 +100560,7 @@ const kA = /* @__PURE__ */ an(l9t), Fd = {
|
|
|
100556
100560
|
labelPosition: "left",
|
|
100557
100561
|
placeholder: "请选择",
|
|
100558
100562
|
value: [],
|
|
100563
|
+
valueAsString: !1,
|
|
100559
100564
|
isDetail: !1,
|
|
100560
100565
|
multipleLimit: null,
|
|
100561
100566
|
maxCollapseTags: null,
|
|
@@ -100670,6 +100675,7 @@ const kA = /* @__PURE__ */ an(l9t), Fd = {
|
|
|
100670
100675
|
isButton: !1,
|
|
100671
100676
|
isBlock: !1,
|
|
100672
100677
|
value: [],
|
|
100678
|
+
valueAsString: !1,
|
|
100673
100679
|
zdname: null,
|
|
100674
100680
|
label: "多选框",
|
|
100675
100681
|
labelAlign: "right",
|
|
@@ -101418,16 +101424,20 @@ const kA = /* @__PURE__ */ an(l9t), Fd = {
|
|
|
101418
101424
|
successFormat: "",
|
|
101419
101425
|
errorFormat: ""
|
|
101420
101426
|
},
|
|
101421
|
-
list: [
|
|
101422
|
-
|
|
101423
|
-
|
|
101424
|
-
|
|
101425
|
-
|
|
101426
|
-
|
|
101427
|
-
|
|
101428
|
-
|
|
101429
|
-
|
|
101430
|
-
|
|
101427
|
+
list: [
|
|
101428
|
+
{
|
|
101429
|
+
label: "选项1",
|
|
101430
|
+
value: "1"
|
|
101431
|
+
},
|
|
101432
|
+
{
|
|
101433
|
+
label: "选项2",
|
|
101434
|
+
value: "2"
|
|
101435
|
+
},
|
|
101436
|
+
{
|
|
101437
|
+
label: "选项3",
|
|
101438
|
+
value: "3"
|
|
101439
|
+
}
|
|
101440
|
+
],
|
|
101431
101441
|
onCreated: null,
|
|
101432
101442
|
onMounted: null
|
|
101433
101443
|
// onChange: null,
|
|
@@ -101537,22 +101547,26 @@ const kA = /* @__PURE__ */ an(l9t), Fd = {
|
|
|
101537
101547
|
color: "rgba(123, 104, 238, 1)",
|
|
101538
101548
|
fontColor: "#ffffff",
|
|
101539
101549
|
split: 3,
|
|
101540
|
-
data: [
|
|
101541
|
-
|
|
101542
|
-
|
|
101543
|
-
|
|
101544
|
-
|
|
101545
|
-
|
|
101546
|
-
|
|
101547
|
-
|
|
101548
|
-
|
|
101549
|
-
|
|
101550
|
-
|
|
101551
|
-
|
|
101552
|
-
|
|
101553
|
-
|
|
101554
|
-
|
|
101555
|
-
|
|
101550
|
+
data: [
|
|
101551
|
+
{
|
|
101552
|
+
title: "同比",
|
|
101553
|
+
value: 100,
|
|
101554
|
+
key: "a",
|
|
101555
|
+
unit: "%"
|
|
101556
|
+
},
|
|
101557
|
+
{
|
|
101558
|
+
title: "环比",
|
|
101559
|
+
value: 100,
|
|
101560
|
+
key: "b",
|
|
101561
|
+
unit: "元"
|
|
101562
|
+
},
|
|
101563
|
+
{
|
|
101564
|
+
title: "周同比",
|
|
101565
|
+
value: 100,
|
|
101566
|
+
key: "c",
|
|
101567
|
+
unit: "美元"
|
|
101568
|
+
}
|
|
101569
|
+
],
|
|
101556
101570
|
onCreated: null,
|
|
101557
101571
|
onMounted: null,
|
|
101558
101572
|
flowConfig: null
|
|
@@ -101624,22 +101638,28 @@ const kA = /* @__PURE__ */ an(l9t), Fd = {
|
|
|
101624
101638
|
alignCenter: !0,
|
|
101625
101639
|
simple: !1,
|
|
101626
101640
|
space: null,
|
|
101627
|
-
data: [
|
|
101628
|
-
|
|
101629
|
-
|
|
101630
|
-
|
|
101631
|
-
|
|
101632
|
-
|
|
101633
|
-
|
|
101634
|
-
|
|
101635
|
-
|
|
101636
|
-
|
|
101637
|
-
|
|
101638
|
-
|
|
101639
|
-
|
|
101640
|
-
|
|
101641
|
-
|
|
101642
|
-
|
|
101641
|
+
data: [
|
|
101642
|
+
{
|
|
101643
|
+
title: "数据填写",
|
|
101644
|
+
description: "步骤条描述"
|
|
101645
|
+
},
|
|
101646
|
+
{
|
|
101647
|
+
title: "初审",
|
|
101648
|
+
description: "步骤条描述"
|
|
101649
|
+
},
|
|
101650
|
+
{
|
|
101651
|
+
title: "复审",
|
|
101652
|
+
description: "步骤条描述"
|
|
101653
|
+
},
|
|
101654
|
+
{
|
|
101655
|
+
title: "终审",
|
|
101656
|
+
description: "步骤条描述"
|
|
101657
|
+
},
|
|
101658
|
+
{
|
|
101659
|
+
title: "完成",
|
|
101660
|
+
description: "步骤条描述"
|
|
101661
|
+
}
|
|
101662
|
+
],
|
|
101643
101663
|
onCreated: null,
|
|
101644
101664
|
onMounted: null,
|
|
101645
101665
|
onStepClick: null
|
|
@@ -101663,27 +101683,33 @@ const kA = /* @__PURE__ */ an(l9t), Fd = {
|
|
|
101663
101683
|
hollow: !1,
|
|
101664
101684
|
placement: "top",
|
|
101665
101685
|
size: "normal",
|
|
101666
|
-
data: [
|
|
101667
|
-
|
|
101668
|
-
|
|
101669
|
-
|
|
101670
|
-
|
|
101671
|
-
|
|
101672
|
-
|
|
101673
|
-
|
|
101674
|
-
|
|
101675
|
-
|
|
101676
|
-
|
|
101677
|
-
|
|
101678
|
-
|
|
101679
|
-
|
|
101680
|
-
|
|
101681
|
-
|
|
101682
|
-
|
|
101683
|
-
|
|
101684
|
-
|
|
101685
|
-
|
|
101686
|
-
|
|
101686
|
+
data: [
|
|
101687
|
+
{
|
|
101688
|
+
time: "2024-04-05",
|
|
101689
|
+
title: "数据填写",
|
|
101690
|
+
description: "时间线详细内容描述"
|
|
101691
|
+
},
|
|
101692
|
+
{
|
|
101693
|
+
time: "2024-04-06",
|
|
101694
|
+
title: "初审",
|
|
101695
|
+
description: "时间线详细内容描述"
|
|
101696
|
+
},
|
|
101697
|
+
{
|
|
101698
|
+
time: "2024-04-07",
|
|
101699
|
+
title: "复审",
|
|
101700
|
+
description: "时间线详细内容描述"
|
|
101701
|
+
},
|
|
101702
|
+
{
|
|
101703
|
+
time: "2024-04-08",
|
|
101704
|
+
title: "终审",
|
|
101705
|
+
description: "时间线详细内容描述"
|
|
101706
|
+
},
|
|
101707
|
+
{
|
|
101708
|
+
time: "2024-04-09",
|
|
101709
|
+
title: "完成",
|
|
101710
|
+
description: "时间线详细内容描述"
|
|
101711
|
+
}
|
|
101712
|
+
],
|
|
101687
101713
|
onCreated: null,
|
|
101688
101714
|
onMounted: null,
|
|
101689
101715
|
flowConfig: null
|
|
@@ -101744,22 +101770,26 @@ const kA = /* @__PURE__ */ an(l9t), Fd = {
|
|
|
101744
101770
|
onHide: null,
|
|
101745
101771
|
onFormat: null,
|
|
101746
101772
|
handleCommand: null,
|
|
101747
|
-
list: [
|
|
101748
|
-
|
|
101749
|
-
|
|
101750
|
-
|
|
101751
|
-
|
|
101752
|
-
|
|
101753
|
-
|
|
101754
|
-
|
|
101755
|
-
|
|
101756
|
-
|
|
101757
|
-
|
|
101758
|
-
|
|
101759
|
-
|
|
101760
|
-
|
|
101761
|
-
|
|
101762
|
-
|
|
101773
|
+
list: [
|
|
101774
|
+
{
|
|
101775
|
+
label: "菜单项1",
|
|
101776
|
+
value: "1",
|
|
101777
|
+
disabled: !1,
|
|
101778
|
+
divided: !1
|
|
101779
|
+
},
|
|
101780
|
+
{
|
|
101781
|
+
label: "菜单项2",
|
|
101782
|
+
value: "2",
|
|
101783
|
+
disabled: !1,
|
|
101784
|
+
divided: !1
|
|
101785
|
+
},
|
|
101786
|
+
{
|
|
101787
|
+
label: "菜单项3",
|
|
101788
|
+
value: "3",
|
|
101789
|
+
disabled: !1,
|
|
101790
|
+
divided: !0
|
|
101791
|
+
}
|
|
101792
|
+
],
|
|
101763
101793
|
style: {},
|
|
101764
101794
|
flowConfig: null
|
|
101765
101795
|
}
|
|
@@ -103367,7 +103397,7 @@ let widget = props.widget;
|
|
|
103367
103397
|
], 64))), 128);
|
|
103368
103398
|
};
|
|
103369
103399
|
}
|
|
103370
|
-
}), dUt = (t) => (y1("data-v-
|
|
103400
|
+
}), dUt = (t) => (y1("data-v-b8d880ea"), t = t(), _1(), t), pUt = {
|
|
103371
103401
|
key: 0,
|
|
103372
103402
|
class: "flex flex-col bg-white border overflow-hidden mb-1 dark:border-slate-800 dark:bg-black"
|
|
103373
103403
|
}, fUt = /* @__PURE__ */ dUt(() => /* @__PURE__ */ ge("button", {
|
|
@@ -103438,7 +103468,9 @@ let widget = props.widget;
|
|
|
103438
103468
|
x.value.set(Nn, Dn), w.value.add(Nn);
|
|
103439
103469
|
});
|
|
103440
103470
|
if (pn !== null) {
|
|
103441
|
-
const vt = Array.from(
|
|
103471
|
+
const vt = Array.from(
|
|
103472
|
+
x.value.values()
|
|
103473
|
+
);
|
|
103442
103474
|
r.designer.eventHandle({
|
|
103443
103475
|
eventType: "onChangeSelect",
|
|
103444
103476
|
value: vt,
|
|
@@ -103608,7 +103640,9 @@ let widget = props.widget;
|
|
|
103608
103640
|
o.value = Ht, l(), E.value++;
|
|
103609
103641
|
}, de = (Ht) => {
|
|
103610
103642
|
const pn = Array.isArray(Ht) ? Ht : [Ht];
|
|
103611
|
-
pn.length !== 0 && (o.value = o.value.filter(
|
|
103643
|
+
pn.length !== 0 && (o.value = o.value.filter(
|
|
103644
|
+
(vt) => !pn.includes(vt)
|
|
103645
|
+
), l(), E.value++);
|
|
103612
103646
|
}, _e = (Ht) => {
|
|
103613
103647
|
y.value = Ht;
|
|
103614
103648
|
}, Xe = (Ht, pn) => {
|
|
@@ -103665,9 +103699,12 @@ let widget = props.widget;
|
|
|
103665
103699
|
_.value = !0, await r.designer.requestByApisetConfig({
|
|
103666
103700
|
widget: r.widget,
|
|
103667
103701
|
resultCb: ({ funRes: Ht, httpRes: pn }) => {
|
|
103668
|
-
_.value = !1,
|
|
103669
|
-
|
|
103670
|
-
|
|
103702
|
+
if (_.value = !1, Ht) {
|
|
103703
|
+
y.value = Ht[u.value.count];
|
|
103704
|
+
const vt = Ht[u.value.rows] || [];
|
|
103705
|
+
o.value = vt, s.value = vt;
|
|
103706
|
+
}
|
|
103707
|
+
qt(() => {
|
|
103671
103708
|
bt(), r.designer.eventHandle({
|
|
103672
103709
|
eventType: "onDataLoad",
|
|
103673
103710
|
widget: r.widget
|
|
@@ -103825,7 +103862,7 @@ let widget = props.widget;
|
|
|
103825
103862
|
height: "100%"
|
|
103826
103863
|
})
|
|
103827
103864
|
}, [
|
|
103828
|
-
g.value.length && !u.value.isHideQuery || !u.value.isHideButton && !u.value.
|
|
103865
|
+
g.value.length && !u.value.isHideQuery || !u.value.isHideButton && !(z(!1).length == 0 && u.value.isHideResetBtn && u.value.isHideQueryBtn) ? (oe(), Re("div", pUt, [
|
|
103829
103866
|
g.value.length && !u.value.isHideQuery ? (oe(), Re("form", {
|
|
103830
103867
|
key: 0,
|
|
103831
103868
|
class: "w-full flex flex-wrap py-1 px-2",
|
|
@@ -103856,7 +103893,7 @@ let widget = props.widget;
|
|
|
103856
103893
|
])), 128)),
|
|
103857
103894
|
fUt
|
|
103858
103895
|
], 32)) : Et("", !0),
|
|
103859
|
-
!u.value.isHideButton && !u.value.
|
|
103896
|
+
!u.value.isHideButton && !(z(!1).length == 0 && u.value.isHideResetBtn && u.value.isHideQueryBtn) ? (oe(), Re("div", hUt, [
|
|
103860
103897
|
ge("div", mUt, [
|
|
103861
103898
|
(oe(!0), Re(gr, null, hi(z(!1), (Tr, Ir) => (oe(), Re("div", {
|
|
103862
103899
|
key: Ir,
|
|
@@ -104091,7 +104128,7 @@ let widget = props.widget;
|
|
|
104091
104128
|
], 4);
|
|
104092
104129
|
};
|
|
104093
104130
|
}
|
|
104094
|
-
}), SUt = /* @__PURE__ */ Nu(bUt, [["__scopeId", "data-v-
|
|
104131
|
+
}), SUt = /* @__PURE__ */ Nu(bUt, [["__scopeId", "data-v-b8d880ea"]]);
|
|
104095
104132
|
/**!
|
|
104096
104133
|
* Sortable 1.15.6
|
|
104097
104134
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -175667,12 +175704,9 @@ const xdn = {
|
|
|
175667
175704
|
widget: n.widget
|
|
175668
175705
|
});
|
|
175669
175706
|
}, p = async () => {
|
|
175670
|
-
if (!n.designer.showMode
|
|
175671
|
-
return;
|
|
175672
|
-
let f = n.designer.checkWidgetListRequiredById(
|
|
175707
|
+
if (!n.designer.showMode || !n.designer.checkWidgetListRequiredById(
|
|
175673
175708
|
n.widget.id
|
|
175674
|
-
)
|
|
175675
|
-
if (console.log(f), !f)
|
|
175709
|
+
))
|
|
175676
175710
|
return;
|
|
175677
175711
|
let m = l(), g = r.value.formType;
|
|
175678
175712
|
try {
|
|
@@ -175815,7 +175849,7 @@ const xdn = {
|
|
|
175815
175849
|
]);
|
|
175816
175850
|
};
|
|
175817
175851
|
}
|
|
175818
|
-
}), Idn = /* @__PURE__ */ Nu(Odn, [["__scopeId", "data-v-
|
|
175852
|
+
}), Idn = /* @__PURE__ */ Nu(Odn, [["__scopeId", "data-v-ccb4de16"]]), Ndn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
175819
175853
|
__proto__: null,
|
|
175820
175854
|
default: Idn
|
|
175821
175855
|
}, Symbol.toStringTag, { value: "Module" })), Rdn = /* @__PURE__ */ Object.assign({ name: "widget-homepage" }, {
|
|
@@ -176072,7 +176106,11 @@ const xdn = {
|
|
|
176072
176106
|
"app",
|
|
176073
176107
|
a.value.onTableFormat
|
|
176074
176108
|
)(r.modelValue, r.widget, r.tableItemData, zr(), r.designer) : null), l = (h) => {
|
|
176075
|
-
a.value.isTrim && (a.value.value = r.designer.$utils.trim(h)), a.value.validate && (r.designer.validateInput(a.value.validate, h) || (a.value.isTableItem ?
|
|
176109
|
+
a.value.isTrim && (a.value.value = r.designer.$utils.trim(h)), a.value.validate && (r.designer.validateInput(a.value.validate, h) || (a.value.isTableItem ? setTimeout(() => {
|
|
176110
|
+
i("update:modelValue", null);
|
|
176111
|
+
}, 500) : setTimeout(() => {
|
|
176112
|
+
a.value.value = null;
|
|
176113
|
+
}, 500), r.designer.$message.warning(
|
|
176076
176114
|
a.value.validate + "校验失败,请重新输入"
|
|
176077
176115
|
))), r.designer.eventHandle({
|
|
176078
176116
|
eventType: "onChange",
|
|
@@ -176168,7 +176206,7 @@ const xdn = {
|
|
|
176168
176206
|
}, 8, ["props"]);
|
|
176169
176207
|
};
|
|
176170
176208
|
}
|
|
176171
|
-
}), $dn = /* @__PURE__ */ Nu(Vdn, [["__scopeId", "data-v-
|
|
176209
|
+
}), $dn = /* @__PURE__ */ Nu(Vdn, [["__scopeId", "data-v-68986f5d"]]), Udn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
176172
176210
|
__proto__: null,
|
|
176173
176211
|
default: $dn
|
|
176174
176212
|
}, Symbol.toStringTag, { value: "Module" })), jdn = { class: "config_wrap w-full border rounded-md dark:border-slate-500" }, zdn = { class: "py-2 px-3 bg-gray-100 w-full border-b dark:bg-slate-800 dark:border-slate-500" }, Hdn = { class: "p-2 border border-dashed bg-white dark:bg-black dark:border-slate-500" }, Gdn = {
|
|
@@ -178325,9 +178363,13 @@ const Zpn = /* @__PURE__ */ Object.assign({ name: "widget-qrcode" }, {
|
|
|
178325
178363
|
let a = ve(() => r.widget.props);
|
|
178326
178364
|
const o = ve({
|
|
178327
178365
|
set: (c) => {
|
|
178328
|
-
a.value.
|
|
178366
|
+
const u = a.value.valueAsString && Array.isArray(c) ? c.join(",") : c;
|
|
178367
|
+
a.value.isTableItem ? i("update:modelValue", u) : a.value.value = u;
|
|
178329
178368
|
},
|
|
178330
|
-
get: () =>
|
|
178369
|
+
get: () => {
|
|
178370
|
+
let c;
|
|
178371
|
+
return a.value.isTableItem ? r.modelValue === void 0 ? c = a.value.value : c = r.modelValue : c = a.value.value, a.value.valueAsString && typeof c == "string" && c ? c.split(",") : Array.isArray(c) ? c : c ? [c] : [];
|
|
178372
|
+
}
|
|
178331
178373
|
}), s = ve(() => a.value.isTableItem && a.value.onTableFormat && r.designer.showMode ? new Function(
|
|
178332
178374
|
"value",
|
|
178333
178375
|
"widget",
|
|
@@ -184591,15 +184633,19 @@ class cHe {
|
|
|
184591
184633
|
checkWidgetListRequiredById(e) {
|
|
184592
184634
|
let n = !0, r = [];
|
|
184593
184635
|
const i = (a) => {
|
|
184594
|
-
a.forEach((o) => {
|
|
184595
|
-
|
|
184596
|
-
|
|
184597
|
-
|
|
184636
|
+
console.log(a), a.forEach((o) => {
|
|
184637
|
+
let s = o.props.hide === !0 || o.props.vifStatus === !1 || o.props.vshowStatus === !1;
|
|
184638
|
+
console.log(o.props.zdname, o.props.vshowStatus), !(o.isContainer && s) && (o.props.zdname && o.isForm && !s && (console.log(o.props.zdname), (o.props.value === null || o.props.value === "" || o.props.value === void 0 || JSON.stringify(o.props.value) == "[]") && o.props.required ? (r.push(o.props.label + "不能为空"), n = !1) : o.props.validate && o.props.value !== null && o.props.value !== "" && o.props.value !== void 0 && (this.validateInput(o.props.validate, o.props.value) || (r.push(o.props.label + "格式不正确"), n = !1))), o.props.zdname && o.type === "file" && !s && o.props.value === "[]" && o.props.required && (r.push(o.props.label + "不能为空"), n = !1), o.type === "datatable" && o.props.value && o.props.value.length && o.widgetList.forEach((l) => {
|
|
184639
|
+
o.props.value.forEach((c) => {
|
|
184640
|
+
if (c.hasOwnProperty(l.props.zdname) && l.props.required && !l.props.hide && (c[l.props.zdname] === null || c[l.props.zdname] === "" || c[l.props.zdname] === void 0 || JSON.stringify(c[l.props.zdname]) == "[]") && (r.includes(l.props.label + "不能为空") || r.push(l.props.label + "不能为空"), n = !1), c.hasOwnProperty(l.props.zdname) && l.props.validate && !l.props.hide) {
|
|
184641
|
+
let u = c[l.props.zdname];
|
|
184642
|
+
u !== null && u !== "" && u !== void 0 && (this.validateInput(l.props.validate, u) || (r.includes(l.props.label + "格式不正确") || r.push(l.props.label + "格式不正确"), n = !1));
|
|
184643
|
+
}
|
|
184598
184644
|
});
|
|
184599
184645
|
}), o.widgetList && o.widgetList.length && o.type != "datatable" && i(o.widgetList));
|
|
184600
184646
|
});
|
|
184601
184647
|
};
|
|
184602
|
-
return i(this.getWidgetById(e).widgetList), r.length && this.$message.warning(r[0]
|
|
184648
|
+
return i(this.getWidgetById(e).widgetList), r.length && this.$message.warning(r[0]), n;
|
|
184603
184649
|
}
|
|
184604
184650
|
getWidgetListResultById(e) {
|
|
184605
184651
|
let n = {};
|
|
@@ -256353,7 +256399,7 @@ const a8n = { key: 1 }, o8n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
|
|
|
256353
256399
|
"element-plus": D8t,
|
|
256354
256400
|
"@element-plus/icons-vue": h1t,
|
|
256355
256401
|
echarts: Fcn,
|
|
256356
|
-
"echarts-gl": () => import("./index-
|
|
256402
|
+
"echarts-gl": () => import("./index-DEmlgSVA.js")
|
|
256357
256403
|
},
|
|
256358
256404
|
async getFile(d) {
|
|
256359
256405
|
return d === "element-plus" ? "export * from 'element-plus'; export { default } from 'element-plus';" : d === "@element-plus/icons-vue" ? "export * from '@element-plus/icons-vue'; export { default } from '@element-plus/icons-vue';" : d === "echarts" ? "export * from 'echarts'; export { default } from 'echarts';" : d === "echarts-gl" ? "import 'echarts-gl'; export {};" : d === "vue" ? "export * from 'vue'; export { default } from 'vue';" : s();
|
|
@@ -257714,7 +257760,7 @@ const a8n = { key: 1 }, o8n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
|
|
|
257714
257760
|
if (h) {
|
|
257715
257761
|
let m = new Function("widget", "app", h)(e.widget, e.designer);
|
|
257716
257762
|
if (typeof m == "boolean")
|
|
257717
|
-
return m;
|
|
257763
|
+
return e.widget.props.vifStatus = m, m;
|
|
257718
257764
|
} else
|
|
257719
257765
|
return !0;
|
|
257720
257766
|
} catch {
|
|
@@ -257728,7 +257774,7 @@ const a8n = { key: 1 }, o8n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
|
|
|
257728
257774
|
if (h) {
|
|
257729
257775
|
let m = new Function("widget", "app", h)(e.widget, e.designer);
|
|
257730
257776
|
if (typeof m == "boolean")
|
|
257731
|
-
return m;
|
|
257777
|
+
return e.widget.props.vshowStatus = m, m;
|
|
257732
257778
|
} else
|
|
257733
257779
|
return !0;
|
|
257734
257780
|
} catch {
|
|
@@ -257891,7 +257937,7 @@ const a8n = { key: 1 }, o8n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
|
|
|
257891
257937
|
]) : Et("", !0);
|
|
257892
257938
|
};
|
|
257893
257939
|
}
|
|
257894
|
-
}), $Bn = /* @__PURE__ */ Nu(VBn, [["__scopeId", "data-v-
|
|
257940
|
+
}), $Bn = /* @__PURE__ */ Nu(VBn, [["__scopeId", "data-v-eeb80a65"]]), UBn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
257895
257941
|
__proto__: null,
|
|
257896
257942
|
default: $Bn
|
|
257897
257943
|
}, Symbol.toStringTag, { value: "Module" })), jBn = /* @__PURE__ */ ge("span", null, "图标选择", -1), zBn = { class: "flex flex-wrap border" }, HBn = ["onClick"], GBn = { class: "mt-2 text-xs" }, WBn = /* @__PURE__ */ Object.assign({ name: "commonIconChoose" }, {
|
|
@@ -260699,7 +260745,6 @@ const a8n = { key: 1 }, o8n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
|
|
|
260699
260745
|
}, u = (h) => {
|
|
260700
260746
|
r("insert-below", h), p();
|
|
260701
260747
|
}, d = (h) => {
|
|
260702
|
-
n.designer.setChosenId(h.id);
|
|
260703
260748
|
}, p = () => {
|
|
260704
260749
|
r("update:modelValue", !1);
|
|
260705
260750
|
};
|
|
@@ -260744,7 +260789,7 @@ const a8n = { key: 1 }, o8n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
|
|
|
260744
260789
|
}, {
|
|
260745
260790
|
default: Qe(({ row: y }) => [
|
|
260746
260791
|
ge("div", {
|
|
260747
|
-
onClick: (S) => d(
|
|
260792
|
+
onClick: (S) => d(),
|
|
260748
260793
|
class: Ke(["cursor-pointer pl-0 box-border hover:bg-gray-50 select-none", { "bg-blue-50": o(y) }])
|
|
260749
260794
|
}, [
|
|
260750
260795
|
ge("div", BVn, [
|
|
@@ -260804,7 +260849,7 @@ const a8n = { key: 1 }, o8n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
|
|
|
260804
260849
|
}, 8, ["modelValue"]);
|
|
260805
260850
|
};
|
|
260806
260851
|
}
|
|
260807
|
-
}, YVn = /* @__PURE__ */ Nu(qVn, [["__scopeId", "data-v-
|
|
260852
|
+
}, YVn = /* @__PURE__ */ Nu(qVn, [["__scopeId", "data-v-04383ee5"]]), fce = (t) => (y1("data-v-82c3a4ba"), t = t(), _1(), t), KVn = { class: "w-full" }, XVn = {
|
|
260808
260853
|
key: 0,
|
|
260809
260854
|
class: "mt-2 text-sm text-gray-600"
|
|
260810
260855
|
}, QVn = {
|
|
@@ -260837,7 +260882,7 @@ const a8n = { key: 1 }, o8n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
|
|
|
260837
260882
|
},
|
|
260838
260883
|
setup(t) {
|
|
260839
260884
|
const n = Object.fromEntries(
|
|
260840
|
-
Object.entries(/* @__PURE__ */ Object.assign({ "../widgetConfigComps/config-alert/index.vue": () => import("./index-ZVIqhtUw.js"), "../widgetConfigComps/config-button/index.vue": () => import("./index-CvnfmMTc.js"), "../widgetConfigComps/config-card/index.vue": () => import("./index-BJ0vPF5A.js"), "../widgetConfigComps/config-cascader/index.vue": () => import("./index-BcUJtkEW.js"), "../widgetConfigComps/config-checkCode/index.vue": () => import("./index-kUQct_cM.js"), "../widgetConfigComps/config-checkbox/index.vue": () => import("./index-
|
|
260885
|
+
Object.entries(/* @__PURE__ */ Object.assign({ "../widgetConfigComps/config-alert/index.vue": () => import("./index-ZVIqhtUw.js"), "../widgetConfigComps/config-button/index.vue": () => import("./index-CvnfmMTc.js"), "../widgetConfigComps/config-card/index.vue": () => import("./index-BJ0vPF5A.js"), "../widgetConfigComps/config-cascader/index.vue": () => import("./index-BcUJtkEW.js"), "../widgetConfigComps/config-checkCode/index.vue": () => import("./index-kUQct_cM.js"), "../widgetConfigComps/config-checkbox/index.vue": () => import("./index-B2ieNi21.js"), "../widgetConfigComps/config-codeEditor/index.vue": () => import("./index-CzkuANsf.js"), "../widgetConfigComps/config-datatable/index.vue": () => import("./index-BSGl4Vv9.js"), "../widgetConfigComps/config-date/index.vue": () => import("./index-C0NmmaE2.js"), "../widgetConfigComps/config-div/index.vue": () => import("./index-BAEL_Fhr.js"), "../widgetConfigComps/config-dropdown/index.vue": () => import("./index-BZ_40krq.js"), "../widgetConfigComps/config-echarts/index.vue": () => import("./index-BtabEesn.js"), "../widgetConfigComps/config-editor/index.vue": () => import("./index-CXNYHPLK.js"), "../widgetConfigComps/config-file/index.vue": () => import("./index-nY_E-1Gm.js"), "../widgetConfigComps/config-form/index.vue": () => import("./index-CIaeKFCl.js"), "../widgetConfigComps/config-homepage/index.vue": () => import("./index-CifChfEv.js"), "../widgetConfigComps/config-iframe/index.vue": () => import("./index-BkftF1Ew.js"), "../widgetConfigComps/config-image/index.vue": () => import("./index-dGJDj4ro.js"), "../widgetConfigComps/config-input/index.vue": () => import("./index-kzElMYkk.js"), "../widgetConfigComps/config-modal/index.vue": () => import("./index-CiNAZsvy.js"), "../widgetConfigComps/config-modal2/index.vue": () => import("./index-D7zr1ztZ.js"), "../widgetConfigComps/config-progress/index.vue": () => import("./index-c0zw96Jm.js"), "../widgetConfigComps/config-qrcode/index.vue": () => import("./index-DHjsGntq.js"), "../widgetConfigComps/config-radio/index.vue": () => import("./index-DYFp4hH-.js"), "../widgetConfigComps/config-rate/index.vue": () => import("./index-B0fldwhm.js"), "../widgetConfigComps/config-select/index.vue": () => import("./index-B1b5cejN.js"), "../widgetConfigComps/config-selects/index.vue": () => import("./index-CE0gDB6E.js"), "../widgetConfigComps/config-statistic/index.vue": () => import("./index-ChARClC3.js"), "../widgetConfigComps/config-steps/index.vue": () => import("./index-DMdS11ZQ.js"), "../widgetConfigComps/config-switch/index.vue": () => import("./index-Dag4zSq7.js"), "../widgetConfigComps/config-tag/index.vue": () => import("./index-BkfKMI7z.js"), "../widgetConfigComps/config-text/index.vue": () => import("./index-BYbxnzUx.js"), "../widgetConfigComps/config-time/index.vue": () => import("./index-zkXVDNsL.js"), "../widgetConfigComps/config-timeline/index.vue": () => import("./index-r7iW8fWf.js"), "../widgetConfigComps/config-title/index.vue": () => import("./index-C78PiK5v.js"), "../widgetConfigComps/config-transfer/index.vue": () => import("./index-DQ3y00Pa.js") })).map(([V, L]) => {
|
|
260841
260886
|
const $ = V.match(/\/([^/]+)\/index\.vue$/);
|
|
260842
260887
|
return [$ ? $[1] : null, VKe(L)];
|
|
260843
260888
|
})
|