fitful-form 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vue-form.js CHANGED
@@ -1,27 +1,27 @@
1
- import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, h as l, mergeProps as u, nextTick as d, normalizeClass as f, onMounted as p, openBlock as m, reactive as h, ref as g, renderList as _, renderSlot as v, resolveComponent as y, toDisplayString as b, watch as x, withCtx as S, withModifiers as C } from "vue";
2
- import { ElButton as w, ElCol as T, ElForm as E, ElRow as D } from "element-plus";
1
+ import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, h as l, mergeProps as u, nextTick as d, normalizeClass as f, onMounted as p, openBlock as m, reactive as h, ref as g, renderList as _, renderSlot as v, resolveComponent as y, toDisplayString as b, watch as x, withCtx as S, withModifiers as ee } from "vue";
2
+ import { ElButton as C, ElCol as w, ElForm as T, ElRow as E } from "element-plus";
3
3
  //#region node_modules/lodash-es/_freeGlobal.js
4
- var O = typeof global == "object" && global && global.Object === Object && global, k = typeof self == "object" && self && self.Object === Object && self, A = O || k || Function("return this")(), j = A.Symbol, M = Object.prototype, N = M.hasOwnProperty, P = M.toString, F = j ? j.toStringTag : void 0;
5
- function I(e) {
6
- var t = N.call(e, F), n = e[F];
4
+ var D = typeof global == "object" && global && global.Object === Object && global, O = typeof self == "object" && self && self.Object === Object && self, k = D || O || Function("return this")(), A = k.Symbol, j = Object.prototype, M = j.hasOwnProperty, N = j.toString, P = A ? A.toStringTag : void 0;
5
+ function F(e) {
6
+ var t = M.call(e, P), n = e[P];
7
7
  try {
8
- e[F] = void 0;
8
+ e[P] = void 0;
9
9
  var r = !0;
10
10
  } catch {}
11
- var i = P.call(e);
12
- return r && (t ? e[F] = n : delete e[F]), i;
11
+ var i = N.call(e);
12
+ return r && (t ? e[P] = n : delete e[P]), i;
13
13
  }
14
14
  //#endregion
15
15
  //#region node_modules/lodash-es/_objectToString.js
16
- var ee = Object.prototype.toString;
16
+ var I = Object.prototype.toString;
17
17
  function te(e) {
18
- return ee.call(e);
18
+ return I.call(e);
19
19
  }
20
20
  //#endregion
21
21
  //#region node_modules/lodash-es/_baseGetTag.js
22
- var ne = "[object Null]", L = "[object Undefined]", R = j ? j.toStringTag : void 0;
22
+ var ne = "[object Null]", L = "[object Undefined]", R = A ? A.toStringTag : void 0;
23
23
  function z(e) {
24
- return e == null ? e === void 0 ? L : ne : R && R in Object(e) ? I(e) : te(e);
24
+ return e == null ? e === void 0 ? L : ne : R && R in Object(e) ? F(e) : te(e);
25
25
  }
26
26
  //#endregion
27
27
  //#region node_modules/lodash-es/isObjectLike.js
@@ -39,28 +39,28 @@ function H(e) {
39
39
  }
40
40
  //#endregion
41
41
  //#region node_modules/lodash-es/isFunction.js
42
- var U = "[object AsyncFunction]", re = "[object Function]", ie = "[object GeneratorFunction]", ae = "[object Proxy]";
43
- function oe(e) {
42
+ var U = "[object AsyncFunction]", re = "[object Function]", W = "[object GeneratorFunction]", ie = "[object Proxy]";
43
+ function ae(e) {
44
44
  if (!H(e)) return !1;
45
45
  var t = z(e);
46
- return t == re || t == ie || t == U || t == ae;
46
+ return t == re || t == W || t == U || t == ie;
47
47
  }
48
48
  //#endregion
49
49
  //#region node_modules/lodash-es/_coreJsData.js
50
- var se = A["__core-js_shared__"], ce = function() {
51
- var e = /[^.]+$/.exec(se && se.keys && se.keys.IE_PROTO || "");
50
+ var G = k["__core-js_shared__"], oe = function() {
51
+ var e = /[^.]+$/.exec(G && G.keys && G.keys.IE_PROTO || "");
52
52
  return e ? "Symbol(src)_1." + e : "";
53
53
  }();
54
- function le(e) {
55
- return !!ce && ce in e;
54
+ function se(e) {
55
+ return !!oe && oe in e;
56
56
  }
57
57
  //#endregion
58
58
  //#region node_modules/lodash-es/_toSource.js
59
- var ue = Function.prototype.toString;
60
- function W(e) {
59
+ var ce = Function.prototype.toString;
60
+ function K(e) {
61
61
  if (e != null) {
62
62
  try {
63
- return ue.call(e);
63
+ return ce.call(e);
64
64
  } catch {}
65
65
  try {
66
66
  return e + "";
@@ -70,24 +70,24 @@ function W(e) {
70
70
  }
71
71
  //#endregion
72
72
  //#region node_modules/lodash-es/_baseIsNative.js
73
- var de = /[\\^$.*+?()[\]{}|]/g, fe = /^\[object .+?Constructor\]$/, pe = Function.prototype, me = Object.prototype, he = pe.toString, ge = me.hasOwnProperty, G = RegExp("^" + he.call(ge).replace(de, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
74
- function _e(e) {
75
- return !H(e) || le(e) ? !1 : (oe(e) ? G : fe).test(W(e));
73
+ var le = /[\\^$.*+?()[\]{}|]/g, ue = /^\[object .+?Constructor\]$/, de = Function.prototype, fe = Object.prototype, pe = de.toString, me = fe.hasOwnProperty, he = RegExp("^" + pe.call(me).replace(le, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
74
+ function ge(e) {
75
+ return !H(e) || se(e) ? !1 : (ae(e) ? he : ue).test(K(e));
76
76
  }
77
77
  //#endregion
78
78
  //#region node_modules/lodash-es/_getValue.js
79
- function ve(e, t) {
79
+ function _e(e, t) {
80
80
  return e?.[t];
81
81
  }
82
82
  //#endregion
83
83
  //#region node_modules/lodash-es/_getNative.js
84
- function K(e, t) {
85
- var n = ve(e, t);
86
- return _e(n) ? n : void 0;
84
+ function q(e, t) {
85
+ var n = _e(e, t);
86
+ return ge(n) ? n : void 0;
87
87
  }
88
88
  //#endregion
89
89
  //#region node_modules/lodash-es/_WeakMap.js
90
- var q = K(A, "WeakMap"), ye = Object.create, be = function() {
90
+ var ve = q(k, "WeakMap"), ye = Object.create, be = function() {
91
91
  function e() {}
92
92
  return function(t) {
93
93
  if (!H(t)) return {};
@@ -108,7 +108,7 @@ function xe(e, t) {
108
108
  //#region node_modules/lodash-es/_defineProperty.js
109
109
  var Se = function() {
110
110
  try {
111
- var e = K(Object, "defineProperty");
111
+ var e = q(Object, "defineProperty");
112
112
  return e({}, "", {}), e;
113
113
  } catch {}
114
114
  }();
@@ -149,7 +149,7 @@ function Ae(e, t, n) {
149
149
  }
150
150
  //#endregion
151
151
  //#region node_modules/lodash-es/_copyObject.js
152
- function J(e, t, n, r) {
152
+ function je(e, t, n, r) {
153
153
  var i = !n;
154
154
  n ||= {};
155
155
  for (var a = -1, o = t.length; ++a < o;) {
@@ -160,14 +160,14 @@ function J(e, t, n, r) {
160
160
  }
161
161
  //#endregion
162
162
  //#region node_modules/lodash-es/isLength.js
163
- var je = 9007199254740991;
164
- function Me(e) {
165
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= je;
163
+ var Me = 9007199254740991;
164
+ function Ne(e) {
165
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Me;
166
166
  }
167
167
  //#endregion
168
168
  //#region node_modules/lodash-es/isArrayLike.js
169
- function Ne(e) {
170
- return e != null && Me(e.length) && !oe(e);
169
+ function J(e) {
170
+ return e != null && Ne(e.length) && !ae(e);
171
171
  }
172
172
  //#endregion
173
173
  //#region node_modules/lodash-es/_isPrototype.js
@@ -202,10 +202,10 @@ function Ue() {
202
202
  }
203
203
  //#endregion
204
204
  //#region node_modules/lodash-es/isBuffer.js
205
- var We = typeof exports == "object" && exports && !exports.nodeType && exports, Ge = We && typeof module == "object" && module && !module.nodeType && module, Ke = Ge && Ge.exports === We ? A.Buffer : void 0, qe = (Ke ? Ke.isBuffer : void 0) || Ue, Je = "[object Arguments]", Ye = "[object Array]", Xe = "[object Boolean]", Ze = "[object Date]", Qe = "[object Error]", $e = "[object Function]", et = "[object Map]", tt = "[object Number]", nt = "[object Object]", rt = "[object RegExp]", it = "[object Set]", at = "[object String]", ot = "[object WeakMap]", st = "[object ArrayBuffer]", ct = "[object DataView]", lt = "[object Float32Array]", ut = "[object Float64Array]", dt = "[object Int8Array]", ft = "[object Int16Array]", pt = "[object Int32Array]", mt = "[object Uint8Array]", ht = "[object Uint8ClampedArray]", gt = "[object Uint16Array]", _t = "[object Uint32Array]", Y = {};
205
+ var We = typeof exports == "object" && exports && !exports.nodeType && exports, Ge = We && typeof module == "object" && module && !module.nodeType && module, Ke = Ge && Ge.exports === We ? k.Buffer : void 0, qe = (Ke ? Ke.isBuffer : void 0) || Ue, Je = "[object Arguments]", Ye = "[object Array]", Xe = "[object Boolean]", Ze = "[object Date]", Qe = "[object Error]", $e = "[object Function]", et = "[object Map]", tt = "[object Number]", nt = "[object Object]", rt = "[object RegExp]", it = "[object Set]", at = "[object String]", ot = "[object WeakMap]", st = "[object ArrayBuffer]", ct = "[object DataView]", lt = "[object Float32Array]", ut = "[object Float64Array]", dt = "[object Int8Array]", ft = "[object Int16Array]", pt = "[object Int32Array]", mt = "[object Uint8Array]", ht = "[object Uint8ClampedArray]", gt = "[object Uint16Array]", _t = "[object Uint32Array]", Y = {};
206
206
  Y[lt] = Y[ut] = Y[dt] = Y[ft] = Y[pt] = Y[mt] = Y[ht] = Y[gt] = Y[_t] = !0, Y[Je] = Y[Ye] = Y[st] = Y[Xe] = Y[ct] = Y[Ze] = Y[Qe] = Y[$e] = Y[et] = Y[tt] = Y[nt] = Y[rt] = Y[it] = Y[at] = Y[ot] = !1;
207
207
  function vt(e) {
208
- return B(e) && Me(e.length) && !!Y[z(e)];
208
+ return B(e) && Ne(e.length) && !!Y[z(e)];
209
209
  }
210
210
  //#endregion
211
211
  //#region node_modules/lodash-es/_baseUnary.js
@@ -216,7 +216,7 @@ function yt(e) {
216
216
  }
217
217
  //#endregion
218
218
  //#region node_modules/lodash-es/_nodeUtil.js
219
- var bt = typeof exports == "object" && exports && !exports.nodeType && exports, xt = bt && typeof module == "object" && module && !module.nodeType && module, St = xt && xt.exports === bt && O.process, Ct = function() {
219
+ var bt = typeof exports == "object" && exports && !exports.nodeType && exports, xt = bt && typeof module == "object" && module && !module.nodeType && module, St = xt && xt.exports === bt && D.process, Ct = function() {
220
220
  try {
221
221
  return xt && xt.require && xt.require("util").types || St && St.binding && St.binding("util");
222
222
  } catch {}
@@ -245,7 +245,7 @@ function jt(e) {
245
245
  //#endregion
246
246
  //#region node_modules/lodash-es/keys.js
247
247
  function Mt(e) {
248
- return Ne(e) ? Dt(e) : jt(e);
248
+ return J(e) ? Dt(e) : jt(e);
249
249
  }
250
250
  //#endregion
251
251
  //#region node_modules/lodash-es/_nativeKeysIn.js
@@ -266,11 +266,11 @@ function Ft(e) {
266
266
  //#endregion
267
267
  //#region node_modules/lodash-es/keysIn.js
268
268
  function It(e) {
269
- return Ne(e) ? Dt(e, !0) : Ft(e);
269
+ return J(e) ? Dt(e, !0) : Ft(e);
270
270
  }
271
271
  //#endregion
272
272
  //#region node_modules/lodash-es/_nativeCreate.js
273
- var Lt = K(Object, "create");
273
+ var Lt = q(Object, "create");
274
274
  //#endregion
275
275
  //#region node_modules/lodash-es/_hashClear.js
276
276
  function Rt() {
@@ -364,7 +364,7 @@ function Z(e) {
364
364
  Z.prototype.clear = qt, Z.prototype.delete = Xt, Z.prototype.get = Zt, Z.prototype.has = Qt, Z.prototype.set = $t;
365
365
  //#endregion
366
366
  //#region node_modules/lodash-es/_Map.js
367
- var en = K(A, "Map");
367
+ var en = q(k, "Map");
368
368
  //#endregion
369
369
  //#region node_modules/lodash-es/_mapCacheClear.js
370
370
  function tn() {
@@ -470,16 +470,16 @@ vn.prototype.clear = fn, vn.prototype.delete = pn, vn.prototype.get = mn, vn.pro
470
470
  //#endregion
471
471
  //#region node_modules/lodash-es/_baseAssign.js
472
472
  function yn(e, t) {
473
- return e && J(t, Mt(t), e);
473
+ return e && je(t, Mt(t), e);
474
474
  }
475
475
  //#endregion
476
476
  //#region node_modules/lodash-es/_baseAssignIn.js
477
477
  function bn(e, t) {
478
- return e && J(t, It(t), e);
478
+ return e && je(t, It(t), e);
479
479
  }
480
480
  //#endregion
481
481
  //#region node_modules/lodash-es/_cloneBuffer.js
482
- var xn = typeof exports == "object" && exports && !exports.nodeType && exports, Sn = xn && typeof module == "object" && module && !module.nodeType && module, Cn = Sn && Sn.exports === xn ? A.Buffer : void 0, wn = Cn ? Cn.allocUnsafe : void 0;
482
+ var xn = typeof exports == "object" && exports && !exports.nodeType && exports, Sn = xn && typeof module == "object" && module && !module.nodeType && module, Cn = Sn && Sn.exports === xn ? k.Buffer : void 0, wn = Cn ? Cn.allocUnsafe : void 0;
483
483
  function Tn(e, t) {
484
484
  if (t) return e.slice();
485
485
  var n = e.length, r = wn ? wn(n) : new e.constructor(n);
@@ -509,7 +509,7 @@ var On = Object.prototype.propertyIsEnumerable, kn = Object.getOwnPropertySymbol
509
509
  //#endregion
510
510
  //#region node_modules/lodash-es/_copySymbols.js
511
511
  function jn(e, t) {
512
- return J(e, An(e), t);
512
+ return je(e, An(e), t);
513
513
  }
514
514
  //#endregion
515
515
  //#region node_modules/lodash-es/_getSymbolsIn.js
@@ -520,7 +520,7 @@ var Mn = Object.getOwnPropertySymbols ? function(e) {
520
520
  //#endregion
521
521
  //#region node_modules/lodash-es/_copySymbolsIn.js
522
522
  function Nn(e, t) {
523
- return J(e, Mn(e), t);
523
+ return je(e, Mn(e), t);
524
524
  }
525
525
  //#endregion
526
526
  //#region node_modules/lodash-es/_baseGetAllKeys.js
@@ -540,9 +540,9 @@ function In(e) {
540
540
  }
541
541
  //#endregion
542
542
  //#region node_modules/lodash-es/_DataView.js
543
- var Ln = K(A, "DataView"), Rn = K(A, "Promise"), zn = K(A, "Set"), Bn = "[object Map]", Vn = "[object Object]", Hn = "[object Promise]", Un = "[object Set]", Wn = "[object WeakMap]", Gn = "[object DataView]", Kn = W(Ln), qn = W(en), Jn = W(Rn), Yn = W(zn), Xn = W(q), Q = z;
544
- (Ln && Q(new Ln(/* @__PURE__ */ new ArrayBuffer(1))) != Gn || en && Q(new en()) != Bn || Rn && Q(Rn.resolve()) != Hn || zn && Q(new zn()) != Un || q && Q(new q()) != Wn) && (Q = function(e) {
545
- var t = z(e), n = t == Vn ? e.constructor : void 0, r = n ? W(n) : "";
543
+ var Ln = q(k, "DataView"), Rn = q(k, "Promise"), zn = q(k, "Set"), Bn = "[object Map]", Vn = "[object Object]", Hn = "[object Promise]", Un = "[object Set]", Wn = "[object WeakMap]", Gn = "[object DataView]", Kn = K(Ln), qn = K(en), Jn = K(Rn), Yn = K(zn), Xn = K(ve), Q = z;
544
+ (Ln && Q(new Ln(/* @__PURE__ */ new ArrayBuffer(1))) != Gn || en && Q(new en()) != Bn || Rn && Q(Rn.resolve()) != Hn || zn && Q(new zn()) != Un || ve && Q(new ve()) != Wn) && (Q = function(e) {
545
+ var t = z(e), n = t == Vn ? e.constructor : void 0, r = n ? K(n) : "";
546
546
  if (r) switch (r) {
547
547
  case Kn: return Gn;
548
548
  case qn: return Bn;
@@ -559,7 +559,7 @@ function $n(e) {
559
559
  }
560
560
  //#endregion
561
561
  //#region node_modules/lodash-es/_Uint8Array.js
562
- var er = A.Uint8Array;
562
+ var er = k.Uint8Array;
563
563
  //#endregion
564
564
  //#region node_modules/lodash-es/_cloneArrayBuffer.js
565
565
  function tr(e) {
@@ -581,7 +581,7 @@ function ir(e) {
581
581
  }
582
582
  //#endregion
583
583
  //#region node_modules/lodash-es/_cloneSymbol.js
584
- var ar = j ? j.prototype : void 0, or = ar ? ar.valueOf : void 0;
584
+ var ar = A ? A.prototype : void 0, or = ar ? ar.valueOf : void 0;
585
585
  function sr(e) {
586
586
  return or ? Object(or.call(e)) : {};
587
587
  }
@@ -761,20 +761,20 @@ var _i = ["data-field-key"], vi = { class: "form-item-label" }, yi = {
761
761
  function x(e) {
762
762
  return Array.isArray(e) ? e.map((e) => g(e)) : typeof e == "string" && e || e && typeof e == "object" ? [g(e)] : [];
763
763
  }
764
- function w(e) {
764
+ function C(e) {
765
765
  let t = `${e.uploadType ?? ""} ${e.mimeType ?? ""}`.toLowerCase(), n = `${e.name} ${e.url}`.toLowerCase();
766
766
  return t.includes("image/") || t === "image" || /\.(png|jpe?g|gif|webp|bmp|svg|avif|heic|heif)(?:[?#].*)?$/.test(n);
767
767
  }
768
- function T(e, t) {
768
+ function w(e, t) {
769
769
  return String(e.uid ?? e.id ?? `${e.url}-${t}`);
770
770
  }
771
- function E(e) {
772
- return I.value.slice(0, e).filter((e) => !!e.url && w(e)).length;
771
+ function T(e) {
772
+ return F.value.slice(0, e).filter((e) => !!e.url && C(e)).length;
773
773
  }
774
- function D(e) {
774
+ function E(e) {
775
775
  f("update:modelValue", e);
776
776
  }
777
- function O(e) {
777
+ function D(e) {
778
778
  let t = d.modelValue;
779
779
  if (Array.isArray(t)) {
780
780
  f("update:modelValue", t.filter((t, n) => n !== e));
@@ -782,10 +782,10 @@ var _i = ["data-field-key"], vi = { class: "form-item-label" }, yi = {
782
782
  }
783
783
  f("update:modelValue", []);
784
784
  }
785
- function k(e) {
785
+ function O(e) {
786
786
  e.url && window.open(e.url, "_blank", "noopener,noreferrer");
787
787
  }
788
- function A(e, t = d.child.options ?? []) {
788
+ function k(e, t = d.child.options ?? []) {
789
789
  for (let n of t) {
790
790
  if (!n || typeof n != "object") continue;
791
791
  let t = n.value ?? n.key ?? n;
@@ -795,18 +795,18 @@ var _i = ["data-field-key"], vi = { class: "form-item-label" }, yi = {
795
795
  if (t[r] === e[r]) return String(n.label ?? e);
796
796
  }
797
797
  if (n.children) {
798
- let t = A(e, n.children);
798
+ let t = k(e, n.children);
799
799
  if (t !== null) return t;
800
800
  }
801
801
  }
802
802
  return null;
803
803
  }
804
- function j(e) {
804
+ function A(e) {
805
805
  if (e == null || e === "") return "-";
806
806
  if (e instanceof Date) return e.toLocaleString();
807
807
  if (typeof e == "boolean") return e ? "是" : "否";
808
808
  if (typeof e == "object") {
809
- let t = A(e);
809
+ let t = k(e);
810
810
  if (t !== null) return t;
811
811
  try {
812
812
  return JSON.stringify(e);
@@ -816,10 +816,10 @@ var _i = ["data-field-key"], vi = { class: "form-item-label" }, yi = {
816
816
  }
817
817
  return String(e);
818
818
  }
819
- function M(e) {
820
- return e.map((e) => A(e) ?? j(e));
819
+ function j(e) {
820
+ return e.map((e) => k(e) ?? A(e));
821
821
  }
822
- let N = t(() => {
822
+ let M = t(() => {
823
823
  let e = d.child.placeholder ?? R(d.child.type) ?? `${d.child.label ?? d.child.key}不能为空`, t = (d.child.rules ?? []).map((t) => {
824
824
  let n = { ...t };
825
825
  return n.required && !n.message && (n.message = e), n;
@@ -829,10 +829,10 @@ var _i = ["data-field-key"], vi = { class: "form-item-label" }, yi = {
829
829
  message: e,
830
830
  trigger: ["blur", "change"]
831
831
  }), t;
832
- }), P = t(() => !!(d.child.isText || z.value.readonly || z.value.disabled)), F = t(() => !P.value), I = t(() => x(d.modelValue ?? "")), ee = t(() => Array.isArray(d.modelValue) ? d.modelValue : []), te = t(() => I.value.filter((e) => !!e.url && w(e)).map((e) => e.url)), ne = t(() => {
832
+ }), N = t(() => !!d.child.isText), P = t(() => !N.value && z.value.disabled !== !0), F = t(() => x(d.modelValue ?? "")), I = t(() => Array.isArray(d.modelValue) ? d.modelValue : []), te = t(() => F.value.filter((e) => !!e.url && C(e)).map((e) => e.url)), ne = t(() => {
833
833
  let e = Number(d.child.limit ?? z.value.limit);
834
834
  return Number.isFinite(e) && e > 0 ? e : Infinity;
835
- }), L = t(() => I.value.length < ne.value);
835
+ }), L = t(() => F.value.length < ne.value);
836
836
  function R(e) {
837
837
  if ([
838
838
  "select",
@@ -887,8 +887,8 @@ var _i = ["data-field-key"], vi = { class: "form-item-label" }, yi = {
887
887
  return e;
888
888
  });
889
889
  return (t, l) => {
890
- let d = y("el-text"), p = y("el-image"), h = y("el-button"), g = y("el-upload"), x = y("el-tag"), A = y("el-input"), ne = y("el-option"), R = y("el-select"), B = y("el-cascader"), V = y("el-checkbox"), H = y("el-color-picker"), U = y("el-date-picker"), re = y("el-input-number"), ie = y("el-input-tag"), ae = y("el-input-otp"), oe = y("el-mention"), se = y("el-radio"), ce = y("el-radio-group"), le = y("el-rate"), ue = y("el-select-v2"), W = y("el-slider"), de = y("el-switch"), fe = y("el-time-picker"), pe = y("el-time-select"), me = y("el-transfer"), he = y("el-tree-select"), ge = y("el-form-item"), G = y("el-col");
891
- return m(), n(G, {
890
+ let d = y("el-text"), p = y("el-image"), h = y("el-button"), g = y("el-upload"), x = y("el-tag"), k = y("el-input"), ne = y("el-option"), R = y("el-select"), B = y("el-cascader"), V = y("el-checkbox"), H = y("el-color-picker"), U = y("el-date-picker"), re = y("el-input-number"), W = y("el-input-tag"), ie = y("el-input-otp"), ae = y("el-mention"), G = y("el-radio"), oe = y("el-radio-group"), se = y("el-rate"), ce = y("el-select-v2"), K = y("el-slider"), le = y("el-switch"), ue = y("el-time-picker"), de = y("el-time-select"), fe = y("el-transfer"), pe = y("el-tree-select"), me = y("el-form-item"), he = y("el-col");
891
+ return m(), n(he, {
892
892
  class: "dynamic-field-col",
893
893
  span: c.child.span ?? 6,
894
894
  offset: c.child.offset
@@ -896,28 +896,28 @@ var _i = ["data-field-key"], vi = { class: "form-item-label" }, yi = {
896
896
  default: S(() => [a("div", {
897
897
  class: "form-node",
898
898
  "data-field-key": c.child.key
899
- }, [s(ge, {
899
+ }, [s(me, {
900
900
  "label-width": c.child.labelWidth ?? c.child["label-width"],
901
901
  prop: c.prop ?? c.child.key,
902
902
  required: c.child.required,
903
- rules: N.value
903
+ rules: M.value
904
904
  }, {
905
905
  label: S(() => [a("span", vi, [v(t.$slots, "action", {}, void 0, !0), a("span", null, b(c.child.label), 1)])]),
906
906
  default: S(() => [c.child.type === "upload" ? (m(), i("div", yi, [
907
- P.value && !I.value.length ? (m(), n(d, { key: 0 }, {
907
+ N.value && !F.value.length ? (m(), n(d, { key: 0 }, {
908
908
  default: S(() => [...l[21] ||= [o("-", -1)]]),
909
909
  _: 1
910
910
  })) : r("", !0),
911
- I.value.length ? (m(), i("div", bi, [(m(!0), i(e, null, _(I.value, (e, t) => (m(), i("div", {
912
- key: T(e, t),
911
+ F.value.length ? (m(), i("div", bi, [(m(!0), i(e, null, _(F.value, (e, t) => (m(), i("div", {
912
+ key: w(e, t),
913
913
  class: "upload-list-item"
914
914
  }, [e.url ? (m(), n(p, {
915
915
  key: 0,
916
916
  class: "upload-list-image",
917
917
  src: e.url,
918
918
  alt: e.name,
919
- "preview-src-list": w(e) ? te.value : [],
920
- "initial-index": w(e) ? E(t) : 0,
919
+ "preview-src-list": C(e) ? te.value : [],
920
+ "initial-index": C(e) ? T(t) : 0,
921
921
  fit: "cover",
922
922
  "preview-teleported": "",
923
923
  "z-index": 3e3
@@ -925,7 +925,7 @@ var _i = ["data-field-key"], vi = { class: "form-item-label" }, yi = {
925
925
  error: S(() => [a("div", {
926
926
  class: "upload-list-file",
927
927
  title: e.name,
928
- onClick: C((t) => k(e), ["stop"])
928
+ onClick: ee((t) => O(e), ["stop"])
929
929
  }, [a("span", null, b(e.name || "文件"), 1)], 8, xi)]),
930
930
  _: 2
931
931
  }, 1032, [
@@ -937,20 +937,20 @@ var _i = ["data-field-key"], vi = { class: "form-item-label" }, yi = {
937
937
  key: 1,
938
938
  class: "upload-list-file",
939
939
  title: e.name
940
- }, [a("span", null, b(e.name || "文件"), 1)], 8, Si)), F.value ? (m(), i("button", {
940
+ }, [a("span", null, b(e.name || "文件"), 1)], 8, Si)), P.value ? (m(), i("button", {
941
941
  key: 2,
942
942
  class: "upload-list-remove",
943
943
  type: "button",
944
944
  "aria-label": "移除文件",
945
- onClick: C((e) => O(t), ["stop"])
945
+ onClick: ee((e) => D(t), ["stop"])
946
946
  }, " × ", 8, Ci)) : r("", !0)]))), 128))])) : r("", !0),
947
- F.value && L.value ? (m(), n(g, u({ key: 2 }, z.value, {
947
+ P.value && L.value ? (m(), n(g, u({ key: 2 }, z.value, {
948
948
  class: "upload-field-trigger",
949
949
  action: z.value.action ?? "#",
950
950
  "auto-upload": z.value.autoUpload ?? !1,
951
- "file-list": ee.value,
951
+ "file-list": I.value,
952
952
  "show-file-list": !1,
953
- "onUpdate:fileList": D
953
+ "onUpdate:fileList": E
954
954
  }), {
955
955
  default: S(() => [s(h, null, {
956
956
  default: S(() => [...l[22] ||= [o("上传文件", -1)]]),
@@ -962,7 +962,7 @@ var _i = ["data-field-key"], vi = { class: "form-item-label" }, yi = {
962
962
  "auto-upload",
963
963
  "file-list"
964
964
  ])) : r("", !0)
965
- ])) : c.child.isText ? (m(), i("div", wi, [Array.isArray(c.modelValue) ? (m(), i(e, { key: 0 }, [c.modelValue.length ? (m(!0), i(e, { key: 0 }, _(M(c.modelValue), (e, t) => (m(), n(x, {
965
+ ])) : c.child.isText ? (m(), i("div", wi, [Array.isArray(c.modelValue) ? (m(), i(e, { key: 0 }, [c.modelValue.length ? (m(!0), i(e, { key: 0 }, _(j(c.modelValue), (e, t) => (m(), n(x, {
966
966
  key: t,
967
967
  class: "text-field-tag"
968
968
  }, {
@@ -972,9 +972,9 @@ var _i = ["data-field-key"], vi = { class: "form-item-label" }, yi = {
972
972
  default: S(() => [...l[23] ||= [o("-", -1)]]),
973
973
  _: 1
974
974
  }))], 64)) : (m(), n(d, { key: 1 }, {
975
- default: S(() => [o(b(j(c.modelValue)), 1)]),
975
+ default: S(() => [o(b(A(c.modelValue)), 1)]),
976
976
  _: 1
977
- }))])) : c.child.type === "input" ? (m(), n(A, u({ key: 2 }, z.value, {
977
+ }))])) : c.child.type === "input" ? (m(), n(k, u({ key: 2 }, z.value, {
978
978
  "model-value": c.modelValue ?? "",
979
979
  "onUpdate:modelValue": l[0] ||= (e) => f("update:modelValue", e)
980
980
  }), null, 16, ["model-value"])) : c.child.type === "select" ? (m(), n(R, u({ key: 3 }, z.value, {
@@ -1017,21 +1017,21 @@ var _i = ["data-field-key"], vi = { class: "form-item-label" }, yi = {
1017
1017
  "min",
1018
1018
  "max",
1019
1019
  "step"
1020
- ])) : c.child.type === "inputTag" ? (m(), n(ie, u({ key: 10 }, z.value, {
1020
+ ])) : c.child.type === "inputTag" ? (m(), n(W, u({ key: 10 }, z.value, {
1021
1021
  "model-value": Array.isArray(c.modelValue) ? c.modelValue : [],
1022
1022
  "onUpdate:modelValue": l[8] ||= (e) => f("update:modelValue", e)
1023
- }), null, 16, ["model-value"])) : c.child.type === "inputOTP" ? (m(), n(ae, u({ key: 11 }, z.value, {
1023
+ }), null, 16, ["model-value"])) : c.child.type === "inputOTP" ? (m(), n(ie, u({ key: 11 }, z.value, {
1024
1024
  "model-value": c.modelValue ?? "",
1025
1025
  "onUpdate:modelValue": l[9] ||= (e) => f("update:modelValue", e)
1026
- }), null, 16, ["model-value"])) : c.child.type === "mention" ? (m(), n(oe, u({ key: 12 }, z.value, {
1026
+ }), null, 16, ["model-value"])) : c.child.type === "mention" ? (m(), n(ae, u({ key: 12 }, z.value, {
1027
1027
  "model-value": c.modelValue ?? "",
1028
1028
  options: c.child.options ?? [],
1029
1029
  "onUpdate:modelValue": l[10] ||= (e) => f("update:modelValue", e)
1030
- }), null, 16, ["model-value", "options"])) : c.child.type === "radio" ? (m(), n(ce, u({ key: 13 }, z.value, {
1030
+ }), null, 16, ["model-value", "options"])) : c.child.type === "radio" ? (m(), n(oe, u({ key: 13 }, z.value, {
1031
1031
  "model-value": c.modelValue,
1032
1032
  "onUpdate:modelValue": l[11] ||= (e) => f("update:modelValue", e)
1033
1033
  }), {
1034
- default: S(() => [(m(!0), i(e, null, _(c.child.options ?? [], (e) => (m(), n(se, {
1034
+ default: S(() => [(m(!0), i(e, null, _(c.child.options ?? [], (e) => (m(), n(G, {
1035
1035
  key: e.value,
1036
1036
  value: e.value
1037
1037
  }, {
@@ -1039,10 +1039,10 @@ var _i = ["data-field-key"], vi = { class: "form-item-label" }, yi = {
1039
1039
  _: 2
1040
1040
  }, 1032, ["value"]))), 128))]),
1041
1041
  _: 1
1042
- }, 16, ["model-value"])) : c.child.type === "rate" ? (m(), n(le, u({ key: 14 }, z.value, {
1042
+ }, 16, ["model-value"])) : c.child.type === "rate" ? (m(), n(se, u({ key: 14 }, z.value, {
1043
1043
  "model-value": c.modelValue,
1044
1044
  "onUpdate:modelValue": l[12] ||= (e) => f("update:modelValue", e)
1045
- }), null, 16, ["model-value"])) : c.child.type === "virtualizedSelect" ? (m(), n(ue, u({ key: 15 }, z.value, {
1045
+ }), null, 16, ["model-value"])) : c.child.type === "virtualizedSelect" ? (m(), n(ce, u({ key: 15 }, z.value, {
1046
1046
  "model-value": c.modelValue,
1047
1047
  "value-key": c.child.valueKey ?? "value",
1048
1048
  options: c.child.options ?? [],
@@ -1051,7 +1051,7 @@ var _i = ["data-field-key"], vi = { class: "form-item-label" }, yi = {
1051
1051
  "model-value",
1052
1052
  "value-key",
1053
1053
  "options"
1054
- ])) : c.child.type === "slider" ? (m(), n(W, u({ key: 16 }, z.value, {
1054
+ ])) : c.child.type === "slider" ? (m(), n(K, u({ key: 16 }, z.value, {
1055
1055
  "model-value": c.modelValue,
1056
1056
  min: c.child.min,
1057
1057
  max: c.child.max,
@@ -1062,24 +1062,24 @@ var _i = ["data-field-key"], vi = { class: "form-item-label" }, yi = {
1062
1062
  "min",
1063
1063
  "max",
1064
1064
  "step"
1065
- ])) : c.child.type === "switch" ? (m(), n(de, u({ key: 17 }, z.value, {
1065
+ ])) : c.child.type === "switch" ? (m(), n(le, u({ key: 17 }, z.value, {
1066
1066
  "model-value": c.modelValue,
1067
1067
  "onUpdate:modelValue": l[15] ||= (e) => f("update:modelValue", e)
1068
- }), null, 16, ["model-value"])) : c.child.type === "timePicker" ? (m(), n(fe, u({ key: 18 }, z.value, {
1068
+ }), null, 16, ["model-value"])) : c.child.type === "timePicker" ? (m(), n(ue, u({ key: 18 }, z.value, {
1069
1069
  "model-value": c.modelValue,
1070
1070
  "onUpdate:modelValue": l[16] ||= (e) => f("update:modelValue", e)
1071
- }), null, 16, ["model-value"])) : c.child.type === "timeSelect" ? (m(), n(pe, u({ key: 19 }, z.value, {
1071
+ }), null, 16, ["model-value"])) : c.child.type === "timeSelect" ? (m(), n(de, u({ key: 19 }, z.value, {
1072
1072
  "model-value": c.modelValue,
1073
1073
  "onUpdate:modelValue": l[17] ||= (e) => f("update:modelValue", e)
1074
- }), null, 16, ["model-value"])) : c.child.type === "transfer" ? (m(), n(me, u({ key: 20 }, z.value, {
1074
+ }), null, 16, ["model-value"])) : c.child.type === "transfer" ? (m(), n(fe, u({ key: 20 }, z.value, {
1075
1075
  data: c.child.options ?? [],
1076
1076
  "model-value": Array.isArray(c.modelValue) ? c.modelValue : [],
1077
1077
  "onUpdate:modelValue": l[18] ||= (e) => f("update:modelValue", e)
1078
- }), null, 16, ["data", "model-value"])) : c.child.type === "treeSelect" ? (m(), n(he, u({ key: 21 }, z.value, {
1078
+ }), null, 16, ["data", "model-value"])) : c.child.type === "treeSelect" ? (m(), n(pe, u({ key: 21 }, z.value, {
1079
1079
  "model-value": c.modelValue,
1080
1080
  data: c.child.options ?? [],
1081
1081
  "onUpdate:modelValue": l[19] ||= (e) => f("update:modelValue", e)
1082
- }), null, 16, ["model-value", "data"])) : (m(), n(A, u({ key: 22 }, z.value, {
1082
+ }), null, 16, ["model-value", "data"])) : (m(), n(k, u({ key: 22 }, z.value, {
1083
1083
  "model-value": c.modelValue ?? "",
1084
1084
  "onUpdate:modelValue": l[20] ||= (e) => f("update:modelValue", e)
1085
1085
  }), null, 16, ["model-value"]))]),
@@ -1098,7 +1098,7 @@ var _i = ["data-field-key"], vi = { class: "form-item-label" }, yi = {
1098
1098
  let n = e.__vccOpts || e;
1099
1099
  for (let [e, r] of t) n[e] = r;
1100
1100
  return n;
1101
- }, Di = /*#__PURE__*/ Ei(Ti, [["__scopeId", "data-v-4716227b"]]);
1101
+ }, Di = /*#__PURE__*/ Ei(Ti, [["__scopeId", "data-v-96753d91"]]);
1102
1102
  //#endregion
1103
1103
  //#region src/packages/form/linkage.ts
1104
1104
  function Oi(e) {
@@ -1314,10 +1314,10 @@ var Wi = /*#__PURE__*/ Ei(c({
1314
1314
  function S() {
1315
1315
  for (let e of y(d.value, [], !1)) m.add(e);
1316
1316
  }
1317
- function C() {
1318
- if (e.dictLoader) for (let t of u.value) e.dicts[t] || o[t] || s.has(t) || O(t);
1317
+ function ee() {
1318
+ if (e.dictLoader) for (let t of u.value) e.dicts[t] || o[t] || s.has(t) || D(t);
1319
1319
  }
1320
- async function O(t) {
1320
+ async function D(t) {
1321
1321
  if (e.dictLoader) {
1322
1322
  s.add(t);
1323
1323
  try {
@@ -1328,8 +1328,8 @@ var Wi = /*#__PURE__*/ Ei(c({
1328
1328
  }
1329
1329
  }
1330
1330
  }
1331
- x(u, () => C(), { immediate: !0 }), x(() => e.dictLoader, () => C(), { immediate: !0 });
1332
- function k(e, t) {
1331
+ x(u, () => ee(), { immediate: !0 }), x(() => e.dictLoader, () => ee(), { immediate: !0 });
1332
+ function O(e, t) {
1333
1333
  let n = e;
1334
1334
  for (let e of t) {
1335
1335
  if (!n || typeof n != "object" || !(e in n)) return;
@@ -1337,10 +1337,10 @@ var Wi = /*#__PURE__*/ Ei(c({
1337
1337
  }
1338
1338
  return n;
1339
1339
  }
1340
- function A(t) {
1341
- return k(e.modelValue, t);
1340
+ function k(t) {
1341
+ return O(e.modelValue, t);
1342
1342
  }
1343
- function j(e, t, n) {
1343
+ function A(e, t, n) {
1344
1344
  let r = { ...e }, i = r;
1345
1345
  for (let e = 0; e < t.length - 1; e++) {
1346
1346
  let n = t[e], r = i[n];
@@ -1348,7 +1348,7 @@ var Wi = /*#__PURE__*/ Ei(c({
1348
1348
  }
1349
1349
  return i[t[t.length - 1]] = n, r;
1350
1350
  }
1351
- function M(e, t) {
1351
+ function j(e, t) {
1352
1352
  let n = gi(e), r = (e, t, i) => {
1353
1353
  for (let a of e) {
1354
1354
  if (a.type === "block") {
@@ -1357,18 +1357,18 @@ var Wi = /*#__PURE__*/ Ei(c({
1357
1357
  continue;
1358
1358
  }
1359
1359
  if (a.utc) {
1360
- let e = [...t, a.key], r = k(n, e);
1361
- r instanceof Date && (n = j(n, e, r.toISOString()));
1360
+ let e = [...t, a.key], r = O(n, e);
1361
+ r instanceof Date && (n = A(n, e, r.toISOString()));
1362
1362
  }
1363
1363
  }
1364
1364
  };
1365
1365
  return r(t, [], !1), n;
1366
1366
  }
1367
- function N(t, r) {
1368
- let i = j(e.modelValue, t, r);
1367
+ function M(t, r) {
1368
+ let i = A(e.modelValue, t, r);
1369
1369
  n("update:modelValue", i), n("change", i, t.join("."), r);
1370
1370
  }
1371
- function P(e, t) {
1371
+ function N(e, t) {
1372
1372
  let n = { ...e }, r = n;
1373
1373
  for (let e = 0; e < t.length - 1; e++) {
1374
1374
  let i = t[e], a = r[i];
@@ -1377,33 +1377,33 @@ var Wi = /*#__PURE__*/ Ei(c({
1377
1377
  }
1378
1378
  return delete r[t[t.length - 1]], n;
1379
1379
  }
1380
- function F(e) {
1380
+ function P(e) {
1381
1381
  try {
1382
1382
  return JSON.stringify(e);
1383
1383
  } catch {
1384
1384
  return String(e);
1385
1385
  }
1386
1386
  }
1387
- function I() {
1387
+ function F() {
1388
1388
  let t = gi(e.modelValue), r = !1, i = /* @__PURE__ */ new Map();
1389
1389
  for (let n of Hi(e.config, e.modelValue)) {
1390
- let e = F(n.value), a = `${n.path.join("/")}:${n.ruleIndex}:${e}`;
1391
- i.set(a, e), _.get(a) !== e && k(t, n.path) !== n.value && (t = j(t, n.path, n.value), r = !0);
1390
+ let e = P(n.value), a = `${n.path.join("/")}:${n.ruleIndex}:${e}`;
1391
+ i.set(a, e), _.get(a) !== e && O(t, n.path) !== n.value && (t = A(t, n.path, n.value), r = !0);
1392
1392
  }
1393
1393
  _ = i;
1394
1394
  let a = zi(e.config, t);
1395
- for (let e of a) k(t, e) !== void 0 && (t = P(t, e), r = !0);
1395
+ for (let e of a) O(t, e) !== void 0 && (t = N(t, e), r = !0);
1396
1396
  r && (f = gi(t), n("update:modelValue", t), n("change", t));
1397
1397
  }
1398
- p(I), x(() => e.modelValue, () => I(), { deep: !0 });
1399
- async function ee() {
1398
+ p(F), x(() => e.modelValue, () => F(), { deep: !0 });
1399
+ async function I() {
1400
1400
  if (a.value) try {
1401
1401
  await a.value.validate();
1402
1402
  } catch (e) {
1403
1403
  console.log(e);
1404
1404
  return;
1405
1405
  }
1406
- let t = M(e.modelValue, e.config);
1406
+ let t = j(e.modelValue, e.config);
1407
1407
  console.log(t), n("submit", t);
1408
1408
  }
1409
1409
  function te() {
@@ -1430,23 +1430,23 @@ var Wi = /*#__PURE__*/ Ei(c({
1430
1430
  }
1431
1431
  function B(e) {
1432
1432
  let t = r[e.key], n = t ? t({ node: e }) : [l("span", null, e.label || e.key)];
1433
- return l(T, {
1433
+ return l(w, {
1434
1434
  key: e.key,
1435
1435
  span: e.span ?? 6,
1436
1436
  offset: e.offset
1437
1437
  }, () => [l("div", { class: "form-slot" }, n)]);
1438
1438
  }
1439
1439
  function V(t, n) {
1440
- let r = A(n) ?? t.default ?? "", i = {
1440
+ let r = k(n) ?? t.default ?? "", i = {
1441
1441
  child: t,
1442
1442
  prop: n.join("."),
1443
1443
  modelValue: r,
1444
- "onUpdate:modelValue": (e) => N(n, e)
1444
+ "onUpdate:modelValue": (e) => M(n, e)
1445
1445
  }, a = e.fieldAction?.(t) ?? null;
1446
1446
  return l(Di, i, a ? { action: () => [a] } : void 0);
1447
1447
  }
1448
1448
  function H(t, n, r) {
1449
- let i = [...n, t.key].join("/"), a = m.has(i), o = r ? [...n, t.key] : n, s = (t.children ?? []).map((e) => U(e, o)).filter((e) => e !== null), c = e.blockAction?.(t) ?? null, u = ["form-block-header"], d = l(T, {
1449
+ let i = [...n, t.key].join("/"), a = m.has(i), o = r ? [...n, t.key] : n, s = (t.children ?? []).map((e) => U(e, o)).filter((e) => e !== null), c = e.blockAction?.(t) ?? null, u = ["form-block-header"], d = l(w, {
1450
1450
  key: `${t.key}-header`,
1451
1451
  span: 24
1452
1452
  }, () => [l("div", { class: u }, [l("div", { class: "form-block-header-content" }, [l("div", { class: "form-block-header-title" }, [c, t.label ? l("h3", { class: "form-block-title" }, t.label) : null].filter(Boolean)), t.description ? l("p", { class: "form-block-description" }, t.description) : null].filter(Boolean)), l("div", { class: "form-block-header-actions" }, [e.showCollapse ? l("button", {
@@ -1454,7 +1454,7 @@ var Wi = /*#__PURE__*/ Ei(c({
1454
1454
  type: "button",
1455
1455
  "aria-expanded": !a,
1456
1456
  onClick: () => v(i)
1457
- }, a ? "▸" : "▾") : null].filter(Boolean))])]), f = l("div", { class: ["form-block-body", { "is-collapsed": a }] }, () => [l("div", { class: "form-block-body-inner" }, () => [l(D, { gutter: 20 }, () => s.filter(Boolean))])]), p = [...n, t.key].join("/");
1457
+ }, a ? "▸" : "▾") : null].filter(Boolean))])]), f = l("div", { class: ["form-block-body", { "is-collapsed": a }] }, () => [l("div", { class: "form-block-body-inner" }, () => [l(E, { gutter: 20 }, () => s.filter(Boolean))])]), p = [...n, t.key].join("/");
1458
1458
  return l("div", {
1459
1459
  class: "form-node",
1460
1460
  key: t.key,
@@ -1462,27 +1462,27 @@ var Wi = /*#__PURE__*/ Ei(c({
1462
1462
  }, [l("div", {
1463
1463
  class: ["form-block", { "form-block--borderless": t.border === !1 }],
1464
1464
  style: t.indent ? { marginLeft: `${t.indent}px` } : void 0
1465
- }, [l(D, { gutter: 20 }, () => [d].filter(Boolean)), f])]);
1465
+ }, [l(E, { gutter: 20 }, () => [d].filter(Boolean)), f])]);
1466
1466
  }
1467
1467
  function U(e, t) {
1468
- return e.visible ? e.type === "block" ? l(T, {
1468
+ return e.visible ? e.type === "block" ? l(w, {
1469
1469
  key: e.key,
1470
1470
  span: e.span ?? 24,
1471
1471
  offset: e.offset
1472
1472
  }, () => [H(e, t, !0)]) : e.type === "slot" ? B(e) : V(e, [...t, e.key]) : null;
1473
1473
  }
1474
1474
  function re(e) {
1475
- return e.visible ? e.type === "block" ? H(e, [], !1) : l(D, {
1475
+ return e.visible ? e.type === "block" ? H(e, [], !1) : l(E, {
1476
1476
  key: e.key,
1477
1477
  gutter: 20
1478
1478
  }, () => [U(e, [])]) : null;
1479
1479
  }
1480
1480
  return () => {
1481
- let t = d.value.map(re).filter((e) => e !== null), n = [e.showSubmit ? l(w, {
1481
+ let t = d.value.map(re).filter((e) => e !== null), n = [e.showSubmit ? l(C, {
1482
1482
  type: "primary",
1483
1483
  nativeType: "button",
1484
- onClick: ee
1485
- }, () => "提交") : null, e.showReset ? l(w, {
1484
+ onClick: I
1485
+ }, () => "提交") : null, e.showReset ? l(C, {
1486
1486
  nativeType: "button",
1487
1487
  onClick: z
1488
1488
  }, () => "重置") : null].filter((e) => e !== null), r = y(d.value, [], !1), i = e.showCollapse && r.length > 0 ? l("div", { class: "form-toolbar" }, [l("button", {
@@ -1493,7 +1493,7 @@ var Wi = /*#__PURE__*/ Ei(c({
1493
1493
  class: "form-block-header-action",
1494
1494
  type: "button",
1495
1495
  onClick: S
1496
- }, "全部收起")]) : null, o = l(E, {
1496
+ }, "全部收起")]) : null, o = l(T, {
1497
1497
  ref: a,
1498
1498
  class: "form-engine",
1499
1499
  model: e.modelValue,
@@ -1508,10 +1508,13 @@ var Wi = /*#__PURE__*/ Ei(c({
1508
1508
  }, $i = {
1509
1509
  key: 12,
1510
1510
  class: "palette-compact"
1511
- }, ea = { class: "preview-header" }, ta = { class: "preview-header-actions" }, na = { class: "breadcrumb" }, ra = { key: 0 }, ia = { class: "linkage-editor" }, aa = { class: "linkage-rule-title" }, oa = { class: "linkage-when" }, sa = { class: "linkage-effects" }, ca = { class: "option-editor" }, la = {
1511
+ }, ea = {
1512
+ key: 13,
1513
+ class: "palette-compact"
1514
+ }, ta = { class: "preview-header" }, na = { class: "preview-header-actions" }, ra = { class: "breadcrumb" }, ia = { key: 0 }, aa = { class: "linkage-editor" }, oa = { class: "linkage-rule-title" }, sa = { class: "linkage-when" }, ca = { class: "linkage-effects" }, la = { class: "option-editor" }, ua = {
1512
1515
  key: 1,
1513
1516
  class: "editor-empty"
1514
- }, ua = { class: "code-panels" }, da = { class: "code-panel" }, fa = { class: "code-panel" }, pa = /*#__PURE__*/ Ei(/* @__PURE__ */ c({
1517
+ }, da = { class: "code-panels" }, fa = { class: "code-panel" }, pa = { class: "code-panel" }, ma = /*#__PURE__*/ Ei(/* @__PURE__ */ c({
1515
1518
  name: "CreateForm",
1516
1519
  __name: "CreateForm",
1517
1520
  setup(c) {
@@ -1582,6 +1585,10 @@ var Wi = /*#__PURE__*/ Ei(c({
1582
1585
  type: "transfer",
1583
1586
  label: "穿梭框"
1584
1587
  },
1588
+ {
1589
+ type: "upload",
1590
+ label: "附件"
1591
+ },
1585
1592
  {
1586
1593
  type: "rate",
1587
1594
  label: "评分"
@@ -1607,7 +1614,15 @@ var Wi = /*#__PURE__*/ Ei(c({
1607
1614
  "mention",
1608
1615
  "virtualizedSelect"
1609
1616
  ], h = 0;
1610
- function v(e, t, n) {
1617
+ function v(e) {
1618
+ let t = URL.createObjectURL(e.file), n = {
1619
+ id: `local-${Date.now()}`,
1620
+ url: t,
1621
+ path: t
1622
+ };
1623
+ return e.file.url = t, e.onSuccess(n, e.file), Promise.resolve(n);
1624
+ }
1625
+ function C(e, t, n) {
1611
1626
  let r = {
1612
1627
  key: t,
1613
1628
  label: n,
@@ -1619,7 +1634,14 @@ var Wi = /*#__PURE__*/ Ei(c({
1619
1634
  return e === "textarea" && (r.props = {
1620
1635
  type: "textarea",
1621
1636
  rows: 3
1622
- }), e === "block" && (r.children = [], r.border = !0, r.span = 24, r.indent = 0, delete r.default), (e === "switch" || e === "checkbox") && (r.default = !1), (e === "inputNumber" || e === "rate" || e === "slider") && (r.default = 0), (e === "inputTag" || e === "transfer") && (r.default = []), p.includes(e) && (r.options = e === "select" || e === "radio" ? [{
1637
+ }), e === "block" && (r.children = [], r.border = !0, r.span = 24, r.indent = 0, delete r.default), e === "upload" && (r.default = [], r.span = 24, r.props = {
1638
+ action: "/api/v1/admin/upload",
1639
+ autoUpload: !0,
1640
+ multiple: !0,
1641
+ accept: "image/*,.pdf,.txt",
1642
+ "list-type": "picture-card",
1643
+ httpRequest: v
1644
+ }), (e === "switch" || e === "checkbox") && (r.default = !1), (e === "inputNumber" || e === "rate" || e === "slider") && (r.default = 0), (e === "inputTag" || e === "transfer") && (r.default = []), p.includes(e) && (r.options = e === "select" || e === "radio" ? [{
1623
1645
  label: "选项一",
1624
1646
  value: "1"
1625
1647
  }, {
@@ -1636,7 +1658,15 @@ var Wi = /*#__PURE__*/ Ei(c({
1636
1658
  labelWidth: "",
1637
1659
  border: !0,
1638
1660
  isText: !1
1639
- }), F = g(""), I = g(""), ee = t(() => T.value?.linkage ?? []), te = t(() => Te(L.value[0]?.children ?? [])), ne = [
1661
+ }), F = g(""), I = g(""), te = t(() => T.value?.linkage ?? []), ne = t(() => Oe(B.value[0]?.children ?? []));
1662
+ function L(e, t) {
1663
+ let n = T.value?.props;
1664
+ return !n || typeof n != "object" ? t : n[e] ?? t;
1665
+ }
1666
+ function R(e, t) {
1667
+ T.value && ((!T.value.props || typeof T.value.props != "object") && (T.value.props = {}), T.value.props[e] = t);
1668
+ }
1669
+ let z = [
1640
1670
  "eq",
1641
1671
  "neq",
1642
1672
  "in",
@@ -1649,18 +1679,18 @@ var Wi = /*#__PURE__*/ Ei(c({
1649
1679
  "lte",
1650
1680
  "empty",
1651
1681
  "notEmpty"
1652
- ], L = t(() => [{
1682
+ ], B = t(() => [{
1653
1683
  key: "root",
1654
1684
  label: "根表单",
1655
1685
  type: "block",
1656
1686
  border: !1,
1657
1687
  indent: 0,
1658
1688
  children: w.value
1659
- }]), R = t(() => JSON.stringify(L.value, null, 2));
1660
- function z(e) {
1661
- return e.default === void 0 ? e.type === "switch" || e.type === "checkbox" ? !1 : e.type === "inputNumber" || e.type === "rate" || e.type === "slider" ? 0 : e.type === "inputTag" || e.type === "transfer" ? [] : "" : e.default;
1689
+ }]), V = t(() => JSON.stringify(B.value, null, 2));
1690
+ function H(e) {
1691
+ return e.default === void 0 ? e.type === "switch" || e.type === "checkbox" ? !1 : e.type === "inputNumber" || e.type === "rate" || e.type === "slider" ? 0 : e.type === "inputTag" || e.type === "transfer" || e.type === "upload" ? [] : "" : e.default;
1662
1692
  }
1663
- function B(e, t, n) {
1693
+ function U(e, t, n) {
1664
1694
  let r = e;
1665
1695
  for (let e = 0; e < t.length - 1; e++) {
1666
1696
  let n = t[e];
@@ -1668,63 +1698,63 @@ var Wi = /*#__PURE__*/ Ei(c({
1668
1698
  }
1669
1699
  r[t[t.length - 1]] = n;
1670
1700
  }
1671
- function V(e, t = [], n = !1) {
1701
+ function re(e, t = [], n = !1) {
1672
1702
  let r = {};
1673
1703
  for (let i of e) {
1674
1704
  if (i.type === "block") {
1675
1705
  let e = n ? [...t, i.key] : t;
1676
- Object.assign(r, V(i.children ?? [], e, !0));
1706
+ Object.assign(r, re(i.children ?? [], e, !0));
1677
1707
  continue;
1678
1708
  }
1679
- B(r, [...t, i.key], z(i));
1709
+ U(r, [...t, i.key], H(i));
1680
1710
  }
1681
1711
  return r;
1682
1712
  }
1683
- let H = t(() => E.value?.children ?? w.value), U = g({}), re = t(() => JSON.stringify(U.value, null, 2));
1713
+ let W = t(() => E.value?.children ?? w.value), ie = g({}), ae = t(() => JSON.stringify(ie.value, null, 2));
1684
1714
  x(w, () => {
1685
- U.value = V(L.value), d(J);
1715
+ ie.value = re(B.value), d(J);
1686
1716
  }, {
1687
1717
  deep: !0,
1688
1718
  immediate: !0
1689
1719
  }), x(T, () => d(J), { deep: !0 });
1690
- let ie = t(() => p.includes(T.value?.type ?? ""));
1691
- function ae(e) {
1692
- T.value = e, ie.value && !Array.isArray(e.options) && (e.options = []), d(J);
1693
- }
1720
+ let G = t(() => p.includes(T.value?.type ?? ""));
1694
1721
  function oe(e) {
1722
+ T.value = e, G.value && !Array.isArray(e.options) && (e.options = []), d(J);
1723
+ }
1724
+ function se(e) {
1695
1725
  Array.isArray(e.children) || (e.children = []), E.value = e, T.value = e, d(J);
1696
1726
  }
1697
- function se() {
1727
+ function ce() {
1698
1728
  E.value = null;
1699
1729
  }
1700
- function ce(e) {
1730
+ function K(e) {
1701
1731
  let t = e.target;
1702
1732
  if (!t?.closest(".field-drag-handle, .block-drag-handle, .form-item-label, .form-block-header-title")) return;
1703
1733
  let n = t?.closest("[data-field-key]");
1704
1734
  if (n?.dataset.fieldKey) {
1705
- let e = Ee(n.dataset.fieldKey);
1735
+ let e = ke(n.dataset.fieldKey);
1706
1736
  if (e) {
1707
- let t = De(e.key);
1708
- t && t.key !== "root" && (E.value = t), ae(e), N.value = !0;
1737
+ let t = Ae(e.key);
1738
+ t && t.key !== "root" && (E.value = t), oe(e), N.value = !0;
1709
1739
  return;
1710
1740
  }
1711
1741
  }
1712
1742
  let r = t?.closest("[data-block-path]");
1713
1743
  if (r?.dataset.blockPath) {
1714
- let e = we(r.dataset.blockPath.split("/"));
1715
- e && (ae(e), N.value = !0);
1744
+ let e = De(r.dataset.blockPath.split("/"));
1745
+ e && (oe(e), N.value = !0);
1716
1746
  }
1717
1747
  }
1718
1748
  function le() {
1719
1749
  let e = T.value;
1720
1750
  if (!e) return;
1721
- let t = H.value.indexOf(e);
1722
- t >= 0 && Ne(t), T.value || (N.value = !1);
1751
+ let t = W.value.indexOf(e);
1752
+ t >= 0 && Ie(t), T.value || (N.value = !1);
1723
1753
  }
1724
1754
  function ue() {
1725
1755
  T.value && (N.value = !0);
1726
1756
  }
1727
- function W() {
1757
+ function de() {
1728
1758
  let e = (t) => {
1729
1759
  for (let n of t) {
1730
1760
  if (n.type === "block") {
@@ -1736,7 +1766,7 @@ var Wi = /*#__PURE__*/ Ei(c({
1736
1766
  };
1737
1767
  e(w.value), d(J);
1738
1768
  }
1739
- function de() {
1769
+ function fe() {
1740
1770
  T.value && (Array.isArray(T.value.linkage) || (T.value.linkage = []), T.value.linkage.push({
1741
1771
  when: {
1742
1772
  field: "",
@@ -1746,97 +1776,97 @@ var Wi = /*#__PURE__*/ Ei(c({
1746
1776
  effects: {}
1747
1777
  }));
1748
1778
  }
1749
- function fe(e) {
1779
+ function pe(e) {
1750
1780
  Array.isArray(T.value?.linkage) && T.value.linkage.splice(e, 1);
1751
1781
  }
1752
- function pe(e) {
1782
+ function me(e) {
1753
1783
  return e ? JSON.stringify(e, null, 2) : "";
1754
1784
  }
1755
- function me(e, t) {
1785
+ function he(e, t) {
1756
1786
  try {
1757
1787
  e.effects.options = t.trim() ? JSON.parse(t) : [];
1758
1788
  } catch {
1759
1789
  e.effects.options = [];
1760
1790
  }
1761
1791
  }
1762
- function he(e) {
1792
+ function ge(e) {
1763
1793
  D.value = e;
1764
1794
  }
1765
- function ge() {
1766
- D.value = null, ke();
1795
+ function _e() {
1796
+ D.value = null, Me();
1767
1797
  }
1768
- function G(e, t) {
1798
+ function q(e, t) {
1769
1799
  h += 1, F.value = `${e}_${h}`, I.value = u.find((t) => t.type === e)?.label ?? e, j.value = {
1770
1800
  type: e,
1771
1801
  target: t
1772
1802
  }, M.value = !0;
1773
1803
  }
1774
- function _e() {
1804
+ function ve() {
1775
1805
  if (!j.value) return;
1776
- let e = F.value.trim() || `${j.value.type}_${h}`, t = I.value.trim() || u.find((e) => e.type === j.value?.type)?.label || j.value.type, n = v(j.value.type, e, t), r = j.value.target;
1806
+ let e = F.value.trim() || `${j.value.type}_${h}`, t = I.value.trim() || u.find((e) => e.type === j.value?.type)?.label || j.value.type, n = C(j.value.type, e, t), r = j.value.target;
1777
1807
  r ? (Array.isArray(r.children) || (r.children = []), r.children.push(n), E.value = r) : w.value.push(n), T.value = n, M.value = !1, j.value = null, d(J);
1778
1808
  }
1779
- function ve() {
1809
+ function ye() {
1780
1810
  M.value = !1, j.value = null;
1781
1811
  }
1782
- function K() {
1812
+ function be() {
1783
1813
  if (!D.value) return;
1784
1814
  let e = D.value, t = E.value;
1785
- D.value = null, G(e, t);
1815
+ D.value = null, q(e, t);
1786
1816
  }
1787
- function q(e, t) {
1817
+ function xe(e, t) {
1788
1818
  if (D.value) return;
1789
- let n = Ee(e.key);
1819
+ let n = ke(e.key);
1790
1820
  if (!n) return;
1791
- let r = De(n.key);
1821
+ let r = Ae(n.key);
1792
1822
  r && r.key !== "root" && (E.value = r), O.value = n, t.dataTransfer?.setData("text/plain", n.key);
1793
1823
  }
1794
- function ye(e, t) {
1824
+ function Se(e, t) {
1795
1825
  let n = t.getBoundingClientRect();
1796
1826
  return e.clientX < n.left + n.width / 2 ? "before" : "after";
1797
1827
  }
1798
- function be(e) {
1828
+ function Ce(e) {
1799
1829
  let t = O.value;
1800
1830
  if (!t || t === e) return;
1801
- let n = H.value, r = n.indexOf(t), i = n.indexOf(e);
1831
+ let n = W.value, r = n.indexOf(t), i = n.indexOf(e);
1802
1832
  if (r < 0 || i < 0) return;
1803
1833
  let [a] = n.splice(r, 1), o = k.value === "after" ? r < i ? i : i + 1 : r < i ? i - 1 : i;
1804
- n.splice(o, 0, a), xe();
1834
+ n.splice(o, 0, a), we();
1805
1835
  }
1806
- function xe() {
1836
+ function we() {
1807
1837
  O.value = null, k.value = null;
1808
1838
  }
1809
- function Se(e) {
1839
+ function Te(e) {
1810
1840
  return l("span", {
1811
1841
  class: "field-drag-handle",
1812
1842
  draggable: !0,
1813
1843
  title: "拖拽调整顺序",
1814
- onDragstart: (t) => q(e, t),
1815
- onDragend: () => xe()
1844
+ onDragstart: (t) => xe(e, t),
1845
+ onDragend: () => we()
1816
1846
  }, "⠿");
1817
1847
  }
1818
- function Ce(e) {
1848
+ function Ee(e) {
1819
1849
  return e.key === "root" ? null : l("span", {
1820
1850
  class: "block-drag-handle",
1821
1851
  draggable: !0,
1822
1852
  title: "拖拽调整顺序",
1823
- onDragstart: (t) => q(e, t),
1824
- onDragend: () => xe()
1853
+ onDragstart: (t) => xe(e, t),
1854
+ onDragend: () => we()
1825
1855
  }, "⠿");
1826
1856
  }
1827
- function we(e) {
1828
- let t = L.value[0];
1857
+ function De(e) {
1858
+ let t = B.value[0];
1829
1859
  if (!t) return null;
1830
1860
  let n = null, r = 0;
1831
1861
  if (t.key === e[0] ? (n = t, r = 1) : (n = t.children?.find((t) => t.type === "block" && t.key === e[0]) ?? null, r = 1), !n) return null;
1832
1862
  for (let t = r; t < e.length; t++) if (n = n.children?.find((n) => n.type === "block" && n.key === e[t]) ?? null, !n) return null;
1833
1863
  return n;
1834
1864
  }
1835
- function Te(e, t = [], n = !1) {
1865
+ function Oe(e, t = [], n = !1) {
1836
1866
  let r = [];
1837
1867
  for (let i of e) if (i.type === "block") {
1838
1868
  let e = n ? [...t, i.key] : t;
1839
- r.push(...Te(i.children ?? [], e, !0));
1869
+ r.push(...Oe(i.children ?? [], e, !0));
1840
1870
  } else if (i.type !== "slot") {
1841
1871
  let e = [...t, i.key].join(".");
1842
1872
  r.push({
@@ -1846,41 +1876,41 @@ var Wi = /*#__PURE__*/ Ei(c({
1846
1876
  }
1847
1877
  return r;
1848
1878
  }
1849
- function Ee(e, t = L.value[0]?.children ?? []) {
1879
+ function ke(e, t = B.value[0]?.children ?? []) {
1850
1880
  for (let n of t) {
1851
1881
  if (n.key === e) return n;
1852
- let t = Ee(e, n.children ?? []);
1882
+ let t = ke(e, n.children ?? []);
1853
1883
  if (t) return t;
1854
1884
  }
1855
1885
  return null;
1856
1886
  }
1857
- function De(e, t = L.value[0]?.children ?? [], n = null) {
1887
+ function Ae(e, t = B.value[0]?.children ?? [], n = null) {
1858
1888
  for (let r of t) {
1859
1889
  if (r.key === e) return n;
1860
1890
  if (r.type === "block") {
1861
- let t = De(e, r.children ?? [], r);
1891
+ let t = Ae(e, r.children ?? [], r);
1862
1892
  if (t) return t;
1863
1893
  }
1864
1894
  }
1865
1895
  return null;
1866
1896
  }
1867
- function Oe(e) {
1868
- ke();
1897
+ function je(e) {
1898
+ Me();
1869
1899
  let t = e.target;
1870
1900
  if (O.value) {
1871
1901
  let e = t?.closest("[data-block-path]");
1872
1902
  if (e?.dataset.blockPath) {
1873
- let t = we(e.dataset.blockPath.split("/"));
1874
- if (t && H.value.includes(t)) {
1875
- be(t);
1903
+ let t = De(e.dataset.blockPath.split("/"));
1904
+ if (t && W.value.includes(t)) {
1905
+ Ce(t);
1876
1906
  return;
1877
1907
  }
1878
1908
  }
1879
1909
  let n = t?.closest("[data-field-key]");
1880
1910
  if (n?.dataset.fieldKey) {
1881
- let e = H.value.find((e) => e.key === n.dataset.fieldKey);
1911
+ let e = W.value.find((e) => e.key === n.dataset.fieldKey);
1882
1912
  if (e) {
1883
- be(e);
1913
+ Ce(e);
1884
1914
  return;
1885
1915
  }
1886
1916
  }
@@ -1889,31 +1919,31 @@ var Wi = /*#__PURE__*/ Ei(c({
1889
1919
  if (n === "root") {
1890
1920
  if (D.value) {
1891
1921
  let e = D.value;
1892
- D.value = null, G(e, null);
1922
+ D.value = null, q(e, null);
1893
1923
  }
1894
1924
  return;
1895
1925
  }
1896
1926
  if (n) {
1897
- let e = we(n.split("/"));
1927
+ let e = De(n.split("/"));
1898
1928
  if (e) {
1899
- Me(e);
1929
+ Fe(e);
1900
1930
  return;
1901
1931
  }
1902
1932
  }
1903
- K();
1933
+ be();
1904
1934
  }
1905
- function ke() {
1935
+ function Me() {
1906
1936
  document.querySelectorAll("[data-block-path], [data-field-key]").forEach((e) => {
1907
1937
  e.classList.remove("drop-active", "drop-before", "drop-after");
1908
1938
  });
1909
1939
  }
1910
- function Ae() {
1940
+ function Ne() {
1911
1941
  document.querySelectorAll(".node-selected").forEach((e) => {
1912
1942
  e.classList.remove("node-selected");
1913
1943
  });
1914
1944
  }
1915
1945
  function J() {
1916
- if (Ae(), !T.value) return;
1946
+ if (Ne(), !T.value) return;
1917
1947
  let e = T.value.key;
1918
1948
  document.querySelectorAll("[data-field-key]").forEach((t) => {
1919
1949
  t.getAttribute("data-field-key") === e && t.classList.add("node-selected");
@@ -1921,58 +1951,58 @@ var Wi = /*#__PURE__*/ Ei(c({
1921
1951
  t.getAttribute("data-block-path")?.split("/").pop() === e && t.classList.add("node-selected");
1922
1952
  });
1923
1953
  }
1924
- function je(e) {
1925
- ke();
1954
+ function Pe(e) {
1955
+ Me();
1926
1956
  let t = e.target;
1927
1957
  if (O.value) {
1928
1958
  let n = t?.closest("[data-field-key]");
1929
- n?.dataset.fieldKey && H.value.find((e) => e.key === n.dataset.fieldKey) && (k.value = ye(e, n), n.classList.add("drop-active"), n.classList.add(k.value === "before" ? "drop-before" : "drop-after"));
1959
+ n?.dataset.fieldKey && W.value.find((e) => e.key === n.dataset.fieldKey) && (k.value = Se(e, n), n.classList.add("drop-active"), n.classList.add(k.value === "before" ? "drop-before" : "drop-after"));
1930
1960
  let r = t?.closest("[data-block-path]");
1931
1961
  if (r?.dataset.blockPath) {
1932
- let t = we(r.dataset.blockPath.split("/"));
1933
- t && H.value.includes(t) && (k.value = ye(e, r), r.classList.add("drop-active"), r.classList.add(k.value === "before" ? "drop-before" : "drop-after"));
1962
+ let t = De(r.dataset.blockPath.split("/"));
1963
+ t && W.value.includes(t) && (k.value = Se(e, r), r.classList.add("drop-active"), r.classList.add(k.value === "before" ? "drop-before" : "drop-after"));
1934
1964
  }
1935
1965
  return;
1936
1966
  }
1937
1967
  (t?.closest("[data-block-path]"))?.classList.add("drop-active");
1938
1968
  }
1939
- function Me(e) {
1969
+ function Fe(e) {
1940
1970
  if (!D.value) return;
1941
1971
  let t = D.value;
1942
- D.value = null, G(t, e);
1972
+ D.value = null, q(t, e);
1943
1973
  }
1944
- function Ne(e) {
1945
- let t = H.value, n = t[e];
1974
+ function Ie(e) {
1975
+ let t = W.value, n = t[e];
1946
1976
  t.splice(e, 1), E.value === n && (E.value = null), T.value === n && (T.value = null), d(J);
1947
1977
  }
1948
- function Pe(e) {
1978
+ function Le(e) {
1949
1979
  let t = document.createElement("textarea");
1950
1980
  t.value = e, t.style.position = "fixed", t.style.opacity = "0", document.body.appendChild(t), t.select(), document.execCommand("copy"), t.remove();
1951
1981
  }
1952
- async function Fe(e, t) {
1982
+ async function Re(e, t) {
1953
1983
  try {
1954
- navigator.clipboard?.writeText ? await navigator.clipboard.writeText(e) : Pe(e);
1984
+ navigator.clipboard?.writeText ? await navigator.clipboard.writeText(e) : Le(e);
1955
1985
  } catch {
1956
- Pe(e);
1986
+ Le(e);
1957
1987
  }
1958
1988
  A.value = t, window.setTimeout(() => {
1959
1989
  A.value = null;
1960
1990
  }, 1600);
1961
1991
  }
1962
1992
  return (t, c) => {
1963
- let l = y("el-button"), d = y("el-switch"), p = y("el-form-item"), h = y("el-option"), g = y("el-select"), v = y("el-input-number"), x = y("el-input"), w = y("el-form"), D = y("el-radio"), O = y("el-radio-group"), k = y("el-checkbox"), z = y("el-date-picker"), B = y("el-time-picker"), V = y("el-input-tag"), H = y("el-rate"), ae = y("el-slider"), G = y("el-cascader"), K = y("el-tree-select"), q = y("el-scrollbar"), ye = y("el-drawer"), be = y("el-dialog");
1993
+ let l = y("el-button"), d = y("el-switch"), p = y("el-form-item"), h = y("el-option"), g = y("el-select"), v = y("el-input-number"), x = y("el-input"), C = y("el-form"), w = y("el-radio"), D = y("el-radio-group"), O = y("el-checkbox"), k = y("el-date-picker"), H = y("el-time-picker"), U = y("el-input-tag"), re = y("el-rate"), W = y("el-slider"), oe = y("el-cascader"), q = y("el-tree-select"), be = y("el-scrollbar"), xe = y("el-drawer"), Se = y("el-dialog");
1964
1994
  return m(), i("div", Gi, [
1965
- a("header", Ki, [c[32] ||= a("div", null, [a("h2", null, "创建表单"), a("p", null, "从左侧拖拽字段到右侧表单,生成 config 和 data。")], -1), a("div", qi, [s(l, {
1995
+ a("header", Ki, [c[36] ||= a("div", null, [a("h2", null, "创建表单"), a("p", null, "从左侧拖拽字段到右侧表单,生成 config 和 data。")], -1), a("div", qi, [s(l, {
1966
1996
  type: "primary",
1967
- onClick: c[0] ||= (e) => Fe(R.value, "config")
1997
+ onClick: c[0] ||= (e) => Re(V.value, "config")
1968
1998
  }, {
1969
1999
  default: S(() => [o(b(A.value === "config" ? "已复制 config" : "复制 config"), 1)]),
1970
2000
  _: 1
1971
- }), s(l, { onClick: c[1] ||= (e) => Fe(re.value, "data") }, {
2001
+ }), s(l, { onClick: c[1] ||= (e) => Re(ae.value, "data") }, {
1972
2002
  default: S(() => [o(b(A.value === "data" ? "已复制 data" : "复制 data"), 1)]),
1973
2003
  _: 1
1974
2004
  })])]),
1975
- a("section", Ji, [c[34] ||= a("h3", null, "全局配置", -1), s(w, {
2005
+ a("section", Ji, [c[38] ||= a("h3", null, "全局配置", -1), s(C, {
1976
2006
  inline: "",
1977
2007
  "label-position": "top"
1978
2008
  }, {
@@ -2055,20 +2085,20 @@ var Wi = /*#__PURE__*/ Ei(c({
2055
2085
  }),
2056
2086
  s(l, {
2057
2087
  type: "primary",
2058
- onClick: W
2088
+ onClick: de
2059
2089
  }, {
2060
- default: S(() => [...c[33] ||= [o("应用全局配置", -1)]]),
2090
+ default: S(() => [...c[37] ||= [o("应用全局配置", -1)]]),
2061
2091
  _: 1
2062
2092
  })
2063
2093
  ]),
2064
2094
  _: 1
2065
2095
  })]),
2066
- a("div", Yi, [a("aside", Xi, [c[36] ||= a("h3", null, "字段库", -1), (m(), i(e, null, _(u, (t) => a("div", {
2096
+ a("div", Yi, [a("aside", Xi, [c[40] ||= a("h3", null, "字段库", -1), (m(), i(e, null, _(u, (t) => a("div", {
2067
2097
  key: t.type,
2068
2098
  class: "palette-item",
2069
2099
  draggable: "true",
2070
- onDragstart: (e) => he(t.type),
2071
- onDragend: ge
2100
+ onDragstart: (e) => ge(t.type),
2101
+ onDragend: _e
2072
2102
  }, [s(p, { label: t.label }, {
2073
2103
  default: S(() => [t.type === "block" ? (m(), i("div", Qi, "block 块")) : t.type === "input" ? (m(), n(x, {
2074
2104
  key: 1,
@@ -2089,11 +2119,11 @@ var Wi = /*#__PURE__*/ Ei(c({
2089
2119
  value: e.value
2090
2120
  }, null, 8, ["label", "value"]))), 128))]),
2091
2121
  _: 2
2092
- }, 1024)) : t.type === "radio" ? (m(), n(O, {
2122
+ }, 1024)) : t.type === "radio" ? (m(), n(D, {
2093
2123
  key: 4,
2094
2124
  "model-value": ""
2095
2125
  }, {
2096
- default: S(() => [(m(!0), i(e, null, _(t.options ?? [], (e) => (m(), n(D, {
2126
+ default: S(() => [(m(!0), i(e, null, _(t.options ?? [], (e) => (m(), n(w, {
2097
2127
  key: e.value,
2098
2128
  value: e.value
2099
2129
  }, {
@@ -2101,77 +2131,77 @@ var Wi = /*#__PURE__*/ Ei(c({
2101
2131
  _: 2
2102
2132
  }, 1032, ["value"]))), 128))]),
2103
2133
  _: 2
2104
- }, 1024)) : t.type === "checkbox" ? (m(), n(k, { key: 5 }, {
2105
- default: S(() => [...c[35] ||= [o("复选框", -1)]]),
2134
+ }, 1024)) : t.type === "checkbox" ? (m(), n(O, { key: 5 }, {
2135
+ default: S(() => [...c[39] ||= [o("复选框", -1)]]),
2106
2136
  _: 1
2107
2137
  })) : t.type === "switch" ? (m(), n(d, { key: 6 })) : t.type === "inputNumber" ? (m(), n(v, {
2108
2138
  key: 7,
2109
2139
  "model-value": 0,
2110
2140
  controls: !1
2111
- })) : t.type === "datePicker" ? (m(), n(z, {
2141
+ })) : t.type === "datePicker" ? (m(), n(k, {
2112
2142
  key: 8,
2113
2143
  type: "date",
2114
2144
  placeholder: "选择日期"
2115
- })) : t.type === "datetimePicker" ? (m(), n(z, {
2145
+ })) : t.type === "datetimePicker" ? (m(), n(k, {
2116
2146
  key: 9,
2117
2147
  type: "datetime",
2118
2148
  placeholder: "选择日期时间"
2119
- })) : t.type === "timePicker" ? (m(), n(B, {
2149
+ })) : t.type === "timePicker" ? (m(), n(H, {
2120
2150
  key: 10,
2121
2151
  placeholder: "选择时间"
2122
- })) : t.type === "inputTag" ? (m(), n(V, {
2152
+ })) : t.type === "inputTag" ? (m(), n(U, {
2123
2153
  key: 11,
2124
2154
  "model-value": ["标签"]
2125
- })) : t.type === "transfer" ? (m(), i("div", $i, "穿梭框")) : t.type === "rate" ? (m(), n(H, {
2126
- key: 13,
2127
- "model-value": 3
2128
- })) : t.type === "slider" ? (m(), n(ae, {
2155
+ })) : t.type === "transfer" ? (m(), i("div", $i, "穿梭框")) : t.type === "upload" ? (m(), i("div", ea, "附件")) : t.type === "rate" ? (m(), n(re, {
2129
2156
  key: 14,
2130
- "model-value": 40
2131
- })) : t.type === "cascader" ? (m(), n(G, {
2157
+ "model-value": 3
2158
+ })) : t.type === "slider" ? (m(), n(W, {
2132
2159
  key: 15,
2133
- placeholder: "请选择"
2134
- })) : t.type === "treeSelect" ? (m(), n(K, {
2160
+ "model-value": 40
2161
+ })) : t.type === "cascader" ? (m(), n(oe, {
2135
2162
  key: 16,
2136
2163
  placeholder: "请选择"
2164
+ })) : t.type === "treeSelect" ? (m(), n(q, {
2165
+ key: 17,
2166
+ placeholder: "请选择"
2137
2167
  })) : r("", !0)]),
2138
2168
  _: 2
2139
2169
  }, 1032, ["label"])], 40, Zi)), 64))]), a("section", {
2140
2170
  class: "preview",
2141
- onDragover: C(je, ["prevent"]),
2142
- onDragleave: ke,
2143
- onDrop: C(Oe, ["prevent"]),
2144
- onClick: ce
2145
- }, [a("div", ea, [c[39] ||= a("h3", null, "实时表单", -1), a("div", ta, [c[38] ||= a("span", null, "将左侧字段拖到这里", -1), s(l, {
2171
+ onDragover: ee(Pe, ["prevent"]),
2172
+ onDragleave: Me,
2173
+ onDrop: ee(je, ["prevent"]),
2174
+ onClick: K
2175
+ }, [a("div", ta, [c[43] ||= a("h3", null, "实时表单", -1), a("div", na, [c[42] ||= a("span", null, "将左侧字段拖到这里", -1), s(l, {
2146
2176
  size: "small",
2147
2177
  onClick: ue
2148
2178
  }, {
2149
- default: S(() => [...c[37] ||= [o("字段配置", -1)]]),
2179
+ default: S(() => [...c[41] ||= [o("字段配置", -1)]]),
2150
2180
  _: 1
2151
2181
  })])]), s(Wi, {
2152
- config: L.value,
2153
- modelValue: U.value,
2154
- "onUpdate:modelValue": c[10] ||= (e) => U.value = e,
2182
+ config: B.value,
2183
+ modelValue: ie.value,
2184
+ "onUpdate:modelValue": c[10] ||= (e) => ie.value = e,
2155
2185
  "show-submit": "",
2156
2186
  "show-reset": "",
2157
- "field-action": Se,
2158
- "block-action": Ce
2187
+ "field-action": Te,
2188
+ "block-action": Ee
2159
2189
  }, null, 8, ["config", "modelValue"])], 32)]),
2160
- s(ye, {
2190
+ s(xe, {
2161
2191
  modelValue: N.value,
2162
- "onUpdate:modelValue": c[28] ||= (e) => N.value = e,
2192
+ "onUpdate:modelValue": c[32] ||= (e) => N.value = e,
2163
2193
  title: "字段配置",
2164
2194
  size: "560px"
2165
2195
  }, {
2166
- default: S(() => [s(q, {
2196
+ default: S(() => [s(be, {
2167
2197
  class: "drawer-scrollbar",
2168
2198
  "view-style": "padding: 0 20px 20px 0;"
2169
2199
  }, {
2170
- default: S(() => [a("div", na, [a("button", {
2200
+ default: S(() => [a("div", ra, [a("button", {
2171
2201
  type: "button",
2172
2202
  class: f({ active: !E.value }),
2173
- onClick: se
2174
- }, " 根 ", 2), E.value ? (m(), i("span", ra, "/ " + b(E.value.label || E.value.key), 1)) : r("", !0)]), T.value ? (m(), n(w, {
2203
+ onClick: ce
2204
+ }, " 根 ", 2), E.value ? (m(), i("span", ia, "/ " + b(E.value.label || E.value.key), 1)) : r("", !0)]), T.value ? (m(), n(C, {
2175
2205
  key: 0,
2176
2206
  "label-position": "top"
2177
2207
  }, {
@@ -2205,9 +2235,9 @@ var Wi = /*#__PURE__*/ Ei(c({
2205
2235
  }, {
2206
2236
  default: S(() => [s(l, {
2207
2237
  size: "small",
2208
- onClick: c[14] ||= (e) => oe(T.value)
2238
+ onClick: c[14] ||= (e) => se(T.value)
2209
2239
  }, {
2210
- default: S(() => [...c[40] ||= [o("进入 block", -1)]]),
2240
+ default: S(() => [...c[44] ||= [o("进入 block", -1)]]),
2211
2241
  _: 1
2212
2242
  })]),
2213
2243
  _: 1
@@ -2241,7 +2271,10 @@ var Wi = /*#__PURE__*/ Ei(c({
2241
2271
  }, null, 8, ["modelValue"])]),
2242
2272
  _: 1
2243
2273
  }),
2244
- s(p, { label: "默认值" }, {
2274
+ T.value.type === "upload" ? r("", !0) : (m(), n(p, {
2275
+ key: 3,
2276
+ label: "默认值"
2277
+ }, {
2245
2278
  default: S(() => [[
2246
2279
  "inputNumber",
2247
2280
  "rate",
@@ -2260,39 +2293,69 @@ var Wi = /*#__PURE__*/ Ei(c({
2260
2293
  "onUpdate:modelValue": c[20] ||= (e) => T.value.default = e
2261
2294
  }, null, 8, ["modelValue"]))]),
2262
2295
  _: 1
2263
- }),
2296
+ })),
2297
+ T.value.type === "upload" ? (m(), i(e, { key: 4 }, [
2298
+ s(p, { label: "上传地址" }, {
2299
+ default: S(() => [s(x, {
2300
+ "model-value": String(L("action", "/api/v1/admin/upload")),
2301
+ "onUpdate:modelValue": c[21] ||= (e) => R("action", e)
2302
+ }, null, 8, ["model-value"])]),
2303
+ _: 1
2304
+ }),
2305
+ s(p, { label: "自动上传" }, {
2306
+ default: S(() => [s(d, {
2307
+ "model-value": !!L("autoUpload", !0),
2308
+ "onUpdate:modelValue": c[22] ||= (e) => R("autoUpload", e)
2309
+ }, null, 8, ["model-value"])]),
2310
+ _: 1
2311
+ }),
2312
+ s(p, { label: "多文件" }, {
2313
+ default: S(() => [s(d, {
2314
+ "model-value": !!L("multiple", !0),
2315
+ "onUpdate:modelValue": c[23] ||= (e) => R("multiple", e)
2316
+ }, null, 8, ["model-value"])]),
2317
+ _: 1
2318
+ }),
2319
+ s(p, { label: "文件类型" }, {
2320
+ default: S(() => [s(x, {
2321
+ "model-value": String(L("accept", "image/*,.pdf,.txt")),
2322
+ "onUpdate:modelValue": c[24] ||= (e) => R("accept", e)
2323
+ }, null, 8, ["model-value"])]),
2324
+ _: 1
2325
+ })
2326
+ ], 64)) : r("", !0),
2264
2327
  s(p, { label: "必填" }, {
2265
2328
  default: S(() => [s(d, {
2266
2329
  modelValue: T.value.required,
2267
- "onUpdate:modelValue": c[21] ||= (e) => T.value.required = e
2330
+ "onUpdate:modelValue": c[25] ||= (e) => T.value.required = e
2268
2331
  }, null, 8, ["modelValue"])]),
2269
2332
  _: 1
2270
2333
  }),
2271
2334
  s(p, { label: "禁用" }, {
2272
2335
  default: S(() => [s(d, {
2273
2336
  modelValue: T.value.disabled,
2274
- "onUpdate:modelValue": c[22] ||= (e) => T.value.disabled = e
2337
+ "onUpdate:modelValue": c[26] ||= (e) => T.value.disabled = e
2275
2338
  }, null, 8, ["modelValue"])]),
2276
2339
  _: 1
2277
2340
  }),
2278
2341
  s(p, { label: "只读展示" }, {
2279
2342
  default: S(() => [s(d, {
2280
2343
  modelValue: T.value.isText,
2281
- "onUpdate:modelValue": c[23] ||= (e) => T.value.isText = e
2344
+ "onUpdate:modelValue": c[27] ||= (e) => T.value.isText = e
2282
2345
  }, null, 8, ["modelValue"])]),
2283
2346
  _: 1
2284
2347
  }),
2285
2348
  s(p, { label: "隐藏字段" }, {
2286
2349
  default: S(() => [s(d, {
2287
2350
  modelValue: T.value.visible,
2288
- "onUpdate:modelValue": c[24] ||= (e) => T.value.visible = e
2351
+ "onUpdate:modelValue": c[28] ||= (e) => T.value.visible = e
2289
2352
  }, null, 8, ["modelValue"])]),
2290
2353
  _: 1
2291
2354
  }),
2292
2355
  s(p, { label: "隐藏时清空" }, {
2293
2356
  default: S(() => [s(d, {
2294
2357
  modelValue: T.value.clearOnHide,
2295
- "onUpdate:modelValue": c[25] ||= (e) => T.value.clearOnHide = e
2358
+ "onUpdate:modelValue": c[29] ||= (e) => T.value.clearOnHide = e
2296
2359
  }, null, 8, ["modelValue"])]),
2297
2360
  _: 1
2298
2361
  }),
@@ -2301,35 +2364,35 @@ var Wi = /*#__PURE__*/ Ei(c({
2301
2364
  "datetimePicker",
2302
2365
  "timePicker"
2303
2366
  ].includes(T.value.type) ? (m(), n(p, {
2304
- key: 3,
2367
+ key: 5,
2305
2368
  label: "UTC时间"
2306
2369
  }, {
2307
2370
  default: S(() => [s(d, {
2308
2371
  modelValue: T.value.utc,
2309
- "onUpdate:modelValue": c[26] ||= (e) => T.value.utc = e
2372
+ "onUpdate:modelValue": c[30] ||= (e) => T.value.utc = e
2310
2373
  }, null, 8, ["modelValue"])]),
2311
2374
  _: 1
2312
2375
  })) : r("", !0),
2313
2376
  s(p, { label: "联动配置" }, {
2314
- default: S(() => [a("div", ia, [(m(!0), i(e, null, _(ee.value, (t, r) => (m(), i("div", {
2377
+ default: S(() => [a("div", aa, [(m(!0), i(e, null, _(te.value, (t, r) => (m(), i("div", {
2315
2378
  key: r,
2316
2379
  class: "linkage-rule"
2317
2380
  }, [
2318
- a("div", aa, [a("span", null, "规则 " + b(r + 1), 1), s(l, {
2381
+ a("div", oa, [a("span", null, "规则 " + b(r + 1), 1), s(l, {
2319
2382
  link: "",
2320
2383
  type: "danger",
2321
- onClick: (e) => fe(r)
2384
+ onClick: (e) => pe(r)
2322
2385
  }, {
2323
- default: S(() => [...c[41] ||= [o(" 删除 ", -1)]]),
2386
+ default: S(() => [...c[45] ||= [o(" 删除 ", -1)]]),
2324
2387
  _: 1
2325
2388
  }, 8, ["onClick"])]),
2326
- a("div", oa, [
2389
+ a("div", sa, [
2327
2390
  s(g, {
2328
2391
  modelValue: t.when.field,
2329
2392
  "onUpdate:modelValue": (e) => t.when.field = e,
2330
2393
  placeholder: "选择源字段"
2331
2394
  }, {
2332
- default: S(() => [(m(!0), i(e, null, _(te.value, (e) => (m(), n(h, {
2395
+ default: S(() => [(m(!0), i(e, null, _(ne.value, (e) => (m(), n(h, {
2333
2396
  key: e.value,
2334
2397
  label: e.label,
2335
2398
  value: e.value
@@ -2340,7 +2403,7 @@ var Wi = /*#__PURE__*/ Ei(c({
2340
2403
  modelValue: t.when.operator,
2341
2404
  "onUpdate:modelValue": (e) => t.when.operator = e
2342
2405
  }, {
2343
- default: S(() => [(m(), i(e, null, _(ne, (e) => s(h, {
2406
+ default: S(() => [(m(), i(e, null, _(z, (e) => s(h, {
2344
2407
  key: e,
2345
2408
  label: e,
2346
2409
  value: e
@@ -2353,33 +2416,33 @@ var Wi = /*#__PURE__*/ Ei(c({
2353
2416
  placeholder: "条件值"
2354
2417
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
2355
2418
  ]),
2356
- a("div", sa, [
2357
- s(k, {
2419
+ a("div", ca, [
2420
+ s(O, {
2358
2421
  modelValue: t.effects.visible,
2359
2422
  "onUpdate:modelValue": (e) => t.effects.visible = e
2360
2423
  }, {
2361
- default: S(() => [...c[42] ||= [o("显示", -1)]]),
2424
+ default: S(() => [...c[46] ||= [o("显示", -1)]]),
2362
2425
  _: 1
2363
2426
  }, 8, ["modelValue", "onUpdate:modelValue"]),
2364
- s(k, {
2427
+ s(O, {
2365
2428
  modelValue: t.effects.disabled,
2366
2429
  "onUpdate:modelValue": (e) => t.effects.disabled = e
2367
2430
  }, {
2368
- default: S(() => [...c[43] ||= [o("禁用", -1)]]),
2431
+ default: S(() => [...c[47] ||= [o("禁用", -1)]]),
2369
2432
  _: 1
2370
2433
  }, 8, ["modelValue", "onUpdate:modelValue"]),
2371
- s(k, {
2434
+ s(O, {
2372
2435
  modelValue: t.effects.required,
2373
2436
  "onUpdate:modelValue": (e) => t.effects.required = e
2374
2437
  }, {
2375
- default: S(() => [...c[44] ||= [o("必填", -1)]]),
2438
+ default: S(() => [...c[48] ||= [o("必填", -1)]]),
2376
2439
  _: 1
2377
2440
  }, 8, ["modelValue", "onUpdate:modelValue"]),
2378
- s(k, {
2441
+ s(O, {
2379
2442
  modelValue: t.effects.clearOnHide,
2380
2443
  "onUpdate:modelValue": (e) => t.effects.clearOnHide = e
2381
2444
  }, {
2382
- default: S(() => [...c[45] ||= [o("隐藏清空", -1)]]),
2445
+ default: S(() => [...c[49] ||= [o("隐藏清空", -1)]]),
2383
2446
  _: 1
2384
2447
  }, 8, ["modelValue", "onUpdate:modelValue"])
2385
2448
  ]),
@@ -2391,24 +2454,24 @@ var Wi = /*#__PURE__*/ Ei(c({
2391
2454
  s(x, {
2392
2455
  type: "textarea",
2393
2456
  rows: 2,
2394
- "model-value": pe(t.effects.options),
2395
- onChange: (e) => me(t, e),
2457
+ "model-value": me(t.effects.options),
2458
+ onChange: (e) => he(t, e),
2396
2459
  placeholder: "联动选项 JSON"
2397
2460
  }, null, 8, ["model-value", "onChange"])
2398
2461
  ]))), 128)), s(l, {
2399
2462
  size: "small",
2400
- onClick: de
2463
+ onClick: fe
2401
2464
  }, {
2402
- default: S(() => [...c[46] ||= [o("添加联动规则", -1)]]),
2465
+ default: S(() => [...c[50] ||= [o("添加联动规则", -1)]]),
2403
2466
  _: 1
2404
2467
  })])]),
2405
2468
  _: 1
2406
2469
  }),
2407
- ie.value ? (m(), n(p, {
2408
- key: 4,
2470
+ G.value ? (m(), n(p, {
2471
+ key: 6,
2409
2472
  label: "选项"
2410
2473
  }, {
2411
- default: S(() => [a("div", ca, [(m(!0), i(e, null, _(T.value.options ?? [], (e, t) => (m(), i("div", {
2474
+ default: S(() => [a("div", la, [(m(!0), i(e, null, _(T.value.options ?? [], (e, t) => (m(), i("div", {
2412
2475
  key: t,
2413
2476
  class: "option-row"
2414
2477
  }, [
@@ -2427,17 +2490,17 @@ var Wi = /*#__PURE__*/ Ei(c({
2427
2490
  type: "danger",
2428
2491
  onClick: (e) => T.value.options?.splice(t, 1)
2429
2492
  }, {
2430
- default: S(() => [...c[47] ||= [o(" 删除 ", -1)]]),
2493
+ default: S(() => [...c[51] ||= [o(" 删除 ", -1)]]),
2431
2494
  _: 1
2432
2495
  }, 8, ["onClick"])
2433
2496
  ]))), 128)), s(l, {
2434
2497
  size: "small",
2435
- onClick: c[27] ||= (e) => T.value.options?.push({
2498
+ onClick: c[31] ||= (e) => T.value.options?.push({
2436
2499
  label: "",
2437
2500
  value: ""
2438
2501
  })
2439
2502
  }, {
2440
- default: S(() => [...c[48] ||= [o(" 添加选项 ", -1)]]),
2503
+ default: S(() => [...c[52] ||= [o(" 添加选项 ", -1)]]),
2441
2504
  _: 1
2442
2505
  })])]),
2443
2506
  _: 1
@@ -2447,43 +2510,43 @@ var Wi = /*#__PURE__*/ Ei(c({
2447
2510
  type: "danger",
2448
2511
  onClick: le
2449
2512
  }, {
2450
- default: S(() => [...c[49] ||= [o("删除字段", -1)]]),
2513
+ default: S(() => [...c[53] ||= [o("删除字段", -1)]]),
2451
2514
  _: 1
2452
2515
  })]),
2453
2516
  _: 1
2454
2517
  })
2455
2518
  ]),
2456
2519
  _: 1
2457
- })) : (m(), i("div", la, "点击右侧表单中的字段进行配置"))]),
2520
+ })) : (m(), i("div", ua, "点击右侧表单中的字段进行配置"))]),
2458
2521
  _: 1
2459
2522
  })]),
2460
2523
  _: 1
2461
2524
  }, 8, ["modelValue"]),
2462
- a("section", ua, [a("div", da, [c[50] ||= a("h3", null, "config", -1), a("pre", null, b(R.value), 1)]), a("div", fa, [c[51] ||= a("h3", null, "data", -1), a("pre", null, b(re.value), 1)])]),
2463
- s(be, {
2525
+ a("section", da, [a("div", fa, [c[54] ||= a("h3", null, "config", -1), a("pre", null, b(V.value), 1)]), a("div", pa, [c[55] ||= a("h3", null, "data", -1), a("pre", null, b(ae.value), 1)])]),
2526
+ s(Se, {
2464
2527
  modelValue: M.value,
2465
- "onUpdate:modelValue": c[31] ||= (e) => M.value = e,
2528
+ "onUpdate:modelValue": c[35] ||= (e) => M.value = e,
2466
2529
  title: j.value?.type === "block" ? "添加 block" : "添加字段",
2467
2530
  width: "420px"
2468
2531
  }, {
2469
- footer: S(() => [s(l, { onClick: ve }, {
2470
- default: S(() => [...c[52] ||= [o("取消", -1)]]),
2532
+ footer: S(() => [s(l, { onClick: ye }, {
2533
+ default: S(() => [...c[56] ||= [o("取消", -1)]]),
2471
2534
  _: 1
2472
2535
  }), s(l, {
2473
2536
  type: "primary",
2474
- onClick: _e
2537
+ onClick: ve
2475
2538
  }, {
2476
- default: S(() => [...c[53] ||= [o("确定", -1)]]),
2539
+ default: S(() => [...c[57] ||= [o("确定", -1)]]),
2477
2540
  _: 1
2478
2541
  })]),
2479
- default: S(() => [s(w, { "label-position": "top" }, {
2542
+ default: S(() => [s(C, { "label-position": "top" }, {
2480
2543
  default: S(() => [s(p, {
2481
2544
  label: "key",
2482
2545
  required: ""
2483
2546
  }, {
2484
2547
  default: S(() => [s(x, {
2485
2548
  modelValue: F.value,
2486
- "onUpdate:modelValue": c[29] ||= (e) => F.value = e,
2549
+ "onUpdate:modelValue": c[33] ||= (e) => F.value = e,
2487
2550
  placeholder: "请输入 key"
2488
2551
  }, null, 8, ["modelValue"])]),
2489
2552
  _: 1
@@ -2493,7 +2556,7 @@ var Wi = /*#__PURE__*/ Ei(c({
2493
2556
  }, {
2494
2557
  default: S(() => [s(x, {
2495
2558
  modelValue: I.value,
2496
- "onUpdate:modelValue": c[30] ||= (e) => I.value = e,
2559
+ "onUpdate:modelValue": c[34] ||= (e) => I.value = e,
2497
2560
  placeholder: "请输入 label"
2498
2561
  }, null, 8, ["modelValue"])]),
2499
2562
  _: 1
@@ -2505,8 +2568,8 @@ var Wi = /*#__PURE__*/ Ei(c({
2505
2568
  ]);
2506
2569
  };
2507
2570
  }
2508
- }), [["__scopeId", "data-v-23272e71"]]), ma = { install(e) {
2509
- e.component("FitfulForm", Wi), e.component("FitfulCreateForm", pa), e.component("FitfulDynamicField", Di);
2571
+ }), [["__scopeId", "data-v-854c6855"]]), ha = { install(e) {
2572
+ e.component("FitfulForm", Wi), e.component("FitfulCreateForm", ma), e.component("FitfulDynamicField", Di);
2510
2573
  } };
2511
2574
  //#endregion
2512
- export { pa as CreateForm, Di as DynamicField, ma as FitfulFormPlugin, ma as default, Wi as Form };
2575
+ export { ma as CreateForm, Di as DynamicField, ha as FitfulFormPlugin, ha as default, Wi as Form };