form-design-v3 1.0.2 → 1.0.4

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.
@@ -518,7 +518,7 @@ const Mt = {
518
518
  children: []
519
519
  }),
520
520
  serialize: (e) => e
521
- }, sn = { class: "fd-slot-design" }, ln = { class: "fd-slot-name" }, an = { class: "fd-slot-hint" }, dn = /* @__PURE__ */ L({
521
+ }, sn = { class: "fd-slot-design" }, ln = { class: "fd-slot-hint" }, an = /* @__PURE__ */ L({
522
522
  __name: "SlotDesign",
523
523
  props: {
524
524
  node: {}
@@ -526,14 +526,13 @@ const Mt = {
526
526
  setup(e) {
527
527
  return (n, o) => (d(), c("div", sn, [
528
528
  o[0] || (o[0] = t("span", { class: "fd-slot-tag" }, "插槽", -1)),
529
- t("span", ln, y(e.node.slotName || "未命名插槽"), 1),
530
- t("span", an, "宿主注入:" + y(e.node.slotName), 1)
529
+ t("span", ln, "宿主注入:" + y(e.node.slotName), 1)
531
530
  ]));
532
531
  }
533
- }), rn = /* @__PURE__ */ E(dn, [["__scopeId", "data-v-d3fbc11d"]]), un = {
532
+ }), dn = /* @__PURE__ */ E(an, [["__scopeId", "data-v-0e269d0e"]]), rn = {
534
533
  key: 0,
535
534
  class: "fd-slot-render"
536
- }, cn = { class: "fd-slot-missing" }, fn = /* @__PURE__ */ L({
535
+ }, un = { class: "fd-slot-missing" }, cn = /* @__PURE__ */ L({
537
536
  __name: "SlotRender",
538
537
  props: {
539
538
  node: {},
@@ -544,19 +543,19 @@ const Mt = {
544
543
  setup(e) {
545
544
  return (n, o) => {
546
545
  var s;
547
- return h(Te)(e.node.hiddenMode, (s = e.formData) == null ? void 0 : s.status) ? I("", !0) : (d(), c("div", un, [
546
+ return h(Te)(e.node.hiddenMode, (s = e.formData) == null ? void 0 : s.status) ? I("", !0) : (d(), c("div", rn, [
548
547
  Q(n.$slots, e.node.slotName, {
549
548
  node: e.node,
550
549
  formData: e.formData,
551
550
  mode: e.mode,
552
551
  formId: e.formId
553
552
  }, () => [
554
- t("div", cn, "未注入插槽:" + y(e.node.slotName), 1)
553
+ t("div", un, "未注入插槽:" + y(e.node.slotName), 1)
555
554
  ], !0)
556
555
  ]));
557
556
  };
558
557
  }
559
- }), mn = /* @__PURE__ */ E(fn, [["__scopeId", "data-v-10795159"]]), pn = { class: "fd-panel" }, vn = { class: "fd-panel-item" }, bn = ["value"], gn = { class: "fd-panel-item" }, hn = { class: "fd-panel-item" }, yn = ["value"], kn = /* @__PURE__ */ L({
558
+ }), fn = /* @__PURE__ */ E(cn, [["__scopeId", "data-v-10795159"]]), mn = { class: "fd-panel" }, pn = { class: "fd-panel-item" }, vn = ["value"], bn = { class: "fd-panel-item" }, gn = { class: "fd-panel-item" }, hn = ["value"], yn = /* @__PURE__ */ L({
560
559
  __name: "SlotPanel",
561
560
  props: {
562
561
  node: {},
@@ -594,15 +593,15 @@ const Mt = {
594
593
  const v = f ?? "";
595
594
  v && !r.value.includes(v) && i.value.push(v), o("update", { slotName: v });
596
595
  }
597
- return (f, v) => (d(), c("div", pn, [
598
- t("div", vn, [
596
+ return (f, v) => (d(), c("div", mn, [
597
+ t("div", pn, [
599
598
  v[2] || (v[2] = t("label", null, "标题", -1)),
600
599
  t("input", {
601
600
  value: e.node.label,
602
601
  onInput: v[0] || (v[0] = (k) => o("update", { label: k.target.value }))
603
- }, null, 40, bn)
602
+ }, null, 40, vn)
604
603
  ]),
605
- t("div", gn, [
604
+ t("div", bn, [
606
605
  v[3] || (v[3] = t("label", null, "插槽名", -1)),
607
606
  F(h(re), {
608
607
  "model-value": e.node.slotName,
@@ -624,7 +623,7 @@ const Mt = {
624
623
  _: 1
625
624
  }, 8, ["model-value"])
626
625
  ]),
627
- t("div", hn, [
626
+ t("div", gn, [
628
627
  v[5] || (v[5] = t("label", null, "是否隐藏", -1)),
629
628
  t("select", {
630
629
  value: e.node.hiddenMode || "none",
@@ -634,16 +633,16 @@ const Mt = {
634
633
  t("option", { value: "start" }, "发起时隐藏", -1),
635
634
  t("option", { value: "not-start" }, "非发起时隐藏", -1),
636
635
  t("option", { value: "not-approval" }, "非审批时隐藏", -1)
637
- ])], 40, yn)
636
+ ])], 40, hn)
638
637
  ])
639
638
  ]));
640
639
  }
641
- }), wn = /* @__PURE__ */ E(kn, [["__scopeId", "data-v-dfae47c6"]]), $n = {
640
+ }), kn = /* @__PURE__ */ E(yn, [["__scopeId", "data-v-dfae47c6"]]), wn = {
642
641
  type: "slot",
643
642
  title: "插槽",
644
- design: rn,
645
- render: mn,
646
- panel: wn,
643
+ design: dn,
644
+ render: fn,
645
+ panel: kn,
647
646
  isContainer: !1,
648
647
  createDefaultProps: () => ({
649
648
  id: "",
@@ -655,34 +654,34 @@ const Mt = {
655
654
  hiddenMode: "none"
656
655
  }),
657
656
  serialize: (e) => e
658
- }, xn = { class: "fd-st-design" }, Cn = {
657
+ }, $n = { class: "fd-st-design" }, xn = {
659
658
  key: 0,
660
659
  class: "fd-st-table-wrap"
661
- }, _n = { class: "fd-st-table" }, In = {
660
+ }, Cn = { class: "fd-st-table" }, _n = {
662
661
  key: 0,
663
662
  class: "fd-st-seq"
664
- }, Dn = {
663
+ }, In = {
665
664
  key: 0,
666
665
  class: "fd-st-seq"
667
- }, Sn = {
666
+ }, Dn = {
668
667
  key: 1,
669
668
  class: "fd-st-cards"
670
- }, Tn = { class: "fd-st-card" }, Fn = { class: "fd-st-card-label" }, Ln = {
669
+ }, Sn = { class: "fd-st-card" }, Tn = { class: "fd-st-card-label" }, Fn = {
671
670
  key: 0,
672
671
  class: "fd-st-cards-empty"
673
- }, Mn = /* @__PURE__ */ L({
672
+ }, Ln = /* @__PURE__ */ L({
674
673
  __name: "SubtableDesign",
675
674
  props: {
676
675
  node: {}
677
676
  },
678
677
  setup(e) {
679
678
  const n = e, o = M(() => n.node.tablestyle !== "cards");
680
- return (s, a) => (d(), c("div", xn, [
681
- o.value ? (d(), c("div", Cn, [
682
- t("table", _n, [
679
+ return (s, a) => (d(), c("div", $n, [
680
+ o.value ? (d(), c("div", xn, [
681
+ t("table", Cn, [
683
682
  t("thead", null, [
684
683
  t("tr", null, [
685
- e.node.secondtableindex === "1" ? (d(), c("th", In, "序号")) : I("", !0),
684
+ e.node.secondtableindex === "1" ? (d(), c("th", _n, "序号")) : I("", !0),
686
685
  (d(!0), c(T, null, N(e.node.colnums.filter((i) => i.isshow === 1), (i) => (d(), c("th", {
687
686
  key: i.name,
688
687
  style: G({ width: i.showwidth || void 0 })
@@ -691,7 +690,7 @@ const Mt = {
691
690
  ]),
692
691
  t("tbody", null, [
693
692
  t("tr", null, [
694
- e.node.secondtableindex === "1" ? (d(), c("td", Dn, "1")) : I("", !0),
693
+ e.node.secondtableindex === "1" ? (d(), c("td", In, "1")) : I("", !0),
695
694
  (d(!0), c(T, null, N(e.node.colnums.filter((i) => i.isshow === 1), (i) => (d(), c("td", {
696
695
  key: i.name,
697
696
  class: R(["fd-st-cell", { "fd-st-cell--link": !!i.bindLink }])
@@ -699,47 +698,47 @@ const Mt = {
699
698
  ])
700
699
  ])
701
700
  ])
702
- ])) : (d(), c("div", Sn, [
703
- t("div", Tn, [
701
+ ])) : (d(), c("div", Dn, [
702
+ t("div", Sn, [
704
703
  (d(!0), c(T, null, N(e.node.colnums.filter((i) => i.isshow === 1), (i) => (d(), c("div", {
705
704
  key: i.name,
706
705
  class: "fd-st-card-row"
707
706
  }, [
708
- t("span", Fn, y(i.showname || i.major), 1),
707
+ t("span", Tn, y(i.showname || i.major), 1),
709
708
  t("span", {
710
709
  class: R(["fd-st-card-value", { "fd-st-card-value--link": !!i.bindLink }])
711
710
  }, y(i.name), 3)
712
711
  ]))), 128))
713
712
  ]),
714
- e.node.colnums.filter((i) => i.isshow === 1).length === 0 ? (d(), c("div", Ln, " 暂无列配置 ")) : I("", !0)
713
+ e.node.colnums.filter((i) => i.isshow === 1).length === 0 ? (d(), c("div", Fn, " 暂无列配置 ")) : I("", !0)
715
714
  ]))
716
715
  ]));
717
716
  }
718
- }), Nn = /* @__PURE__ */ E(Mn, [["__scopeId", "data-v-aba8caec"]]), En = ["subtable-key"], Pn = {
717
+ }), Mn = /* @__PURE__ */ E(Ln, [["__scopeId", "data-v-aba8caec"]]), Nn = ["subtable-key"], En = {
719
718
  key: 0,
720
719
  class: "fd-st-table-wrap"
721
- }, On = { class: "fd-st-table" }, Un = {
720
+ }, Pn = { class: "fd-st-table" }, On = {
722
721
  key: 0,
723
722
  class: "fd-st-seq"
724
- }, Bn = ["subtable-val"], Vn = {
723
+ }, Un = ["subtable-val"], Bn = {
725
724
  key: 1,
726
725
  class: "fd-st-op"
727
- }, jn = {
726
+ }, Vn = {
728
727
  key: 0,
729
728
  class: "fd-st-seq"
730
- }, Rn = ["rowspan", "subtable-val"], An = ["href"], zn = {
729
+ }, jn = ["rowspan", "subtable-val"], Rn = ["href"], An = {
731
730
  key: 1,
732
731
  class: "fd-st-op"
733
- }, Jn = ["onClick"], Wn = { key: 0 }, Hn = ["colspan"], qn = {
732
+ }, zn = ["onClick"], Jn = { key: 0 }, Wn = ["colspan"], Hn = {
734
733
  key: 1,
735
734
  class: "fd-st-cards"
736
- }, Gn = { class: "fd-st-card-label" }, Yn = ["subtable-val"], Kn = ["href"], Qn = {
735
+ }, qn = { class: "fd-st-card-label" }, Gn = ["subtable-val"], Yn = ["href"], Kn = {
737
736
  key: 0,
738
737
  class: "fd-st-card-actions"
739
- }, Xn = ["onClick"], Zn = {
738
+ }, Qn = ["onClick"], Xn = {
740
739
  key: 0,
741
740
  class: "fd-st-cards-empty"
742
- }, eo = /* @__PURE__ */ L({
741
+ }, Zn = /* @__PURE__ */ L({
743
742
  __name: "SubtableRender",
744
743
  props: {
745
744
  node: {},
@@ -792,22 +791,22 @@ const Mt = {
792
791
  class: "fd-st-render",
793
792
  "subtable-key": e.node.secondtable
794
793
  }, [
795
- u.value ? (d(), c("div", Pn, [
796
- t("table", On, [
794
+ u.value ? (d(), c("div", En, [
795
+ t("table", Pn, [
797
796
  t("thead", null, [
798
797
  t("tr", null, [
799
- e.node.secondtableindex === "1" ? (d(), c("th", Un, "序号")) : I("", !0),
798
+ e.node.secondtableindex === "1" ? (d(), c("th", On, "序号")) : I("", !0),
800
799
  (d(!0), c(T, null, N(o.value, (m) => (d(), c("th", {
801
800
  key: m.name,
802
801
  "subtable-val": m.name,
803
802
  style: G({ width: m.showwidth || void 0, textAlign: m.align || "left" })
804
- }, y(m.showname || m.major || m.name), 13, Bn))), 128)),
805
- s.value ? I("", !0) : (d(), c("th", Vn, "操作"))
803
+ }, y(m.showname || m.major || m.name), 13, Un))), 128)),
804
+ s.value ? I("", !0) : (d(), c("th", Bn, "操作"))
806
805
  ])
807
806
  ]),
808
807
  t("tbody", null, [
809
808
  (d(!0), c(T, null, N(a.value, (m, g) => (d(), c("tr", { key: g }, [
810
- e.node.secondtableindex === "1" ? (d(), c("td", jn, y(g + 1), 1)) : I("", !0),
809
+ e.node.secondtableindex === "1" ? (d(), c("td", Vn, y(g + 1), 1)) : I("", !0),
811
810
  (d(!0), c(T, null, N(o.value, ($, B) => (d(), c(T, {
812
811
  key: $.name
813
812
  }, [
@@ -823,27 +822,27 @@ const Mt = {
823
822
  href: v($, m),
824
823
  target: "_blank",
825
824
  rel: "noopener noreferrer"
826
- }, y(f(m, $.name)), 9, An)) : (d(), c(T, { key: 1 }, [
825
+ }, y(f(m, $.name)), 9, Rn)) : (d(), c(T, { key: 1 }, [
827
826
  U(y(f(m, $.name)), 1)
828
827
  ], 64))
829
- ], 12, Rn))
828
+ ], 12, jn))
830
829
  ], 64))), 128)),
831
- s.value ? I("", !0) : (d(), c("td", zn, [
830
+ s.value ? I("", !0) : (d(), c("td", An, [
832
831
  t("button", {
833
832
  class: "fd-btn fd-btn--danger",
834
833
  onClick: ($) => l(g)
835
- }, "删除", 8, Jn)
834
+ }, "删除", 8, zn)
836
835
  ]))
837
836
  ]))), 128)),
838
- a.value.length === 0 ? (d(), c("tr", Wn, [
837
+ a.value.length === 0 ? (d(), c("tr", Jn, [
839
838
  t("td", {
840
839
  colspan: o.value.length + (e.node.secondtableindex === "1" ? 1 : 0) + (s.value ? 0 : 1),
841
840
  class: "fd-st-empty"
842
- }, y(e.node.nodatatitle === "1" ? "暂无数据" : ""), 9, Hn)
841
+ }, y(e.node.nodatatitle === "1" ? "暂无数据" : ""), 9, Wn)
843
842
  ])) : I("", !0)
844
843
  ])
845
844
  ])
846
- ])) : (d(), c("div", qn, [
845
+ ])) : (d(), c("div", Hn, [
847
846
  (d(!0), c(T, null, N(a.value, (m, g) => (d(), c("div", {
848
847
  key: g,
849
848
  class: "fd-st-card"
@@ -852,7 +851,7 @@ const Mt = {
852
851
  key: $.name,
853
852
  class: "fd-st-card-row"
854
853
  }, [
855
- t("span", Gn, y($.showname || $.major || $.name), 1),
854
+ t("span", qn, y($.showname || $.major || $.name), 1),
856
855
  t("span", {
857
856
  class: "fd-st-card-value",
858
857
  "subtable-val": $.name
@@ -863,29 +862,29 @@ const Mt = {
863
862
  href: v($, m),
864
863
  target: "_blank",
865
864
  rel: "noopener noreferrer"
866
- }, y(f(m, $.name)), 9, Kn)) : (d(), c(T, { key: 1 }, [
865
+ }, y(f(m, $.name)), 9, Yn)) : (d(), c(T, { key: 1 }, [
867
866
  U(y(f(m, $.name)), 1)
868
867
  ], 64))
869
- ], 8, Yn)
868
+ ], 8, Gn)
870
869
  ]))), 128)),
871
- s.value ? I("", !0) : (d(), c("div", Qn, [
870
+ s.value ? I("", !0) : (d(), c("div", Kn, [
872
871
  t("button", {
873
872
  class: "fd-btn fd-btn--danger fd-btn--sm",
874
873
  onClick: ($) => l(g)
875
- }, "删除", 8, Xn)
874
+ }, "删除", 8, Qn)
876
875
  ]))
877
876
  ]))), 128)),
878
- a.value.length === 0 ? (d(), c("div", Zn, y(e.node.nodatatitle === "1" ? "暂无数据" : ""), 1)) : I("", !0)
877
+ a.value.length === 0 ? (d(), c("div", Xn, y(e.node.nodatatitle === "1" ? "暂无数据" : ""), 1)) : I("", !0)
879
878
  ])),
880
879
  s.value ? I("", !0) : (d(), c("button", {
881
880
  key: 2,
882
881
  class: "fd-btn fd-btn--primary fd-st-add",
883
882
  onClick: r
884
883
  }, "新增一行"))
885
- ], 8, En)) : I("", !0);
884
+ ], 8, Nn)) : I("", !0);
886
885
  }
887
- }), to = /* @__PURE__ */ E(eo, [["__scopeId", "data-v-a650847e"]]);
888
- function no(e) {
886
+ }), eo = /* @__PURE__ */ E(Zn, [["__scopeId", "data-v-a650847e"]]);
887
+ function to(e) {
889
888
  return e.fields.map((n, o) => {
890
889
  const s = n.dataType === "file", a = n.dataType === "link";
891
890
  return {
@@ -909,13 +908,13 @@ function no(e) {
909
908
  };
910
909
  });
911
910
  }
912
- const oo = { class: "fd-panel" }, so = { class: "fd-panel-item" }, lo = { class: "fd-panel-item fd-panel-item--row" }, ao = { class: "fd-panel-item fd-panel-item--row" }, io = { class: "fd-panel-item" }, ro = { class: "fd-panel-item" }, uo = { class: "fd-cols-head" }, co = {
911
+ const no = { class: "fd-panel" }, oo = { class: "fd-panel-item" }, so = { class: "fd-panel-item fd-panel-item--row" }, lo = { class: "fd-panel-item fd-panel-item--row" }, ao = { class: "fd-panel-item" }, io = { class: "fd-panel-item" }, ro = { class: "fd-cols-head" }, uo = {
913
912
  key: 0,
914
913
  class: "fd-cols-empty"
915
- }, fo = { class: "fd-col-card-top" }, mo = { class: "fd-col-order" }, po = { class: "fd-col-meta" }, vo = { class: "fd-col-title" }, bo = { class: "fd-col-name-sub" }, go = { class: "fd-col-tag" }, ho = { class: "fd-col-card-bottom" }, yo = { class: "fd-col-switch" }, ko = { class: "fd-col-actions" }, wo = ["onClick"], $o = ["onClick"], xo = {
914
+ }, co = { class: "fd-col-card-top" }, fo = { class: "fd-col-order" }, mo = { class: "fd-col-meta" }, po = { class: "fd-col-title" }, vo = { class: "fd-col-name-sub" }, bo = { class: "fd-col-tag" }, go = { class: "fd-col-card-bottom" }, ho = { class: "fd-col-switch" }, yo = { class: "fd-col-actions" }, ko = ["onClick"], wo = ["onClick"], $o = {
916
915
  class: "fd-dialog",
917
916
  style: { "max-width": "560px" }
918
- }, Co = { class: "fd-dialog-head" }, _o = { class: "fd-dialog-body" }, Io = { class: "fd-form-section" }, Do = { class: "fd-form-grid" }, So = { class: "fd-form-item" }, To = ["value"], Fo = ["value"], Lo = { class: "fd-form-item" }, Mo = ["value"], No = { class: "fd-form-item" }, Eo = ["value"], Po = { class: "fd-form-item" }, Oo = ["value"], Uo = { class: "fd-form-section" }, Bo = { class: "fd-form-grid" }, Vo = { class: "fd-form-item" }, jo = ["value"], Ro = { class: "fd-form-item" }, Ao = ["value"], zo = { class: "fd-form-item" }, Jo = { class: "fd-color-row" }, Wo = ["value"], Ho = ["value"], qo = { class: "fd-form-item" }, Go = { class: "fd-color-row" }, Yo = ["value"], Ko = ["value"], Qo = { class: "fd-form-section" }, Xo = { class: "fd-form-grid" }, Zo = { class: "fd-form-item" }, es = { class: "fd-form-item" }, ts = ["value"], ns = /* @__PURE__ */ L({
917
+ }, xo = { class: "fd-dialog-head" }, Co = { class: "fd-dialog-body" }, _o = { class: "fd-form-section" }, Io = { class: "fd-form-grid" }, Do = { class: "fd-form-item" }, So = ["value"], To = ["value"], Fo = { class: "fd-form-item" }, Lo = ["value"], Mo = { class: "fd-form-item" }, No = ["value"], Eo = { class: "fd-form-item" }, Po = ["value"], Oo = { class: "fd-form-section" }, Uo = { class: "fd-form-grid" }, Bo = { class: "fd-form-item" }, Vo = ["value"], jo = { class: "fd-form-item" }, Ro = ["value"], Ao = { class: "fd-form-item" }, zo = { class: "fd-color-row" }, Jo = ["value"], Wo = ["value"], Ho = { class: "fd-form-item" }, qo = { class: "fd-color-row" }, Go = ["value"], Yo = ["value"], Ko = { class: "fd-form-section" }, Qo = { class: "fd-form-grid" }, Xo = { class: "fd-form-item" }, Zo = { class: "fd-form-item" }, es = ["value"], ts = /* @__PURE__ */ L({
919
918
  __name: "SubtablePanel",
920
919
  props: {
921
920
  node: {},
@@ -929,7 +928,7 @@ const oo = { class: "fd-panel" }, so = { class: "fd-panel-item" }, lo = { class:
929
928
  }
930
929
  function r(x) {
931
930
  const p = x ?? "", w = a.subTables.find((b) => b.name === p), C = { secondtable: p };
932
- w && (C.displaytitle = w.label, C.colnums = no(w)), s("update", C);
931
+ w && (C.displaytitle = w.label, C.colnums = to(w)), s("update", C);
933
932
  }
934
933
  const l = Ie({
935
934
  open: !1,
@@ -1005,8 +1004,8 @@ const oo = { class: "fd-panel" }, so = { class: "fd-panel-item" }, lo = { class:
1005
1004
  u("tablestyle", x || "table");
1006
1005
  }
1007
1006
  return (x, p) => (d(), c(T, null, [
1008
- t("div", oo, [
1009
- t("div", so, [
1007
+ t("div", no, [
1008
+ t("div", oo, [
1010
1009
  p[13] || (p[13] = t("label", null, "选择子表", -1)),
1011
1010
  F(h(re), {
1012
1011
  "model-value": e.node.secondtable,
@@ -1026,21 +1025,21 @@ const oo = { class: "fd-panel" }, so = { class: "fd-panel-item" }, lo = { class:
1026
1025
  _: 1
1027
1026
  }, 8, ["model-value"])
1028
1027
  ]),
1029
- t("div", lo, [
1028
+ t("div", so, [
1030
1029
  p[14] || (p[14] = t("label", null, "只读", -1)),
1031
1030
  F(se, {
1032
1031
  "model-value": e.node.isreadonly === "1",
1033
1032
  "onUpdate:modelValue": p[0] || (p[0] = (w) => u("isreadonly", w ? "1" : "0"))
1034
1033
  }, null, 8, ["model-value"])
1035
1034
  ]),
1036
- t("div", ao, [
1035
+ t("div", lo, [
1037
1036
  p[15] || (p[15] = t("label", null, "序号列", -1)),
1038
1037
  F(se, {
1039
1038
  "model-value": e.node.secondtableindex === "1",
1040
1039
  "onUpdate:modelValue": p[1] || (p[1] = (w) => u("secondtableindex", w ? "1" : "0"))
1041
1040
  }, null, 8, ["model-value"])
1042
1041
  ]),
1043
- t("div", io, [
1042
+ t("div", ao, [
1044
1043
  p[16] || (p[16] = t("label", null, "表格样式", -1)),
1045
1044
  F(h(re), {
1046
1045
  "model-value": e.node.tablestyle || "table",
@@ -1060,44 +1059,44 @@ const oo = { class: "fd-panel" }, so = { class: "fd-panel-item" }, lo = { class:
1060
1059
  _: 1
1061
1060
  }, 8, ["model-value"])
1062
1061
  ]),
1063
- t("div", ro, [
1064
- t("div", uo, [
1062
+ t("div", io, [
1063
+ t("div", ro, [
1065
1064
  t("span", null, "列配置(" + y(e.node.colnums.length) + ")", 1),
1066
1065
  t("button", {
1067
1066
  class: "fd-btn fd-btn--primary fd-btn--sm",
1068
1067
  onClick: _
1069
1068
  }, "+ 新增列")
1070
1069
  ]),
1071
- e.node.colnums.length === 0 ? (d(), c("div", co, " 暂无列,点击「新增列」添加 ")) : I("", !0),
1070
+ e.node.colnums.length === 0 ? (d(), c("div", uo, " 暂无列,点击「新增列」添加 ")) : I("", !0),
1072
1071
  (d(!0), c(T, null, N(e.node.colnums, (w, C) => (d(), c("div", {
1073
1072
  key: w.name,
1074
1073
  class: "fd-col-card"
1075
1074
  }, [
1076
- t("div", fo, [
1077
- t("span", mo, y(C + 1), 1),
1078
- t("div", po, [
1079
- t("span", vo, y(w.showname || "未命名列"), 1),
1080
- t("span", bo, y(w.name), 1)
1075
+ t("div", co, [
1076
+ t("span", fo, y(C + 1), 1),
1077
+ t("div", mo, [
1078
+ t("span", po, y(w.showname || "未命名列"), 1),
1079
+ t("span", vo, y(w.name), 1)
1081
1080
  ]),
1082
- t("span", go, y(w.bindLink ? "链接" : "文本"), 1)
1081
+ t("span", bo, y(w.bindLink ? "链接" : "文本"), 1)
1083
1082
  ]),
1084
- t("div", ho, [
1085
- t("label", yo, [
1083
+ t("div", go, [
1084
+ t("label", ho, [
1086
1085
  p[17] || (p[17] = t("span", null, "显示", -1)),
1087
1086
  F(se, {
1088
1087
  "model-value": w.isshow === 1,
1089
1088
  "onUpdate:modelValue": (b) => j(w, b)
1090
1089
  }, null, 8, ["model-value", "onUpdate:modelValue"])
1091
1090
  ]),
1092
- t("div", ko, [
1091
+ t("div", yo, [
1093
1092
  t("button", {
1094
1093
  class: "fd-btn fd-btn--ghost fd-btn--sm",
1095
1094
  onClick: (b) => v(C)
1096
- }, "设置", 8, wo),
1095
+ }, "设置", 8, ko),
1097
1096
  t("button", {
1098
1097
  class: "fd-btn fd-btn--danger fd-btn--sm",
1099
1098
  onClick: (b) => D(C)
1100
- }, "删除", 8, $o)
1099
+ }, "删除", 8, wo)
1101
1100
  ])
1102
1101
  ])
1103
1102
  ]))), 128))
@@ -1109,8 +1108,8 @@ const oo = { class: "fd-panel" }, so = { class: "fd-panel-item" }, lo = { class:
1109
1108
  class: "fd-dialog-mask",
1110
1109
  onClick: J(k, ["self"])
1111
1110
  }, [
1112
- t("div", xo, [
1113
- t("div", Co, [
1111
+ t("div", $o, [
1112
+ t("div", xo, [
1114
1113
  t("span", null, "列设置 · " + y(l.draft.showname || l.draft.name || "新列"), 1),
1115
1114
  t("button", {
1116
1115
  class: "fd-dialog-close",
@@ -1118,11 +1117,11 @@ const oo = { class: "fd-panel" }, so = { class: "fd-panel-item" }, lo = { class:
1118
1117
  title: "关闭"
1119
1118
  }, "×")
1120
1119
  ]),
1121
- t("div", _o, [
1122
- t("section", Io, [
1120
+ t("div", Co, [
1121
+ t("section", _o, [
1123
1122
  p[23] || (p[23] = t("h5", { class: "fd-form-section-h" }, "基本信息", -1)),
1124
- t("div", Do, [
1125
- t("div", So, [
1123
+ t("div", Io, [
1124
+ t("div", Do, [
1126
1125
  p[19] || (p[19] = t("label", null, "列字段", -1)),
1127
1126
  t("select", {
1128
1127
  value: l.draft.name,
@@ -1132,48 +1131,48 @@ const oo = { class: "fd-panel" }, so = { class: "fd-panel-item" }, lo = { class:
1132
1131
  (d(!0), c(T, null, N($.value, (w) => (d(), c("option", {
1133
1132
  key: w.name,
1134
1133
  value: w.name
1135
- }, y(w.label) + "(" + y(w.name) + ")", 9, Fo))), 128))
1136
- ], 40, To)
1134
+ }, y(w.label) + "(" + y(w.name) + ")", 9, To))), 128))
1135
+ ], 40, So)
1137
1136
  ]),
1138
- t("div", Lo, [
1137
+ t("div", Fo, [
1139
1138
  p[20] || (p[20] = t("label", null, "显示标题", -1)),
1140
1139
  t("input", {
1141
1140
  value: l.draft.showname,
1142
1141
  onInput: p[3] || (p[3] = (w) => l.draft.showname = w.target.value),
1143
1142
  placeholder: "如 姓名"
1144
- }, null, 40, Mo)
1143
+ }, null, 40, Lo)
1145
1144
  ]),
1146
- t("div", No, [
1145
+ t("div", Mo, [
1147
1146
  p[21] || (p[21] = t("label", null, "主表头分组", -1)),
1148
1147
  t("input", {
1149
1148
  value: l.draft.major,
1150
1149
  onInput: p[4] || (p[4] = (w) => l.draft.major = w.target.value),
1151
1150
  placeholder: "可合并表头分组名"
1152
- }, null, 40, Eo)
1151
+ }, null, 40, No)
1153
1152
  ]),
1154
- t("div", Po, [
1153
+ t("div", Eo, [
1155
1154
  p[22] || (p[22] = t("label", null, "列序号", -1)),
1156
1155
  t("input", {
1157
1156
  type: "number",
1158
1157
  min: "1",
1159
1158
  value: l.draft.index,
1160
1159
  onInput: p[5] || (p[5] = (w) => l.draft.index = Number(w.target.value))
1161
- }, null, 40, Oo)
1160
+ }, null, 40, Po)
1162
1161
  ])
1163
1162
  ])
1164
1163
  ]),
1165
- t("section", Uo, [
1164
+ t("section", Oo, [
1166
1165
  p[29] || (p[29] = t("h5", { class: "fd-form-section-h" }, "显示与样式", -1)),
1167
- t("div", Bo, [
1168
- t("div", Vo, [
1166
+ t("div", Uo, [
1167
+ t("div", Bo, [
1169
1168
  p[24] || (p[24] = t("label", null, "列宽", -1)),
1170
1169
  t("input", {
1171
1170
  value: l.draft.showwidth,
1172
1171
  onInput: p[6] || (p[6] = (w) => l.draft.showwidth = w.target.value),
1173
1172
  placeholder: "如 120px 或 20%"
1174
- }, null, 40, jo)
1173
+ }, null, 40, Vo)
1175
1174
  ]),
1176
- t("div", Ro, [
1175
+ t("div", jo, [
1177
1176
  p[26] || (p[26] = t("label", null, "对齐方式", -1)),
1178
1177
  t("select", {
1179
1178
  value: l.draft.align,
@@ -1183,56 +1182,56 @@ const oo = { class: "fd-panel" }, so = { class: "fd-panel-item" }, lo = { class:
1183
1182
  t("option", { value: "left" }, "左对齐", -1),
1184
1183
  t("option", { value: "center" }, "居中", -1),
1185
1184
  t("option", { value: "right" }, "右对齐", -1)
1186
- ])], 40, Ao)
1185
+ ])], 40, Ro)
1187
1186
  ]),
1188
- t("div", zo, [
1187
+ t("div", Ao, [
1189
1188
  p[27] || (p[27] = t("label", null, "背景色", -1)),
1190
- t("div", Jo, [
1189
+ t("div", zo, [
1191
1190
  t("input", {
1192
1191
  type: "color",
1193
1192
  value: m(l.draft.background),
1194
1193
  onInput: p[8] || (p[8] = (w) => g("background", w))
1195
- }, null, 40, Wo),
1194
+ }, null, 40, Jo),
1196
1195
  t("input", {
1197
1196
  value: l.draft.background,
1198
1197
  onInput: p[9] || (p[9] = (w) => l.draft.background = w.target.value),
1199
1198
  placeholder: "如 #f5f7fa 或空"
1200
- }, null, 40, Ho)
1199
+ }, null, 40, Wo)
1201
1200
  ])
1202
1201
  ]),
1203
- t("div", qo, [
1202
+ t("div", Ho, [
1204
1203
  p[28] || (p[28] = t("label", null, "字体色", -1)),
1205
- t("div", Go, [
1204
+ t("div", qo, [
1206
1205
  t("input", {
1207
1206
  type: "color",
1208
1207
  value: m(l.draft.prospect),
1209
1208
  onInput: p[10] || (p[10] = (w) => g("prospect", w))
1210
- }, null, 40, Yo),
1209
+ }, null, 40, Go),
1211
1210
  t("input", {
1212
1211
  value: l.draft.prospect,
1213
1212
  onInput: p[11] || (p[11] = (w) => l.draft.prospect = w.target.value),
1214
1213
  placeholder: "如 #f5523a 或空"
1215
- }, null, 40, Ko)
1214
+ }, null, 40, Yo)
1216
1215
  ])
1217
1216
  ])
1218
1217
  ])
1219
1218
  ]),
1220
- t("section", Qo, [
1219
+ t("section", Ko, [
1221
1220
  p[32] || (p[32] = t("h5", { class: "fd-form-section-h" }, "编辑模式", -1)),
1222
- t("div", Xo, [
1223
- t("div", Zo, [
1221
+ t("div", Qo, [
1222
+ t("div", Xo, [
1224
1223
  p[30] || (p[30] = t("label", null, "同内容合并", -1)),
1225
1224
  F(se, {
1226
1225
  "model-value": l.draft.issamecolmerge === 1,
1227
1226
  "onUpdate:modelValue": p[12] || (p[12] = (w) => l.draft.issamecolmerge = w ? 1 : 0)
1228
1227
  }, null, 8, ["model-value"])
1229
1228
  ]),
1230
- t("div", es, [
1229
+ t("div", Zo, [
1231
1230
  p[31] || (p[31] = t("label", null, "链接", -1)),
1232
1231
  t("input", {
1233
1232
  value: l.draft.bindLink ? `${l.draft.bindLink}(链接字段自动绑定)` : "非链接字段",
1234
1233
  readonly: ""
1235
- }, null, 8, ts)
1234
+ }, null, 8, es)
1236
1235
  ])
1237
1236
  ])
1238
1237
  ])
@@ -1252,8 +1251,8 @@ const oo = { class: "fd-panel" }, so = { class: "fd-panel-item" }, lo = { class:
1252
1251
  ]))
1253
1252
  ], 64));
1254
1253
  }
1255
- }), os = /* @__PURE__ */ E(ns, [["__scopeId", "data-v-e1fd519d"]]);
1256
- function ss() {
1254
+ }), ns = /* @__PURE__ */ E(ts, [["__scopeId", "data-v-e1fd519d"]]);
1255
+ function os() {
1257
1256
  return [
1258
1257
  {
1259
1258
  name: "field1",
@@ -1293,12 +1292,12 @@ function ss() {
1293
1292
  }
1294
1293
  ];
1295
1294
  }
1296
- const ls = {
1295
+ const ss = {
1297
1296
  type: "subtable",
1298
1297
  title: "子表",
1299
- design: Nn,
1300
- render: to,
1301
- panel: os,
1298
+ design: Mn,
1299
+ render: eo,
1300
+ panel: ns,
1302
1301
  isContainer: !1,
1303
1302
  createDefaultProps: () => ({
1304
1303
  id: "",
@@ -1324,11 +1323,11 @@ const ls = {
1324
1323
  tableheight: 0,
1325
1324
  iscompletehide: "0",
1326
1325
  iscompletehidecode: "",
1327
- colnums: ss(),
1326
+ colnums: os(),
1328
1327
  events: []
1329
1328
  }),
1330
1329
  serialize: (e) => e
1331
- }, as = /* @__PURE__ */ L({
1330
+ }, ls = /* @__PURE__ */ L({
1332
1331
  __name: "GridDesign",
1333
1332
  props: {
1334
1333
  node: {}
@@ -1341,7 +1340,7 @@ const ls = {
1341
1340
  Q(o.$slots, "children", {}, void 0, !0)
1342
1341
  ], 2));
1343
1342
  }
1344
- }), is = /* @__PURE__ */ E(as, [["__scopeId", "data-v-25511a77"]]), ge = /* @__PURE__ */ L({
1343
+ }), as = /* @__PURE__ */ E(ls, [["__scopeId", "data-v-25511a77"]]), ge = /* @__PURE__ */ L({
1345
1344
  __name: "WidgetHost",
1346
1345
  props: {
1347
1346
  node: {},
@@ -1391,10 +1390,10 @@ const ls = {
1391
1390
  ]), 1040, ["node", "value", "form-data"])) : I("", !0);
1392
1391
  };
1393
1392
  }
1394
- }), ds = 24;
1393
+ }), is = 24;
1395
1394
  function Fe(e, n, o, s, a = !1) {
1396
1395
  if (e.type !== "label" || !o.length) return "";
1397
- const i = a ? 1 : ds, u = (D) => Math.min(Math.max(D.gridSpan || s || i, 1), i), r = [];
1396
+ const i = a ? 1 : is, u = (D) => Math.min(Math.max(D.gridSpan || s || i, 1), i), r = [];
1398
1397
  let l = 0, f = 0;
1399
1398
  for (const D of o) {
1400
1399
  const m = u(D);
@@ -1409,7 +1408,7 @@ function Fe(e, n, o, s, a = !1) {
1409
1408
  const k = r[r.length - 1].row, P = v.row === 0, j = v.row === k, _ = [];
1410
1409
  return v.rowFirst && P && _.push("is-g-corner-tl"), v.rowLast && P && _.push("is-g-corner-tr"), v.rowFirst && j && _.push("is-g-corner-bl"), v.rowLast && j && _.push("is-g-corner-br"), _.join(" ");
1411
1410
  }
1412
- const rs = /* @__PURE__ */ L({
1411
+ const ds = /* @__PURE__ */ L({
1413
1412
  __name: "GridRender",
1414
1413
  props: {
1415
1414
  node: {},
@@ -1454,7 +1453,7 @@ const rs = /* @__PURE__ */ L({
1454
1453
  ], 6))), 128))
1455
1454
  ], 2));
1456
1455
  }
1457
- }), us = /* @__PURE__ */ E(rs, [["__scopeId", "data-v-417035f9"]]), cs = { class: "fd-panel" }, fs = { class: "fd-panel-item" }, ms = ["value"], ps = ["value"], vs = { class: "fd-panel-item" }, bs = /* @__PURE__ */ L({
1456
+ }), rs = /* @__PURE__ */ E(ds, [["__scopeId", "data-v-417035f9"]]), us = { class: "fd-panel" }, cs = { class: "fd-panel-item" }, fs = ["value"], ms = ["value"], ps = { class: "fd-panel-item" }, vs = /* @__PURE__ */ L({
1458
1457
  __name: "GridPanel",
1459
1458
  props: {
1460
1459
  node: {},
@@ -1472,8 +1471,8 @@ const rs = /* @__PURE__ */ L({
1472
1471
  const u = o.node.layout || 24, r = (o.node.children ?? []).map((l) => ({ ...l, gridSpan: u }));
1473
1472
  s("update", { children: r });
1474
1473
  }
1475
- return (u, r) => (d(), c("div", cs, [
1476
- t("div", fs, [
1474
+ return (u, r) => (d(), c("div", us, [
1475
+ t("div", cs, [
1477
1476
  r[1] || (r[1] = t("label", null, "布局", -1)),
1478
1477
  t("select", {
1479
1478
  value: e.node.layout,
@@ -1482,10 +1481,10 @@ const rs = /* @__PURE__ */ L({
1482
1481
  (d(), c(T, null, N(a, (l) => t("option", {
1483
1482
  key: l.value,
1484
1483
  value: l.value
1485
- }, y(l.label), 9, ps)), 64))
1486
- ], 40, ms)
1484
+ }, y(l.label), 9, ms)), 64))
1485
+ ], 40, fs)
1487
1486
  ]),
1488
- t("div", vs, [
1487
+ t("div", ps, [
1489
1488
  r[2] || (r[2] = t("label", null, "一键布局", -1)),
1490
1489
  t("button", {
1491
1490
  class: "fd-btn fd-btn--primary fd-btn--sm fd-grid-apply",
@@ -1494,12 +1493,12 @@ const rs = /* @__PURE__ */ L({
1494
1493
  ])
1495
1494
  ]));
1496
1495
  }
1497
- }), gs = /* @__PURE__ */ E(bs, [["__scopeId", "data-v-a333d2ea"]]), hs = {
1496
+ }), bs = /* @__PURE__ */ E(vs, [["__scopeId", "data-v-a333d2ea"]]), gs = {
1498
1497
  type: "grid",
1499
1498
  title: "栅栏格",
1500
- design: is,
1501
- render: us,
1502
- panel: gs,
1499
+ design: as,
1500
+ render: rs,
1501
+ panel: bs,
1503
1502
  isContainer: !0,
1504
1503
  createDefaultProps: () => ({
1505
1504
  id: "",
@@ -1511,7 +1510,7 @@ const rs = /* @__PURE__ */ L({
1511
1510
  children: []
1512
1511
  }),
1513
1512
  serialize: (e) => e
1514
- }, ys = /* @__PURE__ */ L({
1513
+ }, hs = /* @__PURE__ */ L({
1515
1514
  __name: "TextDesign",
1516
1515
  props: {
1517
1516
  node: {}
@@ -1522,7 +1521,7 @@ const rs = /* @__PURE__ */ L({
1522
1521
  style: G({ display: e.node.display })
1523
1522
  }, y(e.node.text || "文本内容"), 5));
1524
1523
  }
1525
- }), ks = /* @__PURE__ */ E(ys, [["__scopeId", "data-v-ba382e6c"]]), ws = /* @__PURE__ */ L({
1524
+ }), ys = /* @__PURE__ */ E(hs, [["__scopeId", "data-v-ba382e6c"]]), ks = /* @__PURE__ */ L({
1526
1525
  __name: "TextRender",
1527
1526
  props: {
1528
1527
  node: {},
@@ -1539,7 +1538,7 @@ const rs = /* @__PURE__ */ L({
1539
1538
  style: G({ display: e.node.display })
1540
1539
  }, y(o.value), 5));
1541
1540
  }
1542
- }), $s = /* @__PURE__ */ E(ws, [["__scopeId", "data-v-3ed7b0f0"]]), xs = { class: "fd-panel" }, Cs = { class: "fd-panel-item" }, _s = ["value"], Is = { class: "fd-panel-item" }, Ds = ["value"], Ss = ["value"], Ts = { class: "fd-panel-item" }, Fs = ["value"], Ls = /* @__PURE__ */ L({
1541
+ }), ws = /* @__PURE__ */ E(ks, [["__scopeId", "data-v-3ed7b0f0"]]), $s = { class: "fd-panel" }, xs = { class: "fd-panel-item" }, Cs = ["value"], _s = { class: "fd-panel-item" }, Is = ["value"], Ds = ["value"], Ss = { class: "fd-panel-item" }, Ts = ["value"], Fs = /* @__PURE__ */ L({
1543
1542
  __name: "TextPanel",
1544
1543
  props: {
1545
1544
  node: {},
@@ -1548,16 +1547,16 @@ const rs = /* @__PURE__ */ L({
1548
1547
  emits: ["update"],
1549
1548
  setup(e, { emit: n }) {
1550
1549
  const o = n;
1551
- return (s, a) => (d(), c("div", xs, [
1552
- t("div", Cs, [
1550
+ return (s, a) => (d(), c("div", $s, [
1551
+ t("div", xs, [
1553
1552
  a[3] || (a[3] = t("label", null, "文本", -1)),
1554
1553
  t("textarea", {
1555
1554
  rows: "4",
1556
1555
  value: e.node.text,
1557
1556
  onInput: a[0] || (a[0] = (i) => o("update", { text: i.target.value }))
1558
- }, null, 40, _s)
1557
+ }, null, 40, Cs)
1559
1558
  ]),
1560
- t("div", Is, [
1559
+ t("div", _s, [
1561
1560
  a[5] || (a[5] = t("label", null, "绑定字段", -1)),
1562
1561
  t("select", {
1563
1562
  value: e.node.bindField,
@@ -1567,10 +1566,10 @@ const rs = /* @__PURE__ */ L({
1567
1566
  (d(!0), c(T, null, N(e.fields, (i) => (d(), c("option", {
1568
1567
  key: i.name,
1569
1568
  value: i.name
1570
- }, y(i.label) + "(" + y(i.name) + ")", 9, Ss))), 128))
1571
- ], 40, Ds)
1569
+ }, y(i.label) + "(" + y(i.name) + ")", 9, Ds))), 128))
1570
+ ], 40, Is)
1572
1571
  ]),
1573
- t("div", Ts, [
1572
+ t("div", Ss, [
1574
1573
  a[7] || (a[7] = t("label", null, "对齐方式", -1)),
1575
1574
  t("select", {
1576
1575
  value: e.node.display,
@@ -1578,16 +1577,16 @@ const rs = /* @__PURE__ */ L({
1578
1577
  }, [...a[6] || (a[6] = [
1579
1578
  t("option", { value: "inline-block" }, "对齐", -1),
1580
1579
  t("option", { value: "block" }, "换行", -1)
1581
- ])], 40, Fs)
1580
+ ])], 40, Ts)
1582
1581
  ])
1583
1582
  ]));
1584
1583
  }
1585
- }), Ms = /* @__PURE__ */ E(Ls, [["__scopeId", "data-v-3201879c"]]), Ns = {
1584
+ }), Ls = /* @__PURE__ */ E(Fs, [["__scopeId", "data-v-3201879c"]]), Ms = {
1586
1585
  type: "text",
1587
1586
  title: "文本",
1588
- design: ks,
1589
- render: $s,
1590
- panel: Ms,
1587
+ design: ys,
1588
+ render: ws,
1589
+ panel: Ls,
1591
1590
  isContainer: !1,
1592
1591
  createDefaultProps: () => ({
1593
1592
  id: "",
@@ -1601,42 +1600,42 @@ const rs = /* @__PURE__ */ L({
1601
1600
  };
1602
1601
  let $e = !1;
1603
1602
  function he() {
1604
- $e || ($e = !0, ee(Ct), ee(on), ee($n), ee(ls), ee(hs), ee(Ns));
1603
+ $e || ($e = !0, ee(Ct), ee(on), ee(wn), ee(ss), ee(gs), ee(Ms));
1605
1604
  }
1606
1605
  he();
1607
- const Es = { baseUrl: "/bpmapi-uat" };
1608
- let ye = {}, fe = {}, Ps = {};
1609
- const Os = "api/formdesigner/v1";
1606
+ const Ns = { baseUrl: "/bpmapi-uat" };
1607
+ let ye = {}, fe = {}, Es = {};
1608
+ const Ps = "api/formdesigner/v1";
1610
1609
  function Le(e) {
1611
1610
  fe = { ...fe, ...e };
1612
1611
  }
1613
- function Us(e) {
1612
+ function Os(e) {
1614
1613
  ye.baseUrl = e;
1615
1614
  }
1616
- function Ya(e) {
1615
+ function Ga(e) {
1617
1616
  ye.baseUrl = e ? e.startsWith("/") ? e : `/${e}` : "";
1618
1617
  }
1619
- function Ka(e) {
1618
+ function Ya(e) {
1620
1619
  }
1621
- function Bs() {
1620
+ function Us() {
1622
1621
  return {
1623
- baseUrl: Ps.baseUrl ?? ye.baseUrl ?? fe.baseUrl ?? Es.baseUrl
1622
+ baseUrl: Es.baseUrl ?? ye.baseUrl ?? fe.baseUrl ?? Ns.baseUrl
1624
1623
  };
1625
1624
  }
1626
1625
  function X(e, n) {
1627
- const { baseUrl: o } = Bs(), s = new URLSearchParams();
1626
+ const { baseUrl: o } = Us(), s = new URLSearchParams();
1628
1627
  Object.entries(n ?? {}).forEach(([i, u]) => {
1629
1628
  u != null && u !== "" && s.append(i, u);
1630
1629
  });
1631
1630
  const a = s.toString();
1632
- return `${o}/${Os}/${e}${a ? `?${a}` : ""}`;
1631
+ return `${o}/${Ps}/${e}${a ? `?${a}` : ""}`;
1633
1632
  }
1634
1633
  class Me extends Error {
1635
1634
  constructor(n, o) {
1636
1635
  super(o), this.status = n, this.name = "ApiError";
1637
1636
  }
1638
1637
  }
1639
- function Vs(e) {
1638
+ function Bs(e) {
1640
1639
  if (!e) return "";
1641
1640
  try {
1642
1641
  const n = JSON.parse(e), o = n.error ?? n.message ?? n.title ?? n.detail;
@@ -1651,7 +1650,7 @@ async function Z(e, n) {
1651
1650
  headers: { "Content-Type": "application/json", ...(n == null ? void 0 : n.headers) ?? {} }
1652
1651
  }), s = await o.text();
1653
1652
  if (!o.ok)
1654
- throw new Me(o.status, Vs(s) || `请求失败(${o.status})`);
1653
+ throw new Me(o.status, Bs(s) || `请求失败(${o.status})`);
1655
1654
  if ((o.headers.get("content-type") ?? "").includes("text/plain")) return s;
1656
1655
  if (!s) return null;
1657
1656
  try {
@@ -1660,7 +1659,7 @@ async function Z(e, n) {
1660
1659
  return s;
1661
1660
  }
1662
1661
  }
1663
- function js(e) {
1662
+ function Vs(e) {
1664
1663
  if (e == null) return null;
1665
1664
  if (typeof e != "string") return e;
1666
1665
  try {
@@ -1672,31 +1671,31 @@ function js(e) {
1672
1671
  function Ne(e) {
1673
1672
  return e == null ? { success: !1, message: "无响应" } : typeof e == "string" ? { success: e.includes("成功"), message: e } : e;
1674
1673
  }
1675
- async function Rs(e, n) {
1674
+ async function js(e, n) {
1676
1675
  return Z(X("opendesigner"), {
1677
1676
  method: "POST",
1678
1677
  body: JSON.stringify(e)
1679
1678
  });
1680
1679
  }
1681
- async function As(e, n) {
1680
+ async function Rs(e, n) {
1682
1681
  return Z(X("formconfig", { id: e }));
1683
1682
  }
1684
- async function zs(e, n, o) {
1683
+ async function As(e, n, o) {
1685
1684
  return Z(X("fieldbinding/allfields", { dbtable: e, formid: n }));
1686
1685
  }
1687
- async function Js(e, n) {
1686
+ async function zs(e, n) {
1688
1687
  return Ne(await Z(X("save"), { method: "POST", body: JSON.stringify(e) }));
1689
1688
  }
1690
- async function Ws(e, n) {
1689
+ async function Js(e, n) {
1691
1690
  return Ne(await Z(X("publish"), { method: "POST", body: JSON.stringify(e) }));
1692
1691
  }
1693
- async function Hs(e, n) {
1692
+ async function Ws(e, n) {
1694
1693
  return Z(X("saveas"), { method: "POST", body: JSON.stringify(e) });
1695
1694
  }
1696
- async function qs(e, n) {
1695
+ async function Hs(e, n) {
1697
1696
  return Z(X("effectcount", { formId: e }));
1698
1697
  }
1699
- async function Gs(e, n) {
1698
+ async function qs(e, n) {
1700
1699
  return Z(
1701
1700
  X("effectprocesses", {
1702
1701
  id: e.id,
@@ -1706,17 +1705,17 @@ async function Gs(e, n) {
1706
1705
  })
1707
1706
  );
1708
1707
  }
1709
- function Ys(e) {
1708
+ function Gs(e) {
1710
1709
  return { name: e.name, label: e.label, dataType: e.dataType };
1711
1710
  }
1712
- function Ks(e) {
1711
+ function Ys(e) {
1713
1712
  return { name: e.name, label: e.label, dataType: e.dataType || "string" };
1714
1713
  }
1715
- function Qs(e, n) {
1716
- return (e ?? []).filter((o) => o.name && o.name !== n).map((o) => ({ name: o.name, label: o.name, fields: (o.fields ?? []).map(Ks) }));
1714
+ function Ks(e, n) {
1715
+ return (e ?? []).filter((o) => o.name && o.name !== n).map((o) => ({ name: o.name, label: o.name, fields: (o.fields ?? []).map(Ys) }));
1717
1716
  }
1718
- function Xs(e) {
1719
- return js(e);
1717
+ function Qs(e) {
1718
+ return Vs(e);
1720
1719
  }
1721
1720
  function ne(e) {
1722
1721
  return e instanceof Me || e instanceof Error ? e.message : String(e);
@@ -1966,15 +1965,15 @@ const W = We("designer", {
1966
1965
  return;
1967
1966
  }
1968
1967
  this.originFormId = e;
1969
- const s = await Rs({ openType: o, id: e, formVersion: n });
1968
+ const s = await js({ openType: o, id: e, formVersion: n });
1970
1969
  this.workFormId = s.newFormID, this.formId = s.newFormID;
1971
- const a = await As(s.newFormID);
1970
+ const a = await Rs(s.newFormID);
1972
1971
  this.attribute = a.attribute ?? {}, this.formName = this.attribute.name ?? "", this.device = a.templateType === "App" ? "mobile" : "pc";
1973
- const i = this.attribute.dbtable || "", u = await zs(i, s.newFormID);
1972
+ const i = this.attribute.dbtable || "", u = await As(i, s.newFormID);
1974
1973
  this.dbtable = i || u.dbtable;
1975
- const r = this.enrichFields((u.fields ?? []).map(Ys));
1976
- this.setFields(r), this.setSubTables(Qs(u.subtables, this.dbtable));
1977
- const l = Xs(a.json);
1974
+ const r = this.enrichFields((u.fields ?? []).map(Gs));
1975
+ this.setFields(r), this.setSubTables(Ks(u.subtables, this.dbtable));
1976
+ const l = Qs(a.json);
1978
1977
  l && Array.isArray(l.widgets) ? this.loadSchema({
1979
1978
  ...l,
1980
1979
  formId: s.newFormID,
@@ -2013,7 +2012,7 @@ const W = We("designer", {
2013
2012
  async save() {
2014
2013
  this.errorMsg = "";
2015
2014
  try {
2016
- return await Js({
2015
+ return await zs({
2017
2016
  id: this.workFormId,
2018
2017
  name: this.formName,
2019
2018
  att: this.attJson,
@@ -2034,7 +2033,7 @@ const W = We("designer", {
2034
2033
  async saveAs(e, n, o = "start") {
2035
2034
  this.errorMsg = "";
2036
2035
  try {
2037
- return await Hs({ id: this.workFormId, name: e, code: n, saveSelect: o });
2036
+ return await Ws({ id: this.workFormId, name: e, code: n, saveSelect: o });
2038
2037
  } catch (s) {
2039
2038
  throw this.errorMsg = `另存为失败:${ne(s)}`, s;
2040
2039
  }
@@ -2043,7 +2042,7 @@ const W = We("designer", {
2043
2042
  async publish(e = "") {
2044
2043
  this.errorMsg = "";
2045
2044
  try {
2046
- return await Ws({
2045
+ return await Js({
2047
2046
  id: this.workFormId,
2048
2047
  name: this.formName,
2049
2048
  att: this.attJson,
@@ -2062,7 +2061,7 @@ const W = We("designer", {
2062
2061
  async checkPublish() {
2063
2062
  this.errorMsg = "";
2064
2063
  try {
2065
- const e = await qs(this.originFormId);
2064
+ const e = await Hs(this.originFormId);
2066
2065
  return { needConfirm: e.result || e.count > 0, count: e.count };
2067
2066
  } catch (e) {
2068
2067
  throw this.errorMsg = `发布检查失败:${ne(e)}`, e;
@@ -2070,10 +2069,10 @@ const W = We("designer", {
2070
2069
  }
2071
2070
  }
2072
2071
  }), Pe = "fd:form:";
2073
- function Zs(e, n) {
2072
+ function Xs(e, n) {
2074
2073
  localStorage.setItem(Pe + e, JSON.stringify(n));
2075
2074
  }
2076
- function Qa(e) {
2075
+ function Ka(e) {
2077
2076
  const n = localStorage.getItem(Pe + e);
2078
2077
  if (!n) return null;
2079
2078
  try {
@@ -2082,7 +2081,7 @@ function Qa(e) {
2082
2081
  return null;
2083
2082
  }
2084
2083
  }
2085
- const el = "fdFireEvent";
2084
+ const Zs = "fdFireEvent";
2086
2085
  function xe(e, n = {}) {
2087
2086
  if (!(!e || !e.trim()))
2088
2087
  try {
@@ -2093,7 +2092,7 @@ ${e}`)(n);
2093
2092
  return;
2094
2093
  }
2095
2094
  }
2096
- function tl(e) {
2095
+ function el(e) {
2097
2096
  if (!(!e || !e.trim() || typeof document > "u"))
2098
2097
  try {
2099
2098
  const n = document.createElement("script");
@@ -2102,7 +2101,7 @@ function tl(e) {
2102
2101
  console.error("[form-designer] 自定义方法挂载失败:", n);
2103
2102
  }
2104
2103
  }
2105
- const nl = { class: "fd-renderer" }, ol = /* @__PURE__ */ L({
2104
+ const tl = { class: "fd-renderer" }, nl = /* @__PURE__ */ L({
2106
2105
  __name: "Renderer",
2107
2106
  props: {
2108
2107
  widgets: {},
@@ -2129,14 +2128,14 @@ const nl = { class: "fd-renderer" }, ol = /* @__PURE__ */ L({
2129
2128
  const l = (f = o.events) == null ? void 0 : f.custom.find((v) => v.name === u);
2130
2129
  l && xe(l.handler, { formData: o.formData, event: u, payload: r });
2131
2130
  }
2132
- return Ve(el, i), ie(() => {
2131
+ return Ve(Zs, i), ie(() => {
2133
2132
  var u;
2134
- a("onLoad"), a("onMounted"), tl((u = o.events) == null ? void 0 : u.lifecycle.custom);
2133
+ a("onLoad"), a("onMounted"), el((u = o.events) == null ? void 0 : u.lifecycle.custom);
2135
2134
  }), le(
2136
2135
  () => o.formData,
2137
2136
  () => a("onValueChange"),
2138
2137
  { deep: !0 }
2139
- ), n({ fireEvent: i, runLifecycle: a }), (u, r) => (d(), c("div", nl, [
2138
+ ), n({ fireEvent: i, runLifecycle: a }), (u, r) => (d(), c("div", tl, [
2140
2139
  (d(!0), c(T, null, N(s.value, (l) => (d(), V(ge, {
2141
2140
  key: l.id,
2142
2141
  node: l,
@@ -2154,13 +2153,13 @@ const nl = { class: "fd-renderer" }, ol = /* @__PURE__ */ L({
2154
2153
  ]), 1032, ["node", "form-mode", "form-data", "form-id"]))), 128))
2155
2154
  ]));
2156
2155
  }
2157
- }), Oe = /* @__PURE__ */ E(ol, [["__scopeId", "data-v-82088c12"]]), sl = { class: "fd-tree" }, ll = { class: "fd-tree-head" }, al = {
2156
+ }), Oe = /* @__PURE__ */ E(nl, [["__scopeId", "data-v-82088c12"]]), ol = { class: "fd-tree" }, sl = { class: "fd-tree-head" }, ll = {
2158
2157
  key: 0,
2159
2158
  class: "fd-tree-count"
2160
- }, il = {
2159
+ }, al = {
2161
2160
  key: 0,
2162
2161
  class: "fd-tree-empty"
2163
- }, dl = { class: "fd-tree-name" }, rl = ["title"], ul = /* @__PURE__ */ L({
2162
+ }, il = { class: "fd-tree-name" }, dl = ["title"], rl = /* @__PURE__ */ L({
2164
2163
  __name: "ComponentTree",
2165
2164
  setup(e) {
2166
2165
  const n = W();
@@ -2185,10 +2184,10 @@ const nl = { class: "fd-renderer" }, ol = /* @__PURE__ */ L({
2185
2184
  (r = document.querySelector(".fd-canvas-node.is-selected")) == null || r.scrollIntoView({ block: "nearest" });
2186
2185
  });
2187
2186
  }
2188
- return (u, r) => (d(), c("div", sl, [
2189
- t("div", ll, [
2187
+ return (u, r) => (d(), c("div", ol, [
2188
+ t("div", sl, [
2190
2189
  r[0] || (r[0] = ve('<svg class="fd-tree-head-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" data-v-e38c14ec><rect x="3" y="3" width="7" height="7" rx="1" data-v-e38c14ec></rect><rect x="14" y="3" width="7" height="7" rx="1" data-v-e38c14ec></rect><rect x="3" y="14" width="7" height="7" rx="1" data-v-e38c14ec></rect><rect x="14" y="14" width="7" height="7" rx="1" data-v-e38c14ec></rect></svg><span class="fd-tree-title" data-v-e38c14ec>组件树</span>', 2)),
2191
- a.value ? (d(), c("span", al, y(a.value), 1)) : I("", !0)
2190
+ a.value ? (d(), c("span", ll, y(a.value), 1)) : I("", !0)
2192
2191
  ]),
2193
2192
  a.value ? (d(), V(h(He), {
2194
2193
  key: 1,
@@ -2203,15 +2202,15 @@ const nl = { class: "fd-renderer" }, ol = /* @__PURE__ */ L({
2203
2202
  onNodeClick: i
2204
2203
  }, {
2205
2204
  default: A(({ data: l }) => [
2206
- t("span", dl, y(l.name), 1),
2205
+ t("span", il, y(l.name), 1),
2207
2206
  l.sub ? (d(), c("span", {
2208
2207
  key: 0,
2209
2208
  class: "fd-tree-sub",
2210
2209
  title: l.sub
2211
- }, y(l.sub), 9, rl)) : I("", !0)
2210
+ }, y(l.sub), 9, dl)) : I("", !0)
2212
2211
  ]),
2213
2212
  _: 1
2214
- }, 8, ["data", "current-node-key"])) : (d(), c("div", il, [...r[1] || (r[1] = [
2213
+ }, 8, ["data", "current-node-key"])) : (d(), c("div", al, [...r[1] || (r[1] = [
2215
2214
  t("svg", {
2216
2215
  viewBox: "0 0 24 24",
2217
2216
  fill: "none",
@@ -2233,8 +2232,8 @@ const nl = { class: "fd-renderer" }, ol = /* @__PURE__ */ L({
2233
2232
  ])]))
2234
2233
  ]));
2235
2234
  }
2236
- }), cl = /* @__PURE__ */ E(ul, [["__scopeId", "data-v-e38c14ec"]]);
2237
- var fl = {
2235
+ }), ul = /* @__PURE__ */ E(rl, [["__scopeId", "data-v-e38c14ec"]]);
2236
+ var cl = {
2238
2237
  name: "zh-cn",
2239
2238
  el: {
2240
2239
  breadcrumb: { label: "面包屑" },
@@ -2416,10 +2415,10 @@ var fl = {
2416
2415
  }
2417
2416
  }
2418
2417
  };
2419
- const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, vl = { class: "fd-publish-toolbar" }, bl = { class: "fd-publish-table-wrap" }, gl = { class: "fd-publish-table" }, hl = ["title"], yl = ["href", "title"], kl = ["title"], wl = ["title"], $l = {
2418
+ const fl = { class: "fd-publish-tip" }, ml = { class: "fd-publish-tip-text" }, pl = { class: "fd-publish-toolbar" }, vl = { class: "fd-publish-table-wrap" }, bl = { class: "fd-publish-table" }, gl = ["title"], hl = ["href", "title"], yl = ["title"], kl = ["title"], wl = {
2420
2419
  key: 1,
2421
2420
  class: "fd-publish-error"
2422
- }, xl = { class: "fd-publish-pager" }, Cl = /* @__PURE__ */ L({
2421
+ }, $l = { class: "fd-publish-pager" }, xl = /* @__PURE__ */ L({
2423
2422
  __name: "PublishConfirmDialog",
2424
2423
  props: {
2425
2424
  modelValue: { type: Boolean },
@@ -2433,7 +2432,7 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
2433
2432
  if (s.formId) {
2434
2433
  i.value = !0, u.value = "";
2435
2434
  try {
2436
- const D = await Gs({
2435
+ const D = await qs({
2437
2436
  id: s.formId,
2438
2437
  processName: r.value,
2439
2438
  page: l.value,
@@ -2461,7 +2460,7 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
2461
2460
  function _() {
2462
2461
  a("confirm");
2463
2462
  }
2464
- return (D, m) => (d(), V(h(Ge), { locale: h(fl) }, {
2463
+ return (D, m) => (d(), V(h(Ge), { locale: h(cl) }, {
2465
2464
  default: A(() => [
2466
2465
  F(h(Ye), {
2467
2466
  "model-value": e.modelValue,
@@ -2489,15 +2488,15 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
2489
2488
  }, 8, ["disabled"])
2490
2489
  ]),
2491
2490
  default: A(() => [
2492
- t("div", ml, [
2491
+ t("div", fl, [
2493
2492
  m[6] || (m[6] = t("span", { class: "fd-publish-tip-icon" }, "!", -1)),
2494
- t("span", pl, [
2493
+ t("span", ml, [
2495
2494
  m[4] || (m[4] = U(" 该表单正在被 ", -1)),
2496
2495
  t("b", null, y(e.count), 1),
2497
2496
  m[5] || (m[5] = U(" 个流程使用,发布后将影响以下流程,确定发布? ", -1))
2498
2497
  ])
2499
2498
  ]),
2500
- t("div", vl, [
2499
+ t("div", pl, [
2501
2500
  F(h(Ke), {
2502
2501
  modelValue: r.value,
2503
2502
  "onUpdate:modelValue": m[0] || (m[0] = (g) => r.value = g),
@@ -2506,8 +2505,8 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
2506
2505
  class: "fd-publish-search"
2507
2506
  }, null, 8, ["modelValue"])
2508
2507
  ]),
2509
- ce((d(), c("div", bl, [
2510
- t("table", gl, [
2508
+ ce((d(), c("div", vl, [
2509
+ t("table", bl, [
2511
2510
  m[7] || (m[7] = t("colgroup", null, [
2512
2511
  t("col", { style: { width: "24%" } }),
2513
2512
  t("col", { style: { width: "40%" } }),
@@ -2526,7 +2525,7 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
2526
2525
  }, [
2527
2526
  t("td", {
2528
2527
  title: g.formNameCN || g.formCode
2529
- }, y(g.formNameCN || g.formCode), 9, hl),
2528
+ }, y(g.formNameCN || g.formCode), 9, gl),
2530
2529
  t("td", null, [
2531
2530
  g.templateUrl ? (d(), c("a", {
2532
2531
  key: 0,
@@ -2535,15 +2534,15 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
2535
2534
  target: "_blank",
2536
2535
  rel: "noopener noreferrer",
2537
2536
  title: g.templateName
2538
- }, y(g.templateName), 9, yl)) : (d(), c("span", {
2537
+ }, y(g.templateName), 9, hl)) : (d(), c("span", {
2539
2538
  key: 1,
2540
2539
  title: g.templateName
2541
- }, y(g.templateName), 9, kl))
2540
+ }, y(g.templateName), 9, yl))
2542
2541
  ]),
2543
2542
  t("td", {
2544
2543
  class: "fd-publish-id",
2545
2544
  title: g.templateId
2546
- }, y(g.templateId), 9, wl)
2545
+ }, y(g.templateId), 9, kl)
2547
2546
  ]))), 128))
2548
2547
  ])
2549
2548
  ]),
@@ -2552,11 +2551,11 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
2552
2551
  description: "暂无可用流程模板",
2553
2552
  "image-size": 60
2554
2553
  })) : I("", !0),
2555
- !k.value.length && u.value ? (d(), c("div", $l, y(u.value), 1)) : I("", !0)
2554
+ !k.value.length && u.value ? (d(), c("div", wl, y(u.value), 1)) : I("", !0)
2556
2555
  ])), [
2557
2556
  [h(o), i.value]
2558
2557
  ]),
2559
- t("div", xl, [
2558
+ t("div", $l, [
2560
2559
  F(h(Xe), {
2561
2560
  "current-page": l.value,
2562
2561
  "onUpdate:currentPage": m[1] || (m[1] = (g) => l.value = g),
@@ -2575,15 +2574,15 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
2575
2574
  _: 1
2576
2575
  }, 8, ["locale"]));
2577
2576
  }
2578
- }), _l = /* @__PURE__ */ E(Cl, [["__scopeId", "data-v-6fdc08dc"]]), Il = { class: "fd-toolbar" }, Dl = { class: "fd-toolbar-left flex-align-center" }, Sl = ["value"], Tl = { class: "fd-device" }, Fl = {
2577
+ }), Cl = /* @__PURE__ */ E(xl, [["__scopeId", "data-v-6fdc08dc"]]), _l = { class: "fd-toolbar" }, Il = { class: "fd-toolbar-left flex-align-center" }, Dl = ["value"], Sl = { class: "fd-device" }, Tl = {
2579
2578
  key: 0,
2580
2579
  class: "is-active",
2581
2580
  title: "移动端比例(由 URL 参数 templateType 决定)"
2582
- }, Ll = {
2581
+ }, Fl = {
2583
2582
  key: 1,
2584
2583
  class: "is-active",
2585
2584
  title: "电脑端比例(由 URL 参数 templateType 决定)"
2586
- }, Ml = { class: "fd-toolbar-right flex-align-center" }, Nl = ["disabled"], El = ["disabled"], Pl = { class: "fd-dialog fd-dialog--preview" }, Ol = { class: "fd-dialog-head" }, Ul = { class: "fd-preview-width" }, Bl = { class: "fd-dialog-body" }, Vl = { class: "fd-dialog" }, jl = { class: "fd-dialog-head" }, Rl = { class: "fd-dialog-code" }, Al = { class: "fd-dialog" }, zl = { class: "fd-dialog-head" }, Jl = { class: "fd-dialog-body" }, Wl = /* @__PURE__ */ L({
2585
+ }, Ll = { class: "fd-toolbar-right flex-align-center" }, Ml = ["disabled"], Nl = ["disabled"], El = { class: "fd-dialog fd-dialog--preview" }, Pl = { class: "fd-dialog-head" }, Ol = { class: "fd-preview-width" }, Ul = { class: "fd-dialog-body" }, Bl = { class: "fd-dialog" }, Vl = { class: "fd-dialog-head" }, jl = { class: "fd-dialog-code" }, Rl = { class: "fd-dialog" }, Al = { class: "fd-dialog-head" }, zl = { class: "fd-dialog-body" }, Jl = /* @__PURE__ */ L({
2587
2586
  __name: "Toolbar",
2588
2587
  setup(e) {
2589
2588
  const n = W(), o = O(!1), s = O(!1), a = O(!1), i = O(!1), u = O(!1), r = O(0);
@@ -2645,7 +2644,7 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
2645
2644
  }
2646
2645
  try {
2647
2646
  const C = await n.save();
2648
- C.success ? (Zs(n.formId, n.toSchema()), window.alert(`${C.message}
2647
+ C.success ? (Xs(n.formId, n.toSchema()), window.alert(`${C.message}
2649
2648
  工作表单 ID:${n.workFormId}`)) : window.alert(`保存失败:${C.message}`);
2650
2649
  } catch {
2651
2650
  window.alert(n.errorMsg || "保存失败");
@@ -2710,17 +2709,17 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
2710
2709
  const b = C.target;
2711
2710
  (S = x.value) != null && S.contains(b) || (H = p.value) != null && H.contains(b) || (a.value = !1);
2712
2711
  }
2713
- return ie(() => document.addEventListener("click", w)), je(() => document.removeEventListener("click", w)), (C, b) => (d(), c("div", Il, [
2714
- t("div", Dl, [
2712
+ return ie(() => document.addEventListener("click", w)), je(() => document.removeEventListener("click", w)), (C, b) => (d(), c("div", _l, [
2713
+ t("div", Il, [
2715
2714
  b[18] || (b[18] = t("span", { class: "fd-toolbar-title" }, "表单设计器", -1)),
2716
2715
  t("input", {
2717
2716
  class: "fd-toolbar-name",
2718
2717
  value: h(n).formName,
2719
2718
  placeholder: "表单名称(保存必填)",
2720
2719
  onInput: b[0] || (b[0] = (S) => h(n).formName = S.target.value)
2721
- }, null, 40, Sl),
2722
- t("div", Tl, [
2723
- h(n).device === "mobile" ? (d(), c("button", Fl, [...b[16] || (b[16] = [
2720
+ }, null, 40, Dl),
2721
+ t("div", Sl, [
2722
+ h(n).device === "mobile" ? (d(), c("button", Tl, [...b[16] || (b[16] = [
2724
2723
  t("svg", {
2725
2724
  class: "fd-tool-btn-icon",
2726
2725
  viewBox: "0 0 24 24",
@@ -2745,7 +2744,7 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
2745
2744
  })
2746
2745
  ], -1),
2747
2746
  U(" 移动端 ", -1)
2748
- ])])) : (d(), c("button", Ll, [...b[17] || (b[17] = [
2747
+ ])])) : (d(), c("button", Fl, [...b[17] || (b[17] = [
2749
2748
  t("svg", {
2750
2749
  class: "fd-tool-btn-icon",
2751
2750
  viewBox: "0 0 24 24",
@@ -2779,7 +2778,7 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
2779
2778
  ])]))
2780
2779
  ])
2781
2780
  ]),
2782
- t("div", Ml, [
2781
+ t("div", Ll, [
2783
2782
  t("button", {
2784
2783
  class: "fd-tool-btn",
2785
2784
  onClick: b[1] || (b[1] = (S) => o.value = !0)
@@ -2947,7 +2946,7 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
2947
2946
  t("polyline", { points: "9 14 4 9 9 4" }),
2948
2947
  t("path", { d: "M20 20v-7a4 4 0 0 0-4-4H4" })
2949
2948
  ], -1)
2950
- ])], 8, Nl),
2949
+ ])], 8, Ml),
2951
2950
  t("button", {
2952
2951
  class: "fd-tool-btn fd-tool-icon-btn",
2953
2952
  disabled: !h(n).canRedo,
@@ -2966,7 +2965,7 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
2966
2965
  t("polyline", { points: "15 14 20 9 15 4" }),
2967
2966
  t("path", { d: "M4 20v-7a4 4 0 0 1 4-4h12" })
2968
2967
  ], -1)
2969
- ])], 8, El),
2968
+ ])], 8, Nl),
2970
2969
  t("button", {
2971
2970
  ref_key: "treeBtnRef",
2972
2971
  ref: p,
@@ -2982,10 +2981,10 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
2982
2981
  class: "fd-dialog-mask",
2983
2982
  onClick: b[9] || (b[9] = J((S) => o.value = !1, ["self"]))
2984
2983
  }, [
2985
- t("div", Pl, [
2986
- t("div", Ol, [
2984
+ t("div", El, [
2985
+ t("div", Pl, [
2987
2986
  b[32] || (b[32] = t("span", null, "预览", -1)),
2988
- t("div", Ul, [
2987
+ t("div", Ol, [
2989
2988
  b[30] || (b[30] = t("label", { for: "fd-preview-width-input" }, "宽度", -1)),
2990
2989
  F(h(Ze), {
2991
2990
  id: "fd-preview-width-input",
@@ -3005,7 +3004,7 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
3005
3004
  onClick: b[8] || (b[8] = (S) => o.value = !1)
3006
3005
  }, "关闭")
3007
3006
  ]),
3008
- t("div", Bl, [
3007
+ t("div", Ul, [
3009
3008
  t("div", {
3010
3009
  class: "fd-preview-stage",
3011
3010
  style: G({ width: f.value + "px" })
@@ -3023,15 +3022,15 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
3023
3022
  class: "fd-dialog-mask",
3024
3023
  onClick: b[11] || (b[11] = J((S) => s.value = !1, ["self"]))
3025
3024
  }, [
3026
- t("div", Vl, [
3027
- t("div", jl, [
3025
+ t("div", Bl, [
3026
+ t("div", Vl, [
3028
3027
  b[33] || (b[33] = t("span", null, "JSON Schema", -1)),
3029
3028
  t("button", {
3030
3029
  class: "fd-tool-btn",
3031
3030
  onClick: b[10] || (b[10] = (S) => s.value = !1)
3032
3031
  }, "关闭")
3033
3032
  ]),
3034
- t("pre", Rl, y(j.value), 1)
3033
+ t("pre", jl, y(j.value), 1)
3035
3034
  ])
3036
3035
  ])) : I("", !0),
3037
3036
  i.value ? (d(), c("div", {
@@ -3039,8 +3038,8 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
3039
3038
  class: "fd-dialog-mask",
3040
3039
  onClick: b[14] || (b[14] = J((S) => i.value = !1, ["self"]))
3041
3040
  }, [
3042
- t("div", Al, [
3043
- t("div", zl, [
3041
+ t("div", Rl, [
3042
+ t("div", Al, [
3044
3043
  b[34] || (b[34] = t("span", null, "导入(粘贴 JSON)", -1)),
3045
3044
  t("button", {
3046
3045
  class: "fd-tool-btn",
@@ -3051,7 +3050,7 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
3051
3050
  onClick: P
3052
3051
  }, "确认")
3053
3052
  ]),
3054
- t("div", Jl, [
3053
+ t("div", zl, [
3055
3054
  ce(t("textarea", {
3056
3055
  "onUpdate:modelValue": b[13] || (b[13] = (S) => k.value = S),
3057
3056
  class: "fd-dialog-import-text",
@@ -3068,9 +3067,9 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
3068
3067
  ref: x,
3069
3068
  class: "fd-tree-drawer"
3070
3069
  }, [
3071
- F(cl)
3070
+ F(ul)
3072
3071
  ], 512)) : I("", !0),
3073
- F(_l, {
3072
+ F(Cl, {
3074
3073
  modelValue: u.value,
3075
3074
  "onUpdate:modelValue": b[15] || (b[15] = (S) => u.value = S),
3076
3075
  "form-id": h(n).originFormId,
@@ -3080,7 +3079,7 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
3080
3079
  ]))
3081
3080
  ]));
3082
3081
  }
3083
- }), Hl = /* @__PURE__ */ E(Wl, [["__scopeId", "data-v-eae12460"]]), ql = { class: "fd-palette" }, Gl = { class: "fd-palette-group-title" }, Yl = ["onDragstart", "onClick"], Kl = { class: "fd-palette-icon" }, Ql = /* @__PURE__ */ L({
3082
+ }), Wl = /* @__PURE__ */ E(Jl, [["__scopeId", "data-v-eae12460"]]), Hl = { class: "fd-palette" }, ql = { class: "fd-palette-group-title" }, Gl = ["onDragstart", "onClick"], Yl = { class: "fd-palette-icon" }, Kl = /* @__PURE__ */ L({
3084
3083
  __name: "WidgetPalette",
3085
3084
  setup(e) {
3086
3085
  const n = W(), o = tt(), s = [
@@ -3114,13 +3113,13 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
3114
3113
  function r(l) {
3115
3114
  n.addWidget(l);
3116
3115
  }
3117
- return (l, f) => (d(), c("div", ql, [
3116
+ return (l, f) => (d(), c("div", Hl, [
3118
3117
  f[0] || (f[0] = t("div", { class: "fd-palette-title" }, "控件库", -1)),
3119
3118
  (d(), c(T, null, N(s, (v) => t("div", {
3120
3119
  key: v.title,
3121
3120
  class: "fd-palette-group"
3122
3121
  }, [
3123
- t("div", Gl, y(v.title), 1),
3122
+ t("div", ql, y(v.title), 1),
3124
3123
  (d(!0), c(T, null, N(v.types, (k) => (d(), c(T, { key: k }, [
3125
3124
  i(k) ? (d(), c("div", {
3126
3125
  key: 0,
@@ -3129,31 +3128,31 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
3129
3128
  onDragstart: (P) => u(P, k),
3130
3129
  onClick: (P) => r(k)
3131
3130
  }, [
3132
- t("span", Kl, y(a[k]), 1),
3131
+ t("span", Yl, y(a[k]), 1),
3133
3132
  t("span", null, y(i(k).title), 1)
3134
- ], 40, Yl)) : I("", !0)
3133
+ ], 40, Gl)) : I("", !0)
3135
3134
  ], 64))), 128))
3136
3135
  ])), 64))
3137
3136
  ]));
3138
3137
  }
3139
- }), Xl = /* @__PURE__ */ E(Ql, [["__scopeId", "data-v-6a2bab90"]]), Zl = [
3138
+ }), Ql = /* @__PURE__ */ E(Kl, [["__scopeId", "data-v-6a2bab90"]]), Xl = [
3140
3139
  { key: "onLoad", label: "加载完成", desc: "表单数据就绪后触发" },
3141
3140
  { key: "onMounted", label: "渲染挂载", desc: "渲染完成并挂载到 DOM 后触发" },
3142
3141
  { key: "onValueChange", label: "值变化", desc: "任意字段值变化时触发" },
3143
3142
  { key: "custom", label: "自定义方法", desc: "写入的方法将挂载至全局 window,可在其他事件处理中调用" }
3144
- ], ea = { class: "fd-form-events" }, ta = { class: "fd-form-meta" }, na = { class: "fd-events-section" }, oa = { class: "fd-event-head" }, sa = ["title"], la = { class: "fd-event-key" }, aa = ["onClick", "title"], ia = {
3143
+ ], Zl = { class: "fd-form-events" }, ea = { class: "fd-form-meta" }, ta = { class: "fd-events-section" }, na = { class: "fd-event-head" }, oa = ["title"], sa = { class: "fd-event-key" }, la = ["onClick", "title"], aa = {
3145
3144
  key: 0,
3146
3145
  class: "fd-event-trigger-text"
3147
- }, da = {
3146
+ }, ia = {
3148
3147
  key: 1,
3149
3148
  class: "fd-event-trigger-placeholder"
3150
- }, ra = {
3149
+ }, da = {
3151
3150
  class: "fd-dialog",
3152
3151
  style: { "max-width": "600px" }
3153
- }, ua = { class: "fd-dialog-head" }, ca = { class: "fd-dialog-body" }, fa = /* @__PURE__ */ L({
3152
+ }, ra = { class: "fd-dialog-head" }, ua = { class: "fd-dialog-body" }, ca = /* @__PURE__ */ L({
3154
3153
  __name: "FormEventsPanel",
3155
3154
  setup(e) {
3156
- const n = Ae(() => import("./CodeEditor-CJeYvarM.js")), o = W(), s = Ie({
3155
+ const n = Ae(() => import("./CodeEditor-2Kgn5c8-.js")), o = W(), s = Ie({
3157
3156
  open: !1,
3158
3157
  type: "",
3159
3158
  hookKey: "",
@@ -3170,33 +3169,33 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
3170
3169
  function u() {
3171
3170
  s.open = !1;
3172
3171
  }
3173
- return (r, l) => (d(), c("div", ea, [
3172
+ return (r, l) => (d(), c("div", Zl, [
3174
3173
  l[4] || (l[4] = t("div", { class: "fd-property-title" }, "表单属性", -1)),
3175
- t("div", ta, [
3174
+ t("div", ea, [
3176
3175
  t("span", null, "表单:" + y(h(o).formId), 1),
3177
3176
  t("span", null, "主表:" + y(h(o).dbtable), 1)
3178
3177
  ]),
3179
- t("section", na, [
3178
+ t("section", ta, [
3180
3179
  l[2] || (l[2] = t("h4", { class: "fd-events-h" }, "全局事件 · 生命周期", -1)),
3181
3180
  l[3] || (l[3] = t("p", { class: "fd-events-tip" }, "渲染时绑定至对应钩子函数中执行", -1)),
3182
- (d(!0), c(T, null, N(h(Zl), (f) => (d(), c("div", {
3181
+ (d(!0), c(T, null, N(h(Xl), (f) => (d(), c("div", {
3183
3182
  key: f.key,
3184
3183
  class: "fd-event-row"
3185
3184
  }, [
3186
- t("div", oa, [
3185
+ t("div", na, [
3187
3186
  t("label", {
3188
3187
  title: f.desc
3189
- }, y(f.label), 9, sa),
3190
- t("code", la, y(f.key), 1)
3188
+ }, y(f.label), 9, oa),
3189
+ t("code", sa, y(f.key), 1)
3191
3190
  ]),
3192
3191
  t("div", {
3193
3192
  class: "fd-event-trigger",
3194
3193
  onClick: (v) => a(f),
3195
3194
  title: h(o).events.lifecycle[f.key] || "点击编写处理函数"
3196
3195
  }, [
3197
- h(o).events.lifecycle[f.key] ? (d(), c("span", ia, y(h(o).events.lifecycle[f.key]), 1)) : (d(), c("span", da, "点击编写")),
3196
+ h(o).events.lifecycle[f.key] ? (d(), c("span", aa, y(h(o).events.lifecycle[f.key]), 1)) : (d(), c("span", ia, "点击编写")),
3198
3197
  l[1] || (l[1] = t("span", { class: "fd-event-trigger-arrow" }, "›", -1))
3199
- ], 8, aa)
3198
+ ], 8, la)
3200
3199
  ]))), 128))
3201
3200
  ]),
3202
3201
  (d(), V(pe, { to: "body" }, [
@@ -3205,8 +3204,8 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
3205
3204
  class: "fd-dialog-mask",
3206
3205
  onClick: J(u, ["self"])
3207
3206
  }, [
3208
- t("div", ra, [
3209
- t("div", ua, [
3207
+ t("div", da, [
3208
+ t("div", ra, [
3210
3209
  t("span", null, "编写处理函数 - " + y(s.title), 1),
3211
3210
  t("button", {
3212
3211
  class: "fd-dialog-close",
@@ -3214,7 +3213,7 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
3214
3213
  title: "关闭"
3215
3214
  }, "×")
3216
3215
  ]),
3217
- t("div", ca, [
3216
+ t("div", ua, [
3218
3217
  F(h(n), {
3219
3218
  modelValue: s.draft,
3220
3219
  "onUpdate:modelValue": l[0] || (l[0] = (f) => s.draft = f),
@@ -3232,13 +3231,13 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
3232
3231
  ]))
3233
3232
  ]));
3234
3233
  }
3235
- }), ma = /* @__PURE__ */ E(fa, [["__scopeId", "data-v-7e5a3f15"]]), pa = { class: "fd-property" }, va = {
3234
+ }), fa = /* @__PURE__ */ E(ca, [["__scopeId", "data-v-7e5a3f15"]]), ma = { class: "fd-property" }, pa = {
3236
3235
  key: 1,
3237
3236
  class: "fd-property-empty"
3238
- }, ba = {
3237
+ }, va = {
3239
3238
  key: 1,
3240
3239
  class: "fd-property-item"
3241
- }, ga = ["value"], ha = { class: "fd-property-foot" }, ya = { class: "fd-property-type" }, ka = /* @__PURE__ */ L({
3240
+ }, ba = ["value"], ga = { class: "fd-property-foot" }, ha = { class: "fd-property-type" }, ya = /* @__PURE__ */ L({
3242
3241
  __name: "PropertyPanel",
3243
3242
  setup(e) {
3244
3243
  const n = W(), o = M(() => n.selectedNode), s = M(() => o.value ? K(o.value.type) : void 0), a = M(() => {
@@ -3256,16 +3255,16 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
3256
3255
  }
3257
3256
  return (l, f) => {
3258
3257
  var v;
3259
- return d(), c("div", pa, [
3258
+ return d(), c("div", ma, [
3260
3259
  f[2] || (f[2] = t("div", { class: "fd-property-title" }, "属性", -1)),
3261
- h(n).selectedForm ? (d(), V(ma, { key: 0 })) : o.value ? (d(), c(T, { key: 2 }, [
3260
+ h(n).selectedForm ? (d(), V(fa, { key: 0 })) : o.value ? (d(), c(T, { key: 2 }, [
3262
3261
  a.value ? (d(), V(me(a.value), {
3263
3262
  key: 0,
3264
3263
  node: o.value,
3265
3264
  fields: h(n).fields,
3266
3265
  onUpdate: i
3267
3266
  }, null, 40, ["node", "fields"])) : I("", !0),
3268
- u.value ? (d(), c("div", ba, [
3267
+ u.value ? (d(), c("div", va, [
3269
3268
  f[1] || (f[1] = t("label", null, "占比", -1)),
3270
3269
  t("input", {
3271
3270
  type: "number",
@@ -3273,12 +3272,12 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
3273
3272
  max: "24",
3274
3273
  value: o.value.gridSpan,
3275
3274
  onChange: r
3276
- }, null, 40, ga)
3275
+ }, null, 40, ba)
3277
3276
  ])) : I("", !0),
3278
- t("div", ha, [
3279
- t("span", ya, "类型:" + y((v = s.value) == null ? void 0 : v.title), 1)
3277
+ t("div", ga, [
3278
+ t("span", ha, "类型:" + y((v = s.value) == null ? void 0 : v.title), 1)
3280
3279
  ])
3281
- ], 64)) : (d(), c("div", va, [...f[0] || (f[0] = [
3280
+ ], 64)) : (d(), c("div", pa, [...f[0] || (f[0] = [
3282
3281
  t("span", { class: "fd-property-empty-icon" }, "⚙", -1),
3283
3282
  t("span", null, [
3284
3283
  U("请选择左侧控件"),
@@ -3289,10 +3288,10 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
3289
3288
  ]);
3290
3289
  };
3291
3290
  }
3292
- }), wa = /* @__PURE__ */ E(ka, [["__scopeId", "data-v-e89617c7"]]), $a = {
3291
+ }), ka = /* @__PURE__ */ E(ya, [["__scopeId", "data-v-e89617c7"]]), wa = {
3293
3292
  key: 0,
3294
3293
  class: "fd-canvas-dropzone"
3295
- }, xa = /* @__PURE__ */ L({
3294
+ }, $a = /* @__PURE__ */ L({
3296
3295
  __name: "CanvasNode",
3297
3296
  props: {
3298
3297
  node: {},
@@ -3459,7 +3458,7 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
3459
3458
  index: q,
3460
3459
  class: R(u(B, q))
3461
3460
  }, null, 8, ["node", "parent-id", "index", "class"]))), 128)),
3462
- !e.node.children || e.node.children.length === 0 ? (d(), c("div", $a, "拖拽控件到此容器")) : I("", !0)
3461
+ !e.node.children || e.node.children.length === 0 ? (d(), c("div", wa, "拖拽控件到此容器")) : I("", !0)
3463
3462
  ]),
3464
3463
  key: "0"
3465
3464
  } : void 0
@@ -3467,19 +3466,19 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
3467
3466
  ], 38);
3468
3467
  };
3469
3468
  }
3470
- }), Ca = /* @__PURE__ */ E(xa, [["__scopeId", "data-v-3f3a43d3"]]), _a = { class: "fd-designer" }, Ia = { class: "fd-designer-body" }, Da = { class: "fd-designer-left" }, Sa = {
3469
+ }), xa = /* @__PURE__ */ E($a, [["__scopeId", "data-v-3f3a43d3"]]), Ca = { class: "fd-designer" }, _a = { class: "fd-designer-body" }, Ia = { class: "fd-designer-left" }, Da = {
3471
3470
  key: 0,
3472
3471
  class: "fd-canvas-notice"
3473
- }, Ta = {
3472
+ }, Sa = {
3474
3473
  key: 1,
3475
3474
  class: "fd-canvas-state"
3476
- }, Fa = {
3475
+ }, Ta = {
3477
3476
  key: 2,
3478
3477
  class: "fd-canvas-state fd-canvas-state--error"
3479
- }, La = {
3478
+ }, Fa = {
3480
3479
  key: 0,
3481
3480
  class: "fd-canvas-empty"
3482
- }, Ma = { class: "fd-designer-right" }, Na = /* @__PURE__ */ L({
3481
+ }, La = { class: "fd-designer-right" }, Ma = /* @__PURE__ */ L({
3483
3482
  __name: "Designer",
3484
3483
  props: {
3485
3484
  formId: {}
@@ -3488,7 +3487,7 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
3488
3487
  const n = e, o = W();
3489
3488
  ie(async () => {
3490
3489
  const a = new URLSearchParams(window.location.search), i = a.get("baseUrl");
3491
- i && Us(i);
3490
+ i && Os(i);
3492
3491
  const u = n.formId || a.get("id") || "", r = a.get("formVersion") || a.get("FormVersion") || "", l = a.get("openType") || a.get("OpenType") || "";
3493
3492
  await o.openForm(u, r, l);
3494
3493
  });
@@ -3498,11 +3497,11 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
3498
3497
  const i = (r = a.dataTransfer) == null ? void 0 : r.getData("application/x-fd-new"), u = (l = a.dataTransfer) == null ? void 0 : l.getData("application/x-fd-move");
3499
3498
  i ? o.addWidget(i, null, o.widgets.length) : u && o.moveNode(u, null, o.widgets.length);
3500
3499
  }
3501
- return (a, i) => (d(), c("div", _a, [
3502
- F(Hl),
3503
- t("div", Ia, [
3504
- t("aside", Da, [
3505
- F(Xl)
3500
+ return (a, i) => (d(), c("div", Ca, [
3501
+ F(Wl),
3502
+ t("div", _a, [
3503
+ t("aside", Ia, [
3504
+ F(Ql)
3506
3505
  ]),
3507
3506
  t("main", {
3508
3507
  class: "fd-designer-center",
@@ -3510,17 +3509,17 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
3510
3509
  }, ["prevent"])),
3511
3510
  onDrop: s
3512
3511
  }, [
3513
- h(o).noticeMsg ? (d(), c("div", Sa, y(h(o).noticeMsg), 1)) : I("", !0),
3514
- h(o).loading ? (d(), c("div", Ta, "正在加载表单…")) : h(o).errorMsg ? (d(), c("div", Fa, y(h(o).errorMsg), 1)) : (d(), c("div", {
3512
+ h(o).noticeMsg ? (d(), c("div", Da, y(h(o).noticeMsg), 1)) : I("", !0),
3513
+ h(o).loading ? (d(), c("div", Sa, "正在加载表单…")) : h(o).errorMsg ? (d(), c("div", Ta, y(h(o).errorMsg), 1)) : (d(), c("div", {
3515
3514
  key: 3,
3516
3515
  class: R(["fd-canvas", { "is-mobile": h(o).device === "mobile", "is-selected": h(o).selectedForm }]),
3517
3516
  onClick: i[0] || (i[0] = (u) => h(o).selectForm())
3518
3517
  }, [
3519
- h(o).widgets.length === 0 ? (d(), c("div", La, [...i[2] || (i[2] = [
3518
+ h(o).widgets.length === 0 ? (d(), c("div", Fa, [...i[2] || (i[2] = [
3520
3519
  t("span", { class: "fd-canvas-empty-icon" }, "▦", -1),
3521
3520
  t("span", null, "从左侧拖拽控件到此处", -1)
3522
3521
  ])])) : I("", !0),
3523
- (d(!0), c(T, null, N(h(o).widgets, (u, r) => (d(), V(Ca, {
3522
+ (d(!0), c(T, null, N(h(o).widgets, (u, r) => (d(), V(xa, {
3524
3523
  key: u.id,
3525
3524
  node: u,
3526
3525
  "parent-id": null,
@@ -3528,14 +3527,14 @@ const ml = { class: "fd-publish-tip" }, pl = { class: "fd-publish-tip-text" }, v
3528
3527
  }, null, 8, ["node", "index"]))), 128))
3529
3528
  ], 2))
3530
3529
  ], 32),
3531
- t("aside", Ma, [
3532
- F(wa)
3530
+ t("aside", La, [
3531
+ F(ka)
3533
3532
  ])
3534
3533
  ])
3535
3534
  ]));
3536
3535
  }
3537
- }), Ea = /* @__PURE__ */ E(Na, [["__scopeId", "data-v-86f01272"]]);
3538
- function Xa(e) {
3536
+ }), Na = /* @__PURE__ */ E(Ma, [["__scopeId", "data-v-86f01272"]]);
3537
+ function Qa(e) {
3539
3538
  he(), e.baseUrl && Le({ baseUrl: e.baseUrl });
3540
3539
  let n = null;
3541
3540
  const s = ze({
@@ -3558,21 +3557,21 @@ function Xa(e) {
3558
3557
  unmount: () => s.unmount()
3559
3558
  };
3560
3559
  }
3561
- const Za = {
3560
+ const Xa = {
3562
3561
  install(e, n = {}) {
3563
- he(), n.baseUrl && Le({ baseUrl: n.baseUrl }), e.component("FdDesigner", Ea);
3562
+ he(), n.baseUrl && Le({ baseUrl: n.baseUrl }), e.component("FdDesigner", Na);
3564
3563
  }
3565
3564
  };
3566
3565
  export {
3567
- Ea as D,
3568
- Zl as L,
3566
+ Na as D,
3567
+ Xl as L,
3569
3568
  Oe as R,
3570
3569
  E as _,
3571
- Za as a,
3572
- Xa as b,
3570
+ Xa as a,
3571
+ Qa as b,
3573
3572
  Le as c,
3574
- Ya as d,
3575
- Qa as l,
3573
+ Ga as d,
3574
+ Ka as l,
3576
3575
  ee as r,
3577
- Ka as s
3576
+ Ya as s
3578
3577
  };