exploria-ui 2026.8.28 → 2026.10.2
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/dist/components/data/ECarousel/ECarousel.vue.d.ts +2 -2
- package/dist/components/data/EMediaViewer/EMediaViewer.d.ts +6 -1
- package/dist/components/feedback/EDialog/EDialog.vue.d.ts +17 -5
- package/dist/components/feedback/EDrawer/EDrawer.vue.d.ts +5 -0
- package/dist/components/feedback/EMessage/EMessage.d.ts +20 -7
- package/dist/components/feedback/EMessageBox/EMessageBox.d.ts +48 -15
- package/dist/components/feedback/EMessageBox/EMessageBox.vue.d.ts +10 -1
- package/dist/components/feedback/ENotification/ENotification.d.ts +5 -3
- package/dist/components/feedback/EPopover.vue.d.ts +5 -0
- package/dist/components/hooks/useContainer.d.ts +104 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +58 -54
- package/dist/components/navigation/ETabs/ETabs.vue.d.ts +4 -0
- package/dist/index.css +1 -1
- package/dist/node_modules/.pnpm/{@intlify_core-base@11.4.9 → @intlify_core-base@11.4.10}/node_modules/@intlify/core-base/dist/core-base.js +226 -226
- package/dist/node_modules/.pnpm/{@intlify_message-compiler@11.4.9 → @intlify_message-compiler@11.4.10}/node_modules/@intlify/message-compiler/dist/message-compiler.js +2 -2
- package/dist/node_modules/.pnpm/{@intlify_shared@11.4.9 → @intlify_shared@11.4.10}/node_modules/@intlify/shared/dist/shared.js +38 -34
- package/dist/node_modules/.pnpm/{vue-i18n@11.4.9_vue@3.5.41_typescript@5.9.3_ → vue-i18n@11.4.10_vue@3.5.41_typescript@5.9.3_}/node_modules/vue-i18n/dist/vue-i18n.js +137 -137
- package/dist/package.json.js +86 -0
- package/dist/src/components/data/EMediaViewer/EMediaViewer.js +36 -33
- package/dist/src/components/data/EMediaViewer/EMediaViewer.vue.js +1 -1
- package/dist/src/components/data/EMediaViewer/EMediaViewer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/src/components/data/ESteps/EStepItem.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/src/components/feedback/EDialog/EDialog.vue.js +1 -1
- package/dist/src/components/feedback/EDialog/EDialog.vue_vue_type_script_setup_true_lang.js +89 -61
- package/dist/src/components/feedback/EDrawer/EDrawer.vue.js +1 -1
- package/dist/src/components/feedback/EDrawer/EDrawer.vue_vue_type_script_setup_true_lang.js +77 -49
- package/dist/src/components/feedback/EMessage/EMessage.js +76 -64
- package/dist/src/components/feedback/EMessageBox/EMessageBox.js +54 -35
- package/dist/src/components/feedback/EMessageBox/EMessageBox.vue.js +1 -1
- package/dist/src/components/feedback/EMessageBox/EMessageBox.vue_vue_type_script_setup_true_lang.js +34 -29
- package/dist/src/components/feedback/ENotification/ENotification.js +80 -82
- package/dist/src/components/feedback/EPopover.vue.js +1 -1
- package/dist/src/components/feedback/EPopover.vue_vue_type_script_setup_true_lang.js +56 -47
- package/dist/src/components/form/EConditionGroup/EConditionGroup.vue.js +1 -1
- package/dist/src/components/form/EConditionGroup/EConditionGroup.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/src/components/form/EForm/EFormItem.vue.js +1 -1
- package/dist/src/components/form/ESelect/ESelect.vue.js +1 -1
- package/dist/src/components/form/ESlider.vue.js +1 -1
- package/dist/src/components/form/ETimePicker.vue.js +1 -1
- package/dist/src/components/hooks/useContainer.js +129 -0
- package/dist/src/components/layout/EScrollbar.vue.js +1 -1
- package/dist/src/components/layout/EScrollbar.vue_vue_type_script_setup_true_lang.js +30 -19
- package/dist/src/components/navigation/ETabs/ETabPane.vue.js +1 -1
- package/dist/src/components/navigation/ETabs/ETabPane.vue_vue_type_script_setup_true_lang.js +8 -7
- package/dist/src/components/navigation/ETabs/ETabs.vue.js +1 -1
- package/dist/src/components/navigation/ETabs/ETabs.vue_vue_type_script_setup_true_lang.js +64 -58
- package/package.json +3 -3
|
@@ -1,69 +1,81 @@
|
|
|
1
1
|
import { nextZIndex as e } from "../../hooks/useZIndex.js";
|
|
2
|
-
import t from "
|
|
3
|
-
import
|
|
2
|
+
import { createContainerContext as t } from "../../hooks/useContainer.js";
|
|
3
|
+
import n from "./EMessage.vue.js";
|
|
4
|
+
import { createApp as r } from "vue";
|
|
4
5
|
//#region src/components/feedback/EMessage/EMessage.ts
|
|
5
|
-
var
|
|
6
|
-
static
|
|
7
|
-
let
|
|
8
|
-
|
|
6
|
+
var i = new Map(), a = 10, o = 10, s = "cubic-bezier(0.4, 0, 0.2, 1)", c = 300, l = class l {
|
|
7
|
+
static getMessageState(e) {
|
|
8
|
+
let t = i.get(e.container);
|
|
9
|
+
if (t) return t;
|
|
10
|
+
let n = {
|
|
11
|
+
context: e,
|
|
12
|
+
list: [],
|
|
13
|
+
dispose: () => {}
|
|
14
|
+
};
|
|
15
|
+
return n.dispose = e.observe(() => l.layout(n)), i.set(e.container, n), n;
|
|
9
16
|
}
|
|
10
|
-
static
|
|
11
|
-
let t = e.
|
|
12
|
-
e.style.
|
|
17
|
+
static layout(e) {
|
|
18
|
+
let { context: t, list: n } = e, r = t.getBox(), i = o;
|
|
19
|
+
for (let e of n) e.style.top = `${t.toLocal(0, r.top + i).top}px`, e.style.left = `${t.center(e.offsetWidth, e.offsetHeight).left}px`, i += e.offsetHeight + a;
|
|
13
20
|
}
|
|
14
|
-
static flipExisting() {
|
|
15
|
-
let e = new Map();
|
|
16
|
-
for (let
|
|
17
|
-
|
|
18
|
-
e.
|
|
21
|
+
static flipExisting(e, t) {
|
|
22
|
+
let { list: n } = e, r = new Map();
|
|
23
|
+
for (let e of n) {
|
|
24
|
+
if (e === t) continue;
|
|
25
|
+
let n = e.getBoundingClientRect();
|
|
26
|
+
r.set(e, n.top);
|
|
19
27
|
}
|
|
20
|
-
|
|
21
|
-
for (let
|
|
22
|
-
|
|
28
|
+
l.layout(e);
|
|
29
|
+
for (let e of n) {
|
|
30
|
+
if (e === t) continue;
|
|
31
|
+
let n = r.get(e);
|
|
23
32
|
if (n === void 0) continue;
|
|
24
|
-
let
|
|
25
|
-
|
|
26
|
-
duration:
|
|
27
|
-
easing:
|
|
33
|
+
let i = e.getBoundingClientRect().top - n;
|
|
34
|
+
i !== 0 && e.animate([{ transform: `translateY(${-i}px)` }, { transform: "translateY(0)" }], {
|
|
35
|
+
duration: c,
|
|
36
|
+
easing: s
|
|
28
37
|
});
|
|
29
38
|
}
|
|
30
39
|
}
|
|
31
|
-
static
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
40
|
+
static releaseState(e) {
|
|
41
|
+
e.list.length > 0 || (e.dispose(), i.delete(e.context.container));
|
|
42
|
+
}
|
|
43
|
+
static show(i, a, u = 1.7, d) {
|
|
44
|
+
let f = t(d), p = l.getMessageState(f), m = document.createElement("div");
|
|
45
|
+
m.style.position = f.positionMode, m.style.userSelect = "none", m.style.zIndex = String(e()), f.container.append(m);
|
|
46
|
+
let h = r(n, {
|
|
47
|
+
type: a,
|
|
36
48
|
msg: i
|
|
37
49
|
});
|
|
38
|
-
|
|
39
|
-
let
|
|
40
|
-
for (let e of
|
|
50
|
+
h.mount(m);
|
|
51
|
+
let { list: g } = p, _ = new Map();
|
|
52
|
+
for (let e of g) {
|
|
41
53
|
let t = e.getBoundingClientRect();
|
|
42
|
-
|
|
54
|
+
_.set(e, t.top);
|
|
43
55
|
}
|
|
44
|
-
let
|
|
45
|
-
|
|
46
|
-
for (let e of
|
|
47
|
-
if (e ===
|
|
48
|
-
let t =
|
|
56
|
+
let v = g.length > 0 ? g[g.length - 1] : null, y = v ? v.getBoundingClientRect().bottom : f.getBox().top + o;
|
|
57
|
+
g.push(m), l.layout(p);
|
|
58
|
+
for (let e of g) {
|
|
59
|
+
if (e === m) continue;
|
|
60
|
+
let t = _.get(e);
|
|
49
61
|
if (t === void 0) continue;
|
|
50
62
|
let n = e.getBoundingClientRect().top - t;
|
|
51
63
|
n !== 0 && e.animate([{ transform: `translateY(${-n}px)` }, { transform: "translateY(0)" }], {
|
|
52
|
-
duration:
|
|
53
|
-
easing:
|
|
64
|
+
duration: c,
|
|
65
|
+
easing: s
|
|
54
66
|
});
|
|
55
67
|
}
|
|
56
|
-
let
|
|
57
|
-
|
|
68
|
+
let b = m.getBoundingClientRect().top - y;
|
|
69
|
+
m.animate([
|
|
58
70
|
{
|
|
59
71
|
opacity: 0,
|
|
60
|
-
transform: `translateY(${
|
|
72
|
+
transform: `translateY(${b}px)`,
|
|
61
73
|
offset: 0,
|
|
62
74
|
easing: "linear"
|
|
63
75
|
},
|
|
64
76
|
{
|
|
65
77
|
opacity: 1,
|
|
66
|
-
transform: `translateY(${
|
|
78
|
+
transform: `translateY(${b}px)`,
|
|
67
79
|
offset: .15,
|
|
68
80
|
easing: "linear"
|
|
69
81
|
},
|
|
@@ -72,13 +84,13 @@ var r = [], i = 10, a = 10, o = "cubic-bezier(0.4, 0, 0.2, 1)", s = 300, c = cla
|
|
|
72
84
|
transform: "translateY(0)",
|
|
73
85
|
offset: 1
|
|
74
86
|
}
|
|
75
|
-
], { duration:
|
|
76
|
-
let
|
|
77
|
-
if (
|
|
78
|
-
|
|
79
|
-
let e =
|
|
80
|
-
e > -1 && (
|
|
81
|
-
let t =
|
|
87
|
+
], { duration: c });
|
|
88
|
+
let x = !1, S = () => {
|
|
89
|
+
if (x) return;
|
|
90
|
+
x = !0;
|
|
91
|
+
let e = g.indexOf(m);
|
|
92
|
+
e > -1 && (g.splice(e, 1), l.flipExisting(p, m), l.releaseState(p));
|
|
93
|
+
let t = m.animate([
|
|
82
94
|
{
|
|
83
95
|
opacity: 1,
|
|
84
96
|
transform: "translateY(0)",
|
|
@@ -87,37 +99,37 @@ var r = [], i = 10, a = 10, o = "cubic-bezier(0.4, 0, 0.2, 1)", s = 300, c = cla
|
|
|
87
99
|
},
|
|
88
100
|
{
|
|
89
101
|
opacity: 1,
|
|
90
|
-
transform: `translateY(${
|
|
102
|
+
transform: `translateY(${b}px)`,
|
|
91
103
|
offset: .85,
|
|
92
104
|
easing: "linear"
|
|
93
105
|
},
|
|
94
106
|
{
|
|
95
107
|
opacity: 0,
|
|
96
|
-
transform: `translateY(${
|
|
108
|
+
transform: `translateY(${b}px)`,
|
|
97
109
|
offset: 1
|
|
98
110
|
}
|
|
99
|
-
], { duration:
|
|
111
|
+
], { duration: c });
|
|
100
112
|
t.onfinish = () => {
|
|
101
|
-
|
|
113
|
+
h.unmount(), m.remove();
|
|
102
114
|
};
|
|
103
115
|
};
|
|
104
|
-
return u > 0 && setTimeout(
|
|
116
|
+
return u > 0 && setTimeout(S, u * 1e3), S;
|
|
105
117
|
}
|
|
106
|
-
static loading(e) {
|
|
107
|
-
return
|
|
118
|
+
static loading(e, t) {
|
|
119
|
+
return l.show(e, "loading", 0, t);
|
|
108
120
|
}
|
|
109
|
-
static success(e, t) {
|
|
110
|
-
return
|
|
121
|
+
static success(e, t, n) {
|
|
122
|
+
return l.show(e, "success", t, n);
|
|
111
123
|
}
|
|
112
|
-
static error(e, t) {
|
|
113
|
-
return
|
|
124
|
+
static error(e, t, n) {
|
|
125
|
+
return l.show(e, "error", t, n);
|
|
114
126
|
}
|
|
115
|
-
static info(e, t) {
|
|
116
|
-
return
|
|
127
|
+
static info(e, t, n) {
|
|
128
|
+
return l.show(e, "info", t, n);
|
|
117
129
|
}
|
|
118
|
-
static warning(e, t) {
|
|
119
|
-
return
|
|
130
|
+
static warning(e, t, n) {
|
|
131
|
+
return l.show(e, "warning", t, n);
|
|
120
132
|
}
|
|
121
133
|
};
|
|
122
134
|
//#endregion
|
|
123
|
-
export {
|
|
135
|
+
export { l as default };
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import { nextZIndex as e } from "../../hooks/useZIndex.js";
|
|
2
|
-
import t from "
|
|
3
|
-
import
|
|
2
|
+
import { createContainerContext as t } from "../../hooks/useContainer.js";
|
|
3
|
+
import n from "./EMessageBox.vue.js";
|
|
4
|
+
import { createApp as r, reactive as i } from "vue";
|
|
4
5
|
//#region src/components/feedback/EMessageBox/EMessageBox.ts
|
|
5
|
-
var
|
|
6
|
-
static show(
|
|
7
|
-
return new Promise((
|
|
8
|
-
let
|
|
9
|
-
|
|
10
|
-
let
|
|
11
|
-
if (!
|
|
12
|
-
let e =
|
|
6
|
+
var a = class a {
|
|
7
|
+
static show(a, o, s) {
|
|
8
|
+
return new Promise((c) => {
|
|
9
|
+
let l = t(s?.mountPoint), u = l.container.dataset.eContainerPositioned === "true", d = document.createElement("div");
|
|
10
|
+
d.dataset.eMessageBoxMask = "true", d.style.display = "grid", d.style.placeItems = "center", d.style.backgroundColor = "var(--e-message-box-mask-background-color)", d.style.backdropFilter = "blur(5px)", d.style.zIndex = String(e()), d.style.opacity = "0", l.cover(d);
|
|
11
|
+
let f = document.activeElement, p = f instanceof HTMLElement && f !== document.body && f !== document.documentElement ? f : null, m = s?.animationReferenceElement ?? p, h = () => {
|
|
12
|
+
if (!m) return "translate(0,0) scale(0)";
|
|
13
|
+
let e = m.getBoundingClientRect(), t = d.querySelector(".e-message-box");
|
|
13
14
|
if (!t) return "translate(0,0) scale(0)";
|
|
14
15
|
let n = t.getBoundingClientRect(), r = e.width / n.width, i = e.height / n.height;
|
|
15
16
|
return `translate(${e.left + e.width / 2 - (n.left + n.width / 2)}px,${e.top + e.height / 2 - (n.top + n.height / 2)}px) scale(${r},${i})`;
|
|
16
|
-
},
|
|
17
|
-
let n =
|
|
17
|
+
}, g = (e, t) => {
|
|
18
|
+
let n = d.querySelector(".e-message-box");
|
|
18
19
|
if (!n) {
|
|
19
20
|
t?.();
|
|
20
21
|
return;
|
|
21
22
|
}
|
|
22
23
|
if (e === "enter") {
|
|
23
|
-
let e =
|
|
24
|
+
let e = h();
|
|
24
25
|
n.style.transformOrigin = "center center", n.style.transform = e, requestAnimationFrame(() => {
|
|
25
26
|
let t = n.animate([
|
|
26
27
|
{
|
|
@@ -48,7 +49,7 @@ var r = (e) => e ? "$el" in e ? e.$el : e : null, i = class i {
|
|
|
48
49
|
} else {
|
|
49
50
|
let e = window.getComputedStyle(n).transform;
|
|
50
51
|
n.style.transformOrigin = "center center";
|
|
51
|
-
let r =
|
|
52
|
+
let r = m && m.isConnected ? h() : "translate(0,0) scale(0)", i = n.animate([
|
|
52
53
|
{
|
|
53
54
|
opacity: 1,
|
|
54
55
|
transform: e,
|
|
@@ -69,66 +70,84 @@ var r = (e) => e ? "$el" in e ? e.$el : e : null, i = class i {
|
|
|
69
70
|
], { duration: 300 });
|
|
70
71
|
t && (i.onfinish = t);
|
|
71
72
|
}
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
}, _ = l.observe(() => l.cover(d)), v = i({ confirmButtonLoading: !1 }), y = !1, b = (e) => {
|
|
74
|
+
if (y) return;
|
|
75
|
+
y = !0;
|
|
76
|
+
let t = getComputedStyle(d).opacity || "1";
|
|
77
|
+
Promise.all([new Promise((e) => g("leave", () => e())), new Promise((e) => {
|
|
78
|
+
d.animate([{ opacity: t }, { opacity: 0 }], {
|
|
79
|
+
duration: 300,
|
|
80
|
+
easing: "linear"
|
|
81
|
+
}).onfinish = () => e();
|
|
82
|
+
})]).then(() => {
|
|
83
|
+
_(), d.remove(), u && l.container.querySelectorAll("[data-e-message-box-mask]").length === 0 && (l.container.style.position = "", delete l.container.dataset.eContainerPositioned), c(e);
|
|
75
84
|
});
|
|
85
|
+
}, x = (e, t) => {
|
|
86
|
+
s?.beforeClose ? s.beforeClose(e, v, () => b(t)) : b(t);
|
|
76
87
|
};
|
|
77
|
-
n
|
|
78
|
-
title:
|
|
79
|
-
message:
|
|
80
|
-
type:
|
|
81
|
-
width:
|
|
82
|
-
okText:
|
|
83
|
-
cancelText:
|
|
88
|
+
r(n, {
|
|
89
|
+
title: s?.title,
|
|
90
|
+
message: a,
|
|
91
|
+
type: o,
|
|
92
|
+
width: s?.width,
|
|
93
|
+
okText: s?.okText,
|
|
94
|
+
cancelText: s?.cancelText,
|
|
95
|
+
instance: v,
|
|
84
96
|
onOk: (e) => {
|
|
85
|
-
|
|
97
|
+
x("confirm", o !== "prompt" || e);
|
|
86
98
|
},
|
|
87
99
|
onClose: () => {
|
|
88
|
-
|
|
100
|
+
x("close", !1);
|
|
89
101
|
},
|
|
90
102
|
onCancel: () => {
|
|
91
|
-
|
|
103
|
+
x("cancel", !1);
|
|
92
104
|
}
|
|
93
|
-
}).mount(
|
|
105
|
+
}).mount(d), l.container.appendChild(d), requestAnimationFrame(() => {
|
|
106
|
+
d.animate([{ opacity: 0 }, { opacity: 1 }], {
|
|
107
|
+
duration: 300,
|
|
108
|
+
easing: "linear"
|
|
109
|
+
}).onfinish = () => {
|
|
110
|
+
d.style.opacity = "";
|
|
111
|
+
};
|
|
112
|
+
}), g("enter");
|
|
94
113
|
});
|
|
95
114
|
}
|
|
96
115
|
static confirm(e, t, n) {
|
|
97
|
-
return
|
|
116
|
+
return a.show(e, "confirm", {
|
|
98
117
|
title: t,
|
|
99
118
|
...n
|
|
100
119
|
});
|
|
101
120
|
}
|
|
102
121
|
static prompt(e, t, n) {
|
|
103
|
-
return
|
|
122
|
+
return a.show(e, "prompt", {
|
|
104
123
|
title: t,
|
|
105
124
|
...n
|
|
106
125
|
});
|
|
107
126
|
}
|
|
108
127
|
static warning(e, t, n) {
|
|
109
|
-
return
|
|
128
|
+
return a.show(e, "warning", {
|
|
110
129
|
title: t,
|
|
111
130
|
...n
|
|
112
131
|
});
|
|
113
132
|
}
|
|
114
133
|
static success(e, t, n) {
|
|
115
|
-
return
|
|
134
|
+
return a.show(e, "success", {
|
|
116
135
|
title: t,
|
|
117
136
|
...n
|
|
118
137
|
});
|
|
119
138
|
}
|
|
120
139
|
static error(e, t, n) {
|
|
121
|
-
return
|
|
140
|
+
return a.show(e, "error", {
|
|
122
141
|
title: t,
|
|
123
142
|
...n
|
|
124
143
|
});
|
|
125
144
|
}
|
|
126
145
|
static info(e, t, n) {
|
|
127
|
-
return
|
|
146
|
+
return a.show(e, "info", {
|
|
128
147
|
title: t,
|
|
129
148
|
...n
|
|
130
149
|
});
|
|
131
150
|
}
|
|
132
151
|
};
|
|
133
152
|
//#endregion
|
|
134
|
-
export {
|
|
153
|
+
export { a as default };
|
|
@@ -2,6 +2,6 @@ import e from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
|
2
2
|
import t from "./EMessageBox.vue_vue_type_script_setup_true_lang.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
//#region src/components/feedback/EMessageBox/EMessageBox.vue
|
|
5
|
-
var n = e(t, [["__scopeId", "data-v-
|
|
5
|
+
var n = e(t, [["__scopeId", "data-v-3278b5ff"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { n as default };
|
package/dist/src/components/feedback/EMessageBox/EMessageBox.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import e from "../../form/EInput/EInput.vue.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Fragment as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, defineComponent as s, isVNode as c, normalizeClass as l, normalizeStyle as u, openBlock as d, ref as f, toDisplayString as p, unref as m, vShow as h, withDirectives as g } from "vue";
|
|
3
3
|
//#region src/components/feedback/EMessageBox/EMessageBox.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var
|
|
4
|
+
var _ = { class: "e-message-box__header" }, v = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "e-message-box__title"
|
|
7
|
-
},
|
|
7
|
+
}, y = { class: "e-message-box__content" }, b = { class: "e-message-box__message" }, x = { class: "e-message-box__footer" }, S = ["disabled"], C = { class: "e-message-box__spinner" }, w = s({
|
|
8
8
|
__name: "EMessageBox",
|
|
9
9
|
props: {
|
|
10
10
|
type: {},
|
|
@@ -12,58 +12,63 @@ var f = { class: "e-message-box__header" }, p = {
|
|
|
12
12
|
message: {},
|
|
13
13
|
width: {},
|
|
14
14
|
okText: { default: "确定" },
|
|
15
|
-
cancelText: { default: "取消" }
|
|
15
|
+
cancelText: { default: "取消" },
|
|
16
|
+
instance: {}
|
|
16
17
|
},
|
|
17
18
|
emits: [
|
|
18
19
|
"ok",
|
|
19
20
|
"close",
|
|
20
21
|
"cancel"
|
|
21
22
|
],
|
|
22
|
-
setup(
|
|
23
|
-
let
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
},
|
|
23
|
+
setup(s, { emit: w }) {
|
|
24
|
+
let T = (e) => e.vnode, E = w, D = f(""), O = () => {
|
|
25
|
+
E("close");
|
|
26
|
+
}, k = () => {
|
|
27
|
+
E("cancel");
|
|
28
|
+
}, A = {
|
|
28
29
|
success: "icon-chenggong",
|
|
29
30
|
warning: "icon-jinggao",
|
|
30
31
|
danger: "icon-guanbi",
|
|
31
32
|
info: "icon-info",
|
|
32
33
|
error: "icon-guanbi"
|
|
33
|
-
},
|
|
34
|
+
}, j = [
|
|
34
35
|
"success",
|
|
35
36
|
"warning",
|
|
36
37
|
"danger",
|
|
37
38
|
"info",
|
|
38
39
|
"error"
|
|
39
|
-
].includes(
|
|
40
|
-
return (
|
|
40
|
+
].includes(s.type);
|
|
41
|
+
return (f, w) => (d(), i("div", {
|
|
41
42
|
class: "e-message-box",
|
|
42
|
-
style:
|
|
43
|
+
style: u({ width: s.width || void 0 })
|
|
43
44
|
}, [
|
|
44
|
-
|
|
45
|
+
a("div", _, [s.title ? (d(), i("div", v, p(s.title), 1)) : r("", !0), a("span", {
|
|
45
46
|
class: "iconfont icon-guanbi_o e-message-box__close",
|
|
46
|
-
onClick:
|
|
47
|
+
onClick: O
|
|
47
48
|
})]),
|
|
48
|
-
|
|
49
|
+
a("div", y, [m(j) ? (d(), i("span", {
|
|
49
50
|
key: 0,
|
|
50
|
-
class:
|
|
51
|
-
}, null, 2)) :
|
|
52
|
-
|
|
51
|
+
class: l(["iconfont e-message-box__icon", [A[s.type], `e-message-box__icon--${s.type}`]])
|
|
52
|
+
}, null, 2)) : r("", !0), a("div", b, [c(s.message) ? (d(), n(T, {
|
|
53
|
+
key: 0,
|
|
54
|
+
vnode: s.message
|
|
55
|
+
}, null, 8, ["vnode"])) : (d(), i(t, { key: 1 }, [o(p(s.message), 1)], 64))])]),
|
|
56
|
+
s.type === "prompt" ? (d(), n(e, {
|
|
53
57
|
key: 0,
|
|
54
58
|
type: "text",
|
|
55
|
-
modelValue:
|
|
56
|
-
"onUpdate:modelValue":
|
|
57
|
-
}, null, 8, ["modelValue"])) :
|
|
58
|
-
|
|
59
|
+
modelValue: D.value,
|
|
60
|
+
"onUpdate:modelValue": w[0] ||= (e) => D.value = e
|
|
61
|
+
}, null, 8, ["modelValue"])) : r("", !0),
|
|
62
|
+
a("div", x, [a("button", {
|
|
59
63
|
class: "e-message-box__btn e-message-box__btn--cancel",
|
|
60
|
-
onClick:
|
|
61
|
-
},
|
|
64
|
+
onClick: k
|
|
65
|
+
}, p(s.cancelText), 1), a("button", {
|
|
62
66
|
class: "e-message-box__btn e-message-box__btn--ok",
|
|
63
|
-
|
|
64
|
-
|
|
67
|
+
disabled: !!s.instance?.confirmButtonLoading,
|
|
68
|
+
onClick: w[1] ||= (e) => E("ok", D.value)
|
|
69
|
+
}, [g(a("span", C, null, 512), [[h, s.instance?.confirmButtonLoading]]), o(" " + p(s.okText), 1)], 8, S)])
|
|
65
70
|
], 4));
|
|
66
71
|
}
|
|
67
72
|
});
|
|
68
73
|
//#endregion
|
|
69
|
-
export {
|
|
74
|
+
export { w as default };
|