sun-form-v3 1.0.111 → 1.0.113

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  import { computed as z, ref as x, resolveComponent as p, openBlock as k, createElementBlock as U, Fragment as O, createVNode as e, withCtx as l, createTextVNode as V, unref as u, isRef as J, createElementVNode as m } from "vue";
2
- import { _ as E, c as H } from "./index-jtbWVpP5.js";
2
+ import { _ as E, c as H } from "./index-8UixYqqf.js";
3
3
  const h = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidden" }, T = /* @__PURE__ */ Object.assign({ name: "commonStyleConfig" }, {
4
4
  __name: "dataConfig",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { computed as j, ref as g, onMounted as $, resolveComponent as f, openBlock as v, createElementBlock as h, Fragment as x, createVNode as u, withCtx as o, createTextVNode as C, createElementVNode as a, 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-jtbWVpP5.js";
2
+ import { e as E, i as M } from "./index-8UixYqqf.js";
3
3
  const R = { class: "flex-wrap flex" }, S = ["onClick"], T = { 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" }, z = { class: "lab border-t w-full text-center mt-1 font-bold" }, F = /* @__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-jtbWVpP5.js";
2
+ import { c } from "./index-8UixYqqf.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 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-jtbWVpP5.js";
2
+ import { _ as T } from "./index-8UixYqqf.js";
3
3
  const E = { class: "h-full flex flex-col" }, H = { class: "flex-1 overflow-hidden" }, B = {
4
4
  __name: "dataConfig",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { computed as S, ref as C, resolveComponent as u, openBlock as k, createElementBlock as O, Fragment as U, createVNode as e, withCtx as l, createTextVNode as f, unref as i, isRef as J, createElementVNode as c } from "vue";
2
- import { _ as E } from "./index-jtbWVpP5.js";
2
+ import { _ as E } from "./index-8UixYqqf.js";
3
3
  const H = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidden" }, T = {
4
4
  __name: "dataConfig",
5
5
  props: {
@@ -1,12 +1,12 @@
1
1
  import { ref as x, resolveComponent as m, openBlock as H, createElementBlock as T, Fragment as A, createVNode as e, unref as l, withCtx as a, createTextVNode as b, isRef as L, createElementVNode as V, toDisplayString as k, createCommentVNode as R } from "vue";
2
- import { _ as $ } from "./index-jtbWVpP5.js";
2
+ import { _ as $ } from "./index-8UixYqqf.js";
3
3
  const J = {
4
4
  key: 0,
5
5
  class: "flex h-full flex-col"
6
- }, Q = { class: "flex-1 flex items-center justify-between" }, K = {
6
+ }, Q = { class: "flex-1 flex items-center justify-between" }, q = {
7
7
  key: 0,
8
8
  class: "flex h-full"
9
- }, W = { class: "w-full h-full" }, q = /* @__PURE__ */ Object.assign({ name: "headerTreeConfig" }, {
9
+ }, K = { class: "w-full h-full" }, W = /* @__PURE__ */ Object.assign({ name: "headerTreeConfig" }, {
10
10
  __name: "headerTreeConfig",
11
11
  props: {
12
12
  modelValue: [Object, null],
@@ -16,11 +16,11 @@ const J = {
16
16
  },
17
17
  emits: ["update:modelValue"],
18
18
  setup(N, { emit: t }) {
19
- let _ = N;
20
- _.designer, x(null);
19
+ let y = N;
20
+ y.designer, x(null);
21
21
  let o = x({});
22
- const s = x(JSON.parse(JSON.stringify(_.widget.props.headerTree))), y = x(_.widget.widgetList.filter((r) => r.compType === 2));
23
- JSON.parse(JSON.stringify(y));
22
+ const s = x(JSON.parse(JSON.stringify(y.widget.props.headerTree))), _ = x(y.widget.widgetList.filter((r) => r.compType === 2));
23
+ JSON.parse(JSON.stringify(_));
24
24
  const n = (r, u) => {
25
25
  r.push({
26
26
  id: (/* @__PURE__ */ new Date()).getTime(),
@@ -46,14 +46,14 @@ const J = {
46
46
  }, S = () => {
47
47
  v.value = !1;
48
48
  }, M = () => {
49
- v.value = !1, _.widget.props.headerTree = s.value;
49
+ v.value = !1, y.widget.props.headerTree = s.value;
50
50
  };
51
51
  return (r, u) => {
52
52
  const f = m("el-button"), z = m("el-input"), F = m("el-button-group"), D = m("el-tree"), j = m("vxe-modal"), C = m("vxe-column"), P = m("vxe-table");
53
53
  return H(), T(A, null, [
54
54
  e(f, {
55
55
  plain: "",
56
- type: l(_).widget.props.headerTree.length ? "primary" : "",
56
+ type: l(y).widget.props.headerTree.length ? "primary" : "",
57
57
  icon: "Setting",
58
58
  onClick: I
59
59
  }, {
@@ -191,11 +191,11 @@ const J = {
191
191
  V("span", null, "选择表头", -1)
192
192
  ])),
193
193
  default: a(() => [
194
- l(U) ? (H(), T("div", K, [
195
- V("div", W, [
194
+ l(U) ? (H(), T("div", q, [
195
+ V("div", K, [
196
196
  e(P, {
197
197
  ref: "mainTable",
198
- data: y.value,
198
+ data: _.value,
199
199
  height: "auto",
200
200
  "row-config": { isCurrent: !0, isHover: !0 },
201
201
  onCurrentChange: E,
@@ -275,7 +275,7 @@ const J = {
275
275
  ], 64);
276
276
  };
277
277
  }
278
- }), G = /* @__PURE__ */ $(q, [["__scopeId", "data-v-75dc2686"]]), X = { key: 0 }, h = /* @__PURE__ */ Object.assign({ name: "config-datatable" }, {
278
+ }), G = /* @__PURE__ */ $(W, [["__scopeId", "data-v-75dc2686"]]), X = { key: 0 }, h = /* @__PURE__ */ Object.assign({ name: "config-datatable" }, {
279
279
  __name: "index",
280
280
  props: {
281
281
  designer: {
@@ -289,12 +289,12 @@ const J = {
289
289
  },
290
290
  setup(N) {
291
291
  let t = N;
292
- return (_, o) => {
293
- const s = m("el-option"), y = m("el-select"), n = m("common-label-container"), g = m("el-input"), B = m("el-input-number"), i = m("el-switch");
292
+ return (y, o) => {
293
+ const s = m("el-option"), _ = m("el-select"), n = m("common-label-container"), g = m("el-input"), B = m("el-input-number"), i = m("el-switch");
294
294
  return H(), T(A, null, [
295
295
  e(n, { label: "组件尺寸" }, {
296
296
  default: a(() => [
297
- e(y, {
297
+ e(_, {
298
298
  modelValue: l(t).widget.props.size,
299
299
  "onUpdate:modelValue": o[0] || (o[0] = (d) => l(t).widget.props.size = d)
300
300
  }, {
@@ -392,7 +392,7 @@ const J = {
392
392
  }),
393
393
  e(n, { label: "对齐方式" }, {
394
394
  default: a(() => [
395
- e(y, {
395
+ e(_, {
396
396
  modelValue: l(t).widget.props.align,
397
397
  "onUpdate:modelValue": o[8] || (o[8] = (d) => l(t).widget.props.align = d)
398
398
  }, {
@@ -417,7 +417,7 @@ const J = {
417
417
  }),
418
418
  e(n, { label: "边框" }, {
419
419
  default: a(() => [
420
- e(y, {
420
+ e(_, {
421
421
  modelValue: l(t).widget.props.border,
422
422
  "onUpdate:modelValue": o[9] || (o[9] = (d) => l(t).widget.props.border = d)
423
423
  }, {
@@ -448,11 +448,20 @@ const J = {
448
448
  ]),
449
449
  _: 1
450
450
  }),
451
+ e(n, { label: "是否必填" }, {
452
+ default: a(() => [
453
+ e(i, {
454
+ modelValue: l(t).widget.props.required,
455
+ "onUpdate:modelValue": o[10] || (o[10] = (d) => l(t).widget.props.required = d)
456
+ }, null, 8, ["modelValue"])
457
+ ]),
458
+ _: 1
459
+ }),
451
460
  e(n, { label: "流体高度" }, {
452
461
  default: a(() => [
453
462
  e(i, {
454
463
  modelValue: l(t).widget.props.isNotAuto,
455
- "onUpdate:modelValue": o[10] || (o[10] = (d) => l(t).widget.props.isNotAuto = d)
464
+ "onUpdate:modelValue": o[11] || (o[11] = (d) => l(t).widget.props.isNotAuto = d)
456
465
  }, null, 8, ["modelValue"])
457
466
  ]),
458
467
  _: 1
@@ -461,7 +470,7 @@ const J = {
461
470
  default: a(() => [
462
471
  e(i, {
463
472
  modelValue: l(t).widget.props.singleselect,
464
- "onUpdate:modelValue": o[11] || (o[11] = (d) => l(t).widget.props.singleselect = d)
473
+ "onUpdate:modelValue": o[12] || (o[12] = (d) => l(t).widget.props.singleselect = d)
465
474
  }, null, 8, ["modelValue"])
466
475
  ]),
467
476
  _: 1
@@ -470,7 +479,7 @@ const J = {
470
479
  default: a(() => [
471
480
  e(i, {
472
481
  modelValue: l(t).widget.props.hasPage,
473
- "onUpdate:modelValue": o[12] || (o[12] = (d) => l(t).widget.props.hasPage = d)
482
+ "onUpdate:modelValue": o[13] || (o[13] = (d) => l(t).widget.props.hasPage = d)
474
483
  }, null, 8, ["modelValue"])
475
484
  ]),
476
485
  _: 1
@@ -479,7 +488,7 @@ const J = {
479
488
  default: a(() => [
480
489
  e(i, {
481
490
  modelValue: l(t).widget.props.initLoadData,
482
- "onUpdate:modelValue": o[13] || (o[13] = (d) => l(t).widget.props.initLoadData = d)
491
+ "onUpdate:modelValue": o[14] || (o[14] = (d) => l(t).widget.props.initLoadData = d)
483
492
  }, null, 8, ["modelValue"])
484
493
  ]),
485
494
  _: 1
@@ -488,7 +497,7 @@ const J = {
488
497
  default: a(() => [
489
498
  e(i, {
490
499
  modelValue: l(t).widget.props.showOverFlow,
491
- "onUpdate:modelValue": o[14] || (o[14] = (d) => l(t).widget.props.showOverFlow = d)
500
+ "onUpdate:modelValue": o[15] || (o[15] = (d) => l(t).widget.props.showOverFlow = d)
492
501
  }, null, 8, ["modelValue"])
493
502
  ]),
494
503
  _: 1
@@ -497,7 +506,7 @@ const J = {
497
506
  default: a(() => [
498
507
  e(i, {
499
508
  modelValue: l(t).widget.props.isStripe,
500
- "onUpdate:modelValue": o[15] || (o[15] = (d) => l(t).widget.props.isStripe = d)
509
+ "onUpdate:modelValue": o[16] || (o[16] = (d) => l(t).widget.props.isStripe = d)
501
510
  }, null, 8, ["modelValue"])
502
511
  ]),
503
512
  _: 1
@@ -506,7 +515,7 @@ const J = {
506
515
  default: a(() => [
507
516
  e(i, {
508
517
  modelValue: l(t).widget.props.isHideChoose,
509
- "onUpdate:modelValue": o[16] || (o[16] = (d) => l(t).widget.props.isHideChoose = d)
518
+ "onUpdate:modelValue": o[17] || (o[17] = (d) => l(t).widget.props.isHideChoose = d)
510
519
  }, null, 8, ["modelValue"])
511
520
  ]),
512
521
  _: 1
@@ -515,7 +524,7 @@ const J = {
515
524
  default: a(() => [
516
525
  e(i, {
517
526
  modelValue: l(t).widget.props.hideHandleBtn,
518
- "onUpdate:modelValue": o[17] || (o[17] = (d) => l(t).widget.props.hideHandleBtn = d)
527
+ "onUpdate:modelValue": o[18] || (o[18] = (d) => l(t).widget.props.hideHandleBtn = d)
519
528
  }, null, 8, ["modelValue"])
520
529
  ]),
521
530
  _: 1
@@ -524,7 +533,7 @@ const J = {
524
533
  default: a(() => [
525
534
  e(i, {
526
535
  modelValue: l(t).widget.props.isHideQuery,
527
- "onUpdate:modelValue": o[18] || (o[18] = (d) => l(t).widget.props.isHideQuery = d)
536
+ "onUpdate:modelValue": o[19] || (o[19] = (d) => l(t).widget.props.isHideQuery = d)
528
537
  }, null, 8, ["modelValue"])
529
538
  ]),
530
539
  _: 1
@@ -533,7 +542,7 @@ const J = {
533
542
  default: a(() => [
534
543
  e(i, {
535
544
  modelValue: l(t).widget.props.isHideButton,
536
- "onUpdate:modelValue": o[19] || (o[19] = (d) => l(t).widget.props.isHideButton = d)
545
+ "onUpdate:modelValue": o[20] || (o[20] = (d) => l(t).widget.props.isHideButton = d)
537
546
  }, null, 8, ["modelValue"])
538
547
  ]),
539
548
  _: 1
@@ -542,7 +551,7 @@ const J = {
542
551
  default: a(() => [
543
552
  e(i, {
544
553
  modelValue: l(t).widget.props.isHideIndex,
545
- "onUpdate:modelValue": o[20] || (o[20] = (d) => l(t).widget.props.isHideIndex = d)
554
+ "onUpdate:modelValue": o[21] || (o[21] = (d) => l(t).widget.props.isHideIndex = d)
546
555
  }, null, 8, ["modelValue"])
547
556
  ]),
548
557
  _: 1
@@ -551,7 +560,7 @@ const J = {
551
560
  default: a(() => [
552
561
  e(i, {
553
562
  modelValue: l(t).widget.props.isHideHeader,
554
- "onUpdate:modelValue": o[21] || (o[21] = (d) => l(t).widget.props.isHideHeader = d)
563
+ "onUpdate:modelValue": o[22] || (o[22] = (d) => l(t).widget.props.isHideHeader = d)
555
564
  }, null, 8, ["modelValue"])
556
565
  ]),
557
566
  _: 1
@@ -560,7 +569,7 @@ const J = {
560
569
  default: a(() => [
561
570
  e(i, {
562
571
  modelValue: l(t).widget.props.isHideQueryBtn,
563
- "onUpdate:modelValue": o[22] || (o[22] = (d) => l(t).widget.props.isHideQueryBtn = d)
572
+ "onUpdate:modelValue": o[23] || (o[23] = (d) => l(t).widget.props.isHideQueryBtn = d)
564
573
  }, null, 8, ["modelValue"])
565
574
  ]),
566
575
  _: 1
@@ -569,7 +578,7 @@ const J = {
569
578
  default: a(() => [
570
579
  e(i, {
571
580
  modelValue: l(t).widget.props.isHideResetBtn,
572
- "onUpdate:modelValue": o[23] || (o[23] = (d) => l(t).widget.props.isHideResetBtn = d)
581
+ "onUpdate:modelValue": o[24] || (o[24] = (d) => l(t).widget.props.isHideResetBtn = d)
573
582
  }, null, 8, ["modelValue"])
574
583
  ]),
575
584
  _: 1
@@ -578,7 +587,7 @@ const J = {
578
587
  default: a(() => [
579
588
  e(i, {
580
589
  modelValue: l(t).widget.props.treeMode,
581
- "onUpdate:modelValue": o[24] || (o[24] = (d) => l(t).widget.props.treeMode = d)
590
+ "onUpdate:modelValue": o[25] || (o[25] = (d) => l(t).widget.props.treeMode = d)
582
591
  }, null, 8, ["modelValue"])
583
592
  ]),
584
593
  _: 1
@@ -588,7 +597,7 @@ const J = {
588
597
  default: a(() => [
589
598
  e(g, {
590
599
  modelValue: l(t).widget.props.treeRowField,
591
- "onUpdate:modelValue": o[25] || (o[25] = (d) => l(t).widget.props.treeRowField = d),
600
+ "onUpdate:modelValue": o[26] || (o[26] = (d) => l(t).widget.props.treeRowField = d),
592
601
  placeholder: "本级树节点"
593
602
  }, null, 8, ["modelValue"])
594
603
  ]),
@@ -598,7 +607,7 @@ const J = {
598
607
  default: a(() => [
599
608
  e(g, {
600
609
  modelValue: l(t).widget.props.treeParentField,
601
- "onUpdate:modelValue": o[26] || (o[26] = (d) => l(t).widget.props.treeParentField = d),
610
+ "onUpdate:modelValue": o[27] || (o[27] = (d) => l(t).widget.props.treeParentField = d),
602
611
  placeholder: "父级树节点"
603
612
  }, null, 8, ["modelValue"])
604
613
  ]),
@@ -608,7 +617,7 @@ const J = {
608
617
  default: a(() => [
609
618
  e(g, {
610
619
  modelValue: l(t).widget.props.treeChildrenField,
611
- "onUpdate:modelValue": o[27] || (o[27] = (d) => l(t).widget.props.treeChildrenField = d),
620
+ "onUpdate:modelValue": o[28] || (o[28] = (d) => l(t).widget.props.treeChildrenField = d),
612
621
  placeholder: "树子节点容器"
613
622
  }, null, 8, ["modelValue"])
614
623
  ]),
@@ -618,7 +627,7 @@ const J = {
618
627
  default: a(() => [
619
628
  e(i, {
620
629
  modelValue: l(t).widget.props.treeTransform,
621
- "onUpdate:modelValue": o[28] || (o[28] = (d) => l(t).widget.props.treeTransform = d)
630
+ "onUpdate:modelValue": o[29] || (o[29] = (d) => l(t).widget.props.treeTransform = d)
622
631
  }, null, 8, ["modelValue"])
623
632
  ]),
624
633
  _: 1
@@ -627,7 +636,7 @@ const J = {
627
636
  default: a(() => [
628
637
  e(i, {
629
638
  modelValue: l(t).widget.props.treeExpandAll,
630
- "onUpdate:modelValue": o[29] || (o[29] = (d) => l(t).widget.props.treeExpandAll = d)
639
+ "onUpdate:modelValue": o[30] || (o[30] = (d) => l(t).widget.props.treeExpandAll = d)
631
640
  }, null, 8, ["modelValue"])
632
641
  ]),
633
642
  _: 1
@@ -636,7 +645,7 @@ const J = {
636
645
  default: a(() => [
637
646
  e(i, {
638
647
  modelValue: l(t).widget.props.treeAccordion,
639
- "onUpdate:modelValue": o[30] || (o[30] = (d) => l(t).widget.props.treeAccordion = d)
648
+ "onUpdate:modelValue": o[31] || (o[31] = (d) => l(t).widget.props.treeAccordion = d)
640
649
  }, null, 8, ["modelValue"])
641
650
  ]),
642
651
  _: 1
@@ -645,7 +654,7 @@ const J = {
645
654
  default: a(() => [
646
655
  e(i, {
647
656
  modelValue: l(t).widget.props.isLine,
648
- "onUpdate:modelValue": o[31] || (o[31] = (d) => l(t).widget.props.isLine = d)
657
+ "onUpdate:modelValue": o[32] || (o[32] = (d) => l(t).widget.props.isLine = d)
649
658
  }, null, 8, ["modelValue"])
650
659
  ]),
651
660
  _: 1
@@ -654,7 +663,7 @@ const J = {
654
663
  default: a(() => [
655
664
  e(i, {
656
665
  modelValue: l(t).widget.props.isLine,
657
- "onUpdate:modelValue": o[32] || (o[32] = (d) => l(t).widget.props.isLine = d)
666
+ "onUpdate:modelValue": o[33] || (o[33] = (d) => l(t).widget.props.isLine = d)
658
667
  }, null, 8, ["modelValue"])
659
668
  ]),
660
669
  _: 1