sun-form-v3 1.0.192 → 1.0.193

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,5 +1,5 @@
1
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-t9owy5ix.js";
2
+ import { _ as T } from "./index-DDpbQHSl.js";
3
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 = {
4
4
  __name: "dataConfig",
5
5
  props: {
@@ -1,4 +1,4 @@
1
- import { resolveComponent as u, openBlock as r, createElementBlock as b, Fragment as g, createVNode as e, withCtx as a, unref as t } from "vue";
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 (V, o) => {
17
- const s = u("el-option"), m = u("el-select"), n = u("common-label-container"), p = u("el-switch");
18
- return r(), b(g, null, [
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(m, {
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(p, {
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(p, {
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(p, {
73
+ e(u, {
65
74
  modelValue: t(l).widget.props.required,
66
- "onUpdate:modelValue": o[3] || (o[3] = (d) => t(l).widget.props.required = d)
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(p, {
82
+ e(u, {
74
83
  modelValue: t(l).widget.props.disabled,
75
- "onUpdate:modelValue": o[4] || (o[4] = (d) => t(l).widget.props.disabled = d)
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 { 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-t9owy5ix.js";
2
+ import { _ as E, c as H } from "./index-DDpbQHSl.js";
3
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: {
@@ -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-t9owy5ix.js";
2
+ import { _ as Q } from "./index-DDpbQHSl.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
- import { resolveComponent as u, openBlock as g, createElementBlock as w, Fragment as b, createVNode as e, withCtx as d, unref as t } from "vue";
2
- const c = /* @__PURE__ */ Object.assign({ name: "config-selects" }, {
1
+ import { resolveComponent as n, openBlock as g, createElementBlock as w, Fragment as b, createVNode as e, withCtx as d, unref as t } from "vue";
2
+ const U = /* @__PURE__ */ Object.assign({ name: "config-selects" }, {
3
3
  __name: "index",
4
4
  props: {
5
5
  designer: {
@@ -14,7 +14,7 @@ const c = /* @__PURE__ */ Object.assign({ name: "config-selects" }, {
14
14
  setup(m) {
15
15
  let l = m;
16
16
  return (f, o) => {
17
- const s = u("el-option"), r = u("el-select"), p = u("common-label-container"), i = u("el-input-number"), V = u("el-input"), n = u("el-switch");
17
+ const s = n("el-option"), r = n("el-select"), p = n("common-label-container"), i = n("el-input-number"), V = n("el-input"), u = n("el-switch");
18
18
  return g(), w(b, null, [
19
19
  e(p, { label: "组件尺寸" }, {
20
20
  default: d(() => [
@@ -79,7 +79,7 @@ const c = /* @__PURE__ */ Object.assign({ name: "config-selects" }, {
79
79
  }),
80
80
  e(p, { label: "下拉显示值" }, {
81
81
  default: d(() => [
82
- e(n, {
82
+ e(u, {
83
83
  modelValue: t(l).widget.props.showKeyValue,
84
84
  "onUpdate:modelValue": o[4] || (o[4] = (a) => t(l).widget.props.showKeyValue = a)
85
85
  }, null, 8, ["modelValue"])
@@ -88,36 +88,45 @@ const c = /* @__PURE__ */ Object.assign({ name: "config-selects" }, {
88
88
  }),
89
89
  e(p, { label: "显示值反转" }, {
90
90
  default: d(() => [
91
- e(n, {
91
+ e(u, {
92
92
  modelValue: t(l).widget.props.keyValueReverse,
93
93
  "onUpdate:modelValue": o[5] || (o[5] = (a) => t(l).widget.props.keyValueReverse = a)
94
94
  }, null, 8, ["modelValue"])
95
95
  ]),
96
96
  _: 1
97
97
  }),
98
+ e(p, { label: "值为字符串" }, {
99
+ default: d(() => [
100
+ e(u, {
101
+ modelValue: t(l).widget.props.valueAsString,
102
+ "onUpdate:modelValue": o[6] || (o[6] = (a) => t(l).widget.props.valueAsString = a)
103
+ }, null, 8, ["modelValue"])
104
+ ]),
105
+ _: 1
106
+ }),
98
107
  e(p, { label: "是否必填" }, {
99
108
  default: d(() => [
100
- e(n, {
109
+ e(u, {
101
110
  modelValue: t(l).widget.props.required,
102
- "onUpdate:modelValue": o[6] || (o[6] = (a) => t(l).widget.props.required = a)
111
+ "onUpdate:modelValue": o[7] || (o[7] = (a) => t(l).widget.props.required = a)
103
112
  }, null, 8, ["modelValue"])
104
113
  ]),
105
114
  _: 1
106
115
  }),
107
116
  e(p, { label: "是否可清除" }, {
108
117
  default: d(() => [
109
- e(n, {
118
+ e(u, {
110
119
  modelValue: t(l).widget.props.clearable,
111
- "onUpdate:modelValue": o[7] || (o[7] = (a) => t(l).widget.props.clearable = a)
120
+ "onUpdate:modelValue": o[8] || (o[8] = (a) => t(l).widget.props.clearable = a)
112
121
  }, null, 8, ["modelValue"])
113
122
  ]),
114
123
  _: 1
115
124
  }),
116
125
  e(p, { label: "是否禁用" }, {
117
126
  default: d(() => [
118
- e(n, {
127
+ e(u, {
119
128
  modelValue: t(l).widget.props.disabled,
120
- "onUpdate:modelValue": o[8] || (o[8] = (a) => t(l).widget.props.disabled = a)
129
+ "onUpdate:modelValue": o[9] || (o[9] = (a) => t(l).widget.props.disabled = a)
121
130
  }, null, 8, ["modelValue"])
122
131
  ]),
123
132
  _: 1
@@ -127,5 +136,5 @@ const c = /* @__PURE__ */ Object.assign({ name: "config-selects" }, {
127
136
  }
128
137
  });
129
138
  export {
130
- c as default
139
+ U as default
131
140
  };
@@ -1,5 +1,5 @@
1
1
  import { computed as N, ref as y, resolveComponent as i, openBlock as C, createElementBlock as k, Fragment as O, createVNode as e, withCtx as l, createTextVNode as m, unref as d, isRef as j, createElementVNode as _, pushScopeId as I, popScopeId as J } from "vue";
2
- import { _ as E } from "./index-t9owy5ix.js";
2
+ import { _ as E } from "./index-DDpbQHSl.js";
3
3
  const H = (p) => (I("data-v-4c8b2df2"), p = p(), J(), p), B = /* @__PURE__ */ H(() => /* @__PURE__ */ _("span", null, "数据配置", -1)), T = { class: "h-full flex flex-col" }, D = { class: "flex-1 overflow-hidden" }, F = {
4
4
  __name: "dataConfig",
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.isTableItem ? i("update:modelValue", l) : a.value.value = l;
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: () => a.value.isTableItem ? r.modelValue === void 0 ? a.value.value : r.modelValue : a.value.value
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
- label: "选项1",
101423
- value: "1"
101424
- }, {
101425
- label: "选项2",
101426
- value: "2"
101427
- }, {
101428
- label: "选项3",
101429
- value: "3"
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
- title: "同比",
101542
- value: 100,
101543
- key: "a",
101544
- unit: "%"
101545
- }, {
101546
- title: "环比",
101547
- value: 100,
101548
- key: "b",
101549
- unit: "元"
101550
- }, {
101551
- title: "周同比",
101552
- value: 100,
101553
- key: "c",
101554
- unit: "美元"
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
- title: "数据填写",
101629
- description: "步骤条描述"
101630
- }, {
101631
- title: "初审",
101632
- description: "步骤条描述"
101633
- }, {
101634
- title: "复审",
101635
- description: "步骤条描述"
101636
- }, {
101637
- title: "终审",
101638
- description: "步骤条描述"
101639
- }, {
101640
- title: "完成",
101641
- description: "步骤条描述"
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
- time: "2024-04-05",
101668
- title: "数据填写",
101669
- description: "时间线详细内容描述"
101670
- }, {
101671
- time: "2024-04-06",
101672
- title: "初审",
101673
- description: "时间线详细内容描述"
101674
- }, {
101675
- time: "2024-04-07",
101676
- title: "复审",
101677
- description: "时间线详细内容描述"
101678
- }, {
101679
- time: "2024-04-08",
101680
- title: "终审",
101681
- description: "时间线详细内容描述"
101682
- }, {
101683
- time: "2024-04-09",
101684
- title: "完成",
101685
- description: "时间线详细内容描述"
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
- label: "菜单项1",
101749
- value: "1",
101750
- disabled: !1,
101751
- divided: !1
101752
- }, {
101753
- label: "菜单项2",
101754
- value: "2",
101755
- disabled: !1,
101756
- divided: !1
101757
- }, {
101758
- label: "菜单项3",
101759
- value: "3",
101760
- disabled: !1,
101761
- divided: !0
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-d648f56c"), t = t(), _1(), t), pUt = {
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(x.value.values());
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((vt) => !pn.includes(vt)), l(), E.value++);
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, y.value = Ht[u.value.count];
103669
- const vt = Ht[u.value.rows] || [];
103670
- o.value = vt, s.value = vt, qt(() => {
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.isDetail ? (oe(), Re("div", pUt, [
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.isDetail ? (oe(), Re("div", hUt, [
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-d648f56c"]]);
104131
+ }), SUt = /* @__PURE__ */ Nu(bUt, [["__scopeId", "data-v-b8d880ea"]]);
104095
104132
  /**!
104096
104133
  * Sortable 1.15.6
104097
104134
  * @author RubaXa <trash@rubaxa.org>
@@ -176072,7 +176109,11 @@ const xdn = {
176072
176109
  "app",
176073
176110
  a.value.onTableFormat
176074
176111
  )(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 ? i("update:modelValue", null) : a.value.value = null, r.designer.$message.warning(
176112
+ 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(() => {
176113
+ i("update:modelValue", null);
176114
+ }, 500) : setTimeout(() => {
176115
+ a.value.value = null;
176116
+ }, 500), r.designer.$message.warning(
176076
176117
  a.value.validate + "校验失败,请重新输入"
176077
176118
  ))), r.designer.eventHandle({
176078
176119
  eventType: "onChange",
@@ -176168,7 +176209,7 @@ const xdn = {
176168
176209
  }, 8, ["props"]);
176169
176210
  };
176170
176211
  }
176171
- }), $dn = /* @__PURE__ */ Nu(Vdn, [["__scopeId", "data-v-5a061d55"]]), Udn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
176212
+ }), $dn = /* @__PURE__ */ Nu(Vdn, [["__scopeId", "data-v-68986f5d"]]), Udn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
176172
176213
  __proto__: null,
176173
176214
  default: $dn
176174
176215
  }, 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 +178366,13 @@ const Zpn = /* @__PURE__ */ Object.assign({ name: "widget-qrcode" }, {
178325
178366
  let a = ve(() => r.widget.props);
178326
178367
  const o = ve({
178327
178368
  set: (c) => {
178328
- a.value.isTableItem ? i("update:modelValue", c) : a.value.value = c;
178369
+ const u = a.value.valueAsString && Array.isArray(c) ? c.join(",") : c;
178370
+ a.value.isTableItem ? i("update:modelValue", u) : a.value.value = u;
178329
178371
  },
178330
- get: () => a.value.isTableItem ? r.modelValue === void 0 ? a.value.value : r.modelValue : a.value.value
178372
+ get: () => {
178373
+ let c;
178374
+ 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] : [];
178375
+ }
178331
178376
  }), s = ve(() => a.value.isTableItem && a.value.onTableFormat && r.designer.showMode ? new Function(
178332
178377
  "value",
178333
178378
  "widget",
@@ -184591,15 +184636,18 @@ class cHe {
184591
184636
  checkWidgetListRequiredById(e) {
184592
184637
  let n = !0, r = [];
184593
184638
  const i = (a) => {
184594
- a.forEach((o) => {
184595
- o.isContainer && o.props.hide || (o.props.zdname && o.isForm && !o.props.hide && (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.zdname && o.type === "file" && !o.props.hide && 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((s) => {
184639
+ console.log(a), a.forEach((o) => {
184640
+ o.isContainer && o.props.hide || (o.props.zdname && o.isForm && !o.props.hide && (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" && !o.props.hide && 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((s) => {
184596
184641
  o.props.value.forEach((l) => {
184597
- l.hasOwnProperty(s.props.zdname) && s.props.required && !s.props.hide && (l[s.props.zdname] === null || l[s.props.zdname] === "" || l[s.props.zdname] === void 0 || JSON.stringify(l[s.props.zdname]) == "[]") && (r.includes(s.props.label) || r.push(s.props.label), n = !1);
184642
+ if (l.hasOwnProperty(s.props.zdname) && s.props.required && !s.props.hide && (l[s.props.zdname] === null || l[s.props.zdname] === "" || l[s.props.zdname] === void 0 || JSON.stringify(l[s.props.zdname]) == "[]") && (r.includes(s.props.label + "不能为空") || r.push(s.props.label + "不能为空"), n = !1), l.hasOwnProperty(s.props.zdname) && s.props.validate && !s.props.hide) {
184643
+ let c = l[s.props.zdname];
184644
+ c !== null && c !== "" && c !== void 0 && (this.validateInput(s.props.validate, c) || (r.includes(s.props.label + "格式不正确") || r.push(s.props.label + "格式不正确"), n = !1));
184645
+ }
184598
184646
  });
184599
184647
  }), o.widgetList && o.widgetList.length && o.type != "datatable" && i(o.widgetList));
184600
184648
  });
184601
184649
  };
184602
- return i(this.getWidgetById(e).widgetList), r.length && this.$message.warning(r[0] + "不能为空"), n;
184650
+ return i(this.getWidgetById(e).widgetList), r.length && this.$message.warning(r[0]), n;
184603
184651
  }
184604
184652
  getWidgetListResultById(e) {
184605
184653
  let n = {};
@@ -256353,7 +256401,7 @@ const a8n = { key: 1 }, o8n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
256353
256401
  "element-plus": D8t,
256354
256402
  "@element-plus/icons-vue": h1t,
256355
256403
  echarts: Fcn,
256356
- "echarts-gl": () => import("./index-JnHs7PZ4.js")
256404
+ "echarts-gl": () => import("./index-DyMlsLMs.js")
256357
256405
  },
256358
256406
  async getFile(d) {
256359
256407
  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();
@@ -260837,7 +260885,7 @@ const a8n = { key: 1 }, o8n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
260837
260885
  },
260838
260886
  setup(t) {
260839
260887
  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-DM5DPltp.js"), "../widgetConfigComps/config-codeEditor/index.vue": () => import("./index-CzkuANsf.js"), "../widgetConfigComps/config-datatable/index.vue": () => import("./index-D6DipB2R.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-BoS6_PQt.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-CZZfzYn7.js"), "../widgetConfigComps/config-statistic/index.vue": () => import("./index-2xVS8z0w.js"), "../widgetConfigComps/config-steps/index.vue": () => import("./index-BHLrHcnL.js"), "../widgetConfigComps/config-switch/index.vue": () => import("./index-Dag4zSq7.js"), "../widgetConfigComps/config-tag/index.vue": () => import("./index-CqGhylH7.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-CV2zl3zV.js"), "../widgetConfigComps/config-title/index.vue": () => import("./index-C78PiK5v.js"), "../widgetConfigComps/config-transfer/index.vue": () => import("./index-DQ3y00Pa.js") })).map(([V, L]) => {
260888
+ 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-C-mnAALF.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-N1g1Zm6p.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-BMf9YpSm.js"), "../widgetConfigComps/config-steps/index.vue": () => import("./index-DBcnAIDk.js"), "../widgetConfigComps/config-switch/index.vue": () => import("./index-Dag4zSq7.js"), "../widgetConfigComps/config-tag/index.vue": () => import("./index-n6CXtJq6.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-4OUDg-2l.js"), "../widgetConfigComps/config-title/index.vue": () => import("./index-C78PiK5v.js"), "../widgetConfigComps/config-transfer/index.vue": () => import("./index-DQ3y00Pa.js") })).map(([V, L]) => {
260841
260889
  const $ = V.match(/\/([^/]+)\/index\.vue$/);
260842
260890
  return [$ ? $[1] : null, VKe(L)];
260843
260891
  })
@@ -0,0 +1 @@
1
+ import "./index-DDpbQHSl.js";
@@ -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-t9owy5ix.js";
2
+ import { e as E, i as M } from "./index-DDpbQHSl.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: {
@@ -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-t9owy5ix.js";
2
+ import { c } from "./index-DDpbQHSl.js";
3
3
  const k = /* @__PURE__ */ Object.assign({ name: "config-text" }, {
4
4
  __name: "index",
5
5
  props: {