st-comp 0.0.200 → 0.0.202
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.js +4 -4
- package/es/ConfigProvider.cjs +1 -1
- package/es/ConfigProvider.js +1 -1
- package/es/CustomFunction.cjs +1 -1
- package/es/CustomFunction.js +44 -40
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +84 -78
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +21 -19
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +30 -28
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +345 -331
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +20 -18
- package/es/KlinePlus.cjs +4 -4
- package/es/KlinePlus.js +610 -588
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +2 -2
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +74 -72
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +9 -157
- package/es/Pie.cjs +1 -1
- package/es/Pie.js +1 -1
- package/es/Table.cjs +1 -1
- package/es/Table.js +56 -52
- package/es/User.cjs +1 -1
- package/es/User.js +1313 -1
- package/es/VarSelectDialog.cjs +1 -1
- package/es/VarSelectDialog.js +28 -26
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +19 -18
- package/es/VarietySearch.cjs +8 -8
- package/es/VarietySearch.js +704 -697
- package/es/VarietyTextCopy.cjs +1 -1
- package/es/VarietyTextCopy.js +12 -12
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +80 -79
- package/es/{el-popover-5421d52a.cjs → _initCloneObject-52b6a510.cjs} +1 -1
- package/es/{el-popover-7a1c6412.js → _initCloneObject-eaef9418.js} +9 -9
- package/es/{base-8348063b.js → base-a5af3db3.js} +38 -38
- package/es/{castArray-3f45c3ec.js → castArray-7741a212.js} +1 -1
- package/es/{config-provider-eb0460f1.cjs → config-provider-a584d81e.cjs} +1 -1
- package/es/{config-provider-1a687690.js → config-provider-b16efd62.js} +6 -6
- package/es/debounce-62f5b6e8.cjs +1 -0
- package/es/debounce-8d53f4dd.js +83 -0
- package/es/dropdown-071c5d7e.cjs +1 -0
- package/es/dropdown-a59bba73.js +178 -0
- package/es/el-autocomplete-a07e9439.cjs +1 -0
- package/es/{el-autocomplete-d4cd96cd.js → el-autocomplete-ba808eb6.js} +16 -16
- package/es/{el-button-2e680390.js → el-button-c95adb85.js} +33 -33
- package/es/{el-button-4ccd7122.cjs → el-button-eec58cff.cjs} +1 -1
- package/es/el-checkbox-7421ccd3.js +459 -0
- package/es/el-checkbox-c25236a6.cjs +1 -0
- package/es/el-checkbox-group-0ea8fbf8.cjs +1 -0
- package/es/el-checkbox-group-4ed993c7.js +1 -0
- package/es/{el-dialog-bafc4b2b.js → el-dialog-41ab8417.js} +7 -6
- package/es/{el-dialog-6413b4af.cjs → el-dialog-ae86edb8.cjs} +1 -1
- package/es/{el-divider-93b0ee21.js → el-divider-4e059794.js} +1 -1
- package/es/{el-empty-56783dca.js → el-empty-33cb66f1.js} +3 -3
- package/es/el-form-item-c3fe189b.cjs +12 -0
- package/es/el-form-item-c53c374d.js +1269 -0
- package/es/{el-input-735575f4.js → el-input-2f75c4ba.js} +34 -34
- package/es/{el-input-6c5ac889.cjs → el-input-7fd293af.cjs} +1 -1
- package/es/{el-input-number-d5770776.cjs → el-input-number-22e21d16.cjs} +1 -1
- package/es/{el-input-number-6634a6ea.js → el-input-number-5193fe6d.js} +35 -35
- package/es/{el-loading-98dcebee.cjs → el-loading-cfd86c15.cjs} +1 -1
- package/es/{el-loading-049dacc5.js → el-loading-f6022062.js} +5 -5
- package/es/{el-menu-item-828bc6fa.cjs → el-menu-item-17dc717e.cjs} +1 -1
- package/es/{el-menu-item-8a210e21.js → el-menu-item-7e881203.js} +22 -22
- package/es/{el-message-a1ac37d4.cjs → el-message-5e6a6be9.cjs} +1 -1
- package/es/el-message-box-a93d2f6a.js +489 -0
- package/es/el-message-box-c10adb52.cjs +1 -0
- package/es/{el-message-def216ae.js → el-message-e544a8f5.js} +24 -24
- package/es/{el-overlay-4ea38eab.js → el-overlay-09ad71cd.js} +51 -51
- package/es/{el-overlay-69dfacb6.cjs → el-overlay-9e34965f.cjs} +1 -1
- package/es/{el-popconfirm-bdeceeb7.cjs → el-popconfirm-70a976bf.cjs} +1 -1
- package/es/{el-popconfirm-aace1104.js → el-popconfirm-81dcd202.js} +20 -20
- package/es/el-popover-0ea8fbf8.cjs +1 -0
- package/es/el-popover-4ed993c7.js +1 -0
- package/es/{el-popper-986a8371.js → el-popper-b4f97157.js} +115 -112
- package/es/{el-popper-b962125f.cjs → el-popper-b6c99b28.cjs} +1 -1
- package/es/el-scrollbar-323542e7.js +34 -0
- package/es/el-scrollbar-bc3f790d.cjs +1 -0
- package/es/{el-segmented-f892ec18.js → el-segmented-b868d074.js} +8 -8
- package/es/{el-segmented-6b057ed5.cjs → el-segmented-f8fce9ac.cjs} +1 -1
- package/es/{el-select-2189a8ac.js → el-select-95627997.js} +42 -41
- package/es/el-select-d8d91db1.cjs +1 -0
- package/es/el-table-column-376cd907.js +3432 -0
- package/es/el-table-column-c974cb96.cjs +14 -0
- package/es/{el-tag-75a7573a.js → el-tag-66cab138.js} +16 -16
- package/es/{el-tag-a15520b3.cjs → el-tag-a33c4b22.cjs} +1 -1
- package/es/{el-checkbox-group-e26a4533.js → el-text-ac60d0f2.js} +16 -16
- package/es/{el-checkbox-group-dfdad075.cjs → el-text-c20a9f48.cjs} +1 -1
- package/es/{index-1fb95601.cjs → index-098c2447.cjs} +1 -1
- package/es/{index-16802b35.cjs → index-11547a0c.cjs} +1 -1
- package/es/index-1f7d4f70.js +157 -0
- package/es/{index-680be212.cjs → index-298075cf.cjs} +1 -1
- package/es/index-57672682.js +113 -0
- package/es/{index-9cfb6ccf.js → index-7ed0999e.js} +2 -0
- package/es/{index-f3a86049.js → index-844bdd85.js} +29 -29
- package/es/index-88546436.js +163 -0
- package/es/{index-cc200b99.cjs → index-8901a38c.cjs} +1 -1
- package/es/{index-e00ee015.js → index-960806da.js} +36 -36
- package/es/index-9b9ef5dd.cjs +1 -0
- package/es/{index-847d58bc.js → index-a871c3eb.js} +92 -62
- package/es/{index-780e7fd2.js → index-bc8e277e.js} +2 -2
- package/es/{index-5e0314ac.cjs → index-c108567d.cjs} +1 -1
- package/es/{index-78381381.cjs → index-d725fef6.cjs} +2 -2
- package/es/{index-14c88a1a.js → index-d77a7336.js} +1 -1
- package/es/{index-f45c2897.js → index-d91dc23f.js} +20 -20
- package/es/{index-c94b9543.js → index-e5566b94.js} +43 -43
- package/es/index-f3562b52.cjs +1 -0
- package/es/index-f967d6c1.cjs +1 -0
- package/es/{python-2e916d28.cjs → python-c27ba105.cjs} +1 -1
- package/es/{python-7cf0b6ba.js → python-ecde9ff2.js} +2 -2
- package/es/{raf-8e5f0699.js → raf-80ef0c0a.js} +1 -1
- package/es/{scroll-c43468ab.js → scroll-679bd6bf.js} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-common-props-e6cba60f.js → use-form-common-props-815d48a6.js} +69 -69
- package/es/{use-form-common-props-d8866dc6.cjs → use-form-common-props-fd9b61a0.cjs} +1 -1
- package/es/{use-global-config-72d50e62.cjs → use-global-config-30d7d8ce.cjs} +1 -1
- package/es/{use-global-config-76ff2e3e.js → use-global-config-b5e9d3d5.js} +14 -14
- package/es/{validator-e759d43d.cjs → validator-1b8a6128.cjs} +1 -1
- package/es/{validator-220652c5.js → validator-764a9db0.js} +1 -1
- package/es/vnode-5ddb7ed1.js +14 -0
- package/es/vnode-b906ae6d.cjs +1 -0
- package/es/{zh-cn-33e7aee6.cjs → zh-cn-90317f62.cjs} +1 -1
- package/es/{zh-cn-c7fa42ea.js → zh-cn-e963c628.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +156 -156
- package/lib/{index-410c490f.js → index-a45d1494.js} +11238 -11207
- package/lib/{python-589861d2.js → python-82d17c8d.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlineConfig/config.js +2 -0
- package/packages/KlineConfig/index.vue +9 -0
- package/packages/KlinePlus/index.vue +18 -8
- package/packages/KlinePlus/utils.js +41 -5
- package/src/pages/KlinePlus/index.vue +6 -5
- package/es/el-autocomplete-86c0d989.cjs +0 -1
- package/es/el-form-item-41becb31.js +0 -1749
- package/es/el-form-item-95476197.cjs +0 -12
- package/es/el-scrollbar-139aa96d.cjs +0 -1
- package/es/el-scrollbar-cdadd788.js +0 -115
- package/es/el-select-e1046cc6.cjs +0 -1
- package/es/el-table-column-91d69c86.js +0 -3882
- package/es/el-table-column-f1c4af89.cjs +0 -14
- package/es/index-56ea97a9.js +0 -122
- package/es/index-8583c047.cjs +0 -1
- package/es/index-ce63356a.cjs +0 -1
- package/es/index-db1e1861.js +0 -318
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as ce, createVNode as de, renderSlot as Y, h as fe, isRef as ve, computed as d, watch as
|
|
2
|
-
import { N as
|
|
3
|
-
import { P } from "./
|
|
4
|
-
import { i as we,
|
|
5
|
-
import {
|
|
6
|
-
import { g as
|
|
7
|
-
import { u as
|
|
8
|
-
import { a as
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as ce, createVNode as de, renderSlot as Y, h as fe, isRef as ve, computed as d, watch as E, onScopeDispose as ye, getCurrentInstance as me, ref as S, nextTick as ge, onMounted as be } from "vue";
|
|
2
|
+
import { N as P, b as D, e as _, u as H, o as Ce, s as Z, h as $, a as pe, t as he, r as Se, E as Ee, n as _e, f as xe, j as Be, x as K, d as W } from "./base-a5af3db3.js";
|
|
3
|
+
import { P as k } from "./vnode-5ddb7ed1.js";
|
|
4
|
+
import { i as we, x as Oe } from "./use-form-common-props-815d48a6.js";
|
|
5
|
+
import { q as Ie, U as J, b as Te } from "./el-popper-b4f97157.js";
|
|
6
|
+
import { g as Ae } from "./scroll-679bd6bf.js";
|
|
7
|
+
import { u as q } from "./index-960806da.js";
|
|
8
|
+
import { a as Le } from "./use-global-config-b5e9d3d5.js";
|
|
9
|
+
const Me = (e) => {
|
|
10
10
|
if (!e)
|
|
11
|
-
return { onClick:
|
|
11
|
+
return { onClick: P, onMousedown: P, onMouseup: P };
|
|
12
12
|
let t = !1, s = !1;
|
|
13
13
|
return { onClick: (l) => {
|
|
14
14
|
t && s && e(l), t = s = !1;
|
|
@@ -17,33 +17,33 @@ const Le = (e) => {
|
|
|
17
17
|
}, onMouseup: (l) => {
|
|
18
18
|
s = l.target === l.currentTarget;
|
|
19
19
|
} };
|
|
20
|
-
},
|
|
20
|
+
}, Pe = D({
|
|
21
21
|
mask: {
|
|
22
22
|
type: Boolean,
|
|
23
23
|
default: !0
|
|
24
24
|
},
|
|
25
25
|
customMaskEvent: Boolean,
|
|
26
26
|
overlayClass: {
|
|
27
|
-
type:
|
|
27
|
+
type: _([
|
|
28
28
|
String,
|
|
29
29
|
Array,
|
|
30
30
|
Object
|
|
31
31
|
])
|
|
32
32
|
},
|
|
33
33
|
zIndex: {
|
|
34
|
-
type:
|
|
34
|
+
type: _([String, Number])
|
|
35
35
|
}
|
|
36
|
-
}),
|
|
36
|
+
}), ke = {
|
|
37
37
|
click: (e) => e instanceof MouseEvent
|
|
38
38
|
}, De = "overlay";
|
|
39
39
|
var Fe = ce({
|
|
40
40
|
name: "ElOverlay",
|
|
41
|
-
props:
|
|
42
|
-
emits:
|
|
41
|
+
props: Pe,
|
|
42
|
+
emits: ke,
|
|
43
43
|
setup(e, { slots: t, emit: s }) {
|
|
44
|
-
const f =
|
|
44
|
+
const f = H(De), a = (y) => {
|
|
45
45
|
s("click", y);
|
|
46
|
-
}, { onClick: u, onMousedown: l, onMouseup: v } =
|
|
46
|
+
}, { onClick: u, onMousedown: l, onMouseup: v } = Me(e.customMaskEvent ? void 0 : a);
|
|
47
47
|
return () => e.mask ? de("div", {
|
|
48
48
|
class: [f.b(), e.overlayClass],
|
|
49
49
|
style: {
|
|
@@ -52,7 +52,7 @@ var Fe = ce({
|
|
|
52
52
|
onClick: u,
|
|
53
53
|
onMousedown: l,
|
|
54
54
|
onMouseup: v
|
|
55
|
-
}, [Y(t, "default")],
|
|
55
|
+
}, [Y(t, "default")], k.STYLE | k.CLASS | k.PROPS, ["onClick", "onMouseup", "onMousedown"]) : fe("div", {
|
|
56
56
|
class: e.overlayClass,
|
|
57
57
|
style: {
|
|
58
58
|
zIndex: e.zIndex,
|
|
@@ -65,7 +65,7 @@ var Fe = ce({
|
|
|
65
65
|
}, [Y(t, "default")]);
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
|
-
const
|
|
68
|
+
const Ge = Fe, He = Symbol("dialogInjectionKey"), G = "dialog-fade", Ne = D({
|
|
69
69
|
center: Boolean,
|
|
70
70
|
alignCenter: {
|
|
71
71
|
type: Boolean,
|
|
@@ -98,7 +98,7 @@ const He = Fe, Ze = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
|
|
|
98
98
|
type: String,
|
|
99
99
|
default: "2"
|
|
100
100
|
}
|
|
101
|
-
}),
|
|
101
|
+
}), Ze = {
|
|
102
102
|
close: () => !0
|
|
103
103
|
}, Je = D({
|
|
104
104
|
...Ne,
|
|
@@ -108,7 +108,7 @@ const He = Fe, Ze = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
|
|
|
108
108
|
default: "body"
|
|
109
109
|
},
|
|
110
110
|
beforeClose: {
|
|
111
|
-
type:
|
|
111
|
+
type: _(Function)
|
|
112
112
|
},
|
|
113
113
|
destroyOnClose: Boolean,
|
|
114
114
|
closeOnClickModal: {
|
|
@@ -156,7 +156,7 @@ const He = Fe, Ze = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
|
|
|
156
156
|
default: "2"
|
|
157
157
|
},
|
|
158
158
|
transition: {
|
|
159
|
-
type:
|
|
159
|
+
type: _([String, Object]),
|
|
160
160
|
default: void 0
|
|
161
161
|
}
|
|
162
162
|
}), Qe = {
|
|
@@ -169,8 +169,8 @@ const He = Fe, Ze = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
|
|
|
169
169
|
closeAutoFocus: () => !0
|
|
170
170
|
}, ze = (e, t = {}) => {
|
|
171
171
|
ve(e) || Te("[useLockscreen]", "You need to pass a ref param to this function");
|
|
172
|
-
const s = t.ns ||
|
|
173
|
-
if (!
|
|
172
|
+
const s = t.ns || H("popup"), f = d(() => s.bm("parent", "hidden"));
|
|
173
|
+
if (!Z || $(document.body, f.value))
|
|
174
174
|
return;
|
|
175
175
|
let a = 0, u = !1, l = "0";
|
|
176
176
|
const v = () => {
|
|
@@ -178,12 +178,12 @@ const He = Fe, Ze = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
|
|
|
178
178
|
typeof document > "u" || u && document && (document.body.style.width = l, Se(document.body, f.value));
|
|
179
179
|
}, 200);
|
|
180
180
|
};
|
|
181
|
-
|
|
181
|
+
E(e, (y) => {
|
|
182
182
|
if (!y) {
|
|
183
183
|
v();
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
|
-
u = !$(document.body, f.value), u && (l = document.body.style.width, pe(document.body, f.value)), a =
|
|
186
|
+
u = !$(document.body, f.value), u && (l = document.body.style.width, pe(document.body, f.value)), a = Ae(s.namespace.value);
|
|
187
187
|
const i = document.documentElement.clientHeight < document.body.scrollHeight, m = he(document.body, "overflowY");
|
|
188
188
|
a > 0 && (i || m === "scroll") && u && (document.body.style.width = `calc(100% - ${a}px)`);
|
|
189
189
|
}), ye(() => v());
|
|
@@ -191,17 +191,17 @@ const He = Fe, Ze = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
|
|
|
191
191
|
var s;
|
|
192
192
|
const a = me().emit, { nextZIndex: u } = Oe();
|
|
193
193
|
let l = "";
|
|
194
|
-
const v =
|
|
194
|
+
const v = q(), y = q(), i = S(!1), m = S(!1), C = S(!1), x = S((s = e.zIndex) != null ? s : u());
|
|
195
195
|
let g, b;
|
|
196
|
-
const F =
|
|
196
|
+
const F = Le(), Q = d(() => {
|
|
197
197
|
var o, n;
|
|
198
|
-
return (n = (o = F.value) == null ? void 0 : o.namespace) != null ? n :
|
|
198
|
+
return (n = (o = F.value) == null ? void 0 : o.namespace) != null ? n : Ee;
|
|
199
199
|
}), p = d(() => {
|
|
200
200
|
var o;
|
|
201
201
|
return (o = F.value) == null ? void 0 : o.dialog;
|
|
202
202
|
}), X = d(() => {
|
|
203
203
|
const o = {}, n = `--${Q.value}-dialog`;
|
|
204
|
-
return e.fullscreen || (e.top && (o[`${n}-margin-top`] = e.top), e.width && (o[`${n}-width`] =
|
|
204
|
+
return e.fullscreen || (e.top && (o[`${n}-margin-top`] = e.top), e.width && (o[`${n}-width`] = _e(e.width))), o;
|
|
205
205
|
}), R = d(() => {
|
|
206
206
|
var o, n, r;
|
|
207
207
|
return ((r = (n = e.draggable) != null ? n : (o = p.value) == null ? void 0 : o.draggable) != null ? r : !1) && !e.fullscreen;
|
|
@@ -213,19 +213,19 @@ const He = Fe, Ze = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
|
|
|
213
213
|
return (r = (n = e.overflow) != null ? n : (o = p.value) == null ? void 0 : o.overflow) != null ? r : !1;
|
|
214
214
|
}), oe = d(() => N.value ? { display: "flex" } : {}), ne = d(() => {
|
|
215
215
|
var o, n, r;
|
|
216
|
-
const
|
|
217
|
-
name:
|
|
216
|
+
const L = (r = (n = e.transition) != null ? n : (o = p.value) == null ? void 0 : o.transition) != null ? r : G, re = {
|
|
217
|
+
name: L,
|
|
218
218
|
onAfterEnter: B,
|
|
219
219
|
onBeforeLeave: O,
|
|
220
220
|
onAfterLeave: w
|
|
221
221
|
};
|
|
222
|
-
if (xe(
|
|
223
|
-
const c = { ...
|
|
222
|
+
if (xe(L)) {
|
|
223
|
+
const c = { ...L }, M = (h, ie) => (V) => {
|
|
224
224
|
Be(h) ? h.forEach((U) => {
|
|
225
225
|
K(U) && U(V);
|
|
226
226
|
}) : K(h) && h(V), ie();
|
|
227
227
|
};
|
|
228
|
-
return c.onAfterEnter =
|
|
228
|
+
return c.onAfterEnter = M(c.onAfterEnter, B), c.onBeforeLeave = M(c.onBeforeLeave, O), c.onAfterLeave = M(c.onAfterLeave, w), c.name || (c.name = G), c;
|
|
229
229
|
}
|
|
230
230
|
return re;
|
|
231
231
|
});
|
|
@@ -242,7 +242,7 @@ const He = Fe, Ze = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
|
|
|
242
242
|
b == null || b(), g == null || g(), e.openDelay && e.openDelay > 0 ? { stop: g } = W(() => j(), e.openDelay) : j();
|
|
243
243
|
}
|
|
244
244
|
function I() {
|
|
245
|
-
g == null || g(), b == null || b(), e.closeDelay && e.closeDelay > 0 ? { stop: b } = W(() =>
|
|
245
|
+
g == null || g(), b == null || b(), e.closeDelay && e.closeDelay > 0 ? { stop: b } = W(() => A(), e.closeDelay) : A();
|
|
246
246
|
}
|
|
247
247
|
function T() {
|
|
248
248
|
function o(n) {
|
|
@@ -254,9 +254,9 @@ const He = Fe, Ze = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
|
|
|
254
254
|
e.closeOnClickModal && T();
|
|
255
255
|
}
|
|
256
256
|
function j() {
|
|
257
|
-
|
|
257
|
+
Z && (i.value = !0);
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function A() {
|
|
260
260
|
i.value = !1;
|
|
261
261
|
}
|
|
262
262
|
function le() {
|
|
@@ -273,15 +273,15 @@ const He = Fe, Ze = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
|
|
|
273
273
|
function ue() {
|
|
274
274
|
e.closeOnPressEscape && T();
|
|
275
275
|
}
|
|
276
|
-
return
|
|
276
|
+
return E(() => e.zIndex, () => {
|
|
277
277
|
var o;
|
|
278
278
|
x.value = (o = e.zIndex) != null ? o : u();
|
|
279
|
-
}),
|
|
279
|
+
}), E(() => e.modelValue, (o) => {
|
|
280
280
|
var n;
|
|
281
281
|
o ? (m.value = !1, z(), C.value = !0, x.value = (n = e.zIndex) != null ? n : u(), ge(() => {
|
|
282
282
|
a("open"), t.value && (t.value.parentElement.scrollTop = 0, t.value.parentElement.scrollLeft = 0, t.value.scrollTop = 0);
|
|
283
283
|
})) : i.value && I();
|
|
284
|
-
}),
|
|
284
|
+
}), E(() => e.fullscreen, (o) => {
|
|
285
285
|
t.value && (o ? (l = t.value.style.transform, t.value.style.transform = "") : t.value.style.transform = l);
|
|
286
286
|
}), be(() => {
|
|
287
287
|
e.modelValue && (i.value = !0, C.value = !0, z());
|
|
@@ -292,7 +292,7 @@ const He = Fe, Ze = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
|
|
|
292
292
|
handleClose: T,
|
|
293
293
|
onModalClick: te,
|
|
294
294
|
close: I,
|
|
295
|
-
doClose:
|
|
295
|
+
doClose: A,
|
|
296
296
|
onOpenAutoFocus: le,
|
|
297
297
|
onCloseAutoFocus: ae,
|
|
298
298
|
onCloseRequested: ue,
|
|
@@ -312,13 +312,13 @@ const He = Fe, Ze = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
|
|
|
312
312
|
};
|
|
313
313
|
};
|
|
314
314
|
export {
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
315
|
+
Ge as E,
|
|
316
|
+
Qe as a,
|
|
317
|
+
ze as b,
|
|
318
|
+
Me as c,
|
|
319
|
+
Je as d,
|
|
320
|
+
Ne as e,
|
|
321
|
+
Ze as f,
|
|
322
|
+
He as g,
|
|
323
323
|
Xe as u
|
|
324
324
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),n=require("./base-ef747d02.cjs"),L=require("./
|
|
1
|
+
"use strict";const t=require("vue"),n=require("./base-ef747d02.cjs"),L=require("./vnode-b906ae6d.cjs"),V=require("./use-form-common-props-fd9b61a0.cjs"),P=require("./el-popper-b6c99b28.cjs"),le=require("./scroll-b108dabd.cjs"),q=require("./index-9780a537.cjs"),ae=require("./use-global-config-30d7d8ce.cjs"),K=e=>{if(!e)return{onClick:n.NOOP,onMousedown:n.NOOP,onMouseup:n.NOOP};let a=!1,r=!1;return{onClick:s=>{a&&r&&e(s),a=r=!1},onMousedown:s=>{a=s.target===s.currentTarget},onMouseup:s=>{r=s.target===s.currentTarget}}},se=n.buildProps({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:n.definePropType([String,Array,Object])},zIndex:{type:n.definePropType([String,Number])}}),ue={click:e=>e instanceof MouseEvent},re="overlay";var ie=t.defineComponent({name:"ElOverlay",props:se,emits:ue,setup(e,{slots:a,emit:r}){const v=n.useNamespace(re),u=m=>{r("click",m)},{onClick:i,onMousedown:s,onMouseup:y}=K(e.customMaskEvent?void 0:u);return()=>e.mask?t.createVNode("div",{class:[v.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:s,onMouseup:y},[t.renderSlot(a,"default")],L.PatchFlags.STYLE|L.PatchFlags.CLASS|L.PatchFlags.PROPS,["onClick","onMouseup","onMousedown"]):t.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[t.renderSlot(a,"default")])}});const ce=ie,de=Symbol("dialogInjectionKey"),j="dialog-fade",U=n.buildProps({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:V.iconPropType},draggable:{type:Boolean,default:void 0},overflow:{type:Boolean,default:void 0},fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),fe={close:()=>!0},ve=n.buildProps({...U,appendToBody:Boolean,appendTo:{type:P.teleportProps.to.type,default:"body"},beforeClose:{type:n.definePropType(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},modalPenetrable:Boolean,openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"},transition:{type:n.definePropType([String,Object]),default:void 0}}),ye={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[P.UPDATE_MODEL_EVENT]:e=>n.isBoolean(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Y=(e,a={})=>{t.isRef(e)||P.throwError("[useLockscreen]","You need to pass a ref param to this function");const r=a.ns||n.useNamespace("popup"),v=t.computed(()=>r.bm("parent","hidden"));if(!n.isClient||n.hasClass(document.body,v.value))return;let u=0,i=!1,s="0";const y=()=>{setTimeout(()=>{typeof document>"u"||i&&document&&(document.body.style.width=s,n.removeClass(document.body,v.value))},200)};t.watch(e,m=>{if(!m){y();return}i=!n.hasClass(document.body,v.value),i&&(s=document.body.style.width,n.addClass(document.body,v.value)),u=le.getScrollBarWidth(r.namespace.value);const d=document.documentElement.clientHeight<document.body.scrollHeight,g=n.getStyle(document.body,"overflowY");u>0&&(d||g==="scroll")&&i&&(document.body.style.width=`calc(100% - ${u}px)`)}),t.onScopeDispose(()=>y())},me=(e,a)=>{var r;const u=t.getCurrentInstance().emit,{nextZIndex:i}=V.useZIndex();let s="";const y=q.useId(),m=q.useId(),d=t.ref(!1),g=t.ref(!1),b=t.ref(!1),S=t.ref((r=e.zIndex)!=null?r:i());let p,C;const M=ae.useGlobalConfig(),$=t.computed(()=>{var o,l;return(l=(o=M.value)==null?void 0:o.namespace)!=null?l:n.defaultNamespace}),h=t.computed(()=>{var o;return(o=M.value)==null?void 0:o.dialog}),G=t.computed(()=>{const o={},l=`--${$.value}-dialog`;return e.fullscreen||(e.top&&(o[`${l}-margin-top`]=e.top),e.width&&(o[`${l}-width`]=n.addUnit(e.width))),o}),W=t.computed(()=>{var o,l,c;return((c=(l=e.draggable)!=null?l:(o=h.value)==null?void 0:o.draggable)!=null?c:!1)&&!e.fullscreen}),k=t.computed(()=>{var o,l,c;return(c=(l=e.alignCenter)!=null?l:(o=h.value)==null?void 0:o.alignCenter)!=null?c:!1}),H=t.computed(()=>{var o,l,c;return(c=(l=e.overflow)!=null?l:(o=h.value)==null?void 0:o.overflow)!=null?c:!1}),Z=t.computed(()=>k.value?{display:"flex"}:{}),J=t.computed(()=>{var o,l,c;const x=(c=(l=e.transition)!=null?l:(o=h.value)==null?void 0:o.transition)!=null?c:j,ne={name:x,onAfterEnter:O,onBeforeLeave:_,onAfterLeave:T};if(n.isObject(x)){const f={...x},A=(E,te)=>N=>{n.isArray(E)?E.forEach(z=>{n.isFunction(z)&&z(N)}):n.isFunction(E)&&E(N),te()};return f.onAfterEnter=A(f.onAfterEnter,O),f.onBeforeLeave=A(f.onBeforeLeave,_),f.onAfterLeave=A(f.onAfterLeave,T),f.name||(f.name=j),f}return ne});function O(){u("opened")}function T(){u("closed"),u(P.UPDATE_MODEL_EVENT,!1),e.destroyOnClose&&(b.value=!1)}function _(){u("close")}function D(){C==null||C(),p==null||p(),e.openDelay&&e.openDelay>0?{stop:p}=n.useTimeoutFn(()=>F(),e.openDelay):F()}function w(){p==null||p(),C==null||C(),e.closeDelay&&e.closeDelay>0?{stop:C}=n.useTimeoutFn(()=>I(),e.closeDelay):I()}function B(){function o(l){l||(g.value=!0,d.value=!1)}e.beforeClose?e.beforeClose(o):w()}function Q(){e.closeOnClickModal&&B()}function F(){n.isClient&&(d.value=!0)}function I(){d.value=!1}function X(){u("openAutoFocus")}function R(){u("closeAutoFocus")}function ee(o){var l;((l=o.detail)==null?void 0:l.focusReason)==="pointer"&&o.preventDefault()}e.lockScroll&&Y(d);function oe(){e.closeOnPressEscape&&B()}return t.watch(()=>e.zIndex,()=>{var o;S.value=(o=e.zIndex)!=null?o:i()}),t.watch(()=>e.modelValue,o=>{var l;o?(g.value=!1,D(),b.value=!0,S.value=(l=e.zIndex)!=null?l:i(),t.nextTick(()=>{u("open"),a.value&&(a.value.parentElement.scrollTop=0,a.value.parentElement.scrollLeft=0,a.value.scrollTop=0)})):d.value&&w()}),t.watch(()=>e.fullscreen,o=>{a.value&&(o?(s=a.value.style.transform,a.value.style.transform=""):a.value.style.transform=s)}),t.onMounted(()=>{e.modelValue&&(d.value=!0,b.value=!0,D())}),{afterEnter:O,afterLeave:T,beforeLeave:_,handleClose:B,onModalClick:Q,close:w,doClose:I,onOpenAutoFocus:X,onCloseAutoFocus:R,onCloseRequested:oe,onFocusoutPrevented:ee,titleId:y,bodyId:m,closed:g,style:G,overlayDialogStyle:Z,rendered:b,visible:d,zIndex:S,transitionConfig:J,_draggable:W,_alignCenter:k,_overflow:H}};exports.ElOverlay=ce;exports.dialogContentEmits=fe;exports.dialogContentProps=U;exports.dialogEmits=ye;exports.dialogInjectionKey=de;exports.dialogProps=ve;exports.useDialog=me;exports.useLockscreen=Y;exports.useSameTarget=K;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),c=require("./el-button-
|
|
1
|
+
"use strict";const e=require("vue"),c=require("./el-button-eec58cff.cjs"),y=require("./index-098c2447.cjs"),r=require("./el-popper-b6c99b28.cjs"),l=require("./base-ef747d02.cjs"),P=require("./use-form-common-props-fd9b61a0.cjs"),g=require("./index-bb833443.cjs"),N=l.buildProps({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:c.buttonTypes,default:"primary"},cancelButtonType:{type:String,values:c.buttonTypes,default:"text"},icon:{type:P.iconPropType,default:()=>y.question_filled_default},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},effect:{...r.useTooltipContentProps.effect,default:"light"},teleported:r.useTooltipContentProps.teleported,persistent:r.useTooltipContentProps.persistent,width:{type:[String,Number],default:150},closeOnPressEscape:{type:Boolean,default:!0}}),k={confirm:o=>o instanceof MouseEvent,cancel:o=>o instanceof MouseEvent||o instanceof KeyboardEvent},S=e.defineComponent({name:"ElPopconfirm"}),b=e.defineComponent({...S,props:N,emits:k,setup(o,{expose:B,emit:f}){const s=o,{t:d}=g.useLocale(),n=l.useNamespace("popconfirm"),i=e.ref(),C=e.computed(()=>{var t;return(t=e.unref(i))==null?void 0:t.popperRef}),p=()=>{var t,u;(u=(t=i.value)==null?void 0:t.onClose)==null||u.call(t)},T=e.computed(()=>({width:l.addUnit(s.width)})),m=t=>{f("confirm",t),p()},a=t=>{f("cancel",t),p()},v=t=>{s.closeOnPressEscape&&a(t)},h=e.computed(()=>s.confirmButtonText||d("el.popconfirm.confirmButtonText")),E=e.computed(()=>s.cancelButtonText||d("el.popconfirm.cancelButtonText"));return B({popperRef:C,hide:p}),(t,u)=>(e.openBlock(),e.createBlock(e.unref(r.ElTooltip),e.mergeProps({ref_key:"tooltipRef",ref:i,trigger:"click",effect:t.effect},t.$attrs,{"popper-class":`${e.unref(n).namespace.value}-popover`,"popper-style":e.unref(T),teleported:t.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":t.hideAfter,persistent:t.persistent}),{content:e.withCtx(()=>[e.createVNode(e.unref(r.ElFocusTrap),{loop:"",trapped:"",onReleaseRequested:v},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(n).b())},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(n).e("main"))},[!t.hideIcon&&t.icon?(e.openBlock(),e.createBlock(e.unref(y.ElIcon),{key:0,class:e.normalizeClass(e.unref(n).e("icon")),style:e.normalizeStyle({color:t.iconColor})},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon)))]),_:1},8,["class","style"])):e.createCommentVNode("v-if",!0),e.createTextVNode(" "+e.toDisplayString(t.title),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(n).e("action"))},[e.renderSlot(t.$slots,"actions",{confirm:m,cancel:a},()=>[e.createVNode(e.unref(c.ElButton),{size:"small",type:t.cancelButtonType==="text"?"":t.cancelButtonType,text:t.cancelButtonType==="text",onClick:a},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(E)),1)]),_:1},8,["type","text"]),e.createVNode(e.unref(c.ElButton),{size:"small",type:t.confirmButtonType==="text"?"":t.confirmButtonType,text:t.confirmButtonType==="text",onClick:m},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(h)),1)]),_:1},8,["type","text"])])],2)],2)]),_:3})]),default:e.withCtx(()=>[t.$slots.reference?e.renderSlot(t.$slots,"reference",{key:0}):e.createCommentVNode("v-if",!0)]),_:3},16,["effect","popper-class","popper-style","teleported","hide-after","persistent"]))}});var x=l._export_sfc(b,[["__file","popconfirm.vue"]]);const V=l.withInstall(x);exports.ElPopconfirm=V;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as k, ref as z, computed as l, unref as t, openBlock as u, createBlock as m, mergeProps as I, withCtx as n, createVNode as d, createElementVNode as y, normalizeClass as p, normalizeStyle as V, resolveDynamicComponent as x, createCommentVNode as
|
|
2
|
-
import { b
|
|
3
|
-
import { q as A, E as D } from "./index-
|
|
4
|
-
import {
|
|
5
|
-
import { b as F, u as K,
|
|
6
|
-
import { i as G } from "./use-form-common-props-
|
|
7
|
-
import { u as H } from "./index-
|
|
1
|
+
import { defineComponent as k, ref as z, computed as l, unref as t, openBlock as u, createBlock as m, mergeProps as I, withCtx as n, createVNode as d, createElementVNode as y, normalizeClass as p, normalizeStyle as V, resolveDynamicComponent as x, createCommentVNode as C, createTextVNode as T, toDisplayString as v, renderSlot as P } from "vue";
|
|
2
|
+
import { b, E as S } from "./el-button-c95adb85.js";
|
|
3
|
+
import { q as A, E as D } from "./index-a871c3eb.js";
|
|
4
|
+
import { g as B, E as M, e as O } from "./el-popper-b4f97157.js";
|
|
5
|
+
import { b as F, u as K, n as L, _ as U, w as j } from "./base-a5af3db3.js";
|
|
6
|
+
import { i as G } from "./use-form-common-props-815d48a6.js";
|
|
7
|
+
import { u as H } from "./index-d77a7336.js";
|
|
8
8
|
const J = F({
|
|
9
9
|
title: String,
|
|
10
10
|
confirmButtonText: String,
|
|
11
11
|
cancelButtonText: String,
|
|
12
12
|
confirmButtonType: {
|
|
13
13
|
type: String,
|
|
14
|
-
values:
|
|
14
|
+
values: b,
|
|
15
15
|
default: "primary"
|
|
16
16
|
},
|
|
17
17
|
cancelButtonType: {
|
|
18
18
|
type: String,
|
|
19
|
-
values:
|
|
19
|
+
values: b,
|
|
20
20
|
default: "text"
|
|
21
21
|
},
|
|
22
22
|
icon: {
|
|
@@ -55,8 +55,8 @@ const J = F({
|
|
|
55
55
|
...W,
|
|
56
56
|
props: J,
|
|
57
57
|
emits: Q,
|
|
58
|
-
setup(o, { expose: N, emit:
|
|
59
|
-
const s = o, { t:
|
|
58
|
+
setup(o, { expose: N, emit: E }) {
|
|
59
|
+
const s = o, { t: h } = H(), r = K("popconfirm"), i = z(), R = l(() => {
|
|
60
60
|
var e;
|
|
61
61
|
return (e = t(i)) == null ? void 0 : e.popperRef;
|
|
62
62
|
}), a = () => {
|
|
@@ -64,13 +64,13 @@ const J = F({
|
|
|
64
64
|
(f = (e = i.value) == null ? void 0 : e.onClose) == null || f.call(e);
|
|
65
65
|
}, w = l(() => ({
|
|
66
66
|
width: L(s.width)
|
|
67
|
-
})),
|
|
68
|
-
|
|
67
|
+
})), g = (e) => {
|
|
68
|
+
E("confirm", e), a();
|
|
69
69
|
}, c = (e) => {
|
|
70
|
-
|
|
70
|
+
E("cancel", e), a();
|
|
71
71
|
}, _ = (e) => {
|
|
72
72
|
s.closeOnPressEscape && c(e);
|
|
73
|
-
}, $ = l(() => s.confirmButtonText ||
|
|
73
|
+
}, $ = l(() => s.confirmButtonText || h("el.popconfirm.confirmButtonText")), q = l(() => s.cancelButtonText || h("el.popconfirm.cancelButtonText"));
|
|
74
74
|
return N({
|
|
75
75
|
popperRef: R,
|
|
76
76
|
hide: a
|
|
@@ -109,14 +109,14 @@ const J = F({
|
|
|
109
109
|
(u(), m(x(e.icon)))
|
|
110
110
|
]),
|
|
111
111
|
_: 1
|
|
112
|
-
}, 8, ["class", "style"])) :
|
|
112
|
+
}, 8, ["class", "style"])) : C("v-if", !0),
|
|
113
113
|
T(" " + v(e.title), 1)
|
|
114
114
|
], 2),
|
|
115
115
|
y("div", {
|
|
116
116
|
class: p(t(r).e("action"))
|
|
117
117
|
}, [
|
|
118
|
-
|
|
119
|
-
confirm:
|
|
118
|
+
P(e.$slots, "actions", {
|
|
119
|
+
confirm: g,
|
|
120
120
|
cancel: c
|
|
121
121
|
}, () => [
|
|
122
122
|
d(t(S), {
|
|
@@ -134,7 +134,7 @@ const J = F({
|
|
|
134
134
|
size: "small",
|
|
135
135
|
type: e.confirmButtonType === "text" ? "" : e.confirmButtonType,
|
|
136
136
|
text: e.confirmButtonType === "text",
|
|
137
|
-
onClick:
|
|
137
|
+
onClick: g
|
|
138
138
|
}, {
|
|
139
139
|
default: n(() => [
|
|
140
140
|
T(v(t($)), 1)
|
|
@@ -149,7 +149,7 @@ const J = F({
|
|
|
149
149
|
})
|
|
150
150
|
]),
|
|
151
151
|
default: n(() => [
|
|
152
|
-
e.$slots.reference ?
|
|
152
|
+
e.$slots.reference ? P(e.$slots, "reference", { key: 0 }) : C("v-if", !0)
|
|
153
153
|
]),
|
|
154
154
|
_: 3
|
|
155
155
|
}, 16, ["effect", "popper-class", "popper-style", "teleported", "hide-after", "persistent"]));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|