st-comp 0.0.164 → 0.0.166
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/components.d.ts +3 -0
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +3 -3
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +16 -14
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +492 -614
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +16 -16
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +477 -766
- package/es/KlineConfig.cjs +1 -0
- package/es/KlineConfig.js +703 -0
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +14 -14
- package/es/KlinePlus.cjs +6 -0
- package/es/KlinePlus.js +1212 -0
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +21 -20
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +100 -279
- package/es/User.cjs +1 -1
- package/es/User.js +41 -39
- package/es/VarSelectDialog.cjs +1 -1
- package/es/VarSelectDialog.js +23 -22
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +34 -32
- package/es/VirtualTable.cjs +5 -5
- package/es/VirtualTable.js +1018 -1056
- package/es/{_initCloneObject-47814efa.cjs → _initCloneObject-9ccbb113.cjs} +1 -1
- package/es/{_initCloneObject-c939f3af.js → _initCloneObject-a9305c1e.js} +3 -3
- package/es/base-4bcd2756.js +304 -0
- package/es/base-bdc10baa.cjs +5 -0
- package/es/{castArray-a78ae889.cjs → castArray-37eb9980.cjs} +1 -1
- package/es/{castArray-2440268f.js → castArray-681d750b.js} +1 -1
- package/es/{config-provider-722dca36.js → config-provider-93846ae3.js} +9 -9
- package/es/config-provider-ec6b09df.cjs +1 -0
- package/es/dayjs.min-19fb125f.cjs +1 -0
- package/es/dayjs.min-54a4e095.js +296 -0
- package/es/{debounce-82e23c4b.js → debounce-51046b06.js} +1 -1
- package/es/{debounce-cf26af24.cjs → debounce-9e323221.cjs} +1 -1
- package/es/{dropdown-6f8379f0.js → dropdown-65e74de8.js} +6 -6
- package/es/{dropdown-790d31ea.cjs → dropdown-b2dab5bb.cjs} +1 -1
- package/es/{el-autocomplete-75762ef9.js → el-autocomplete-5064d466.js} +9 -9
- package/es/{el-autocomplete-84de99ba.cjs → el-autocomplete-814993af.cjs} +1 -1
- package/es/el-button-960edd49.cjs +1 -0
- package/es/{el-button-2e878325.js → el-button-d39472d3.js} +37 -36
- package/es/{el-checkbox-group-45247bbf.cjs → el-checkbox-group-020b49f5.cjs} +1 -1
- package/es/{el-checkbox-group-5e4f32f0.js → el-checkbox-group-779f353a.js} +2 -2
- package/es/el-dialog-cd484c1f.cjs +1 -0
- package/es/el-dialog-f45ec2a1.js +267 -0
- package/es/el-divider-40c50ce7.cjs +1 -0
- package/es/el-divider-7cf13678.js +45 -0
- package/es/{el-empty-2ece1134.cjs → el-empty-627ec09e.cjs} +1 -1
- package/es/{el-empty-7f8acbdc.js → el-empty-64b2ea8a.js} +2 -2
- package/es/{el-form-item-45ba08ff.js → el-form-item-b31e7a98.js} +8 -8
- package/es/{el-form-item-47e255d4.cjs → el-form-item-e1c3104b.cjs} +2 -2
- package/es/{el-input-1323afd2.js → el-input-42315ac4.js} +48 -48
- package/es/{el-input-cb340042.cjs → el-input-5163bda3.cjs} +1 -1
- package/es/{el-input-number-0f194f3f.cjs → el-input-number-eb54cde4.cjs} +1 -1
- package/es/{el-input-number-991f8bfc.js → el-input-number-ebd64e22.js} +19 -19
- package/es/el-loading-15a5501c.cjs +1 -0
- package/es/el-loading-5d29f26d.js +187 -0
- package/es/{el-menu-item-4c9eb7ad.cjs → el-menu-item-ac89e804.cjs} +1 -1
- package/es/{el-menu-item-dbbcd01a.js → el-menu-item-d62e0a3f.js} +32 -32
- package/es/el-message-ad87b9dd.cjs +1 -0
- package/es/{el-message-03e6f342.js → el-message-bd1d2c82.js} +17 -17
- package/es/el-overlay-690b50aa.js +269 -0
- package/es/el-overlay-e5d318c3.cjs +1 -0
- package/es/{el-popconfirm-8372cd13.js → el-popconfirm-88bbd066.js} +13 -13
- package/es/{el-popconfirm-86503f8a.cjs → el-popconfirm-a497b279.cjs} +1 -1
- package/es/{el-popper-7adbf1c6.cjs → el-popper-14a9d493.cjs} +1 -1
- package/es/{el-popper-b5315f5b.js → el-popper-85365d5b.js} +63 -63
- package/es/{el-scrollbar-ac525239.cjs → el-scrollbar-8bf765f2.cjs} +1 -1
- package/es/{el-scrollbar-4dc1493a.js → el-scrollbar-bcf29780.js} +21 -21
- package/es/el-segmented-84707138.js +136 -0
- package/es/el-segmented-bccd9f2a.cjs +1 -0
- package/es/{el-select-31f8ac8a.cjs → el-select-1d2309a1.cjs} +1 -1
- package/es/{el-select-a4ad7c8b.js → el-select-d3bce4d1.js} +13 -13
- package/es/{el-table-column-2e7132b3.js → el-table-column-9691b26d.js} +19 -18
- package/es/el-table-column-be9a76bb.cjs +14 -0
- package/es/{el-tag-a79385c6.js → el-tag-6036f51c.js} +39 -39
- package/es/{el-tag-9732314f.cjs → el-tag-8d49d4d2.cjs} +1 -1
- package/es/{index-375e8de4.cjs → index-02ca0096.cjs} +1 -1
- package/es/{index-afc88a4b.cjs → index-19fa1fcf.cjs} +1 -1
- package/es/{index-733cd68a.js → index-21fb27eb.js} +17 -17
- package/es/{index-e5fe37a4.js → index-3425f2f0.js} +10 -10
- package/es/{index-1d85ba4b.cjs → index-5b81f4da.cjs} +1 -1
- package/es/index-8d3c5e96.cjs +3 -0
- package/es/{index-97d24ab7.js → index-8ee89b40.js} +16 -16
- package/es/{index-9e6e8d03.cjs → index-a99a5307.cjs} +1 -1
- package/es/{index-58521b9e.cjs → index-b90c746b.cjs} +1 -1
- package/es/index-c45ac024.js +14 -0
- package/es/{index-f5b9b211.js → index-cb8157f2.js} +2 -2
- package/es/{index-e6a36e09.js → index-d3c37134.js} +7 -7
- package/es/{index-65b4113e.cjs → index-d94bae37.cjs} +1 -1
- package/es/{index-2d9c78d4.cjs → index-e348d5e8.cjs} +1 -1
- package/es/{index-57a7323a.js → index-ef7c4392.js} +11 -11
- package/es/{index-e3353eeb.js → index-fbe85773.js} +13 -13
- package/es/{raf-f46caea0.cjs → raf-07cb6953.cjs} +1 -1
- package/es/{raf-c817c3f7.js → raf-36faa519.js} +1 -1
- package/es/{scroll-4fe7a76f.js → scroll-0277d145.js} +1 -1
- package/es/{scroll-339681d4.cjs → scroll-4769a65d.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-common-props-04fb0752.js → use-form-common-props-54c31983.js} +40 -40
- package/es/{use-form-common-props-74a96df2.cjs → use-form-common-props-592797e2.cjs} +1 -1
- package/es/use-global-config-584b62f1.cjs +1 -0
- package/es/use-global-config-946f61a4.js +73 -0
- package/es/{vnode-b15eb11b.cjs → vnode-1b827c99.cjs} +1 -1
- package/es/{vnode-0fd3003d.js → vnode-dfc92f20.js} +1 -1
- package/es/{zh-cn-cac8283b.js → zh-cn-5066f5e9.js} +2 -2
- package/es/{zh-cn-36f34912.cjs → zh-cn-b24a7dc9.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +217 -212
- package/lib/{index-5f63dc2e.js → index-80531492.js} +39042 -37182
- package/lib/{python-5918f7d5.js → python-20a1a5fc.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlineConfig/config.js +39 -0
- package/packages/KlineConfig/index.ts +8 -0
- package/packages/KlineConfig/index.vue +315 -0
- package/packages/KlinePlus/components/SliderChart.vue +218 -0
- package/packages/KlinePlus/components/Tips.vue +36 -0
- package/packages/KlinePlus/images/buy.svg +1 -0
- package/packages/KlinePlus/images/sell.svg +1 -0
- package/packages/KlinePlus/images/t.svg +1 -0
- package/packages/KlinePlus/index.ts +8 -0
- package/packages/KlinePlus/index.vue +880 -0
- package/packages/KlinePlus/utils.js +705 -0
- package/packages/index.ts +4 -0
- package/src/pages/KlineConfig/index.vue +20 -0
- package/src/pages/KlinePlus/index.vue +180 -0
- package/src/router/routes.ts +10 -0
- package/es/base-0ca7c43a.cjs +0 -5
- package/es/base-b56cf478.js +0 -303
- package/es/config-provider-cfbb9cd8.cjs +0 -1
- package/es/el-button-62966947.cjs +0 -1
- package/es/el-message-d5ed7a4f.cjs +0 -1
- package/es/el-overlay-41994f67.cjs +0 -1
- package/es/el-overlay-47b665a0.js +0 -521
- package/es/el-table-column-bdc46568.cjs +0 -14
- package/es/index-0baeaec7.js +0 -82
- package/es/index-2f958e56.cjs +0 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { l as T, e as V, i as _, p as Z, t as
|
|
1
|
+
import { l as T, e as V, i as _, p as Z, t as A, u as h } from "./index-ef7c4392.js";
|
|
2
2
|
import { ref as v, getCurrentInstance as f, inject as i, computed as d, unref as p, onMounted as L, watch as U, toRef as w, onUnmounted as D } from "vue";
|
|
3
|
-
import {
|
|
4
|
-
import { l as X,
|
|
3
|
+
import { v as J, b as R, f as S, J as Y, k as j, i as I, m as q } from "./base-4bcd2756.js";
|
|
4
|
+
import { l as X, h as $, o as B, c as x, x as z, y as g, j as F, i as P } from "./index-3425f2f0.js";
|
|
5
5
|
var M = function() {
|
|
6
6
|
try {
|
|
7
7
|
var n = T(Object, "defineProperty");
|
|
@@ -32,15 +32,15 @@ function me(n, e, s, t) {
|
|
|
32
32
|
if (!_(n))
|
|
33
33
|
return n;
|
|
34
34
|
e = Z(e, n);
|
|
35
|
-
for (var o = -1, r = e.length,
|
|
36
|
-
var u =
|
|
35
|
+
for (var o = -1, r = e.length, a = r - 1, l = n; l != null && ++o < r; ) {
|
|
36
|
+
var u = A(e[o]), c = s;
|
|
37
37
|
if (u === "__proto__" || u === "constructor" || u === "prototype")
|
|
38
38
|
return n;
|
|
39
|
-
if (o !=
|
|
40
|
-
var m =
|
|
41
|
-
c = t ? t(m, u,
|
|
39
|
+
if (o != a) {
|
|
40
|
+
var m = l[u];
|
|
41
|
+
c = t ? t(m, u, l) : void 0, c === void 0 && (c = _(m) ? m : Q(e[o + 1]) ? [] : {});
|
|
42
42
|
}
|
|
43
|
-
ne(
|
|
43
|
+
ne(l, u, c), l = l[u];
|
|
44
44
|
}
|
|
45
45
|
return n;
|
|
46
46
|
}
|
|
@@ -48,23 +48,23 @@ const b = {
|
|
|
48
48
|
current: 0
|
|
49
49
|
}, E = v(0), se = 2e3, O = Symbol("elZIndexContextKey"), te = Symbol("zIndexContextKey"), Ie = (n) => {
|
|
50
50
|
const e = f() ? i(O, b) : b, s = n || (f() ? i(te, void 0) : void 0), t = d(() => {
|
|
51
|
-
const
|
|
52
|
-
return
|
|
51
|
+
const a = p(s);
|
|
52
|
+
return J(a) ? a : se;
|
|
53
53
|
}), o = d(() => t.value + E.value), r = () => (e.current++, E.value = e.current, o.value);
|
|
54
|
-
return !
|
|
54
|
+
return !R && !i(O) && S("ZIndexInjection", `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|
55
55
|
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`), {
|
|
56
56
|
initialZIndex: t,
|
|
57
57
|
currentZIndex: o,
|
|
58
58
|
nextZIndex: r
|
|
59
59
|
};
|
|
60
|
-
}, oe = ["", "default", "small", "large"], ye =
|
|
60
|
+
}, oe = ["", "default", "small", "large"], ye = Y({
|
|
61
61
|
type: String,
|
|
62
62
|
values: oe,
|
|
63
63
|
required: !1
|
|
64
|
-
}), re = Symbol("size"),
|
|
64
|
+
}), re = Symbol("size"), le = () => {
|
|
65
65
|
const n = i(re, {});
|
|
66
66
|
return d(() => p(n.size) || "");
|
|
67
|
-
},
|
|
67
|
+
}, ae = Symbol("emptyValuesContextKey"), ue = "use-empty-values", ie = ["", void 0, null], ce = void 0, _e = j({
|
|
68
68
|
emptyValues: Array,
|
|
69
69
|
valueOnClear: {
|
|
70
70
|
type: [String, Number, Boolean, Function],
|
|
@@ -72,13 +72,13 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`), {
|
|
|
72
72
|
validator: (n) => I(n) ? !n() : !n
|
|
73
73
|
}
|
|
74
74
|
}), Ce = (n, e) => {
|
|
75
|
-
const s = f() ? i(
|
|
75
|
+
const s = f() ? i(ae, v({})) : v({}), t = d(() => n.emptyValues || s.value.emptyValues || ie), o = d(() => I(n.valueOnClear) ? n.valueOnClear() : n.valueOnClear !== void 0 ? n.valueOnClear : I(s.value.valueOnClear) ? s.value.valueOnClear() : s.value.valueOnClear !== void 0 ? s.value.valueOnClear : e !== void 0 ? e : ce), r = (a) => t.value.includes(a);
|
|
76
76
|
return t.value.includes(o.value) || S(ue, "value-on-clear should be a value of empty-values"), {
|
|
77
77
|
emptyValues: t,
|
|
78
78
|
valueOnClear: o,
|
|
79
79
|
isEmptyValue: r
|
|
80
80
|
};
|
|
81
|
-
}, be =
|
|
81
|
+
}, be = q([
|
|
82
82
|
String,
|
|
83
83
|
Object,
|
|
84
84
|
Function
|
|
@@ -86,26 +86,26 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`), {
|
|
|
86
86
|
Close: x
|
|
87
87
|
}, Oe = {
|
|
88
88
|
Close: x,
|
|
89
|
-
SuccessFilled:
|
|
89
|
+
SuccessFilled: z,
|
|
90
90
|
InfoFilled: P,
|
|
91
|
-
WarningFilled:
|
|
91
|
+
WarningFilled: g,
|
|
92
92
|
CircleCloseFilled: F
|
|
93
93
|
}, Se = {
|
|
94
|
-
success:
|
|
95
|
-
warning:
|
|
94
|
+
success: z,
|
|
95
|
+
warning: g,
|
|
96
96
|
error: F,
|
|
97
97
|
info: P
|
|
98
98
|
}, xe = {
|
|
99
99
|
validating: X,
|
|
100
100
|
success: $,
|
|
101
101
|
error: B
|
|
102
|
-
}, y = Symbol("formContextKey"), K = Symbol("formItemContextKey"),
|
|
102
|
+
}, y = Symbol("formContextKey"), K = Symbol("formItemContextKey"), ze = () => {
|
|
103
103
|
const n = i(y, void 0), e = i(K, void 0);
|
|
104
104
|
return {
|
|
105
105
|
form: n,
|
|
106
106
|
formItem: e
|
|
107
107
|
};
|
|
108
|
-
},
|
|
108
|
+
}, ge = (n, {
|
|
109
109
|
formItemContext: e,
|
|
110
110
|
disableIdGeneration: s,
|
|
111
111
|
disableIdManagement: t
|
|
@@ -113,19 +113,19 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`), {
|
|
|
113
113
|
s || (s = v(!1)), t || (t = v(!1));
|
|
114
114
|
const o = v();
|
|
115
115
|
let r;
|
|
116
|
-
const
|
|
117
|
-
var
|
|
118
|
-
return !!(!(n.label || n.ariaLabel) && e && e.inputIds && ((
|
|
116
|
+
const a = d(() => {
|
|
117
|
+
var l;
|
|
118
|
+
return !!(!(n.label || n.ariaLabel) && e && e.inputIds && ((l = e.inputIds) == null ? void 0 : l.length) <= 1);
|
|
119
119
|
});
|
|
120
120
|
return L(() => {
|
|
121
|
-
r = U([w(n, "id"), s], ([
|
|
122
|
-
const c =
|
|
121
|
+
r = U([w(n, "id"), s], ([l, u]) => {
|
|
122
|
+
const c = l ?? (u ? void 0 : h().value);
|
|
123
123
|
c !== o.value && (e != null && e.removeInputId && (o.value && e.removeInputId(o.value), !(t != null && t.value) && !u && c && e.addInputId(c)), o.value = c);
|
|
124
124
|
}, { immediate: !0 });
|
|
125
125
|
}), D(() => {
|
|
126
126
|
r && r(), e != null && e.removeInputId && o.value && e.removeInputId(o.value);
|
|
127
127
|
}), {
|
|
128
|
-
isLabeledByFormItem:
|
|
128
|
+
isLabeledByFormItem: a,
|
|
129
129
|
inputId: o
|
|
130
130
|
};
|
|
131
131
|
}, N = (n) => {
|
|
@@ -135,8 +135,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`), {
|
|
|
135
135
|
return (t = (s = e == null ? void 0 : e.proxy) == null ? void 0 : s.$props) == null ? void 0 : t[n];
|
|
136
136
|
});
|
|
137
137
|
}, Fe = (n, e = {}) => {
|
|
138
|
-
const s = v(void 0), t = e.prop ? s : N("size"), o = e.global ? s :
|
|
139
|
-
return d(() => t.value || p(n) || (
|
|
138
|
+
const s = v(void 0), t = e.prop ? s : N("size"), o = e.global ? s : le(), r = e.form ? { size: void 0 } : i(y, void 0), a = e.formItem ? { size: void 0 } : i(K, void 0);
|
|
139
|
+
return d(() => t.value || p(n) || (a == null ? void 0 : a.size) || (r == null ? void 0 : r.size) || o.value || "");
|
|
140
140
|
}, Pe = (n) => {
|
|
141
141
|
const e = N("disabled"), s = i(y, void 0);
|
|
142
142
|
return d(() => e.value || p(n) || (s == null ? void 0 : s.disabled) || !1);
|
|
@@ -146,13 +146,13 @@ export {
|
|
|
146
146
|
re as S,
|
|
147
147
|
Oe as T,
|
|
148
148
|
xe as V,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
149
|
+
Se as a,
|
|
150
|
+
Fe as b,
|
|
151
|
+
ge as c,
|
|
152
|
+
Pe as d,
|
|
153
|
+
oe as e,
|
|
154
|
+
ye as f,
|
|
155
|
+
le as g,
|
|
156
156
|
Q as h,
|
|
157
157
|
be as i,
|
|
158
158
|
G as j,
|
|
@@ -164,8 +164,8 @@ export {
|
|
|
164
164
|
_e as p,
|
|
165
165
|
C as q,
|
|
166
166
|
me as r,
|
|
167
|
-
|
|
167
|
+
ae as s,
|
|
168
168
|
se as t,
|
|
169
|
-
|
|
169
|
+
ze as u,
|
|
170
170
|
te as z
|
|
171
171
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const v=require("./index-
|
|
1
|
+
"use strict";const v=require("./index-02ca0096.cjs"),t=require("vue"),d=require("./base-bdc10baa.cjs"),l=require("./index-19fa1fcf.cjs");var T=function(){try{var n=v.getNative(Object,"defineProperty");return n({},"",{}),n}catch{}}();const I=T;var V=9007199254740991,Z=/^(?:0|[1-9]\d*)$/;function b(n,e){var o=typeof n;return e=e??V,!!e&&(o=="number"||o!="symbol"&&Z.test(n))&&n>-1&&n%1==0&&n<e}function E(n,e,o){e=="__proto__"&&I?I(n,e,{configurable:!0,enumerable:!0,value:o,writable:!0}):n[e]=o}var j=Object.prototype,A=j.hasOwnProperty;function S(n,e,o){var r=n[e];(!(A.call(n,e)&&v.eq(r,o))||o===void 0&&!(e in n))&&E(n,e,o)}function L(n,e,o,r){if(!v.isObject(n))return n;e=v.castPath(e,n);for(var u=-1,s=e.length,c=s-1,i=n;i!=null&&++u<s;){var a=v.toKey(e[u]),f=o;if(a==="__proto__"||a==="constructor"||a==="prototype")return n;if(u!=c){var m=i[a];f=r?r(m,a,i):void 0,f===void 0&&(f=v.isObject(m)?m:b(e[u+1])?[]:{})}S(i,a,f),i=i[a]}return n}const _={current:0},C=t.ref(0),g=2e3,x=Symbol("elZIndexContextKey"),z=Symbol("zIndexContextKey"),w=n=>{const e=t.getCurrentInstance()?t.inject(x,_):_,o=n||(t.getCurrentInstance()?t.inject(z,void 0):void 0),r=t.computed(()=>{const c=t.unref(o);return d.isNumber(c)?c:g}),u=t.computed(()=>r.value+C.value),s=()=>(e.current++,C.value=e.current,u.value);return!d.isClient&&!t.inject(x)&&d.debugWarn("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|
2
2
|
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:r,currentZIndex:u,nextZIndex:s}},O=["","default","small","large"],U=d.buildProp({type:String,values:O,required:!1}),F=Symbol("size"),P=()=>{const n=t.inject(F,{});return t.computed(()=>t.unref(n.size)||"")},K=Symbol("emptyValuesContextKey"),h="use-empty-values",q=["",void 0,null],D=void 0,Y=d.buildProps({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:n=>d.isFunction(n)?!n():!n}}),$=(n,e)=>{const o=t.getCurrentInstance()?t.inject(K,t.ref({})):t.ref({}),r=t.computed(()=>n.emptyValues||o.value.emptyValues||q),u=t.computed(()=>d.isFunction(n.valueOnClear)?n.valueOnClear():n.valueOnClear!==void 0?n.valueOnClear:d.isFunction(o.value.valueOnClear)?o.value.valueOnClear():o.value.valueOnClear!==void 0?o.value.valueOnClear:e!==void 0?e:D),s=c=>r.value.includes(c);return r.value.includes(u.value)||d.debugWarn(h,"value-on-clear should be a value of empty-values"),{emptyValues:r,valueOnClear:u,isEmptyValue:s}},J=d.definePropType([String,Object,Function]),M={Close:l.close_default},R={Close:l.close_default,SuccessFilled:l.success_filled_default,InfoFilled:l.info_filled_default,WarningFilled:l.warning_filled_default,CircleCloseFilled:l.circle_close_filled_default},W={success:l.success_filled_default,warning:l.warning_filled_default,error:l.circle_close_filled_default,info:l.info_filled_default},X={validating:l.loading_default,success:l.circle_check_default,error:l.circle_close_default},p=Symbol("formContextKey"),y=Symbol("formItemContextKey"),B=()=>{const n=t.inject(p,void 0),e=t.inject(y,void 0);return{form:n,formItem:e}},G=(n,{formItemContext:e,disableIdGeneration:o,disableIdManagement:r})=>{o||(o=t.ref(!1)),r||(r=t.ref(!1));const u=t.ref();let s;const c=t.computed(()=>{var i;return!!(!(n.label||n.ariaLabel)&&e&&e.inputIds&&((i=e.inputIds)==null?void 0:i.length)<=1)});return t.onMounted(()=>{s=t.watch([t.toRef(n,"id"),o],([i,a])=>{const f=i??(a?void 0:v.useId().value);f!==u.value&&(e!=null&&e.removeInputId&&(u.value&&e.removeInputId(u.value),!(r!=null&&r.value)&&!a&&f&&e.addInputId(f)),u.value=f)},{immediate:!0})}),t.onUnmounted(()=>{s&&s(),e!=null&&e.removeInputId&&u.value&&e.removeInputId(u.value)}),{isLabeledByFormItem:c,inputId:u}},N=n=>{const e=t.getCurrentInstance();return t.computed(()=>{var o,r;return(r=(o=e==null?void 0:e.proxy)==null?void 0:o.$props)==null?void 0:r[n]})},H=(n,e={})=>{const o=t.ref(void 0),r=e.prop?o:N("size"),u=e.global?o:P(),s=e.form?{size:void 0}:t.inject(p,void 0),c=e.formItem?{size:void 0}:t.inject(y,void 0);return t.computed(()=>r.value||t.unref(n)||(c==null?void 0:c.size)||(s==null?void 0:s.size)||u.value||"")},Q=n=>{const e=N("disabled"),o=t.inject(p,void 0);return t.computed(()=>e.value||t.unref(n)||(o==null?void 0:o.disabled)||!1)};exports.CloseComponents=M;exports.SIZE_INJECTION_KEY=F;exports.TypeComponents=R;exports.TypeComponentsMap=W;exports.ValidateComponentsMap=X;exports.assignValue=S;exports.baseAssignValue=E;exports.baseSet=L;exports.componentSizes=O;exports.defaultInitialZIndex=g;exports.defineProperty=I;exports.emptyValuesContextKey=K;exports.formContextKey=p;exports.formItemContextKey=y;exports.iconPropType=J;exports.isIndex=b;exports.useEmptyValues=$;exports.useEmptyValuesProps=Y;exports.useFormDisabled=Q;exports.useFormItem=B;exports.useFormItemInputId=G;exports.useFormSize=H;exports.useGlobalSize=P;exports.useSizeProp=U;exports.useZIndex=w;exports.zIndexContextKey=z;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("vue"),i=require("./base-bdc10baa.cjs"),s=require("./use-form-common-props-592797e2.cjs"),d=require("./index-02ca0096.cjs"),g=Symbol();function x(o,u,t){return o==null?o:s.baseSet(o,u,t)}const m=o=>Object.keys(o),y=(o,u,t)=>({get value(){return d.get(o,u,t)},set value(l){x(o,u,l)}}),v=n.ref();function p(o,u=void 0){const t=n.getCurrentInstance()?n.inject(g,v):v;return o?n.computed(()=>{var l,r;return(r=(l=t.value)==null?void 0:l[o])!=null?r:u}):t}function b(o,u){const t=p(),l=i.useNamespace(o,n.computed(()=>{var e;return((e=t.value)==null?void 0:e.namespace)||i.defaultNamespace})),r=d.useLocale(n.computed(()=>{var e;return(e=t.value)==null?void 0:e.locale})),c=s.useZIndex(n.computed(()=>{var e;return((e=t.value)==null?void 0:e.zIndex)||s.defaultInitialZIndex})),a=n.computed(()=>{var e;return n.unref(u)||((e=t.value)==null?void 0:e.size)||""});return C(n.computed(()=>n.unref(t)||{})),{ns:l,locale:r,zIndex:c,size:a}}const C=(o,u,t=!1)=>{var l;const r=!!n.getCurrentInstance(),c=r?p():void 0,a=(l=u==null?void 0:u.provide)!=null?l:r?n.provide:void 0;if(!a){i.debugWarn("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const e=n.computed(()=>{const f=n.unref(o);return c!=null&&c.value?I(c.value,f):f});return a(g,e),a(d.localeContextKey,n.computed(()=>e.value.locale)),a(i.namespaceContextKey,n.computed(()=>e.value.namespace)),a(s.zIndexContextKey,n.computed(()=>e.value.zIndex)),a(s.SIZE_INJECTION_KEY,{size:n.computed(()=>e.value.size||"")}),a(s.emptyValuesContextKey,n.computed(()=>({emptyValues:e.value.emptyValues,valueOnClear:e.value.valueOnClear}))),(t||!v.value)&&(v.value=e.value),e},I=(o,u)=>{const t=[...new Set([...m(o),...m(u)])],l={};for(const r of t)l[r]=u[r]!==void 0?u[r]:o[r];return l};exports.getProp=y;exports.provideGlobalConfig=C;exports.useGlobalComponentSettings=b;exports.useGlobalConfig=p;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ref as m, getCurrentInstance as f, provide as C, computed as s, unref as v, inject as x } from "vue";
|
|
2
|
+
import { f as y, L as I, u as z, D as _ } from "./base-4bcd2756.js";
|
|
3
|
+
import { r as b, z as S, S as K, s as G, n as O, t as N } from "./use-form-common-props-54c31983.js";
|
|
4
|
+
import { h as k, w as E, a as V } from "./index-ef7c4392.js";
|
|
5
|
+
const p = Symbol();
|
|
6
|
+
function Z(n, a, o) {
|
|
7
|
+
return n == null ? n : b(n, a, o);
|
|
8
|
+
}
|
|
9
|
+
const d = (n) => Object.keys(n), T = (n, a, o) => ({
|
|
10
|
+
get value() {
|
|
11
|
+
return k(n, a, o);
|
|
12
|
+
},
|
|
13
|
+
set value(t) {
|
|
14
|
+
Z(n, a, t);
|
|
15
|
+
}
|
|
16
|
+
}), i = m();
|
|
17
|
+
function g(n, a = void 0) {
|
|
18
|
+
const o = f() ? x(p, i) : i;
|
|
19
|
+
return n ? s(() => {
|
|
20
|
+
var t, l;
|
|
21
|
+
return (l = (t = o.value) == null ? void 0 : t[n]) != null ? l : a;
|
|
22
|
+
}) : o;
|
|
23
|
+
}
|
|
24
|
+
function W(n, a) {
|
|
25
|
+
const o = g(), t = z(n, s(() => {
|
|
26
|
+
var e;
|
|
27
|
+
return ((e = o.value) == null ? void 0 : e.namespace) || _;
|
|
28
|
+
})), l = V(s(() => {
|
|
29
|
+
var e;
|
|
30
|
+
return (e = o.value) == null ? void 0 : e.locale;
|
|
31
|
+
})), r = O(s(() => {
|
|
32
|
+
var e;
|
|
33
|
+
return ((e = o.value) == null ? void 0 : e.zIndex) || N;
|
|
34
|
+
})), u = s(() => {
|
|
35
|
+
var e;
|
|
36
|
+
return v(a) || ((e = o.value) == null ? void 0 : e.size) || "";
|
|
37
|
+
});
|
|
38
|
+
return w(s(() => v(o) || {})), {
|
|
39
|
+
ns: t,
|
|
40
|
+
locale: l,
|
|
41
|
+
zIndex: r,
|
|
42
|
+
size: u
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
const w = (n, a, o = !1) => {
|
|
46
|
+
var t;
|
|
47
|
+
const l = !!f(), r = l ? g() : void 0, u = (t = a == null ? void 0 : a.provide) != null ? t : l ? C : void 0;
|
|
48
|
+
if (!u) {
|
|
49
|
+
y("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const e = s(() => {
|
|
53
|
+
const c = v(n);
|
|
54
|
+
return r != null && r.value ? L(r.value, c) : c;
|
|
55
|
+
});
|
|
56
|
+
return u(p, e), u(E, s(() => e.value.locale)), u(I, s(() => e.value.namespace)), u(S, s(() => e.value.zIndex)), u(K, {
|
|
57
|
+
size: s(() => e.value.size || "")
|
|
58
|
+
}), u(G, s(() => ({
|
|
59
|
+
emptyValues: e.value.emptyValues,
|
|
60
|
+
valueOnClear: e.value.valueOnClear
|
|
61
|
+
}))), (o || !i.value) && (i.value = e.value), e;
|
|
62
|
+
}, L = (n, a) => {
|
|
63
|
+
const o = [.../* @__PURE__ */ new Set([...d(n), ...d(a)])], t = {};
|
|
64
|
+
for (const l of o)
|
|
65
|
+
t[l] = a[l] !== void 0 ? a[l] : n[l];
|
|
66
|
+
return t;
|
|
67
|
+
};
|
|
68
|
+
export {
|
|
69
|
+
g as a,
|
|
70
|
+
T as g,
|
|
71
|
+
w as p,
|
|
72
|
+
W as u
|
|
73
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const N=require("vue"),A=require("./base-
|
|
1
|
+
"use strict";const N=require("vue"),A=require("./base-bdc10baa.cjs");var _=(E=>(E[E.TEXT=1]="TEXT",E[E.CLASS=2]="CLASS",E[E.STYLE=4]="STYLE",E[E.PROPS=8]="PROPS",E[E.FULL_PROPS=16]="FULL_PROPS",E[E.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",E[E.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",E[E.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",E[E.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",E[E.NEED_PATCH=512]="NEED_PATCH",E[E.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",E[E.HOISTED=-1]="HOISTED",E[E.BAIL=-2]="BAIL",E))(_||{});const r=E=>{const n=A.isArray(E)?E:[E],T=[];return n.forEach(e=>{var S;A.isArray(e)?T.push(...r(e)):N.isVNode(e)&&((S=e.component)!=null&&S.subTree)?T.push(e,...r(e.component.subTree)):N.isVNode(e)&&A.isArray(e.children)?T.push(...r(e.children)):T.push(e)}),T};exports.PatchFlags=_;exports.flattedChildren=r;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isVNode as o } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { o as S } from "./base-4bcd2756.js";
|
|
3
3
|
var _ = /* @__PURE__ */ ((E) => (E[E.TEXT = 1] = "TEXT", E[E.CLASS = 2] = "CLASS", E[E.STYLE = 4] = "STYLE", E[E.PROPS = 8] = "PROPS", E[E.FULL_PROPS = 16] = "FULL_PROPS", E[E.HYDRATE_EVENTS = 32] = "HYDRATE_EVENTS", E[E.STABLE_FRAGMENT = 64] = "STABLE_FRAGMENT", E[E.KEYED_FRAGMENT = 128] = "KEYED_FRAGMENT", E[E.UNKEYED_FRAGMENT = 256] = "UNKEYED_FRAGMENT", E[E.NEED_PATCH = 512] = "NEED_PATCH", E[E.DYNAMIC_SLOTS = 1024] = "DYNAMIC_SLOTS", E[E.HOISTED = -1] = "HOISTED", E[E.BAIL = -2] = "BAIL", E))(_ || {});
|
|
4
4
|
const A = (E) => {
|
|
5
5
|
const N = S(E) ? E : [E], e = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const u=require("./config-provider-
|
|
1
|
+
"use strict";const u=require("./config-provider-ec6b09df.cjs"),e=require("./base-bdc10baa.cjs"),E=e.withInstall(u.ConfigProvider);var t={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};exports.ElConfigProvider=E;exports.zhCn=t;
|
package/lib/bundle.js
CHANGED