|
@@ -1,5 +1,5 @@
|
|
|
-import { a_ as bn, a$ as Pe, b0 as wn, b1 as Tt, as as Ye, b2 as xn, ar as qe, b3 as $n, b4 as It, b5 as Fn, b6 as An, b7 as _t, b8 as On, b9 as lt, ba as st, bb as Je, bc as Ze, bd as jt, be as Ce, bf as Cn, bg as Mt, at as Lt, bh as Sn, bi as Rt, bj as En, bk as Pn, bl as ut, bm as qn, bn as Tn, d as P, D as Ne, E as In, aL as _n, c as pe, y as jn, bo as Mn, aM as Ln, _ as W, g as Rn, m as Nn, bp as Nt, aK as Vn, r as Vt, aB as Dn, aC as Bn, az as Gn, aG as Dt, u as Bt, bq as Wn, V as zn, a1 as Un, br as Hn, bs as Kn, bt as Xn, P as de, bu as Qe, bv as Yn, bw as Gt, bx as Jn, by as Zn, bz as Qn, i as kn, av as ue, ax as me, ay as ft, aw as ct, f as er, e as $e, bA as je, U as tr, bB as Ve } from "./index2.js";
|
|
|
|
|
-import { cloneVNode as nr, inject as Wt, computed as F, provide as zt, createVNode as _, Fragment as Se, defineComponent as Te, ref as ke, watch as se, Transition as rr, withDirectives as ir, TransitionGroup as ar, vShow as or, shallowRef as ee, watchEffect as De, onBeforeUnmount as lr, reactive as Ut, onMounted as sr, toRaw as Be, nextTick as Ht, unref as ae } from "vue";
|
|
|
|
|
|
|
+import { a$ as bn, b0 as Pe, b1 as wn, b2 as Tt, as as Ye, b3 as xn, ar as qe, b4 as $n, b5 as It, b6 as Fn, b7 as An, b8 as jt, b9 as On, ba as lt, bb as st, bc as Je, bd as Ze, be as _t, bf as Ce, bg as Cn, bh as Mt, at as Lt, bi as Sn, bj as Rt, bk as En, bl as Pn, bm as ut, bn as qn, bo as Tn, d as P, D as Ne, E as In, aL as jn, c as pe, y as _n, bp as Mn, aM as Ln, _ as W, g as Rn, m as Nn, bq as Nt, aK as Vn, r as Vt, aB as Dn, aC as Bn, az as Gn, aG as Dt, u as Bt, br as Wn, V as zn, a1 as Un, bs as Hn, bt as Kn, bu as Xn, P as de, bv as Qe, bw as Yn, bx as Gt, by as Jn, bz as Zn, bA as Qn, i as kn, av as ue, ax as me, ay as ft, aw as ct, f as er, e as $e, bB as _e, U as tr, bC as Ve } from "./index2.js";
|
|
|
|
|
+import { cloneVNode as nr, inject as Wt, computed as F, provide as zt, createVNode as j, Fragment as Se, defineComponent as Te, ref as ke, watch as se, Transition as rr, withDirectives as ir, TransitionGroup as ar, vShow as or, shallowRef as ee, watchEffect as De, onBeforeUnmount as lr, reactive as Ut, onMounted as sr, toRaw as Be, nextTick as Ht, unref as ae } from "vue";
|
|
|
import { a as Kt, s as ur, o as fr, i as Xt, b as et, c as Yt, t as Ee, h as cr, d as Jt, e as Zt, f as dr } from "./hasIn.js";
|
|
import { a as Kt, s as ur, o as fr, i as Xt, b as et, c as Yt, t as Ee, h as cr, d as Jt, e as Zt, f as dr } from "./hasIn.js";
|
|
|
import { C as Qt, A as mr } from "./Col.js";
|
|
import { C as Qt, A as mr } from "./Col.js";
|
|
|
import { s as gr } from "./index3.js";
|
|
import { s as gr } from "./index3.js";
|
|
@@ -99,12 +99,12 @@ function Tr(e, t) {
|
|
|
function Ir(e, t) {
|
|
function Ir(e, t) {
|
|
|
return be(e, It(e), t);
|
|
return be(e, It(e), t);
|
|
|
}
|
|
}
|
|
|
-var _r = Object.getOwnPropertySymbols, en = _r ? function(e) {
|
|
|
|
|
|
|
+var jr = Object.getOwnPropertySymbols, en = jr ? function(e) {
|
|
|
for (var t = []; e; )
|
|
for (var t = []; e; )
|
|
|
- An(t, It(e)), e = _t(e);
|
|
|
|
|
|
|
+ An(t, It(e)), e = jt(e);
|
|
|
return t;
|
|
return t;
|
|
|
} : Fn;
|
|
} : Fn;
|
|
|
-function jr(e, t) {
|
|
|
|
|
|
|
+function _r(e, t) {
|
|
|
return be(e, en(e), t);
|
|
return be(e, en(e), t);
|
|
|
}
|
|
}
|
|
|
function tn(e) {
|
|
function tn(e) {
|
|
@@ -171,19 +171,19 @@ function si(e, t, n) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
function ui(e) {
|
|
function ui(e) {
|
|
|
- return typeof e.constructor == "function" && !Tt(e) ? yr(_t(e)) : {};
|
|
|
|
|
|
|
+ return typeof e.constructor == "function" && !Tt(e) ? yr(jt(e)) : {};
|
|
|
}
|
|
}
|
|
|
var fi = "[object Map]";
|
|
var fi = "[object Map]";
|
|
|
function ci(e) {
|
|
function ci(e) {
|
|
|
return Je(e) && Ze(e) == fi;
|
|
return Je(e) && Ze(e) == fi;
|
|
|
}
|
|
}
|
|
|
-var bt = Ce && Ce.isMap, di = bt ? jt(bt) : ci, mi = "[object Set]";
|
|
|
|
|
|
|
+var bt = Ce && Ce.isMap, di = bt ? _t(bt) : ci, mi = "[object Set]";
|
|
|
function gi(e) {
|
|
function gi(e) {
|
|
|
return Je(e) && Ze(e) == mi;
|
|
return Je(e) && Ze(e) == mi;
|
|
|
}
|
|
}
|
|
|
-var wt = Ce && Ce.isSet, vi = wt ? jt(wt) : gi, hi = 1, pi = 2, yi = 4, nn = "[object Arguments]", bi = "[object Array]", wi = "[object Boolean]", xi = "[object Date]", $i = "[object Error]", rn = "[object Function]", Fi = "[object GeneratorFunction]", Ai = "[object Map]", Oi = "[object Number]", an = "[object Object]", Ci = "[object RegExp]", Si = "[object Set]", Ei = "[object String]", Pi = "[object Symbol]", qi = "[object WeakMap]", Ti = "[object ArrayBuffer]", Ii = "[object DataView]", _i = "[object Float32Array]", ji = "[object Float64Array]", Mi = "[object Int8Array]", Li = "[object Int16Array]", Ri = "[object Int32Array]", Ni = "[object Uint8Array]", Vi = "[object Uint8ClampedArray]", Di = "[object Uint16Array]", Bi = "[object Uint32Array]", j = {};
|
|
|
|
|
-j[nn] = j[bi] = j[Ti] = j[Ii] = j[wi] = j[xi] = j[_i] = j[ji] = j[Mi] = j[Li] = j[Ri] = j[Ai] = j[Oi] = j[an] = j[Ci] = j[Si] = j[Ei] = j[Pi] = j[Ni] = j[Vi] = j[Di] = j[Bi] = !0;
|
|
|
|
|
-j[$i] = j[rn] = j[qi] = !1;
|
|
|
|
|
|
|
+var wt = Ce && Ce.isSet, vi = wt ? _t(wt) : gi, hi = 1, pi = 2, yi = 4, nn = "[object Arguments]", bi = "[object Array]", wi = "[object Boolean]", xi = "[object Date]", $i = "[object Error]", rn = "[object Function]", Fi = "[object GeneratorFunction]", Ai = "[object Map]", Oi = "[object Number]", an = "[object Object]", Ci = "[object RegExp]", Si = "[object Set]", Ei = "[object String]", Pi = "[object Symbol]", qi = "[object WeakMap]", Ti = "[object ArrayBuffer]", Ii = "[object DataView]", ji = "[object Float32Array]", _i = "[object Float64Array]", Mi = "[object Int8Array]", Li = "[object Int16Array]", Ri = "[object Int32Array]", Ni = "[object Uint8Array]", Vi = "[object Uint8ClampedArray]", Di = "[object Uint16Array]", Bi = "[object Uint32Array]", _ = {};
|
|
|
|
|
+_[nn] = _[bi] = _[Ti] = _[Ii] = _[wi] = _[xi] = _[ji] = _[_i] = _[Mi] = _[Li] = _[Ri] = _[Ai] = _[Oi] = _[an] = _[Ci] = _[Si] = _[Ei] = _[Pi] = _[Ni] = _[Vi] = _[Di] = _[Bi] = !0;
|
|
|
|
|
+_[$i] = _[rn] = _[qi] = !1;
|
|
|
function ve(e, t, n, r, i, o) {
|
|
function ve(e, t, n, r, i, o) {
|
|
|
var a, l = t & hi, s = t & pi, v = t & yi;
|
|
var a, l = t & hi, s = t & pi, v = t & yi;
|
|
|
if (n && (a = i ? n(e, r, i, o) : n(e)), a !== void 0)
|
|
if (n && (a = i ? n(e, r, i, o) : n(e)), a !== void 0)
|
|
@@ -200,9 +200,9 @@ function ve(e, t, n, r, i, o) {
|
|
|
return Tr(e, l);
|
|
return Tr(e, l);
|
|
|
if (g == an || g == nn || h && !i) {
|
|
if (g == an || g == nn || h && !i) {
|
|
|
if (a = s || h ? {} : ui(e), !l)
|
|
if (a = s || h ? {} : ui(e), !l)
|
|
|
- return s ? jr(e, Pr(a, e)) : Ir(e, Er(a, e));
|
|
|
|
|
|
|
+ return s ? _r(e, Pr(a, e)) : Ir(e, Er(a, e));
|
|
|
} else {
|
|
} else {
|
|
|
- if (!j[g])
|
|
|
|
|
|
|
+ if (!_[g])
|
|
|
return i ? e : {};
|
|
return i ? e : {};
|
|
|
a = si(e, g, l);
|
|
a = si(e, g, l);
|
|
|
}
|
|
}
|
|
@@ -679,12 +679,12 @@ var fn = function(t, n, r, i, o, a) {
|
|
|
}
|
|
}
|
|
|
var a = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], l = t.type;
|
|
var a = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], l = t.type;
|
|
|
a.indexOf(l) > -1 ? ge[l](n) || i.push(J(o.messages.types[l], t.fullField, t.type)) : l && typeof n !== t.type && i.push(J(o.messages.types[l], t.fullField, t.type));
|
|
a.indexOf(l) > -1 ? ge[l](n) || i.push(J(o.messages.types[l], t.fullField, t.type)) : l && typeof n !== t.type && i.push(J(o.messages.types[l], t.fullField, t.type));
|
|
|
-}, _a = function(t, n, r, i, o) {
|
|
|
|
|
|
|
+}, ja = function(t, n, r, i, o) {
|
|
|
var a = typeof t.len == "number", l = typeof t.min == "number", s = typeof t.max == "number", v = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, f = n, g = null, h = typeof n == "number", w = typeof n == "string", $ = Array.isArray(n);
|
|
var a = typeof t.len == "number", l = typeof t.min == "number", s = typeof t.max == "number", v = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, f = n, g = null, h = typeof n == "number", w = typeof n == "string", $ = Array.isArray(n);
|
|
|
if (h ? g = "number" : w ? g = "string" : $ && (g = "array"), !g)
|
|
if (h ? g = "number" : w ? g = "string" : $ && (g = "array"), !g)
|
|
|
return !1;
|
|
return !1;
|
|
|
$ && (f = n.length), w && (f = n.replace(v, "_").length), a ? f !== t.len && i.push(J(o.messages[g].len, t.fullField, t.len)) : l && !s && f < t.min ? i.push(J(o.messages[g].min, t.fullField, t.min)) : s && !l && f > t.max ? i.push(J(o.messages[g].max, t.fullField, t.max)) : l && s && (f < t.min || f > t.max) && i.push(J(o.messages[g].range, t.fullField, t.min, t.max));
|
|
$ && (f = n.length), w && (f = n.replace(v, "_").length), a ? f !== t.len && i.push(J(o.messages[g].len, t.fullField, t.len)) : l && !s && f < t.min ? i.push(J(o.messages[g].min, t.fullField, t.min)) : s && !l && f > t.max ? i.push(J(o.messages[g].max, t.fullField, t.max)) : l && s && (f < t.min || f > t.max) && i.push(J(o.messages[g].range, t.fullField, t.min, t.max));
|
|
|
-}, fe = "enum", ja = function(t, n, r, i, o) {
|
|
|
|
|
|
|
+}, fe = "enum", _a = function(t, n, r, i, o) {
|
|
|
t[fe] = Array.isArray(t[fe]) ? t[fe] : [], t[fe].indexOf(n) === -1 && i.push(J(o.messages[fe], t.fullField, t[fe].join(", ")));
|
|
t[fe] = Array.isArray(t[fe]) ? t[fe] : [], t[fe].indexOf(n) === -1 && i.push(J(o.messages[fe], t.fullField, t[fe].join(", ")));
|
|
|
}, Ma = function(t, n, r, i, o) {
|
|
}, Ma = function(t, n, r, i, o) {
|
|
|
if (t.pattern) {
|
|
if (t.pattern) {
|
|
@@ -699,8 +699,8 @@ var fn = function(t, n, r, i, o, a) {
|
|
|
required: fn,
|
|
required: fn,
|
|
|
whitespace: qa,
|
|
whitespace: qa,
|
|
|
type: Ia,
|
|
type: Ia,
|
|
|
- range: _a,
|
|
|
|
|
- enum: ja,
|
|
|
|
|
|
|
+ range: ja,
|
|
|
|
|
+ enum: _a,
|
|
|
pattern: Ma
|
|
pattern: Ma
|
|
|
}, La = function(t, n, r, i, o) {
|
|
}, La = function(t, n, r, i, o) {
|
|
|
var a = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
|
|
var a = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
|
|
@@ -1135,7 +1135,7 @@ const Y = "'${name}' is not a valid ${type}", Ie = {
|
|
|
mismatch: "'${name}' does not match pattern ${pattern}"
|
|
mismatch: "'${name}' does not match pattern ${pattern}"
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
-var _e = function(e, t, n, r) {
|
|
|
|
|
|
|
+var je = function(e, t, n, r) {
|
|
|
function i(o) {
|
|
function i(o) {
|
|
|
return o instanceof n ? o : new n(function(a) {
|
|
return o instanceof n ? o : new n(function(a) {
|
|
|
a(o);
|
|
a(o);
|
|
@@ -1170,7 +1170,7 @@ function io(e, t) {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
function Xe(e, t, n, r, i) {
|
|
function Xe(e, t, n, r, i) {
|
|
|
- return _e(this, void 0, void 0, function* () {
|
|
|
|
|
|
|
+ return je(this, void 0, void 0, function* () {
|
|
|
const o = P({}, n);
|
|
const o = P({}, n);
|
|
|
delete o.ruleIndex, delete o.trigger;
|
|
delete o.ruleIndex, delete o.trigger;
|
|
|
let a = null;
|
|
let a = null;
|
|
@@ -1238,7 +1238,7 @@ function gn(e, t, n, r, i, o) {
|
|
|
});
|
|
});
|
|
|
let s;
|
|
let s;
|
|
|
if (i === !0)
|
|
if (i === !0)
|
|
|
- s = new Promise((v, f) => _e(this, void 0, void 0, function* () {
|
|
|
|
|
|
|
+ s = new Promise((v, f) => je(this, void 0, void 0, function* () {
|
|
|
for (let g = 0; g < l.length; g += 1) {
|
|
for (let g = 0; g < l.length; g += 1) {
|
|
|
const h = l[g], w = yield Xe(a, t, h, r, o);
|
|
const h = l[g], w = yield Xe(a, t, h, r, o);
|
|
|
if (w.length) {
|
|
if (w.length) {
|
|
@@ -1261,12 +1261,12 @@ function gn(e, t, n, r, i, o) {
|
|
|
return s.catch((v) => v), s;
|
|
return s.catch((v) => v), s;
|
|
|
}
|
|
}
|
|
|
function ao(e) {
|
|
function ao(e) {
|
|
|
- return _e(this, void 0, void 0, function* () {
|
|
|
|
|
|
|
+ return je(this, void 0, void 0, function* () {
|
|
|
return Promise.all(e).then((t) => [].concat(...t));
|
|
return Promise.all(e).then((t) => [].concat(...t));
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
function oo(e) {
|
|
function oo(e) {
|
|
|
- return _e(this, void 0, void 0, function* () {
|
|
|
|
|
|
|
+ return je(this, void 0, void 0, function* () {
|
|
|
let t = 0;
|
|
let t = 0;
|
|
|
return new Promise((n) => {
|
|
return new Promise((n) => {
|
|
|
e.forEach((r) => {
|
|
e.forEach((r) => {
|
|
@@ -1325,7 +1325,7 @@ const vn = Symbol("formContextKey"), hn = (e) => {
|
|
|
colon: $,
|
|
colon: $,
|
|
|
required: d,
|
|
required: d,
|
|
|
requiredMark: y
|
|
requiredMark: y
|
|
|
- } = P(P({}, e), i), [m] = _n("Form"), q = (o = e.label) !== null && o !== void 0 ? o : (a = n.label) === null || a === void 0 ? void 0 : a.call(n);
|
|
|
|
|
|
|
+ } = P(P({}, e), i), [m] = jn("Form"), q = (o = e.label) !== null && o !== void 0 ? o : (a = n.label) === null || a === void 0 ? void 0 : a.call(n);
|
|
|
if (!q) return null;
|
|
if (!q) return null;
|
|
|
const {
|
|
const {
|
|
|
vertical: u,
|
|
vertical: u,
|
|
@@ -1339,18 +1339,18 @@ const vn = Symbol("formContextKey"), hn = (e) => {
|
|
|
let T = q;
|
|
let T = q;
|
|
|
const N = $ === !0 || (A == null ? void 0 : A.value) !== !1 && $ !== !1;
|
|
const N = $ === !0 || (A == null ? void 0 : A.value) !== !1 && $ !== !1;
|
|
|
if (N && !u.value && typeof q == "string" && q.trim() !== "" && (T = q.replace(/[:|:]\s*$/, "")), e.tooltip || n.tooltip) {
|
|
if (N && !u.value && typeof q == "string" && q.trim() !== "" && (T = q.replace(/[:|:]\s*$/, "")), e.tooltip || n.tooltip) {
|
|
|
- const K = _("span", {
|
|
|
|
|
|
|
+ const K = j("span", {
|
|
|
class: `${f}-item-tooltip`
|
|
class: `${f}-item-tooltip`
|
|
|
- }, [_(jn, {
|
|
|
|
|
|
|
+ }, [j(_n, {
|
|
|
title: e.tooltip
|
|
title: e.tooltip
|
|
|
}, {
|
|
}, {
|
|
|
- default: () => [_(Mn, null, null)]
|
|
|
|
|
|
|
+ default: () => [j(Mn, null, null)]
|
|
|
})]);
|
|
})]);
|
|
|
- T = _(Se, null, [T, n.tooltip ? (l = n.tooltip) === null || l === void 0 ? void 0 : l.call(n, {
|
|
|
|
|
|
|
+ T = j(Se, null, [T, n.tooltip ? (l = n.tooltip) === null || l === void 0 ? void 0 : l.call(n, {
|
|
|
class: `${f}-item-tooltip`
|
|
class: `${f}-item-tooltip`
|
|
|
}) : K]);
|
|
}) : K]);
|
|
|
}
|
|
}
|
|
|
- y === "optional" && !d && (T = _(Se, null, [T, _("span", {
|
|
|
|
|
|
|
+ y === "optional" && !d && (T = j(Se, null, [T, j("span", {
|
|
|
class: `${f}-item-optional`
|
|
class: `${f}-item-optional`
|
|
|
}, [((s = m.value) === null || s === void 0 ? void 0 : s.optional) || ((v = Ln.Form) === null || v === void 0 ? void 0 : v.optional)])]));
|
|
}, [((s = m.value) === null || s === void 0 ? void 0 : s.optional) || ((v = Ln.Form) === null || v === void 0 ? void 0 : v.optional)])]));
|
|
|
const Q = pe({
|
|
const Q = pe({
|
|
@@ -1358,10 +1358,10 @@ const vn = Symbol("formContextKey"), hn = (e) => {
|
|
|
[`${f}-item-required-mark-optional`]: y === "optional",
|
|
[`${f}-item-required-mark-optional`]: y === "optional",
|
|
|
[`${f}-item-no-colon`]: !N
|
|
[`${f}-item-no-colon`]: !N
|
|
|
});
|
|
});
|
|
|
- return _(Qt, W(W({}, O), {}, {
|
|
|
|
|
|
|
+ return j(Qt, W(W({}, O), {}, {
|
|
|
class: L
|
|
class: L
|
|
|
}), {
|
|
}), {
|
|
|
- default: () => [_("label", {
|
|
|
|
|
|
|
+ default: () => [j("label", {
|
|
|
for: g,
|
|
for: g,
|
|
|
class: Q,
|
|
class: Q,
|
|
|
title: typeof q == "string" ? q : "",
|
|
title: typeof q == "string" ? q : "",
|
|
@@ -1826,14 +1826,14 @@ const uo = (e) => {
|
|
|
}), () => {
|
|
}), () => {
|
|
|
var v, f;
|
|
var v, f;
|
|
|
const g = Dn(`${r.value}-show-help-item`), h = Bn(`${r.value}-show-help-item`, g);
|
|
const g = Dn(`${r.value}-show-help-item`), h = Bn(`${r.value}-show-help-item`, g);
|
|
|
- return h.role = "alert", h.class = [s.value, o.value, n.class, `${r.value}-show-help`], _(rr, W(W({}, Gn(`${r.value}-show-help`)), {}, {
|
|
|
|
|
|
|
+ return h.role = "alert", h.class = [s.value, o.value, n.class, `${r.value}-show-help`], j(rr, W(W({}, Gn(`${r.value}-show-help`)), {}, {
|
|
|
onAfterEnter: () => e.onErrorVisibleChanged(!0),
|
|
onAfterEnter: () => e.onErrorVisibleChanged(!0),
|
|
|
onAfterLeave: () => e.onErrorVisibleChanged(!1)
|
|
onAfterLeave: () => e.onErrorVisibleChanged(!1)
|
|
|
}), {
|
|
}), {
|
|
|
- default: () => [ir(_(ar, W(W({}, h), {}, {
|
|
|
|
|
|
|
+ default: () => [ir(j(ar, W(W({}, h), {}, {
|
|
|
tag: "div"
|
|
tag: "div"
|
|
|
}), {
|
|
}), {
|
|
|
- default: () => [(f = e.errors) === null || f === void 0 ? void 0 : f.map((w, $) => _("div", {
|
|
|
|
|
|
|
+ default: () => [(f = e.errors) === null || f === void 0 ? void 0 : f.map((w, $) => j("div", {
|
|
|
key: $,
|
|
key: $,
|
|
|
class: l.value ? `${o.value}-${l.value}` : ""
|
|
class: l.value ? `${o.value}-${l.value}` : ""
|
|
|
}, [w]))]
|
|
}, [w]))]
|
|
@@ -1871,31 +1871,31 @@ const uo = (e) => {
|
|
|
// status,
|
|
// status,
|
|
|
extra: d = (s = n.extra) === null || s === void 0 ? void 0 : s.call(n)
|
|
extra: d = (s = n.extra) === null || s === void 0 ? void 0 : s.call(n)
|
|
|
} = e, y = `${v}-item`, m = f || (i == null ? void 0 : i.value) || {}, q = pe(`${y}-control`, m.class);
|
|
} = e, y = `${v}-item`, m = f || (i == null ? void 0 : i.value) || {}, q = pe(`${y}-control`, m.class);
|
|
|
- return _(Qt, W(W({}, m), {}, {
|
|
|
|
|
|
|
+ return j(Qt, W(W({}, m), {}, {
|
|
|
class: q
|
|
class: q
|
|
|
}), {
|
|
}), {
|
|
|
default: () => {
|
|
default: () => {
|
|
|
var u;
|
|
var u;
|
|
|
- return _(Se, null, [_("div", {
|
|
|
|
|
|
|
+ return j(Se, null, [j("div", {
|
|
|
class: `${y}-control-input`
|
|
class: `${y}-control-input`
|
|
|
- }, [_("div", {
|
|
|
|
|
|
|
+ }, [j("div", {
|
|
|
class: `${y}-control-input-content`
|
|
class: `${y}-control-input-content`
|
|
|
- }, [(u = n.default) === null || u === void 0 ? void 0 : u.call(n)])]), g !== null || $.length ? _("div", {
|
|
|
|
|
|
|
+ }, [(u = n.default) === null || u === void 0 ? void 0 : u.call(n)])]), g !== null || $.length ? j("div", {
|
|
|
style: {
|
|
style: {
|
|
|
display: "flex",
|
|
display: "flex",
|
|
|
flexWrap: "nowrap"
|
|
flexWrap: "nowrap"
|
|
|
}
|
|
}
|
|
|
- }, [_(yo, {
|
|
|
|
|
|
|
+ }, [j(yo, {
|
|
|
errors: $,
|
|
errors: $,
|
|
|
help: w,
|
|
help: w,
|
|
|
class: `${y}-explain-connected`,
|
|
class: `${y}-explain-connected`,
|
|
|
onErrorVisibleChanged: h
|
|
onErrorVisibleChanged: h
|
|
|
- }, null), !!g && _("div", {
|
|
|
|
|
|
|
+ }, null), !!g && j("div", {
|
|
|
style: {
|
|
style: {
|
|
|
width: 0,
|
|
width: 0,
|
|
|
height: `${g}px`
|
|
height: `${g}px`
|
|
|
}
|
|
}
|
|
|
- }, null)]) : null, d ? _("div", {
|
|
|
|
|
|
|
+ }, null)]) : null, d ? j("div", {
|
|
|
class: `${y}-extra`
|
|
class: `${y}-extra`
|
|
|
}, [d]) : null]);
|
|
}, [d]) : null]);
|
|
|
}
|
|
}
|
|
@@ -2152,9 +2152,9 @@ const Ao = "form_item", Oo = Te({
|
|
|
let p;
|
|
let p;
|
|
|
if (e.hasFeedback) {
|
|
if (e.hasFeedback) {
|
|
|
const I = C.value && xo[C.value];
|
|
const I = C.value && xo[C.value];
|
|
|
- p = I ? _("span", {
|
|
|
|
|
|
|
+ p = I ? j("span", {
|
|
|
class: pe(`${a.value}-item-feedback-icon`, `${a.value}-item-feedback-icon-${C.value}`)
|
|
class: pe(`${a.value}-item-feedback-icon`, `${a.value}-item-feedback-icon-${C.value}`)
|
|
|
- }, [_(I, null, null)]) : null;
|
|
|
|
|
|
|
+ }, [j(I, null, null)]) : null;
|
|
|
}
|
|
}
|
|
|
P(H, {
|
|
P(H, {
|
|
|
status: C.value,
|
|
status: C.value,
|
|
@@ -2184,16 +2184,16 @@ const Ao = "form_item", Oo = Te({
|
|
|
var p, I;
|
|
var p, I;
|
|
|
if (e.noStyle) return (p = n.default) === null || p === void 0 ? void 0 : p.call(n);
|
|
if (e.noStyle) return (p = n.default) === null || p === void 0 ? void 0 : p.call(n);
|
|
|
const D = (I = e.help) !== null && I !== void 0 ? I : n.help ? Dt(n.help()) : null, G = !!(D != null && Array.isArray(D) && D.length || x.value.length);
|
|
const D = (I = e.help) !== null && I !== void 0 ? I : n.help ? Dt(n.help()) : null, G = !!(D != null && Array.isArray(D) && D.length || x.value.length);
|
|
|
- return te.value = G, l(_("div", {
|
|
|
|
|
|
|
+ return te.value = G, l(j("div", {
|
|
|
class: [R.value, G ? `${a.value}-item-with-help` : "", r.class],
|
|
class: [R.value, G ? `${a.value}-item-with-help` : "", r.class],
|
|
|
ref: v
|
|
ref: v
|
|
|
- }, [_(mr, W(W({}, r), {}, {
|
|
|
|
|
|
|
+ }, [j(mr, W(W({}, r), {}, {
|
|
|
class: `${a.value}-item-row`,
|
|
class: `${a.value}-item-row`,
|
|
|
key: "row"
|
|
key: "row"
|
|
|
}), {
|
|
}), {
|
|
|
default: () => {
|
|
default: () => {
|
|
|
var z, U;
|
|
var z, U;
|
|
|
- return _(Se, null, [_(it, W(W({}, e), {}, {
|
|
|
|
|
|
|
+ return j(Se, null, [j(it, W(W({}, e), {}, {
|
|
|
htmlFor: Z.value,
|
|
htmlFor: Z.value,
|
|
|
required: S.value,
|
|
required: S.value,
|
|
|
requiredMark: f.requiredMark.value,
|
|
requiredMark: f.requiredMark.value,
|
|
@@ -2203,7 +2203,7 @@ const Ao = "form_item", Oo = Te({
|
|
|
}), {
|
|
}), {
|
|
|
label: n.label,
|
|
label: n.label,
|
|
|
tooltip: n.tooltip
|
|
tooltip: n.tooltip
|
|
|
- }), _(bo, W(W({}, e), {}, {
|
|
|
|
|
|
|
+ }), j(bo, W(W({}, e), {}, {
|
|
|
errors: D != null ? ne(D) : x.value,
|
|
errors: D != null ? ne(D) : x.value,
|
|
|
marginBottom: X.value,
|
|
marginBottom: X.value,
|
|
|
prefixCls: a.value,
|
|
prefixCls: a.value,
|
|
@@ -2216,7 +2216,7 @@ const Ao = "form_item", Oo = Te({
|
|
|
default: n.default
|
|
default: n.default
|
|
|
})]);
|
|
})]);
|
|
|
}
|
|
}
|
|
|
- }), !!X.value && _("div", {
|
|
|
|
|
|
|
+ }), !!X.value && j("div", {
|
|
|
class: `${a.value}-margin-offset`,
|
|
class: `${a.value}-margin-offset`,
|
|
|
style: {
|
|
style: {
|
|
|
marginBottom: `-${X.value}px`
|
|
marginBottom: `-${X.value}px`
|
|
@@ -2490,7 +2490,7 @@ const oe = Te({
|
|
|
return C ? Object.values(c).filter((H) => R.findIndex((X) => Eo(X, H.fieldName.value)) > -1) : Object.values(c);
|
|
return C ? Object.values(c).filter((H) => R.findIndex((X) => Eo(X, H.fieldName.value)) > -1) : Object.values(c);
|
|
|
}, O = (x) => {
|
|
}, O = (x) => {
|
|
|
if (!e.model) {
|
|
if (!e.model) {
|
|
|
- je(!1, "Form", "model is required for resetFields to work.");
|
|
|
|
|
|
|
+ _e(!1, "Form", "model is required for resetFields to work.");
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
A(x).forEach((C) => {
|
|
A(x).forEach((C) => {
|
|
@@ -2533,8 +2533,8 @@ const oe = Te({
|
|
|
} else
|
|
} else
|
|
|
return St(e.model, x);
|
|
return St(e.model, x);
|
|
|
}, Z = (x, C) => {
|
|
}, Z = (x, C) => {
|
|
|
- if (je(!(x instanceof Function), "Form", "validateFields/validateField/validate not support callback, please use promise instead"), !e.model)
|
|
|
|
|
- return je(!1, "Form", "model is required for validateFields to work."), Promise.reject("Form `model` is required for validateFields to work.");
|
|
|
|
|
|
|
+ if (_e(!(x instanceof Function), "Form", "validateFields/validateField/validate not support callback, please use promise instead"), !e.model)
|
|
|
|
|
+ return _e(!1, "Form", "model is required for validateFields to work."), Promise.reject("Form `model` is required for validateFields to work.");
|
|
|
const R = !!x, H = R ? ne(x).map(Ke) : [], X = [];
|
|
const R = !!x, H = R ? ne(x).map(Ke) : [], X = [];
|
|
|
Object.values(c).forEach((k) => {
|
|
Object.values(c).forEach((k) => {
|
|
|
var p;
|
|
var p;
|
|
@@ -2620,7 +2620,7 @@ const oe = Te({
|
|
|
e.validateOnRuleChange && Z();
|
|
e.validateOnRuleChange && Z();
|
|
|
}), () => {
|
|
}), () => {
|
|
|
var x;
|
|
var x;
|
|
|
- return y(_("form", W(W({}, o), {}, {
|
|
|
|
|
|
|
+ return y(j("form", W(W({}, o), {}, {
|
|
|
onSubmit: K,
|
|
onSubmit: K,
|
|
|
class: [q.value, o.class]
|
|
class: [q.value, o.class]
|
|
|
}), [(x = r.default) === null || x === void 0 ? void 0 : x.call(r)]));
|
|
}), [(x = r.default) === null || x === void 0 ? void 0 : x.call(r)]));
|