st-comp 0.0.115 → 0.0.116
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/auto-imports.d.ts +1 -0
- package/components.d.ts +1 -0
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +2 -2
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +11 -11
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +1070 -272
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +13 -13
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +12 -12
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +30 -30
- package/es/Pie.cjs +1 -1
- package/es/Pie.js +1 -1
- package/es/Table.cjs +1 -1
- package/es/Table.js +31 -31
- package/es/User.cjs +1 -1
- package/es/User.js +84 -84
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +1116 -936
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +56 -56
- package/es/base-ec05f348.cjs +9 -0
- package/es/{base-a3fcf99a.js → base-f7877059.js} +345 -328
- package/es/{castArray-0e8e51f9.js → castArray-18f43497.js} +1 -1
- package/es/{castArray-e6cd255c.cjs → castArray-a45823fe.cjs} +1 -1
- package/es/{config-provider-e4ebacca.js → config-provider-6479d795.js} +6 -6
- package/es/{config-provider-957c280a.cjs → config-provider-7cdfca4d.cjs} +1 -1
- package/es/{debounce-7f3a3471.js → debounce-2336e546.js} +14 -14
- package/es/{debounce-3ad03224.cjs → debounce-b2ff12bd.cjs} +1 -1
- package/es/{dropdown-c505d260.js → dropdown-46daf582.js} +4 -4
- package/es/{dropdown-e73864c0.cjs → dropdown-9a974876.cjs} +1 -1
- package/es/{el-button-e389429d.cjs → el-button-196807af.cjs} +1 -1
- package/es/{el-button-fe99fee6.js → el-button-802f579a.js} +6 -6
- package/es/{el-empty-848e4e08.cjs → el-empty-19ea04f4.cjs} +1 -1
- package/es/{el-empty-a338aa98.js → el-empty-3c5ec277.js} +5 -5
- package/es/el-form-item-84099d46.js +1599 -0
- package/es/el-form-item-c39f717e.cjs +12 -0
- package/es/{el-input-65ed0dba.cjs → el-input-6c6f5bda.cjs} +1 -1
- package/es/{el-input-35c8ebc3.js → el-input-fac5b401.js} +39 -39
- package/es/{el-overlay-851ea246.js → el-overlay-69e9ae49.js} +105 -101
- package/es/el-overlay-891dcc40.cjs +1 -0
- package/es/{el-popover-246eb710.js → el-popover-694ded47.js} +22 -22
- package/es/{el-popover-b0deb095.cjs → el-popover-8735b1fa.cjs} +1 -1
- package/es/{el-popper-e052fb84.js → el-popper-6126b1f6.js} +91 -91
- package/es/{el-popper-4da22fdc.cjs → el-popper-f62316cd.cjs} +1 -1
- package/es/el-scrollbar-d1c3e7f7.cjs +1 -0
- package/es/el-scrollbar-e0493906.js +201 -0
- package/es/el-select-513126a5.js +1128 -0
- package/es/el-select-928f8c19.cjs +1 -0
- package/es/{el-table-column-661deade.js → el-table-column-3c920bdd.js} +69 -69
- package/es/{el-table-column-d636a7d6.cjs → el-table-column-dd8b62aa.cjs} +1 -1
- package/es/{el-tag-a45bdd1e.cjs → el-tag-3b03d13e.cjs} +1 -1
- package/es/{el-tag-7601f7e6.js → el-tag-5becabc9.js} +74 -74
- package/es/index-048dca7e.js +303 -0
- package/es/{index-28cd5fde.js → index-35117549.js} +25 -25
- package/es/{index-fc652f21.js → index-57f8f7b9.js} +15 -1
- package/es/index-7e40be25.js +167 -0
- package/es/index-80a2b137.cjs +1 -0
- package/es/{index-35665af5.cjs → index-8a0b1c53.cjs} +1 -1
- package/es/{index-25aca205.cjs → index-dc273ea2.cjs} +1 -1
- package/es/index-e1e83173.cjs +1 -0
- package/es/{raf-a97e05a3.js → raf-07da7cdf.js} +1 -1
- package/es/{raf-da075499.cjs → raf-8fc301fd.cjs} +1 -1
- package/es/{refs-f0ee592c.js → refs-1b1fe6ca.js} +1 -1
- package/es/{refs-34a69f8c.cjs → refs-d00b710b.cjs} +1 -1
- package/es/{scroll-1e0c8fab.js → scroll-3b521d81.js} +1 -1
- package/es/{scroll-c7ef9180.cjs → scroll-41224831.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-common-props-96d2ea48.cjs → use-form-common-props-1b84d8f4.cjs} +1 -1
- package/es/{use-form-common-props-d0739feb.js → use-form-common-props-f3a520d0.js} +53 -53
- package/es/{vnode-8f40662d.js → vnode-25d7c2f5.js} +1 -1
- package/es/{vnode-562e063c.cjs → vnode-7fbc61e1.cjs} +1 -1
- package/es/{zh-cn-0ab4aa73.js → zh-cn-74781bbd.js} +2 -2
- package/es/{zh-cn-bf58db71.cjs → zh-cn-ab9a583d.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +192 -192
- package/lib/{index-a981dd97.js → index-c6ba3bcd.js} +30058 -29227
- package/lib/{python-72fd599d.js → python-49e22e65.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/FactorWarning/index.vue +296 -97
- package/packages/FactorWarning/tools.js +10 -0
- package/src/pages/FactorWarning/index.vue +69 -25
- package/es/base-adc4e34e.cjs +0 -9
- package/es/el-overlay-84e3cb6c.cjs +0 -1
- package/es/el-radio-button-12b07ac2.js +0 -1782
- package/es/el-radio-button-5259a46b.cjs +0 -12
- package/es/el-scrollbar-8cb3663b.cjs +0 -1
- package/es/el-scrollbar-c23060d5.js +0 -193
- package/es/el-select-4987a187.cjs +0 -1
- package/es/el-select-d1a33fbe.js +0 -1233
- package/es/index-4090cb2c.cjs +0 -1
- package/es/index-af687c16.js +0 -302
- package/es/index-b4bbc58d.js +0 -59
- package/es/index-f14354e6.cjs +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { N as
|
|
3
|
-
import { P as
|
|
4
|
-
import { F as $e, i as Ne,
|
|
5
|
-
import {
|
|
6
|
-
import { c as
|
|
1
|
+
import { defineComponent as X, createVNode as R, renderSlot as b, h as de, onMounted as te, watchEffect as fe, onBeforeUnmount as me, inject as Q, computed as k, openBlock as N, createElementBlock as U, unref as o, normalizeClass as w, normalizeStyle as le, createElementVNode as j, toDisplayString as ve, withCtx as E, createBlock as K, resolveDynamicComponent as ye, createCommentVNode as q, isRef as pe, watch as Z, onScopeDispose as ge, getCurrentInstance as Ce, ref as A, nextTick as be, useSlots as he, provide as we, Transition as Ee, withDirectives as ke, mergeProps as Se, createSlots as Me, vShow as Te } from "vue";
|
|
2
|
+
import { N as V, b as J, d as H, u as _, y as G, x as De, _ as ne, c as Ie, t as Be, j as se, o as x, n as Le, A as Pe, r as Ae, e as ee, I as Oe, p as oe, w as Fe } from "./base-f7877059.js";
|
|
3
|
+
import { P as W } from "./vnode-25d7c2f5.js";
|
|
4
|
+
import { F as $e, i as Ne, b as ze, a as Ye } from "./index-048dca7e.js";
|
|
5
|
+
import { j as Re, E as Xe, C as je, D as He } from "./use-form-common-props-f3a520d0.js";
|
|
6
|
+
import { c as Ue } from "./refs-1b1fe6ca.js";
|
|
7
7
|
import { U as ae } from "./event-09e37cc8.js";
|
|
8
|
-
import { g as
|
|
9
|
-
import { b as
|
|
8
|
+
import { g as Ve } from "./scroll-3b521d81.js";
|
|
9
|
+
import { b as We, a as Ke } from "./index-35117549.js";
|
|
10
10
|
const re = (e) => {
|
|
11
11
|
if (!e)
|
|
12
|
-
return { onClick:
|
|
12
|
+
return { onClick: V, onMousedown: V, onMouseup: V };
|
|
13
13
|
let l = !1, n = !1;
|
|
14
14
|
return { onClick: (r) => {
|
|
15
15
|
l && n && e(r), l = n = !1;
|
|
@@ -18,42 +18,42 @@ const re = (e) => {
|
|
|
18
18
|
}, onMouseup: (r) => {
|
|
19
19
|
n = r.target === r.currentTarget;
|
|
20
20
|
} };
|
|
21
|
-
},
|
|
21
|
+
}, qe = J({
|
|
22
22
|
mask: {
|
|
23
23
|
type: Boolean,
|
|
24
24
|
default: !0
|
|
25
25
|
},
|
|
26
26
|
customMaskEvent: Boolean,
|
|
27
27
|
overlayClass: {
|
|
28
|
-
type:
|
|
28
|
+
type: H([
|
|
29
29
|
String,
|
|
30
30
|
Array,
|
|
31
31
|
Object
|
|
32
32
|
])
|
|
33
33
|
},
|
|
34
34
|
zIndex: {
|
|
35
|
-
type:
|
|
35
|
+
type: H([String, Number])
|
|
36
36
|
}
|
|
37
37
|
}), Ze = {
|
|
38
38
|
click: (e) => e instanceof MouseEvent
|
|
39
39
|
}, Ge = "overlay";
|
|
40
|
-
var Je =
|
|
40
|
+
var Je = X({
|
|
41
41
|
name: "ElOverlay",
|
|
42
|
-
props:
|
|
42
|
+
props: qe,
|
|
43
43
|
emits: Ze,
|
|
44
44
|
setup(e, { slots: l, emit: n }) {
|
|
45
45
|
const d = _(Ge), s = (a) => {
|
|
46
46
|
n("click", a);
|
|
47
|
-
}, { onClick:
|
|
48
|
-
return () => e.mask ?
|
|
47
|
+
}, { onClick: c, onMousedown: r, onMouseup: f } = re(e.customMaskEvent ? void 0 : s);
|
|
48
|
+
return () => e.mask ? R("div", {
|
|
49
49
|
class: [d.b(), e.overlayClass],
|
|
50
50
|
style: {
|
|
51
51
|
zIndex: e.zIndex
|
|
52
52
|
},
|
|
53
|
-
onClick:
|
|
53
|
+
onClick: c,
|
|
54
54
|
onMousedown: r,
|
|
55
55
|
onMouseup: f
|
|
56
|
-
}, [b(l, "default")],
|
|
56
|
+
}, [b(l, "default")], W.STYLE | W.CLASS | W.PROPS, ["onClick", "onMouseup", "onMousedown"]) : de("div", {
|
|
57
57
|
class: e.overlayClass,
|
|
58
58
|
style: {
|
|
59
59
|
zIndex: e.zIndex,
|
|
@@ -66,11 +66,11 @@ var Je = R({
|
|
|
66
66
|
}, [b(l, "default")]);
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
|
-
const _e = Je, ie = Symbol("dialogInjectionKey"),
|
|
69
|
+
const _e = Je, ie = Symbol("dialogInjectionKey"), ce = J({
|
|
70
70
|
center: Boolean,
|
|
71
71
|
alignCenter: Boolean,
|
|
72
72
|
closeIcon: {
|
|
73
|
-
type:
|
|
73
|
+
type: Re
|
|
74
74
|
},
|
|
75
75
|
draggable: Boolean,
|
|
76
76
|
overflow: Boolean,
|
|
@@ -97,21 +97,21 @@ const _e = Je, ie = Symbol("dialogInjectionKey"), ue = J({
|
|
|
97
97
|
offsetX: 0,
|
|
98
98
|
offsetY: 0
|
|
99
99
|
};
|
|
100
|
-
const
|
|
101
|
-
const y =
|
|
100
|
+
const c = (u) => {
|
|
101
|
+
const y = u.clientX, C = u.clientY, { offsetX: g, offsetY: m } = s, v = e.value.getBoundingClientRect(), h = v.left, i = v.top, O = v.width, S = v.height, z = document.documentElement.clientWidth, Y = document.documentElement.clientHeight, F = -h + g, M = -i + m, T = z - h - O + g, D = Y - i - S + m, I = (t) => {
|
|
102
102
|
let L = g + t.clientX - y, $ = m + t.clientY - C;
|
|
103
|
-
d != null && d.value || (L = Math.min(Math.max(L, F), T), $ = Math.min(Math.max($, M),
|
|
103
|
+
d != null && d.value || (L = Math.min(Math.max(L, F), T), $ = Math.min(Math.max($, M), D)), s = {
|
|
104
104
|
offsetX: L,
|
|
105
105
|
offsetY: $
|
|
106
106
|
}, e.value && (e.value.style.transform = `translate(${G(L)}, ${G($)})`);
|
|
107
|
-
},
|
|
108
|
-
document.removeEventListener("mousemove",
|
|
107
|
+
}, B = () => {
|
|
108
|
+
document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", B);
|
|
109
109
|
};
|
|
110
|
-
document.addEventListener("mousemove",
|
|
110
|
+
document.addEventListener("mousemove", I), document.addEventListener("mouseup", B);
|
|
111
111
|
}, r = () => {
|
|
112
|
-
l.value && e.value && l.value.addEventListener("mousedown",
|
|
112
|
+
l.value && e.value && l.value.addEventListener("mousedown", c);
|
|
113
113
|
}, f = () => {
|
|
114
|
-
l.value && e.value && l.value.removeEventListener("mousedown",
|
|
114
|
+
l.value && e.value && l.value.removeEventListener("mousedown", c);
|
|
115
115
|
}, a = () => {
|
|
116
116
|
s = {
|
|
117
117
|
offsetX: 0,
|
|
@@ -127,80 +127,80 @@ const _e = Je, ie = Symbol("dialogInjectionKey"), ue = J({
|
|
|
127
127
|
}), {
|
|
128
128
|
resetPosition: a
|
|
129
129
|
};
|
|
130
|
-
}, eo =
|
|
130
|
+
}, eo = X({ name: "ElDialogContent" }), oo = /* @__PURE__ */ X({
|
|
131
131
|
...eo,
|
|
132
|
-
props:
|
|
132
|
+
props: ce,
|
|
133
133
|
emits: Qe,
|
|
134
134
|
setup(e, { expose: l }) {
|
|
135
|
-
const n = e, { t: d } =
|
|
135
|
+
const n = e, { t: d } = De(), { Close: s } = je, { dialogRef: c, headerRef: r, bodyId: f, ns: a, style: u } = Q(ie), { focusTrapRef: y } = Q($e), C = k(() => [
|
|
136
136
|
a.b(),
|
|
137
137
|
a.is("fullscreen", n.fullscreen),
|
|
138
138
|
a.is("draggable", n.draggable),
|
|
139
139
|
a.is("align-center", n.alignCenter),
|
|
140
140
|
{ [a.m("center")]: n.center }
|
|
141
|
-
]), g =
|
|
141
|
+
]), g = Ue(y, c), m = k(() => n.draggable), v = k(() => n.overflow), { resetPosition: h } = xe(c, r, m, v);
|
|
142
142
|
return l({
|
|
143
143
|
resetPosition: h
|
|
144
|
-
}), (i,
|
|
144
|
+
}), (i, O) => (N(), U("div", {
|
|
145
145
|
ref: o(g),
|
|
146
146
|
class: w(o(C)),
|
|
147
|
-
style: le(o(
|
|
147
|
+
style: le(o(u)),
|
|
148
148
|
tabindex: "-1"
|
|
149
149
|
}, [
|
|
150
|
-
|
|
150
|
+
j("header", {
|
|
151
151
|
ref_key: "headerRef",
|
|
152
152
|
ref: r,
|
|
153
153
|
class: w([o(a).e("header"), i.headerClass, { "show-close": i.showClose }])
|
|
154
154
|
}, [
|
|
155
155
|
b(i.$slots, "header", {}, () => [
|
|
156
|
-
|
|
156
|
+
j("span", {
|
|
157
157
|
role: "heading",
|
|
158
158
|
"aria-level": i.ariaLevel,
|
|
159
159
|
class: w(o(a).e("title"))
|
|
160
160
|
}, ve(i.title), 11, ["aria-level"])
|
|
161
161
|
]),
|
|
162
|
-
i.showClose ? (N(),
|
|
162
|
+
i.showClose ? (N(), U("button", {
|
|
163
163
|
key: 0,
|
|
164
164
|
"aria-label": o(d)("el.dialog.close"),
|
|
165
165
|
class: w(o(a).e("headerbtn")),
|
|
166
166
|
type: "button",
|
|
167
167
|
onClick: (S) => i.$emit("close")
|
|
168
168
|
}, [
|
|
169
|
-
|
|
169
|
+
R(o(Xe), {
|
|
170
170
|
class: w(o(a).e("close"))
|
|
171
171
|
}, {
|
|
172
172
|
default: E(() => [
|
|
173
|
-
(N(),
|
|
173
|
+
(N(), K(ye(i.closeIcon || o(s))))
|
|
174
174
|
]),
|
|
175
175
|
_: 1
|
|
176
176
|
}, 8, ["class"])
|
|
177
|
-
], 10, ["aria-label", "onClick"])) :
|
|
177
|
+
], 10, ["aria-label", "onClick"])) : q("v-if", !0)
|
|
178
178
|
], 2),
|
|
179
|
-
|
|
179
|
+
j("div", {
|
|
180
180
|
id: o(f),
|
|
181
181
|
class: w([o(a).e("body"), i.bodyClass])
|
|
182
182
|
}, [
|
|
183
183
|
b(i.$slots, "default")
|
|
184
184
|
], 10, ["id"]),
|
|
185
|
-
i.$slots.footer ? (N(),
|
|
185
|
+
i.$slots.footer ? (N(), U("footer", {
|
|
186
186
|
key: 0,
|
|
187
187
|
class: w([o(a).e("footer"), i.footerClass])
|
|
188
188
|
}, [
|
|
189
189
|
b(i.$slots, "footer")
|
|
190
|
-
], 2)) :
|
|
190
|
+
], 2)) : q("v-if", !0)
|
|
191
191
|
], 6));
|
|
192
192
|
}
|
|
193
193
|
});
|
|
194
194
|
var to = /* @__PURE__ */ ne(oo, [["__file", "dialog-content.vue"]]);
|
|
195
195
|
const lo = J({
|
|
196
|
-
...
|
|
196
|
+
...ce,
|
|
197
197
|
appendToBody: Boolean,
|
|
198
198
|
appendTo: {
|
|
199
|
-
type:
|
|
199
|
+
type: H([String, Object]),
|
|
200
200
|
default: "body"
|
|
201
201
|
},
|
|
202
202
|
beforeClose: {
|
|
203
|
-
type:
|
|
203
|
+
type: H(Function)
|
|
204
204
|
},
|
|
205
205
|
destroyOnClose: Boolean,
|
|
206
206
|
closeOnClickModal: {
|
|
@@ -251,18 +251,18 @@ const lo = J({
|
|
|
251
251
|
opened: () => !0,
|
|
252
252
|
close: () => !0,
|
|
253
253
|
closed: () => !0,
|
|
254
|
-
[ae]: (e) =>
|
|
254
|
+
[ae]: (e) => Ie(e),
|
|
255
255
|
openAutoFocus: () => !0,
|
|
256
256
|
closeAutoFocus: () => !0
|
|
257
257
|
}, so = (e, l = {}) => {
|
|
258
|
-
pe(e) ||
|
|
258
|
+
pe(e) || Be("[useLockscreen]", "You need to pass a ref param to this function");
|
|
259
259
|
const n = l.ns || _("popup"), d = k(() => n.bm("parent", "hidden"));
|
|
260
260
|
if (!se || x(document.body, d.value))
|
|
261
261
|
return;
|
|
262
|
-
let s = 0,
|
|
262
|
+
let s = 0, c = !1, r = "0";
|
|
263
263
|
const f = () => {
|
|
264
264
|
setTimeout(() => {
|
|
265
|
-
typeof document > "u" ||
|
|
265
|
+
typeof document > "u" || c && document && (document.body.style.width = r, Ae(document.body, d.value));
|
|
266
266
|
}, 200);
|
|
267
267
|
};
|
|
268
268
|
Z(e, (a) => {
|
|
@@ -270,20 +270,20 @@ const lo = J({
|
|
|
270
270
|
f();
|
|
271
271
|
return;
|
|
272
272
|
}
|
|
273
|
-
|
|
274
|
-
const
|
|
275
|
-
s > 0 && (
|
|
273
|
+
c = !x(document.body, d.value), c && (r = document.body.style.width, Le(document.body, d.value)), s = Ve(n.namespace.value);
|
|
274
|
+
const u = document.documentElement.clientHeight < document.body.scrollHeight, y = Pe(document.body, "overflowY");
|
|
275
|
+
s > 0 && (u || y === "scroll") && c && (document.body.style.width = `calc(100% - ${s}px)`);
|
|
276
276
|
}), ge(() => f());
|
|
277
277
|
}, ao = (e, l) => {
|
|
278
278
|
var n;
|
|
279
|
-
const s = Ce().emit, { nextZIndex:
|
|
279
|
+
const s = Ce().emit, { nextZIndex: c } = He();
|
|
280
280
|
let r = "";
|
|
281
|
-
const f = ee(), a = ee(),
|
|
281
|
+
const f = ee(), a = ee(), u = A(!1), y = A(!1), C = A(!1), g = A((n = e.zIndex) != null ? n : c());
|
|
282
282
|
let m, v;
|
|
283
|
-
const h =
|
|
283
|
+
const h = We("namespace", Oe), i = k(() => {
|
|
284
284
|
const p = {}, P = `--${h.value}-dialog`;
|
|
285
285
|
return e.fullscreen || (e.top && (p[`${P}-margin-top`] = e.top), e.width && (p[`${P}-width`] = G(e.width))), p;
|
|
286
|
-
}),
|
|
286
|
+
}), O = k(() => e.alignCenter ? { display: "flex" } : {});
|
|
287
287
|
function S() {
|
|
288
288
|
s("opened");
|
|
289
289
|
}
|
|
@@ -294,25 +294,25 @@ const lo = J({
|
|
|
294
294
|
s("close");
|
|
295
295
|
}
|
|
296
296
|
function F() {
|
|
297
|
-
v == null || v(), m == null || m(), e.openDelay && e.openDelay > 0 ? { stop: m } = oe(() =>
|
|
297
|
+
v == null || v(), m == null || m(), e.openDelay && e.openDelay > 0 ? { stop: m } = oe(() => I(), e.openDelay) : I();
|
|
298
298
|
}
|
|
299
299
|
function M() {
|
|
300
|
-
m == null || m(), v == null || v(), e.closeDelay && e.closeDelay > 0 ? { stop: v } = oe(() =>
|
|
300
|
+
m == null || m(), v == null || v(), e.closeDelay && e.closeDelay > 0 ? { stop: v } = oe(() => B(), e.closeDelay) : B();
|
|
301
301
|
}
|
|
302
302
|
function T() {
|
|
303
303
|
function p(P) {
|
|
304
|
-
P || (y.value = !0,
|
|
304
|
+
P || (y.value = !0, u.value = !1);
|
|
305
305
|
}
|
|
306
306
|
e.beforeClose ? e.beforeClose(p) : M();
|
|
307
307
|
}
|
|
308
|
-
function B() {
|
|
309
|
-
e.closeOnClickModal && T();
|
|
310
|
-
}
|
|
311
308
|
function D() {
|
|
312
|
-
|
|
309
|
+
e.closeOnClickModal && T();
|
|
313
310
|
}
|
|
314
311
|
function I() {
|
|
315
|
-
|
|
312
|
+
se && (u.value = !0);
|
|
313
|
+
}
|
|
314
|
+
function B() {
|
|
315
|
+
u.value = !1;
|
|
316
316
|
}
|
|
317
317
|
function t() {
|
|
318
318
|
s("openAutoFocus");
|
|
@@ -324,58 +324,58 @@ const lo = J({
|
|
|
324
324
|
var P;
|
|
325
325
|
((P = p.detail) == null ? void 0 : P.focusReason) === "pointer" && p.preventDefault();
|
|
326
326
|
}
|
|
327
|
-
e.lockScroll && so(
|
|
328
|
-
function
|
|
327
|
+
e.lockScroll && so(u);
|
|
328
|
+
function ue() {
|
|
329
329
|
e.closeOnPressEscape && T();
|
|
330
330
|
}
|
|
331
331
|
return Z(() => e.modelValue, (p) => {
|
|
332
|
-
p ? (y.value = !1, F(), C.value = !0, g.value = Ne(e.zIndex) ?
|
|
332
|
+
p ? (y.value = !1, F(), C.value = !0, g.value = Ne(e.zIndex) ? c() : g.value++, be(() => {
|
|
333
333
|
s("open"), l.value && (l.value.parentElement.scrollTop = 0, l.value.parentElement.scrollLeft = 0, l.value.scrollTop = 0);
|
|
334
|
-
})) :
|
|
334
|
+
})) : u.value && M();
|
|
335
335
|
}), Z(() => e.fullscreen, (p) => {
|
|
336
336
|
l.value && (p ? (r = l.value.style.transform, l.value.style.transform = "") : l.value.style.transform = r);
|
|
337
337
|
}), te(() => {
|
|
338
|
-
e.modelValue && (
|
|
338
|
+
e.modelValue && (u.value = !0, C.value = !0, F());
|
|
339
339
|
}), {
|
|
340
340
|
afterEnter: S,
|
|
341
341
|
afterLeave: z,
|
|
342
342
|
beforeLeave: Y,
|
|
343
343
|
handleClose: T,
|
|
344
|
-
onModalClick:
|
|
344
|
+
onModalClick: D,
|
|
345
345
|
close: M,
|
|
346
|
-
doClose:
|
|
346
|
+
doClose: B,
|
|
347
347
|
onOpenAutoFocus: t,
|
|
348
348
|
onCloseAutoFocus: L,
|
|
349
|
-
onCloseRequested:
|
|
349
|
+
onCloseRequested: ue,
|
|
350
350
|
onFocusoutPrevented: $,
|
|
351
351
|
titleId: f,
|
|
352
352
|
bodyId: a,
|
|
353
353
|
closed: y,
|
|
354
354
|
style: i,
|
|
355
|
-
overlayDialogStyle:
|
|
355
|
+
overlayDialogStyle: O,
|
|
356
356
|
rendered: C,
|
|
357
|
-
visible:
|
|
357
|
+
visible: u,
|
|
358
358
|
zIndex: g
|
|
359
359
|
};
|
|
360
|
-
}, ro =
|
|
360
|
+
}, ro = X({
|
|
361
361
|
name: "ElDialog",
|
|
362
362
|
inheritAttrs: !1
|
|
363
|
-
}), io = /* @__PURE__ */
|
|
363
|
+
}), io = /* @__PURE__ */ X({
|
|
364
364
|
...ro,
|
|
365
365
|
props: lo,
|
|
366
366
|
emits: no,
|
|
367
367
|
setup(e, { expose: l }) {
|
|
368
368
|
const n = e, d = he();
|
|
369
|
-
|
|
369
|
+
Ke({
|
|
370
370
|
scope: "el-dialog",
|
|
371
371
|
from: "the title slot",
|
|
372
372
|
replacement: "the header slot",
|
|
373
373
|
version: "3.0.0",
|
|
374
374
|
ref: "https://element-plus.org/en-US/component/dialog.html#slots"
|
|
375
375
|
}, k(() => !!d.title));
|
|
376
|
-
const s = _("dialog"),
|
|
376
|
+
const s = _("dialog"), c = A(), r = A(), f = A(), {
|
|
377
377
|
visible: a,
|
|
378
|
-
titleId:
|
|
378
|
+
titleId: u,
|
|
379
379
|
bodyId: y,
|
|
380
380
|
style: C,
|
|
381
381
|
overlayDialogStyle: g,
|
|
@@ -383,23 +383,23 @@ const lo = J({
|
|
|
383
383
|
zIndex: v,
|
|
384
384
|
afterEnter: h,
|
|
385
385
|
afterLeave: i,
|
|
386
|
-
beforeLeave:
|
|
386
|
+
beforeLeave: O,
|
|
387
387
|
handleClose: S,
|
|
388
388
|
onModalClick: z,
|
|
389
389
|
onOpenAutoFocus: Y,
|
|
390
390
|
onCloseAutoFocus: F,
|
|
391
391
|
onCloseRequested: M,
|
|
392
392
|
onFocusoutPrevented: T
|
|
393
|
-
} = ao(n,
|
|
393
|
+
} = ao(n, c);
|
|
394
394
|
we(ie, {
|
|
395
|
-
dialogRef:
|
|
395
|
+
dialogRef: c,
|
|
396
396
|
headerRef: r,
|
|
397
397
|
bodyId: y,
|
|
398
398
|
ns: s,
|
|
399
399
|
rendered: m,
|
|
400
400
|
style: C
|
|
401
401
|
});
|
|
402
|
-
const
|
|
402
|
+
const D = re(z), I = k(() => n.draggable && !n.fullscreen);
|
|
403
403
|
return l({
|
|
404
404
|
visible: a,
|
|
405
405
|
dialogContentRef: f,
|
|
@@ -407,39 +407,39 @@ const lo = J({
|
|
|
407
407
|
var t;
|
|
408
408
|
(t = f.value) == null || t.resetPosition();
|
|
409
409
|
}
|
|
410
|
-
}), (t, L) => (N(),
|
|
410
|
+
}), (t, L) => (N(), K(o(ze), {
|
|
411
411
|
to: t.appendTo,
|
|
412
412
|
disabled: t.appendTo !== "body" ? !1 : !t.appendToBody
|
|
413
413
|
}, {
|
|
414
414
|
default: E(() => [
|
|
415
|
-
|
|
415
|
+
R(Ee, {
|
|
416
416
|
name: "dialog-fade",
|
|
417
417
|
onAfterEnter: o(h),
|
|
418
418
|
onAfterLeave: o(i),
|
|
419
|
-
onBeforeLeave: o(
|
|
419
|
+
onBeforeLeave: o(O),
|
|
420
420
|
persisted: ""
|
|
421
421
|
}, {
|
|
422
422
|
default: E(() => [
|
|
423
|
-
ke(
|
|
423
|
+
ke(R(o(_e), {
|
|
424
424
|
"custom-mask-event": "",
|
|
425
425
|
mask: t.modal,
|
|
426
426
|
"overlay-class": t.modalClass,
|
|
427
427
|
"z-index": o(v)
|
|
428
428
|
}, {
|
|
429
429
|
default: E(() => [
|
|
430
|
-
|
|
430
|
+
j("div", {
|
|
431
431
|
role: "dialog",
|
|
432
432
|
"aria-modal": "true",
|
|
433
433
|
"aria-label": t.title || void 0,
|
|
434
|
-
"aria-labelledby": t.title ? void 0 : o(
|
|
434
|
+
"aria-labelledby": t.title ? void 0 : o(u),
|
|
435
435
|
"aria-describedby": o(y),
|
|
436
436
|
class: w(`${o(s).namespace.value}-overlay-dialog`),
|
|
437
437
|
style: le(o(g)),
|
|
438
|
-
onClick: o(
|
|
439
|
-
onMousedown: o(
|
|
440
|
-
onMouseup: o(
|
|
438
|
+
onClick: o(D).onClick,
|
|
439
|
+
onMousedown: o(D).onMousedown,
|
|
440
|
+
onMouseup: o(D).onMouseup
|
|
441
441
|
}, [
|
|
442
|
-
|
|
442
|
+
R(o(Ye), {
|
|
443
443
|
loop: "",
|
|
444
444
|
trapped: o(a),
|
|
445
445
|
"focus-start-el": "container",
|
|
@@ -449,7 +449,7 @@ const lo = J({
|
|
|
449
449
|
onReleaseRequested: o(M)
|
|
450
450
|
}, {
|
|
451
451
|
default: E(() => [
|
|
452
|
-
o(m) ? (N(),
|
|
452
|
+
o(m) ? (N(), K(to, Se({
|
|
453
453
|
key: 0,
|
|
454
454
|
ref_key: "dialogContentRef",
|
|
455
455
|
ref: f
|
|
@@ -457,7 +457,7 @@ const lo = J({
|
|
|
457
457
|
center: t.center,
|
|
458
458
|
"align-center": t.alignCenter,
|
|
459
459
|
"close-icon": t.closeIcon,
|
|
460
|
-
draggable: o(
|
|
460
|
+
draggable: o(I),
|
|
461
461
|
overflow: t.overflow,
|
|
462
462
|
fullscreen: t.fullscreen,
|
|
463
463
|
"header-class": t.headerClass,
|
|
@@ -472,7 +472,7 @@ const lo = J({
|
|
|
472
472
|
t.$slots.title ? b(t.$slots, "title", { key: 1 }) : b(t.$slots, "header", {
|
|
473
473
|
key: 0,
|
|
474
474
|
close: o(S),
|
|
475
|
-
titleId: o(
|
|
475
|
+
titleId: o(u),
|
|
476
476
|
titleClass: o(s).e("title")
|
|
477
477
|
})
|
|
478
478
|
]),
|
|
@@ -487,7 +487,7 @@ const lo = J({
|
|
|
487
487
|
b(t.$slots, "footer")
|
|
488
488
|
])
|
|
489
489
|
} : void 0
|
|
490
|
-
]), 1040, ["center", "align-center", "close-icon", "draggable", "overflow", "fullscreen", "header-class", "body-class", "footer-class", "show-close", "title", "aria-level", "onClose"])) :
|
|
490
|
+
]), 1040, ["center", "align-center", "close-icon", "draggable", "overflow", "fullscreen", "header-class", "body-class", "footer-class", "show-close", "title", "aria-level", "onClose"])) : q("v-if", !0)
|
|
491
491
|
]),
|
|
492
492
|
_: 3
|
|
493
493
|
}, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
|
@@ -505,8 +505,12 @@ const lo = J({
|
|
|
505
505
|
}, 8, ["to", "disabled"]));
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
|
-
var
|
|
509
|
-
const ho = Fe(
|
|
508
|
+
var co = /* @__PURE__ */ ne(io, [["__file", "dialog.vue"]]);
|
|
509
|
+
const ho = Fe(co);
|
|
510
510
|
export {
|
|
511
|
-
ho as E
|
|
511
|
+
ho as E,
|
|
512
|
+
_e as a,
|
|
513
|
+
so as b,
|
|
514
|
+
re as c,
|
|
515
|
+
xe as u
|
|
512
516
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),t=require("./base-ec05f348.cjs"),$=require("./vnode-7fbc61e1.cjs"),F=require("./index-e1e83173.cjs"),A=require("./use-form-common-props-1b84d8f4.cjs"),W=require("./refs-d00b710b.cjs"),V=require("./event-61f49698.cjs"),x=require("./scroll-41224831.cjs"),q=require("./index-8a0b1c53.cjs"),z=o=>{if(!o)return{onClick:t.NOOP,onMousedown:t.NOOP,onMouseup:t.NOOP};let l=!1,s=!1;return{onClick:i=>{l&&s&&o(i),l=s=!1},onMousedown:i=>{l=i.target===i.currentTarget},onMouseup:i=>{s=i.target===i.currentTarget}}},K=t.buildProps({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:t.definePropType([String,Array,Object])},zIndex:{type:t.definePropType([String,Number])}}),_={click:o=>o instanceof MouseEvent},Z="overlay";var G=e.defineComponent({name:"ElOverlay",props:K,emits:_,setup(o,{slots:l,emit:s}){const f=t.useNamespace(Z),a=r=>{s("click",r)},{onClick:c,onMousedown:i,onMouseup:m}=z(o.customMaskEvent?void 0:a);return()=>o.mask?e.createVNode("div",{class:[f.b(),o.overlayClass],style:{zIndex:o.zIndex},onClick:c,onMousedown:i,onMouseup:m},[e.renderSlot(l,"default")],$.PatchFlags.STYLE|$.PatchFlags.CLASS|$.PatchFlags.PROPS,["onClick","onMouseup","onMousedown"]):e.h("div",{class:o.overlayClass,style:{zIndex:o.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[e.renderSlot(l,"default")])}});const Y=G,U=Symbol("dialogInjectionKey"),R=t.buildProps({center:Boolean,alignCenter:Boolean,closeIcon:{type:A.iconPropType},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),J={close:()=>!0},X=(o,l,s,f)=>{let a={offsetX:0,offsetY:0};const c=d=>{const y=d.clientX,h=d.clientY,{offsetX:g,offsetY:v}=a,p=o.value.getBoundingClientRect(),b=p.left,u=p.top,D=p.width,E=p.height,O=document.documentElement.clientWidth,N=document.documentElement.clientHeight,L=-b+g,w=-u+v,k=O-b-D+g,S=N-u-E+v,T=n=>{let P=g+n.clientX-y,I=v+n.clientY-h;f!=null&&f.value||(P=Math.min(Math.max(P,L),k),I=Math.min(Math.max(I,w),S)),a={offsetX:P,offsetY:I},o.value&&(o.value.style.transform=`translate(${t.addUnit(P)}, ${t.addUnit(I)})`)},B=()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",B)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",B)},i=()=>{l.value&&o.value&&l.value.addEventListener("mousedown",c)},m=()=>{l.value&&o.value&&l.value.removeEventListener("mousedown",c)},r=()=>{a={offsetX:0,offsetY:0},o.value&&(o.value.style.transform="none")};return e.onMounted(()=>{e.watchEffect(()=>{s.value?i():m()})}),e.onBeforeUnmount(()=>{m()}),{resetPosition:r}},Q=e.defineComponent({name:"ElDialogContent"}),ee=e.defineComponent({...Q,props:R,emits:J,setup(o,{expose:l}){const s=o,{t:f}=t.useLocale(),{Close:a}=A.CloseComponents,{dialogRef:c,headerRef:i,bodyId:m,ns:r,style:d}=e.inject(U),{focusTrapRef:y}=e.inject(F.FOCUS_TRAP_INJECTION_KEY),h=e.computed(()=>[r.b(),r.is("fullscreen",s.fullscreen),r.is("draggable",s.draggable),r.is("align-center",s.alignCenter),{[r.m("center")]:s.center}]),g=W.composeRefs(y,c),v=e.computed(()=>s.draggable),p=e.computed(()=>s.overflow),{resetPosition:b}=X(c,i,v,p);return l({resetPosition:b}),(u,D)=>(e.openBlock(),e.createElementBlock("div",{ref:e.unref(g),class:e.normalizeClass(e.unref(h)),style:e.normalizeStyle(e.unref(d)),tabindex:"-1"},[e.createElementVNode("header",{ref_key:"headerRef",ref:i,class:e.normalizeClass([e.unref(r).e("header"),u.headerClass,{"show-close":u.showClose}])},[e.renderSlot(u.$slots,"header",{},()=>[e.createElementVNode("span",{role:"heading","aria-level":u.ariaLevel,class:e.normalizeClass(e.unref(r).e("title"))},e.toDisplayString(u.title),11,["aria-level"])]),u.showClose?(e.openBlock(),e.createElementBlock("button",{key:0,"aria-label":e.unref(f)("el.dialog.close"),class:e.normalizeClass(e.unref(r).e("headerbtn")),type:"button",onClick:E=>u.$emit("close")},[e.createVNode(e.unref(A.ElIcon),{class:e.normalizeClass(e.unref(r).e("close"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.closeIcon||e.unref(a))))]),_:1},8,["class"])],10,["aria-label","onClick"])):e.createCommentVNode("v-if",!0)],2),e.createElementVNode("div",{id:e.unref(m),class:e.normalizeClass([e.unref(r).e("body"),u.bodyClass])},[e.renderSlot(u.$slots,"default")],10,["id"]),u.$slots.footer?(e.openBlock(),e.createElementBlock("footer",{key:0,class:e.normalizeClass([e.unref(r).e("footer"),u.footerClass])},[e.renderSlot(u.$slots,"footer")],2)):e.createCommentVNode("v-if",!0)],6))}});var oe=t._export_sfc(ee,[["__file","dialog-content.vue"]]);const te=t.buildProps({...R,appendToBody:Boolean,appendTo:{type:t.definePropType([String,Object]),default:"body"},beforeClose:{type:t.definePropType(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},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"}}),ne={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[V.UPDATE_MODEL_EVENT]:o=>t.isBoolean(o),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},H=(o,l={})=>{e.isRef(o)||t.throwError("[useLockscreen]","You need to pass a ref param to this function");const s=l.ns||t.useNamespace("popup"),f=e.computed(()=>s.bm("parent","hidden"));if(!t.isClient||t.hasClass(document.body,f.value))return;let a=0,c=!1,i="0";const m=()=>{setTimeout(()=>{typeof document>"u"||c&&document&&(document.body.style.width=i,t.removeClass(document.body,f.value))},200)};e.watch(o,r=>{if(!r){m();return}c=!t.hasClass(document.body,f.value),c&&(i=document.body.style.width,t.addClass(document.body,f.value)),a=x.getScrollBarWidth(s.namespace.value);const d=document.documentElement.clientHeight<document.body.scrollHeight,y=t.getStyle(document.body,"overflowY");a>0&&(d||y==="scroll")&&c&&(document.body.style.width=`calc(100% - ${a}px)`)}),e.onScopeDispose(()=>m())},le=(o,l)=>{var s;const a=e.getCurrentInstance().emit,{nextZIndex:c}=A.useZIndex();let i="";const m=t.useId(),r=t.useId(),d=e.ref(!1),y=e.ref(!1),h=e.ref(!1),g=e.ref((s=o.zIndex)!=null?s:c());let v,p;const b=q.useGlobalConfig("namespace",t.defaultNamespace),u=e.computed(()=>{const C={},M=`--${b.value}-dialog`;return o.fullscreen||(o.top&&(C[`${M}-margin-top`]=o.top),o.width&&(C[`${M}-width`]=t.addUnit(o.width))),C}),D=e.computed(()=>o.alignCenter?{display:"flex"}:{});function E(){a("opened")}function O(){a("closed"),a(V.UPDATE_MODEL_EVENT,!1),o.destroyOnClose&&(h.value=!1)}function N(){a("close")}function L(){p==null||p(),v==null||v(),o.openDelay&&o.openDelay>0?{stop:v}=t.useTimeoutFn(()=>T(),o.openDelay):T()}function w(){v==null||v(),p==null||p(),o.closeDelay&&o.closeDelay>0?{stop:p}=t.useTimeoutFn(()=>B(),o.closeDelay):B()}function k(){function C(M){M||(y.value=!0,d.value=!1)}o.beforeClose?o.beforeClose(C):w()}function S(){o.closeOnClickModal&&k()}function T(){t.isClient&&(d.value=!0)}function B(){d.value=!1}function n(){a("openAutoFocus")}function P(){a("closeAutoFocus")}function I(C){var M;((M=C.detail)==null?void 0:M.focusReason)==="pointer"&&C.preventDefault()}o.lockScroll&&H(d);function j(){o.closeOnPressEscape&&k()}return e.watch(()=>o.modelValue,C=>{C?(y.value=!1,L(),h.value=!0,g.value=F.isUndefined(o.zIndex)?c():g.value++,e.nextTick(()=>{a("open"),l.value&&(l.value.parentElement.scrollTop=0,l.value.parentElement.scrollLeft=0,l.value.scrollTop=0)})):d.value&&w()}),e.watch(()=>o.fullscreen,C=>{l.value&&(C?(i=l.value.style.transform,l.value.style.transform=""):l.value.style.transform=i)}),e.onMounted(()=>{o.modelValue&&(d.value=!0,h.value=!0,L())}),{afterEnter:E,afterLeave:O,beforeLeave:N,handleClose:k,onModalClick:S,close:w,doClose:B,onOpenAutoFocus:n,onCloseAutoFocus:P,onCloseRequested:j,onFocusoutPrevented:I,titleId:m,bodyId:r,closed:y,style:u,overlayDialogStyle:D,rendered:h,visible:d,zIndex:g}},se=e.defineComponent({name:"ElDialog",inheritAttrs:!1}),ae=e.defineComponent({...se,props:te,emits:ne,setup(o,{expose:l}){const s=o,f=e.useSlots();q.useDeprecated({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},e.computed(()=>!!f.title));const a=t.useNamespace("dialog"),c=e.ref(),i=e.ref(),m=e.ref(),{visible:r,titleId:d,bodyId:y,style:h,overlayDialogStyle:g,rendered:v,zIndex:p,afterEnter:b,afterLeave:u,beforeLeave:D,handleClose:E,onModalClick:O,onOpenAutoFocus:N,onCloseAutoFocus:L,onCloseRequested:w,onFocusoutPrevented:k}=le(s,c);e.provide(U,{dialogRef:c,headerRef:i,bodyId:y,ns:a,rendered:v,style:h});const S=z(O),T=e.computed(()=>s.draggable&&!s.fullscreen);return l({visible:r,dialogContentRef:m,resetPosition:()=>{var n;(n=m.value)==null||n.resetPosition()}}),(n,P)=>(e.openBlock(),e.createBlock(e.unref(F.ElTeleport),{to:n.appendTo,disabled:n.appendTo!=="body"?!1:!n.appendToBody},{default:e.withCtx(()=>[e.createVNode(e.Transition,{name:"dialog-fade",onAfterEnter:e.unref(b),onAfterLeave:e.unref(u),onBeforeLeave:e.unref(D),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(Y),{"custom-mask-event":"",mask:n.modal,"overlay-class":n.modalClass,"z-index":e.unref(p)},{default:e.withCtx(()=>[e.createElementVNode("div",{role:"dialog","aria-modal":"true","aria-label":n.title||void 0,"aria-labelledby":n.title?void 0:e.unref(d),"aria-describedby":e.unref(y),class:e.normalizeClass(`${e.unref(a).namespace.value}-overlay-dialog`),style:e.normalizeStyle(e.unref(g)),onClick:e.unref(S).onClick,onMousedown:e.unref(S).onMousedown,onMouseup:e.unref(S).onMouseup},[e.createVNode(e.unref(F.ElFocusTrap),{loop:"",trapped:e.unref(r),"focus-start-el":"container",onFocusAfterTrapped:e.unref(N),onFocusAfterReleased:e.unref(L),onFocusoutPrevented:e.unref(k),onReleaseRequested:e.unref(w)},{default:e.withCtx(()=>[e.unref(v)?(e.openBlock(),e.createBlock(oe,e.mergeProps({key:0,ref_key:"dialogContentRef",ref:m},n.$attrs,{center:n.center,"align-center":n.alignCenter,"close-icon":n.closeIcon,draggable:e.unref(T),overflow:n.overflow,fullscreen:n.fullscreen,"header-class":n.headerClass,"body-class":n.bodyClass,"footer-class":n.footerClass,"show-close":n.showClose,title:n.title,"aria-level":n.headerAriaLevel,onClose:e.unref(E)}),e.createSlots({header:e.withCtx(()=>[n.$slots.title?e.renderSlot(n.$slots,"title",{key:1}):e.renderSlot(n.$slots,"header",{key:0,close:e.unref(E),titleId:e.unref(d),titleClass:e.unref(a).e("title")})]),default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:2},[n.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose"])):e.createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[e.vShow,e.unref(r)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var re=t._export_sfc(ae,[["__file","dialog.vue"]]);const ie=t.withInstall(re);exports.ElDialog=ie;exports.ElOverlay=Y;exports.useDraggable=X;exports.useLockscreen=H;exports.useSameTarget=z;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { b
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { b as
|
|
6
|
-
const G =
|
|
1
|
+
import { defineComponent as k, ref as $, computed as p, openBlock as a, createBlock as c, unref as t, mergeProps as z, withCtx as r, createElementVNode as f, normalizeClass as l, normalizeStyle as I, resolveDynamicComponent as V, createCommentVNode as g, createTextVNode as u, toDisplayString as m, renderSlot as C, createVNode as E } from "vue";
|
|
2
|
+
import { b, E as P } from "./el-button-802f579a.js";
|
|
3
|
+
import { j as _, r as A, E as D } from "./use-form-common-props-f3a520d0.js";
|
|
4
|
+
import { b as S, E as M } from "./el-popper-6126b1f6.js";
|
|
5
|
+
import { b as R, x as j, u as q, y as L, _ as U, w as F } from "./base-f7877059.js";
|
|
6
|
+
const G = R({
|
|
7
7
|
title: String,
|
|
8
8
|
confirmButtonText: String,
|
|
9
9
|
cancelButtonText: String,
|
|
10
10
|
confirmButtonType: {
|
|
11
11
|
type: String,
|
|
12
|
-
values:
|
|
12
|
+
values: b,
|
|
13
13
|
default: "primary"
|
|
14
14
|
},
|
|
15
15
|
cancelButtonType: {
|
|
16
16
|
type: String,
|
|
17
|
-
values:
|
|
17
|
+
values: b,
|
|
18
18
|
default: "text"
|
|
19
19
|
},
|
|
20
20
|
icon: {
|
|
21
21
|
type: _,
|
|
22
|
-
default: () =>
|
|
22
|
+
default: () => A
|
|
23
23
|
},
|
|
24
24
|
iconColor: {
|
|
25
25
|
type: String,
|
|
@@ -33,8 +33,8 @@ const G = M({
|
|
|
33
33
|
type: Number,
|
|
34
34
|
default: 200
|
|
35
35
|
},
|
|
36
|
-
teleported:
|
|
37
|
-
persistent:
|
|
36
|
+
teleported: S.teleported,
|
|
37
|
+
persistent: S.persistent,
|
|
38
38
|
width: {
|
|
39
39
|
type: [String, Number],
|
|
40
40
|
default: 150
|
|
@@ -42,24 +42,24 @@ const G = M({
|
|
|
42
42
|
}), H = {
|
|
43
43
|
confirm: (o) => o instanceof MouseEvent,
|
|
44
44
|
cancel: (o) => o instanceof MouseEvent
|
|
45
|
-
}, J =
|
|
45
|
+
}, J = k({
|
|
46
46
|
name: "ElPopconfirm"
|
|
47
|
-
}), K = /* @__PURE__ */
|
|
47
|
+
}), K = /* @__PURE__ */ k({
|
|
48
48
|
...J,
|
|
49
49
|
props: G,
|
|
50
50
|
emits: H,
|
|
51
51
|
setup(o, { emit: d }) {
|
|
52
|
-
const s = o, { t: y } =
|
|
52
|
+
const s = o, { t: y } = j(), n = q("popconfirm"), T = $(), B = () => {
|
|
53
53
|
var e, i;
|
|
54
54
|
(i = (e = T.value) == null ? void 0 : e.onClose) == null || i.call(e);
|
|
55
55
|
}, N = p(() => ({
|
|
56
|
-
width:
|
|
56
|
+
width: L(s.width)
|
|
57
57
|
})), v = (e) => {
|
|
58
58
|
d("confirm", e), B();
|
|
59
59
|
}, h = (e) => {
|
|
60
60
|
d("cancel", e), B();
|
|
61
|
-
}, w = p(() => s.confirmButtonText || y("el.popconfirm.confirmButtonText")),
|
|
62
|
-
return (e, i) => (a(), c(t(
|
|
61
|
+
}, w = p(() => s.confirmButtonText || y("el.popconfirm.confirmButtonText")), x = p(() => s.cancelButtonText || y("el.popconfirm.cancelButtonText"));
|
|
62
|
+
return (e, i) => (a(), c(t(M), z({
|
|
63
63
|
ref_key: "tooltipRef",
|
|
64
64
|
ref: T,
|
|
65
65
|
trigger: "click",
|
|
@@ -79,7 +79,7 @@ const G = M({
|
|
|
79
79
|
f("div", {
|
|
80
80
|
class: l(t(n).e("main"))
|
|
81
81
|
}, [
|
|
82
|
-
!e.hideIcon && e.icon ? (a(), c(t(
|
|
82
|
+
!e.hideIcon && e.icon ? (a(), c(t(D), {
|
|
83
83
|
key: 0,
|
|
84
84
|
class: l(t(n).e("icon")),
|
|
85
85
|
style: I({ color: e.iconColor })
|
|
@@ -98,18 +98,18 @@ const G = M({
|
|
|
98
98
|
confirm: v,
|
|
99
99
|
cancel: h
|
|
100
100
|
}, () => [
|
|
101
|
-
E(t(
|
|
101
|
+
E(t(P), {
|
|
102
102
|
size: "small",
|
|
103
103
|
type: e.cancelButtonType === "text" ? "" : e.cancelButtonType,
|
|
104
104
|
text: e.cancelButtonType === "text",
|
|
105
105
|
onClick: h
|
|
106
106
|
}, {
|
|
107
107
|
default: r(() => [
|
|
108
|
-
u(m(t(
|
|
108
|
+
u(m(t(x)), 1)
|
|
109
109
|
]),
|
|
110
110
|
_: 1
|
|
111
111
|
}, 8, ["type", "text"]),
|
|
112
|
-
E(t(
|
|
112
|
+
E(t(P), {
|
|
113
113
|
size: "small",
|
|
114
114
|
type: e.confirmButtonType === "text" ? "" : e.confirmButtonType,
|
|
115
115
|
text: e.confirmButtonType === "text",
|
|
@@ -131,7 +131,7 @@ const G = M({
|
|
|
131
131
|
}, 16, ["popper-class", "popper-style", "teleported", "hide-after", "persistent"]));
|
|
132
132
|
}
|
|
133
133
|
});
|
|
134
|
-
var O = /* @__PURE__ */
|
|
134
|
+
var O = /* @__PURE__ */ U(K, [["__file", "popconfirm.vue"]]);
|
|
135
135
|
const ee = F(O);
|
|
136
136
|
export {
|
|
137
137
|
ee as E
|