st-comp 0.0.208 → 0.0.209
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/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +74 -1
- package/es/CustomFunction.cjs +1 -1
- package/es/CustomFunction.js +56 -53
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +48 -45
- package/es/HeatMap.cjs +1 -1
- package/es/HeatMap.js +118 -1
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +90 -87
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +28 -25
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +164 -161
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +114 -111
- package/es/KlinePlus.cjs +2 -2
- package/es/KlinePlus.js +183 -180
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +143 -140
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +3 -2
- package/es/Table.cjs +1 -1
- package/es/Table.js +58 -55
- package/es/User.cjs +1 -1
- package/es/User.js +88 -85
- package/es/VarSelectDialog.cjs +2 -2
- package/es/VarSelectDialog.js +56 -53
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +17 -15
- package/es/VarietySearch.cjs +10 -10
- package/es/VarietySearch.js +56 -53
- package/es/VarietyTextCopy.cjs +3 -3
- package/es/VarietyTextCopy.js +34 -31
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +106 -103
- package/es/_initCloneObject-52b6a510.cjs +1 -0
- package/es/{_initCloneObject-c477c74d.js → _initCloneObject-eaef9418.js} +26 -25
- package/es/base-a5af3db3.js +288 -0
- package/es/base-ef747d02.cjs +5 -0
- package/es/castArray-35947698.cjs +1 -0
- package/es/{castArray-1eb17278.js → castArray-7741a212.js} +1 -1
- package/es/{config-provider-18c0a68a.cjs → config-provider-a584d81e.cjs} +1 -1
- package/es/{config-provider-49c17381.js → config-provider-b16efd62.js} +6 -6
- package/es/debounce-62f5b6e8.cjs +1 -0
- package/es/{debounce-33406a0d.js → debounce-8d53f4dd.js} +9 -9
- package/es/{dropdown-3f1fe325.cjs → dropdown-071c5d7e.cjs} +1 -1
- package/es/{dropdown-6e7b1df0.js → dropdown-a59bba73.js} +15 -15
- package/es/el-autocomplete-a07e9439.cjs +1 -0
- package/es/{el-autocomplete-87b7f461.js → el-autocomplete-ba808eb6.js} +53 -51
- package/es/{el-button-56624e61.js → el-button-c95adb85.js} +46 -45
- package/es/el-button-eec58cff.cjs +1 -0
- package/es/{el-checkbox-f13560e9.js → el-checkbox-7421ccd3.js} +40 -40
- package/es/{el-checkbox-09f3b57f.cjs → el-checkbox-c25236a6.cjs} +1 -1
- package/es/{el-dialog-1d5f5877.js → el-dialog-41ab8417.js} +10 -9
- package/es/el-dialog-ae86edb8.cjs +1 -0
- package/es/{el-divider-8a4c87e3.cjs → el-divider-4713d74c.cjs} +1 -1
- package/es/{el-divider-1cda1783.js → el-divider-4e059794.js} +1 -1
- package/es/el-empty-1697ded8.cjs +1 -0
- package/es/{el-empty-04682b5d.js → el-empty-33cb66f1.js} +3 -3
- package/es/el-form-item-c3fe189b.cjs +12 -0
- package/es/{el-form-item-505c0b70.js → el-form-item-c53c374d.js} +76 -75
- package/es/{el-input-262851e8.js → el-input-2f75c4ba.js} +85 -84
- package/es/el-input-7fd293af.cjs +1 -0
- package/es/el-input-number-22e21d16.cjs +1 -0
- package/es/{el-input-number-fdac2b86.js → el-input-number-5193fe6d.js} +83 -82
- package/es/{el-loading-3cf7b796.cjs → el-loading-cfd86c15.cjs} +1 -1
- package/es/{el-loading-7440dc64.js → el-loading-f6022062.js} +2 -2
- package/es/el-menu-item-17dc717e.cjs +1 -0
- package/es/{el-menu-item-36c3004c.js → el-menu-item-7e881203.js} +54 -53
- package/es/el-message-5e6a6be9.cjs +1 -0
- package/es/{el-message-box-8f5e34ca.js → el-message-box-a93d2f6a.js} +22 -20
- package/es/el-message-box-c10adb52.cjs +1 -0
- package/es/{el-message-416bd265.js → el-message-e544a8f5.js} +29 -28
- package/es/{el-overlay-04426e36.js → el-overlay-09ad71cd.js} +53 -52
- package/es/el-overlay-9e34965f.cjs +1 -0
- package/es/el-popconfirm-70a976bf.cjs +1 -0
- package/es/{el-popconfirm-3790cda2.js → el-popconfirm-81dcd202.js} +39 -38
- package/es/{el-popper-49152708.js → el-popper-b4f97157.js} +192 -191
- package/es/el-popper-b6c99b28.cjs +1 -0
- package/es/{el-segmented-05509f9d.js → el-segmented-b868d074.js} +13 -12
- package/es/el-segmented-f8fce9ac.cjs +1 -0
- package/es/{el-select-700f3686.js → el-select-95627997.js} +295 -292
- package/es/el-select-d8d91db1.cjs +1 -0
- package/es/{el-table-column-44360700.js → el-table-column-376cd907.js} +57 -54
- package/es/el-table-column-c974cb96.cjs +14 -0
- package/es/{el-tag-55a172c9.js → el-tag-66cab138.js} +31 -30
- package/es/el-tag-a33c4b22.cjs +1 -0
- package/es/{el-text-ab6bfc40.js → el-text-ac60d0f2.js} +4 -4
- package/es/{el-text-5bcaffb6.cjs → el-text-c20a9f48.cjs} +1 -1
- package/es/index-098c2447.cjs +1 -0
- package/es/{index-d8294b1a.cjs → index-11547a0c.cjs} +1 -1
- package/es/{index-0afedcbd.js → index-1f7d4f70.js} +12 -11
- package/es/{index-ae6c9d97.cjs → index-298075cf.cjs} +1 -1
- package/es/{index-4e46f96c.js → index-57672682.js} +13 -12
- package/es/{index-66ad0d6a.js → index-844bdd85.js} +34 -34
- package/es/{index-29418a8d.js → index-88546436.js} +18 -18
- package/es/index-960806da.js +314 -0
- package/es/index-9780a537.cjs +1 -0
- package/es/index-9b9ef5dd.cjs +1 -0
- package/es/{base-aa512893.js → index-a871c3eb.js} +171 -454
- package/es/index-bb833443.cjs +1 -0
- package/es/index-c108567d.cjs +1 -0
- package/es/index-d77a7336.js +204 -0
- package/es/{index-cbbd78b4.js → index-d91dc23f.js} +12 -12
- package/es/index-e5566b94.js +368 -0
- package/es/index-f3562b52.cjs +1 -0
- package/es/{index-882d77d3.cjs → index-f967d6c1.cjs} +1 -1
- package/es/raf-80ef0c0a.js +6 -0
- package/es/{raf-336ef01e.cjs → raf-8249652f.cjs} +1 -1
- package/es/{scroll-0a48995c.js → scroll-679bd6bf.js} +5 -5
- package/es/{scroll-19533c53.cjs → scroll-b108dabd.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/use-form-common-props-815d48a6.js +364 -0
- package/es/use-form-common-props-fd9b61a0.cjs +1 -0
- package/es/use-global-config-30d7d8ce.cjs +1 -0
- package/es/use-global-config-b5e9d3d5.js +72 -0
- package/es/{validator-28b22907.cjs → validator-1b8a6128.cjs} +1 -1
- package/es/{validator-e35f7978.js → validator-764a9db0.js} +1 -1
- package/es/{vnode-b62d0045.js → vnode-5ddb7ed1.js} +1 -1
- package/es/{vnode-8cb31692.cjs → vnode-b906ae6d.cjs} +1 -1
- package/es/{zh-cn-7c8640bb.cjs → zh-cn-90317f62.cjs} +1 -1
- package/es/{zh-cn-346f3a73.js → zh-cn-e963c628.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +105 -105
- package/lib/{index-da0f2951.js → index-e158c3d6.js} +1529 -1529
- package/lib/{python-c0a1e4ef.js → python-57033756.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/Kline/componentsNew/KlineTips/index.vue +4 -4
- package/packages/Kline/index.vue +4 -4
- package/packages/KlineNew/components/KlineTips/index.vue +8 -8
- package/packages/KlinePlus/index.vue +4 -4
- package/src/pages/KlineBasic/api.js +1 -1
- package/es/_initCloneObject-e660897e.cjs +0 -1
- package/es/base-7ba08794.cjs +0 -5
- package/es/castArray-efa457a5.cjs +0 -1
- package/es/debounce-4aa22feb.cjs +0 -1
- package/es/el-autocomplete-609ac86d.cjs +0 -1
- package/es/el-button-08310c06.cjs +0 -1
- package/es/el-dialog-ea480083.cjs +0 -1
- package/es/el-empty-b40fa7ea.cjs +0 -1
- package/es/el-form-item-338ea2f7.cjs +0 -12
- package/es/el-input-b04b5bfc.cjs +0 -1
- package/es/el-input-number-7242c8b5.cjs +0 -1
- package/es/el-menu-item-7aca344e.cjs +0 -1
- package/es/el-message-05cd85bf.cjs +0 -1
- package/es/el-message-box-b7e9917e.cjs +0 -1
- package/es/el-overlay-60bc5a02.cjs +0 -1
- package/es/el-popconfirm-24b622c5.cjs +0 -1
- package/es/el-popper-1dd8f5b4.cjs +0 -1
- package/es/el-segmented-a928d89b.cjs +0 -1
- package/es/el-select-5fd77a96.cjs +0 -1
- package/es/el-table-column-bf3ab2a6.cjs +0 -14
- package/es/el-tag-d59f3463.cjs +0 -1
- package/es/index-3d0bc5da.js +0 -566
- package/es/index-a206f6eb.cjs +0 -1
- package/es/index-b4700d83.cjs +0 -1
- package/es/index-c30cf7f9.cjs +0 -1
- package/es/raf-d8c44079.js +0 -6
- package/es/use-form-common-props-41182853.cjs +0 -1
- package/es/use-form-common-props-4cdda474.js +0 -671
- package/es/use-global-config-7bfbe48c.js +0 -71
- package/es/use-global-config-dc5527e8.cjs +0 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ref as B, computed as E, defineComponent as H, reactive as ve, watch as ne, provide as Qe, toRefs as Xe, openBlock as ye, createElementBlock as ke, normalizeClass as K, unref as q, renderSlot as ee, inject as ie, onMounted as et, onBeforeUnmount as tt, onUpdated as Et, createVNode as ae, Fragment as St, nextTick as rt, useSlots as Tt, withCtx as pe, createBlock as _t, resolveDynamicComponent as Pt, normalizeStyle as Ie, createTextVNode as $t, toDisplayString as Me, createCommentVNode as Ne, createElementVNode as Re, TransitionGroup as It } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { b as je,
|
|
4
|
-
import { c as be } from "./castArray-
|
|
5
|
-
import { d as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { q as Mt, r as Nt, k as nt, e as it, s as qe, t as he, u as Rt } from "./use-form-common-props-815d48a6.js";
|
|
3
|
+
import { b as je, e as oe, j as se, c as Le, o as at, u as Ee, _ as ot, x as st, B as Lt, n as Ve, w as Vt, l as Bt } from "./base-a5af3db3.js";
|
|
4
|
+
import { c as be } from "./castArray-7741a212.js";
|
|
5
|
+
import { d as Wt, b as Ct } from "./el-popper-b4f97157.js";
|
|
6
|
+
import { S as Be, a as ft, i as Dt, c as Ut, u as zt } from "./index-960806da.js";
|
|
7
|
+
import { g as ge } from "./use-global-config-b5e9d3d5.js";
|
|
8
|
+
import { k as lt, g as ut, s as Gt, d as Kt, e as Se, n as fe, f as dt, b as Yt, S as Jt, h as Zt } from "./index-e5566b94.js";
|
|
9
|
+
import { c as le, k as Te, g as Ht, e as ct, d as Qt, a as Xt, b as kt, i as er } from "./_initCloneObject-eaef9418.js";
|
|
9
10
|
function tr(r, e) {
|
|
10
11
|
for (var t = -1, n = r == null ? 0 : r.length; ++t < n && e(r[t], t, r) !== !1; )
|
|
11
12
|
;
|
|
@@ -24,7 +25,7 @@ var ar = Object.getOwnPropertySymbols, or = ar ? function(r) {
|
|
|
24
25
|
for (var e = []; r; )
|
|
25
26
|
Mt(e, ut(r)), r = Ht(r);
|
|
26
27
|
return e;
|
|
27
|
-
} :
|
|
28
|
+
} : Gt;
|
|
28
29
|
const pt = or;
|
|
29
30
|
function sr(r, e) {
|
|
30
31
|
return le(r, pt(r), e);
|
|
@@ -46,7 +47,7 @@ function gr(r) {
|
|
|
46
47
|
var e = new r.constructor(r.source, pr.exec(r));
|
|
47
48
|
return e.lastIndex = r.lastIndex, e;
|
|
48
49
|
}
|
|
49
|
-
var We =
|
|
50
|
+
var We = Be ? Be.prototype : void 0, Ce = We ? We.valueOf : void 0;
|
|
50
51
|
function mr(r) {
|
|
51
52
|
return Ce ? Object(Ce.call(r)) : {};
|
|
52
53
|
}
|
|
@@ -86,32 +87,32 @@ function Nr(r, e, t) {
|
|
|
86
87
|
}
|
|
87
88
|
var Rr = "[object Map]";
|
|
88
89
|
function Lr(r) {
|
|
89
|
-
return
|
|
90
|
+
return ft(r) && Se(r) == Rr;
|
|
90
91
|
}
|
|
91
92
|
var De = fe && fe.isMap, Vr = De ? dt(De) : Lr;
|
|
92
93
|
const Br = Vr;
|
|
93
94
|
var Wr = "[object Set]";
|
|
94
95
|
function Cr(r) {
|
|
95
|
-
return
|
|
96
|
+
return ft(r) && Se(r) == Wr;
|
|
96
97
|
}
|
|
97
98
|
var Ue = fe && fe.isSet, Dr = Ue ? dt(Ue) : Cr;
|
|
98
99
|
const Ur = Dr;
|
|
99
|
-
var
|
|
100
|
-
A[gt] = A[
|
|
100
|
+
var zr = 1, Gr = 2, Kr = 4, gt = "[object Arguments]", Yr = "[object Array]", Jr = "[object Boolean]", Zr = "[object Date]", Hr = "[object Error]", mt = "[object Function]", Qr = "[object GeneratorFunction]", Xr = "[object Map]", kr = "[object Number]", vt = "[object Object]", en = "[object RegExp]", tn = "[object Set]", rn = "[object String]", nn = "[object Symbol]", an = "[object WeakMap]", on = "[object ArrayBuffer]", sn = "[object DataView]", fn = "[object Float32Array]", ln = "[object Float64Array]", un = "[object Int8Array]", dn = "[object Int16Array]", cn = "[object Int32Array]", pn = "[object Uint8Array]", gn = "[object Uint8ClampedArray]", mn = "[object Uint16Array]", vn = "[object Uint32Array]", A = {};
|
|
101
|
+
A[gt] = A[Yr] = A[on] = A[sn] = A[Jr] = A[Zr] = A[fn] = A[ln] = A[un] = A[dn] = A[cn] = A[Xr] = A[kr] = A[vt] = A[en] = A[tn] = A[rn] = A[nn] = A[pn] = A[gn] = A[mn] = A[vn] = !0;
|
|
101
102
|
A[Hr] = A[mt] = A[an] = !1;
|
|
102
103
|
function te(r, e, t, n, i, a) {
|
|
103
|
-
var o, s = e &
|
|
104
|
+
var o, s = e & zr, l = e & Gr, w = e & Kr;
|
|
104
105
|
if (t && (o = i ? t(r, n, i, a) : t(r)), o !== void 0)
|
|
105
106
|
return o;
|
|
106
|
-
if (!
|
|
107
|
+
if (!Dt(r))
|
|
107
108
|
return r;
|
|
108
|
-
var p =
|
|
109
|
+
var p = Ut(r);
|
|
109
110
|
if (p) {
|
|
110
111
|
if (o = dr(r), !s)
|
|
111
112
|
return Xt(r, o);
|
|
112
113
|
} else {
|
|
113
114
|
var m = Se(r), b = m == mt || m == Qr;
|
|
114
|
-
if (
|
|
115
|
+
if (Yt(r))
|
|
115
116
|
return kt(r, s);
|
|
116
117
|
if (m == vt || m == gt || b && !i) {
|
|
117
118
|
if (o = l || b ? {} : er(r), !s)
|
|
@@ -122,7 +123,7 @@ function te(r, e, t, n, i, a) {
|
|
|
122
123
|
o = Nr(r, m, s);
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
|
-
a || (a = new
|
|
126
|
+
a || (a = new Jt());
|
|
126
127
|
var O = a.get(r);
|
|
127
128
|
if (O)
|
|
128
129
|
return O;
|
|
@@ -133,17 +134,17 @@ function te(r, e, t, n, i, a) {
|
|
|
133
134
|
});
|
|
134
135
|
var j = w ? l ? fr : Zt : l ? Te : lt, d = p ? void 0 : j(r);
|
|
135
136
|
return tr(d || r, function(g, f) {
|
|
136
|
-
d && (f = g, g = r[f]),
|
|
137
|
+
d && (f = g, g = r[f]), Nt(o, f, te(g, e, t, f, r, a));
|
|
137
138
|
}), o;
|
|
138
139
|
}
|
|
139
140
|
var yn = 4;
|
|
140
|
-
function
|
|
141
|
+
function ze(r) {
|
|
141
142
|
return te(r, yn);
|
|
142
143
|
}
|
|
143
144
|
const hn = je({
|
|
144
145
|
size: {
|
|
145
146
|
type: String,
|
|
146
|
-
values:
|
|
147
|
+
values: nt
|
|
147
148
|
},
|
|
148
149
|
disabled: Boolean
|
|
149
150
|
}), bn = je({
|
|
@@ -188,7 +189,7 @@ const hn = je({
|
|
|
188
189
|
default: !0
|
|
189
190
|
}
|
|
190
191
|
}), wn = {
|
|
191
|
-
validate: (r, e, t) => (se(r) ||
|
|
192
|
+
validate: (r, e, t) => (se(r) || Le(r)) && at(e) && Le(t)
|
|
192
193
|
};
|
|
193
194
|
function Fn() {
|
|
194
195
|
const r = B([]), e = E(() => {
|
|
@@ -228,7 +229,7 @@ const X = (r, e) => {
|
|
|
228
229
|
props: bn,
|
|
229
230
|
emits: wn,
|
|
230
231
|
setup(r, { expose: e, emit: t }) {
|
|
231
|
-
const n = r, i = B(), a = ve([]), o =
|
|
232
|
+
const n = r, i = B(), a = ve([]), o = it(), s = Ee("form"), l = E(() => {
|
|
232
233
|
const { labelPosition: u, inline: y } = n;
|
|
233
234
|
return [
|
|
234
235
|
s.b(),
|
|
@@ -270,7 +271,7 @@ const X = (r, e) => {
|
|
|
270
271
|
return Object.keys(F).length === 0 ? !0 : Promise.reject(F);
|
|
271
272
|
}, $ = async (u = [], y) => {
|
|
272
273
|
let F = !1;
|
|
273
|
-
const _ = !
|
|
274
|
+
const _ = !st(y);
|
|
274
275
|
try {
|
|
275
276
|
return F = await f(u), F === !0 && await (y == null ? void 0 : y(F)), F;
|
|
276
277
|
} catch (S) {
|
|
@@ -289,7 +290,7 @@ const X = (r, e) => {
|
|
|
289
290
|
F && ((y = F.$el) == null || y.scrollIntoView(n.scrollIntoViewOptions));
|
|
290
291
|
};
|
|
291
292
|
return ne(() => n.rules, () => {
|
|
292
|
-
n.validateOnRuleChange && g().catch((u) =>
|
|
293
|
+
n.validateOnRuleChange && g().catch((u) => Wt());
|
|
293
294
|
}, { deep: !0, flush: "post" }), Qe(qe, ve({
|
|
294
295
|
...Xe(n),
|
|
295
296
|
emit: t,
|
|
@@ -317,7 +318,7 @@ const X = (r, e) => {
|
|
|
317
318
|
], 2));
|
|
318
319
|
}
|
|
319
320
|
});
|
|
320
|
-
var qn = /* @__PURE__ */
|
|
321
|
+
var qn = /* @__PURE__ */ ot(On, [["__file", "form.vue"]]);
|
|
321
322
|
function C() {
|
|
322
323
|
return C = Object.assign ? Object.assign.bind() : function(r) {
|
|
323
324
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -452,7 +453,7 @@ function Pn(r, e, t) {
|
|
|
452
453
|
e(s, o);
|
|
453
454
|
});
|
|
454
455
|
}
|
|
455
|
-
function
|
|
456
|
+
function Ge(r, e, t) {
|
|
456
457
|
var n = 0, i = r.length;
|
|
457
458
|
function a(o) {
|
|
458
459
|
if (o && o.length) {
|
|
@@ -484,7 +485,7 @@ function In(r, e, t, n, i) {
|
|
|
484
485
|
var j = function(f) {
|
|
485
486
|
return n(f), f.length ? O(new Ke(f, xe(f))) : b(i);
|
|
486
487
|
}, d = $n(r);
|
|
487
|
-
|
|
488
|
+
Ge(d, t, j);
|
|
488
489
|
});
|
|
489
490
|
return a.catch(function(b) {
|
|
490
491
|
return b;
|
|
@@ -497,7 +498,7 @@ function In(r, e, t, n, i) {
|
|
|
497
498
|
};
|
|
498
499
|
s.length || (n(p), b(i)), s.forEach(function(d) {
|
|
499
500
|
var g = r[d];
|
|
500
|
-
o.indexOf(d) !== -1 ?
|
|
501
|
+
o.indexOf(d) !== -1 ? Ge(g, t, j) : Pn(g, t, j);
|
|
501
502
|
});
|
|
502
503
|
});
|
|
503
504
|
return m.catch(function(b) {
|
|
@@ -515,7 +516,7 @@ function Nn(r, e) {
|
|
|
515
516
|
}
|
|
516
517
|
return t;
|
|
517
518
|
}
|
|
518
|
-
function
|
|
519
|
+
function Ye(r, e) {
|
|
519
520
|
return function(t) {
|
|
520
521
|
var n;
|
|
521
522
|
return r.fullFields ? n = Nn(e, r.fullFields) : n = e[t.field || r.fullField], Mn(t) ? (t.field = t.field || r.fullField, t.fieldValue = n, t) : {
|
|
@@ -525,7 +526,7 @@ function Je(r, e) {
|
|
|
525
526
|
};
|
|
526
527
|
};
|
|
527
528
|
}
|
|
528
|
-
function
|
|
529
|
+
function Je(r, e) {
|
|
529
530
|
if (e) {
|
|
530
531
|
for (var t in e)
|
|
531
532
|
if (e.hasOwnProperty(t)) {
|
|
@@ -573,12 +574,12 @@ var ht = function(e, t, n, i, a, o) {
|
|
|
573
574
|
// 'i',
|
|
574
575
|
// ),
|
|
575
576
|
hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
|
|
576
|
-
},
|
|
577
|
+
}, Y = {
|
|
577
578
|
integer: function(e) {
|
|
578
|
-
return
|
|
579
|
+
return Y.number(e) && parseInt(e, 10) === e;
|
|
579
580
|
},
|
|
580
581
|
float: function(e) {
|
|
581
|
-
return
|
|
582
|
+
return Y.number(e) && !Y.integer(e);
|
|
582
583
|
},
|
|
583
584
|
array: function(e) {
|
|
584
585
|
return Array.isArray(e);
|
|
@@ -599,7 +600,7 @@ var ht = function(e, t, n, i, a, o) {
|
|
|
599
600
|
return isNaN(e) ? !1 : typeof e == "number";
|
|
600
601
|
},
|
|
601
602
|
object: function(e) {
|
|
602
|
-
return typeof e == "object" && !
|
|
603
|
+
return typeof e == "object" && !Y.array(e);
|
|
603
604
|
},
|
|
604
605
|
method: function(e) {
|
|
605
606
|
return typeof e == "function";
|
|
@@ -619,14 +620,14 @@ var ht = function(e, t, n, i, a, o) {
|
|
|
619
620
|
return;
|
|
620
621
|
}
|
|
621
622
|
var o = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], s = e.type;
|
|
622
|
-
o.indexOf(s) > -1 ?
|
|
623
|
+
o.indexOf(s) > -1 ? Y[s](t) || i.push(N(a.messages.types[s], e.fullField, e.type)) : s && typeof t !== e.type && i.push(N(a.messages.types[s], e.fullField, e.type));
|
|
623
624
|
}, Bn = function(e, t, n, i, a) {
|
|
624
625
|
var o = typeof e.len == "number", s = typeof e.min == "number", l = typeof e.max == "number", w = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, p = t, m = null, b = typeof t == "number", O = typeof t == "string", j = Array.isArray(t);
|
|
625
626
|
if (b ? m = "number" : O ? m = "string" : j && (m = "array"), !m)
|
|
626
627
|
return !1;
|
|
627
628
|
j && (p = t.length), O && (p = t.replace(w, "_").length), o ? p !== e.len && i.push(N(a.messages[m].len, e.fullField, e.len)) : s && !l && p < e.min ? i.push(N(a.messages[m].min, e.fullField, e.min)) : l && !s && p > e.max ? i.push(N(a.messages[m].max, e.fullField, e.max)) : s && l && (p < e.min || p > e.max) && i.push(N(a.messages[m].range, e.fullField, e.min, e.max));
|
|
628
|
-
},
|
|
629
|
-
e[
|
|
629
|
+
}, G = "enum", Wn = function(e, t, n, i, a) {
|
|
630
|
+
e[G] = Array.isArray(e[G]) ? e[G] : [], e[G].indexOf(t) === -1 && i.push(N(a.messages[G], e.fullField, e[G].join(", ")));
|
|
630
631
|
}, Cn = function(e, t, n, i, a) {
|
|
631
632
|
if (e.pattern) {
|
|
632
633
|
if (e.pattern instanceof RegExp)
|
|
@@ -659,7 +660,7 @@ var ht = function(e, t, n, i, a, o) {
|
|
|
659
660
|
h.required(e, t, i, o, a), t !== void 0 && h.type(e, t, i, o, a);
|
|
660
661
|
}
|
|
661
662
|
n(o);
|
|
662
|
-
},
|
|
663
|
+
}, zn = function(e, t, n, i, a) {
|
|
663
664
|
var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
|
|
664
665
|
if (s) {
|
|
665
666
|
if (t === "" && (t = void 0), T(t) && !e.required)
|
|
@@ -667,7 +668,7 @@ var ht = function(e, t, n, i, a, o) {
|
|
|
667
668
|
h.required(e, t, i, o, a), t !== void 0 && (h.type(e, t, i, o, a), h.range(e, t, i, o, a));
|
|
668
669
|
}
|
|
669
670
|
n(o);
|
|
670
|
-
},
|
|
671
|
+
}, Gn = function(e, t, n, i, a) {
|
|
671
672
|
var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
|
|
672
673
|
if (s) {
|
|
673
674
|
if (T(t) && !e.required)
|
|
@@ -683,7 +684,7 @@ var ht = function(e, t, n, i, a, o) {
|
|
|
683
684
|
h.required(e, t, i, o, a), T(t) || h.type(e, t, i, o, a);
|
|
684
685
|
}
|
|
685
686
|
n(o);
|
|
686
|
-
},
|
|
687
|
+
}, Yn = function(e, t, n, i, a) {
|
|
687
688
|
var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
|
|
688
689
|
if (s) {
|
|
689
690
|
if (T(t) && !e.required)
|
|
@@ -691,7 +692,7 @@ var ht = function(e, t, n, i, a, o) {
|
|
|
691
692
|
h.required(e, t, i, o, a), t !== void 0 && (h.type(e, t, i, o, a), h.range(e, t, i, o, a));
|
|
692
693
|
}
|
|
693
694
|
n(o);
|
|
694
|
-
},
|
|
695
|
+
}, Jn = function(e, t, n, i, a) {
|
|
695
696
|
var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
|
|
696
697
|
if (s) {
|
|
697
698
|
if (T(t) && !e.required)
|
|
@@ -761,14 +762,14 @@ var ht = function(e, t, n, i, a, o) {
|
|
|
761
762
|
h.required(e, t, i, o, a);
|
|
762
763
|
}
|
|
763
764
|
n(o);
|
|
764
|
-
},
|
|
765
|
+
}, J = {
|
|
765
766
|
string: Dn,
|
|
766
767
|
method: Un,
|
|
767
|
-
number:
|
|
768
|
-
boolean:
|
|
768
|
+
number: zn,
|
|
769
|
+
boolean: Gn,
|
|
769
770
|
regexp: Kn,
|
|
770
|
-
integer:
|
|
771
|
-
float:
|
|
771
|
+
integer: Yn,
|
|
772
|
+
float: Jn,
|
|
772
773
|
array: Zn,
|
|
773
774
|
object: Hn,
|
|
774
775
|
enum: Xn,
|
|
@@ -849,7 +850,7 @@ var Oe = Ae(), Q = /* @__PURE__ */ function() {
|
|
|
849
850
|
i.rules[a] = Array.isArray(o) ? o : [o];
|
|
850
851
|
});
|
|
851
852
|
}, e.messages = function(n) {
|
|
852
|
-
return n && (this._messages =
|
|
853
|
+
return n && (this._messages = Je(Ae(), n)), this._messages;
|
|
853
854
|
}, e.validate = function(n, i, a) {
|
|
854
855
|
var o = this;
|
|
855
856
|
i === void 0 && (i = {}), a === void 0 && (a = function() {
|
|
@@ -872,7 +873,7 @@ var Oe = Ae(), Q = /* @__PURE__ */ function() {
|
|
|
872
873
|
}
|
|
873
874
|
if (l.messages) {
|
|
874
875
|
var m = this.messages();
|
|
875
|
-
m === Oe && (m = Ae()),
|
|
876
|
+
m === Oe && (m = Ae()), Je(m, l.messages), l.messages = m;
|
|
876
877
|
} else
|
|
877
878
|
l.messages = this.messages();
|
|
878
879
|
var b = {}, O = l.keys || Object.keys(this.rules);
|
|
@@ -904,14 +905,14 @@ var Oe = Ae(), Q = /* @__PURE__ */ function() {
|
|
|
904
905
|
F === void 0 && (F = []);
|
|
905
906
|
var _ = Array.isArray(F) ? F : [F];
|
|
906
907
|
!l.suppressWarning && _.length && r.warning("async-validator:", _), _.length && f.message !== void 0 && (_ = [].concat(f.message));
|
|
907
|
-
var S = _.map(
|
|
908
|
+
var S = _.map(Ye(f, s));
|
|
908
909
|
if (l.first && S.length)
|
|
909
910
|
return j[f.field] = 1, g(S);
|
|
910
911
|
if (!$)
|
|
911
912
|
g(S);
|
|
912
913
|
else {
|
|
913
914
|
if (f.required && !d.value)
|
|
914
|
-
return f.message !== void 0 ? S = [].concat(f.message).map(
|
|
915
|
+
return f.message !== void 0 ? S = [].concat(f.message).map(Ye(f, s)) : l.error && (S = [l.error(f, N(l.messages.required, f.field))]), g(S);
|
|
915
916
|
var R = {};
|
|
916
917
|
f.defaultField && Object.keys(d.value).map(function(M) {
|
|
917
918
|
R[M] = f.defaultField;
|
|
@@ -950,24 +951,24 @@ var Oe = Ae(), Q = /* @__PURE__ */ function() {
|
|
|
950
951
|
p(d);
|
|
951
952
|
}, s);
|
|
952
953
|
}, e.getType = function(n) {
|
|
953
|
-
if (n.type === void 0 && n.pattern instanceof RegExp && (n.type = "pattern"), typeof n.validator != "function" && n.type && !
|
|
954
|
+
if (n.type === void 0 && n.pattern instanceof RegExp && (n.type = "pattern"), typeof n.validator != "function" && n.type && !J.hasOwnProperty(n.type))
|
|
954
955
|
throw new Error(N("Unknown rule type %s", n.type));
|
|
955
956
|
return n.type || "string";
|
|
956
957
|
}, e.getValidationMethod = function(n) {
|
|
957
958
|
if (typeof n.validator == "function")
|
|
958
959
|
return n.validator;
|
|
959
960
|
var i = Object.keys(n), a = i.indexOf("message");
|
|
960
|
-
return a !== -1 && i.splice(a, 1), i.length === 1 && i[0] === "required" ?
|
|
961
|
+
return a !== -1 && i.splice(a, 1), i.length === 1 && i[0] === "required" ? J.required : J[this.getType(n)] || void 0;
|
|
961
962
|
}, r;
|
|
962
963
|
}();
|
|
963
964
|
Q.register = function(e, t) {
|
|
964
965
|
if (typeof t != "function")
|
|
965
966
|
throw new Error("Cannot register a validator by type, validator is not a function");
|
|
966
|
-
|
|
967
|
+
J[e] = t;
|
|
967
968
|
};
|
|
968
969
|
Q.warning = yt;
|
|
969
970
|
Q.messages = Oe;
|
|
970
|
-
Q.validators =
|
|
971
|
+
Q.validators = J;
|
|
971
972
|
const ni = [
|
|
972
973
|
"",
|
|
973
974
|
"error",
|
|
@@ -1010,7 +1011,7 @@ const ni = [
|
|
|
1010
1011
|
},
|
|
1011
1012
|
size: {
|
|
1012
1013
|
type: String,
|
|
1013
|
-
values:
|
|
1014
|
+
values: nt
|
|
1014
1015
|
}
|
|
1015
1016
|
}), He = "ElLabelWrap";
|
|
1016
1017
|
var ai = H({
|
|
@@ -1023,7 +1024,7 @@ var ai = H({
|
|
|
1023
1024
|
slots: e
|
|
1024
1025
|
}) {
|
|
1025
1026
|
const t = ie(qe, void 0), n = ie(he);
|
|
1026
|
-
n ||
|
|
1027
|
+
n || Ct(He, "usage: <el-form-item><label-wrap /></el-form-item>");
|
|
1027
1028
|
const i = Ee("form"), a = B(), o = B(0), s = () => {
|
|
1028
1029
|
var p;
|
|
1029
1030
|
if ((p = a.value) != null && p.firstElementChild) {
|
|
@@ -1042,7 +1043,7 @@ var ai = H({
|
|
|
1042
1043
|
l("remove");
|
|
1043
1044
|
}), Et(() => w()), ne(o, (p, m) => {
|
|
1044
1045
|
r.updateAll && (t == null || t.registerLabelWidth(p, m));
|
|
1045
|
-
}),
|
|
1046
|
+
}), Rt(E(() => {
|
|
1046
1047
|
var p, m;
|
|
1047
1048
|
return (m = (p = a.value) == null ? void 0 : p.firstElementChild) != null ? m : null;
|
|
1048
1049
|
}), w), () => {
|
|
@@ -1076,19 +1077,19 @@ const oi = H({
|
|
|
1076
1077
|
...oi,
|
|
1077
1078
|
props: ii,
|
|
1078
1079
|
setup(r, { expose: e }) {
|
|
1079
|
-
const t = r, n = Tt(), i = ie(qe, void 0), a = ie(he, void 0), o =
|
|
1080
|
+
const t = r, n = Tt(), i = ie(qe, void 0), a = ie(he, void 0), o = it(void 0, { formItem: !1 }), s = Ee("form-item"), l = zt().value, w = B([]), p = B(""), m = Lt(p, 100), b = B(""), O = B();
|
|
1080
1081
|
let j, d = !1;
|
|
1081
1082
|
const g = E(() => t.labelPosition || (i == null ? void 0 : i.labelPosition)), f = E(() => {
|
|
1082
1083
|
if (g.value === "top")
|
|
1083
1084
|
return {};
|
|
1084
|
-
const c =
|
|
1085
|
+
const c = Ve(t.labelWidth || (i == null ? void 0 : i.labelWidth) || "");
|
|
1085
1086
|
return c ? { width: c } : {};
|
|
1086
1087
|
}), $ = E(() => {
|
|
1087
1088
|
if (g.value === "top" || i != null && i.inline)
|
|
1088
1089
|
return {};
|
|
1089
1090
|
if (!t.label && !t.labelWidth && W)
|
|
1090
1091
|
return {};
|
|
1091
|
-
const c =
|
|
1092
|
+
const c = Ve(t.labelWidth || (i == null ? void 0 : i.labelWidth) || "");
|
|
1092
1093
|
return !t.label && !n.label ? { marginLeft: c } : {};
|
|
1093
1094
|
}), v = E(() => [
|
|
1094
1095
|
s.b(),
|
|
@@ -1103,7 +1104,7 @@ const oi = H({
|
|
|
1103
1104
|
[s.m("feedback")]: i == null ? void 0 : i.statusIcon,
|
|
1104
1105
|
[s.m(`label-${g.value}`)]: g.value
|
|
1105
1106
|
}
|
|
1106
|
-
]), u = E(() =>
|
|
1107
|
+
]), u = E(() => at(t.inlineMessage) ? t.inlineMessage : (i == null ? void 0 : i.inlineMessage) || !1), y = E(() => [
|
|
1107
1108
|
s.e("error"),
|
|
1108
1109
|
{ [s.em("error", "inline")]: u.value }
|
|
1109
1110
|
]), F = E(() => t.prop ? se(t.prop) ? t.prop.join(".") : t.prop : ""), _ = E(() => !!(t.label || n.label)), S = E(() => {
|
|
@@ -1122,10 +1123,10 @@ const oi = H({
|
|
|
1122
1123
|
P && x.push(...be(P));
|
|
1123
1124
|
}
|
|
1124
1125
|
if (c !== void 0) {
|
|
1125
|
-
const P = x.map((V,
|
|
1126
|
+
const P = x.map((V, z) => [V, z]).filter(([V]) => "required" in V);
|
|
1126
1127
|
if (P.length > 0)
|
|
1127
|
-
for (const [V,
|
|
1128
|
-
V.required !== c && (x[
|
|
1128
|
+
for (const [V, z] of P)
|
|
1129
|
+
V.required !== c && (x[z] = { ...V, required: c });
|
|
1129
1130
|
else
|
|
1130
1131
|
x.push({ required: c });
|
|
1131
1132
|
}
|
|
@@ -1149,13 +1150,13 @@ const oi = H({
|
|
|
1149
1150
|
}, Pe = async (c, x) => {
|
|
1150
1151
|
if (d || !t.prop)
|
|
1151
1152
|
return !1;
|
|
1152
|
-
const I =
|
|
1153
|
+
const I = st(x);
|
|
1153
1154
|
if (!L.value)
|
|
1154
1155
|
return x == null || x(!1), !1;
|
|
1155
1156
|
const P = ue(c);
|
|
1156
1157
|
return P.length === 0 ? (x == null || x(!0), !0) : (U("validating"), Ot(P).then(() => (x == null || x(!0), !0)).catch((V) => {
|
|
1157
|
-
const { fields:
|
|
1158
|
-
return x == null || x(!1,
|
|
1158
|
+
const { fields: z } = V;
|
|
1159
|
+
return x == null || x(!1, z), I ? !1 : Promise.reject(z);
|
|
1159
1160
|
}));
|
|
1160
1161
|
}, de = () => {
|
|
1161
1162
|
U(""), b.value = "", d = !1;
|
|
@@ -1164,7 +1165,7 @@ const oi = H({
|
|
|
1164
1165
|
if (!c || !t.prop)
|
|
1165
1166
|
return;
|
|
1166
1167
|
const x = ge(c, t.prop);
|
|
1167
|
-
d = !0, x.value =
|
|
1168
|
+
d = !0, x.value = ze(j), await rt(), de(), d = !1;
|
|
1168
1169
|
}, qt = (c) => {
|
|
1169
1170
|
w.value.includes(c) || w.value.push(c);
|
|
1170
1171
|
}, jt = (c) => {
|
|
@@ -1192,7 +1193,7 @@ const oi = H({
|
|
|
1192
1193
|
propString: F
|
|
1193
1194
|
});
|
|
1194
1195
|
return Qe(he, ce), et(() => {
|
|
1195
|
-
t.prop && (i == null || i.addField(ce), j =
|
|
1196
|
+
t.prop && (i == null || i.addField(ce), j = ze(D.value));
|
|
1196
1197
|
}), tt(() => {
|
|
1197
1198
|
i == null || i.removeField(ce);
|
|
1198
1199
|
}), e({
|
|
@@ -1258,11 +1259,11 @@ const oi = H({
|
|
|
1258
1259
|
};
|
|
1259
1260
|
}
|
|
1260
1261
|
});
|
|
1261
|
-
var bt = /* @__PURE__ */
|
|
1262
|
-
const
|
|
1262
|
+
var bt = /* @__PURE__ */ ot(si, [["__file", "form-item.vue"]]);
|
|
1263
|
+
const yi = Vt(qn, {
|
|
1263
1264
|
FormItem: bt
|
|
1264
|
-
}),
|
|
1265
|
+
}), hi = Bt(bt);
|
|
1265
1266
|
export {
|
|
1266
|
-
|
|
1267
|
-
|
|
1267
|
+
yi as E,
|
|
1268
|
+
hi as a
|
|
1268
1269
|
};
|