rappel-ui 1.0.29 → 1.0.30
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/cjs/components/button/src/constants.d.ts +1 -1
- package/cjs/components/button/src/constants.js +1 -1
- package/cjs/components/message/src/create-message.js +1 -1
- package/cjs/components/message/src/message.vue.d.ts +5 -3
- package/cjs/components/message/src/message.vue_vue_type_script_setup_true_lang.js +6 -6
- package/cjs/components/message/src/types.d.ts +5 -2
- package/cjs/components/popconfirm/index.d.ts +6 -6
- package/cjs/components/popconfirm/src/popconfirm.vue.d.ts +6 -6
- package/cjs/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/svg-icon/src/types.d.ts +1 -0
- package/cjs/index.d.ts +239 -71
- package/cjs/index.js +1 -1
- package/cjs/svg-icons/create-icon.d.ts +2 -2
- package/cjs/svg-icons/create-icon.js +1 -1
- package/cjs/svg-icons/get-async-icon.d.ts +3 -0
- package/cjs/svg-icons/get-async-icon.js +1 -0
- package/cjs/svg-icons/icon-names.d.ts +1 -1
- package/cjs/svg-icons/icon-names.js +1 -1
- package/cjs/svg-icons/index.d.ts +5 -3
- package/cjs/svg-icons/index.js +1 -1
- package/cjs/svg-icons/src/arrow-backward.d.ts +2 -2
- package/cjs/svg-icons/src/arrow-down.d.ts +2 -2
- package/cjs/svg-icons/src/arrow-downward.d.ts +2 -2
- package/cjs/svg-icons/src/arrow-forward.d.ts +2 -2
- package/cjs/svg-icons/src/arrow-left.d.ts +2 -2
- package/cjs/svg-icons/src/arrow-right.d.ts +2 -2
- package/cjs/svg-icons/src/arrow-up.d.ts +2 -2
- package/cjs/svg-icons/src/arrow-upward.d.ts +2 -2
- package/cjs/svg-icons/src/check-circle.d.ts +2 -2
- package/cjs/svg-icons/src/check-fill.d.ts +43 -0
- package/cjs/svg-icons/src/check-fill.js +1 -0
- package/cjs/svg-icons/src/check.d.ts +2 -2
- package/cjs/svg-icons/src/close-circle.d.ts +2 -2
- package/cjs/svg-icons/src/close-fill.d.ts +43 -0
- package/cjs/svg-icons/src/close-fill.js +1 -0
- package/cjs/svg-icons/src/close-short.d.ts +2 -2
- package/cjs/svg-icons/src/close-short.js +1 -1
- package/cjs/svg-icons/src/close.d.ts +2 -2
- package/cjs/svg-icons/src/copy-closure.d.ts +2 -2
- package/cjs/svg-icons/src/copy.d.ts +2 -2
- package/cjs/svg-icons/src/delete.d.ts +2 -2
- package/cjs/svg-icons/src/exclam-fill.d.ts +43 -0
- package/cjs/svg-icons/src/exclam-fill.js +1 -0
- package/cjs/svg-icons/src/exclam.d.ts +2 -2
- package/cjs/svg-icons/src/help.d.ts +2 -2
- package/cjs/svg-icons/src/info-circle.d.ts +2 -2
- package/cjs/svg-icons/src/info-circle.js +1 -1
- package/cjs/svg-icons/src/info-fill.d.ts +43 -0
- package/cjs/svg-icons/src/info-fill.js +1 -0
- package/cjs/svg-icons/src/loading.d.ts +2 -2
- package/cjs/svg-icons/src/more-dot-circle-horizontal.d.ts +2 -2
- package/cjs/svg-icons/src/more-dot-circle-outline-horizontal.d.ts +2 -2
- package/cjs/svg-icons/src/more-dot-circle-outline-vertical.d.ts +2 -2
- package/cjs/svg-icons/src/more-dot-circle.d.ts +2 -2
- package/cjs/svg-icons/src/more-dot-square-horizontal.d.ts +2 -2
- package/cjs/svg-icons/src/more-dot-square.d.ts +2 -2
- package/cjs/svg-icons/src/more-line.d.ts +2 -2
- package/cjs/svg-icons/src/search-bold.d.ts +2 -2
- package/cjs/svg-icons/src/search.d.ts +2 -2
- package/cjs/svg-icons/src/star-fill.d.ts +2 -2
- package/cjs/svg-icons/src/star-fill.js +1 -1
- package/cjs/svg-icons/src/star.d.ts +2 -2
- package/cjs/svg-icons/types.d.ts +2 -0
- package/cjs/utils/util.d.ts +3 -3
- package/es/components/button/src/constants.d.ts +1 -1
- package/es/components/button/src/constants.mjs +1 -0
- package/es/components/message/src/create-message.mjs +16 -15
- package/es/components/message/src/message.vue.d.ts +5 -3
- package/es/components/message/src/message.vue_vue_type_script_setup_true_lang.mjs +145 -102
- package/es/components/message/src/types.d.ts +5 -2
- package/es/components/popconfirm/index.d.ts +6 -6
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +6 -6
- package/es/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.mjs +6 -3
- package/es/components/svg-icon/src/types.d.ts +1 -0
- package/es/index.d.ts +239 -71
- package/es/index.mjs +40 -35
- package/es/svg-icons/create-icon.d.ts +2 -2
- package/es/svg-icons/create-icon.mjs +3 -2
- package/es/svg-icons/get-async-icon.d.ts +3 -0
- package/es/svg-icons/get-async-icon.mjs +50 -0
- package/es/svg-icons/icon-names.d.ts +1 -1
- package/es/svg-icons/icon-names.mjs +1 -1
- package/es/svg-icons/index.d.ts +5 -3
- package/es/svg-icons/index.mjs +77 -109
- package/es/svg-icons/src/arrow-backward.d.ts +2 -2
- package/es/svg-icons/src/arrow-down.d.ts +2 -2
- package/es/svg-icons/src/arrow-downward.d.ts +2 -2
- package/es/svg-icons/src/arrow-forward.d.ts +2 -2
- package/es/svg-icons/src/arrow-left.d.ts +2 -2
- package/es/svg-icons/src/arrow-right.d.ts +2 -2
- package/es/svg-icons/src/arrow-up.d.ts +2 -2
- package/es/svg-icons/src/arrow-upward.d.ts +2 -2
- package/es/svg-icons/src/check-circle.d.ts +2 -2
- package/es/svg-icons/src/check-fill.d.ts +43 -0
- package/es/svg-icons/src/check-fill.mjs +8 -0
- package/es/svg-icons/src/check.d.ts +2 -2
- package/es/svg-icons/src/close-circle.d.ts +2 -2
- package/es/svg-icons/src/close-fill.d.ts +43 -0
- package/es/svg-icons/src/close-fill.mjs +9 -0
- package/es/svg-icons/src/close-short.d.ts +2 -2
- package/es/svg-icons/src/close-short.mjs +1 -1
- package/es/svg-icons/src/close.d.ts +2 -2
- package/es/svg-icons/src/copy-closure.d.ts +2 -2
- package/es/svg-icons/src/copy.d.ts +2 -2
- package/es/svg-icons/src/delete.d.ts +2 -2
- package/es/svg-icons/src/exclam-fill.d.ts +43 -0
- package/es/svg-icons/src/exclam-fill.mjs +9 -0
- package/es/svg-icons/src/exclam.d.ts +2 -2
- package/es/svg-icons/src/help.d.ts +2 -2
- package/es/svg-icons/src/info-circle.d.ts +2 -2
- package/es/svg-icons/src/info-circle.mjs +1 -1
- package/es/svg-icons/src/info-fill.d.ts +43 -0
- package/es/svg-icons/src/info-fill.mjs +9 -0
- package/es/svg-icons/src/loading.d.ts +2 -2
- package/es/svg-icons/src/more-dot-circle-horizontal.d.ts +2 -2
- package/es/svg-icons/src/more-dot-circle-outline-horizontal.d.ts +2 -2
- package/es/svg-icons/src/more-dot-circle-outline-vertical.d.ts +2 -2
- package/es/svg-icons/src/more-dot-circle.d.ts +2 -2
- package/es/svg-icons/src/more-dot-square-horizontal.d.ts +2 -2
- package/es/svg-icons/src/more-dot-square.d.ts +2 -2
- package/es/svg-icons/src/more-line.d.ts +2 -2
- package/es/svg-icons/src/search-bold.d.ts +2 -2
- package/es/svg-icons/src/search.d.ts +2 -2
- package/es/svg-icons/src/star-fill.d.ts +2 -2
- package/es/svg-icons/src/star-fill.mjs +1 -1
- package/es/svg-icons/src/star.d.ts +2 -2
- package/es/svg-icons/types.d.ts +2 -0
- package/es/utils/util.d.ts +3 -3
- package/package.json +2 -2
- package/theme-chalk/base.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/re-button.css +1 -1
- package/theme-chalk/re-message.css +1 -1
- package/theme-chalk/root-vars.css +1 -1
- package/theme-chalk/src/css-vars/_button.scss +1 -1
- package/theme-chalk/src/css-vars/_colors.scss +19 -16
- package/theme-chalk/src/css-vars/_message.scss +33 -26
- package/theme-chalk/src/message.scss +7 -5
- package/theme-chalk/src/mixins/_message.scss +30 -11
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
import { toPx as e } from "../../../utils/util.mjs";
|
|
2
2
|
import "../../../utils/index.mjs";
|
|
3
3
|
import { useNamespace as t } from "../../../composables/use-namespace/index.mjs";
|
|
4
|
-
import { useZIndex as
|
|
5
|
-
import { useTheme as
|
|
4
|
+
import { useZIndex as ee } from "../../../composables/use-z-index/index.mjs";
|
|
5
|
+
import { useTheme as te } from "../../../composables/use-theme/index.mjs";
|
|
6
6
|
import "../../../composables/index.mjs";
|
|
7
|
-
import { ReTransition as
|
|
8
|
-
import { verticalPlacement as
|
|
9
|
-
import { useMessageEmits as
|
|
10
|
-
import { Fragment as
|
|
11
|
-
import {
|
|
7
|
+
import { ReTransition as ne } from "../../transition/index.mjs";
|
|
8
|
+
import { verticalPlacement as n } from "./constants.mjs";
|
|
9
|
+
import { useMessageEmits as re } from "./use-message-emit.mjs";
|
|
10
|
+
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, defineComponent as c, isVNode as l, mergeModels as u, mergeProps as d, nextTick as f, normalizeClass as p, normalizeStyle as ie, onMounted as ae, onUnmounted as oe, openBlock as m, ref as h, renderSlot as g, resolveDynamicComponent as _, toDisplayString as se, unref as v, useModel as ce, useTemplateRef as y, watch as b, withCtx as le } from "vue";
|
|
11
|
+
import { useElementHover as ue } from "@vueuse/core";
|
|
12
|
+
import { CheckFill as x, CloseFill as S, CloseShort as C, ExclamFill as de, InfoFill as w } from "@rappel-ui/svg-icons";
|
|
12
13
|
//#region packages/components/message/src/message.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var
|
|
14
|
+
var fe = ["data-placement"], pe = ["innerHTML"], T = c({
|
|
14
15
|
name: "ReMessage",
|
|
15
16
|
__name: "message",
|
|
16
|
-
props:
|
|
17
|
-
content: {
|
|
17
|
+
props: u({
|
|
18
|
+
content: {
|
|
19
|
+
type: [
|
|
20
|
+
String,
|
|
21
|
+
Object,
|
|
22
|
+
Function
|
|
23
|
+
],
|
|
24
|
+
default: ""
|
|
25
|
+
},
|
|
18
26
|
isHtml: {
|
|
19
27
|
type: Boolean,
|
|
20
28
|
default: !1
|
|
@@ -26,7 +34,11 @@ var j = ["data-placement"], M = ["innerHTML"], N = f({
|
|
|
26
34
|
default: !1
|
|
27
35
|
},
|
|
28
36
|
type: { default: "" },
|
|
29
|
-
|
|
37
|
+
plain: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: !1
|
|
40
|
+
},
|
|
41
|
+
offset: { default: 16 },
|
|
30
42
|
zIndex: { default: () => void 0 },
|
|
31
43
|
width: { default: () => void 0 },
|
|
32
44
|
height: { default: () => void 0 },
|
|
@@ -34,12 +46,16 @@ var j = ["data-placement"], M = ["innerHTML"], N = f({
|
|
|
34
46
|
maxHeight: { default: () => void 0 },
|
|
35
47
|
floatingClass: { default: "" },
|
|
36
48
|
placement: { default: "top" },
|
|
37
|
-
closeIcon: { default: () =>
|
|
49
|
+
closeIcon: { default: () => C },
|
|
38
50
|
showClose: {
|
|
39
51
|
type: Boolean,
|
|
40
52
|
default: !1
|
|
41
53
|
},
|
|
42
|
-
|
|
54
|
+
autoClose: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: !0
|
|
57
|
+
},
|
|
58
|
+
icon: { default: () => void 0 },
|
|
43
59
|
showIcon: {
|
|
44
60
|
type: Boolean,
|
|
45
61
|
default: !0
|
|
@@ -69,7 +85,7 @@ var j = ["data-placement"], M = ["innerHTML"], N = f({
|
|
|
69
85
|
},
|
|
70
86
|
visibleModifiers: {}
|
|
71
87
|
}),
|
|
72
|
-
emits:
|
|
88
|
+
emits: u([
|
|
73
89
|
"iconUpdated",
|
|
74
90
|
"beforeEnter",
|
|
75
91
|
"enter",
|
|
@@ -80,36 +96,49 @@ var j = ["data-placement"], M = ["innerHTML"], N = f({
|
|
|
80
96
|
"leaveCancelled",
|
|
81
97
|
"afterLeave"
|
|
82
98
|
], ["update:visible"]),
|
|
83
|
-
setup(
|
|
84
|
-
let
|
|
99
|
+
setup(c, { expose: u, emit: C }) {
|
|
100
|
+
let T = C, E = i(() => {
|
|
101
|
+
if (l(c.content)) return c.content;
|
|
102
|
+
if (typeof c.content == "function") {
|
|
103
|
+
let e = c.content();
|
|
104
|
+
return l(e) ? e : String(e);
|
|
105
|
+
}
|
|
106
|
+
return !1;
|
|
107
|
+
}), { beforeEnter: D, enter: O, afterEnter: k, beforeLeave: A, leave: j, afterLeave: M } = re(T), N = y("floatingRef"), { ns: P, n: F, nm: I, is: L } = t("message"), { currentTheme: R } = te(c.theme, c.reverseTheme), z = i(() => {
|
|
85
108
|
var e;
|
|
86
|
-
return (e =
|
|
87
|
-
}),
|
|
109
|
+
return (e = c.placement) == null || (e = e.split("-")) == null ? void 0 : e[0];
|
|
110
|
+
}), B = i(() => {
|
|
88
111
|
var e;
|
|
89
|
-
return (e =
|
|
90
|
-
}),
|
|
91
|
-
|
|
92
|
-
|
|
112
|
+
return (e = c.placement) == null || (e = e.split("-")) == null ? void 0 : e[1];
|
|
113
|
+
}), V = i(() => c.icon || {
|
|
114
|
+
success: x,
|
|
115
|
+
warning: de,
|
|
116
|
+
error: S,
|
|
117
|
+
info: w,
|
|
118
|
+
primary: w
|
|
119
|
+
}[c.type] || w), H = h(c.offset);
|
|
120
|
+
b(() => c.offset, (e) => {
|
|
121
|
+
H.value = e;
|
|
93
122
|
});
|
|
94
|
-
let
|
|
95
|
-
|
|
96
|
-
},
|
|
97
|
-
width: e(
|
|
98
|
-
height: e(
|
|
99
|
-
maxWidth: e(
|
|
100
|
-
maxHeight: e(
|
|
101
|
-
zIndex:
|
|
102
|
-
[
|
|
123
|
+
let me = (e) => {
|
|
124
|
+
H.value = e;
|
|
125
|
+
}, he = i(() => [{
|
|
126
|
+
width: e(c.width),
|
|
127
|
+
height: e(c.height),
|
|
128
|
+
maxWidth: e(c.maxWidth),
|
|
129
|
+
maxHeight: e(c.maxHeight),
|
|
130
|
+
zIndex: W.value,
|
|
131
|
+
[n.includes(c.placement) ? B.value : z.value]: e(H.value),
|
|
103
132
|
position: "fixed",
|
|
104
|
-
transition: `opacity ${
|
|
105
|
-
transform ${
|
|
106
|
-
bottom ${
|
|
107
|
-
top ${
|
|
108
|
-
left ${
|
|
109
|
-
right ${
|
|
110
|
-
}]),
|
|
111
|
-
e && (
|
|
112
|
-
}),
|
|
133
|
+
transition: `opacity ${c.cssDuration / 2}ms,
|
|
134
|
+
transform ${c.cssDuration}ms,
|
|
135
|
+
bottom ${c.cssDuration}ms,
|
|
136
|
+
top ${c.cssDuration}ms,
|
|
137
|
+
left ${c.cssDuration}ms,
|
|
138
|
+
right ${c.cssDuration}ms`
|
|
139
|
+
}]), U = ce(c, "visible"), W = h(0), { zIndex: ge } = ee(), { stop: _e } = b(U, (e) => {
|
|
140
|
+
e && (W.value = c.zIndex || ge.value);
|
|
141
|
+
}), G = [
|
|
113
142
|
"top",
|
|
114
143
|
"bottom",
|
|
115
144
|
"left",
|
|
@@ -122,86 +151,100 @@ var j = ["data-placement"], M = ["innerHTML"], N = f({
|
|
|
122
151
|
leaveFrom: `${t}-leave-from`,
|
|
123
152
|
leaveActive: `${t}-leave-active`,
|
|
124
153
|
leaveTo: `${t}-leave-to`
|
|
125
|
-
}, e), {}),
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
154
|
+
}, e), {}), ve = () => {
|
|
155
|
+
Z();
|
|
156
|
+
}, K = ue(N), { stop: q } = b(K, (e) => e ? ye() : Q()), J, Y = 0, X = parseFloat(String(c.cssDuration)) + parseFloat(String(c.stayDuration)), Z = () => {
|
|
157
|
+
U.value = !1, clearTimeout(J), J = void 0;
|
|
158
|
+
}, Q = () => {
|
|
159
|
+
if (X <= 0) {
|
|
160
|
+
Z();
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
Y = Date.now(), J = setTimeout(Z, X);
|
|
164
|
+
}, ye = () => {
|
|
165
|
+
J && (clearTimeout(J), J = void 0, X -= Date.now() - Y);
|
|
166
|
+
}, $ = () => {
|
|
167
|
+
U.value = !1, f(() => {
|
|
168
|
+
if (U.value = !0, !c.autoClose) return q();
|
|
169
|
+
Q();
|
|
132
170
|
});
|
|
133
171
|
};
|
|
134
|
-
return
|
|
172
|
+
return ae(() => {
|
|
135
173
|
$();
|
|
136
|
-
}),
|
|
137
|
-
Z();
|
|
138
|
-
}),
|
|
174
|
+
}), oe(() => {
|
|
175
|
+
_e(), q(), Z(), K.value = !1;
|
|
176
|
+
}), u({
|
|
139
177
|
show: $,
|
|
140
|
-
setOffset:
|
|
141
|
-
close:
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}), (e, t) => (
|
|
145
|
-
teleported:
|
|
146
|
-
"append-to":
|
|
147
|
-
transition:
|
|
148
|
-
"css-duration":
|
|
149
|
-
"css-transition":
|
|
150
|
-
"enter-from-class":
|
|
151
|
-
"enter-active-class":
|
|
152
|
-
"enter-to-class":
|
|
153
|
-
"leave-from-class":
|
|
154
|
-
"leave-active-class":
|
|
155
|
-
"leave-to-class":
|
|
178
|
+
setOffset: me,
|
|
179
|
+
close: ve,
|
|
180
|
+
isHovered: K,
|
|
181
|
+
zIndex: W.value
|
|
182
|
+
}), (e, t) => (m(), a(v(ne), d({
|
|
183
|
+
teleported: c.teleported,
|
|
184
|
+
"append-to": c.appendTo,
|
|
185
|
+
transition: c.transition,
|
|
186
|
+
"css-duration": c.cssDuration,
|
|
187
|
+
"css-transition": c.cssTransition,
|
|
188
|
+
"enter-from-class": v(G)[z.value].enterFrom,
|
|
189
|
+
"enter-active-class": v(G)[z.value].enterActive,
|
|
190
|
+
"enter-to-class": v(G)[z.value].enterTo,
|
|
191
|
+
"leave-from-class": v(G)[z.value].leaveFrom,
|
|
192
|
+
"leave-active-class": v(G)[z.value].leaveActive,
|
|
193
|
+
"leave-to-class": v(G)[z.value].leaveTo
|
|
156
194
|
}, e.$attrs, {
|
|
157
|
-
onBeforeEnter:
|
|
158
|
-
onEnter:
|
|
159
|
-
onAfterEnter:
|
|
160
|
-
onBeforeLeave:
|
|
161
|
-
onLeave:
|
|
162
|
-
onAfterLeave:
|
|
195
|
+
onBeforeEnter: v(D),
|
|
196
|
+
onEnter: v(O),
|
|
197
|
+
onAfterEnter: v(k),
|
|
198
|
+
onBeforeLeave: v(A),
|
|
199
|
+
onLeave: v(j),
|
|
200
|
+
onAfterLeave: v(M)
|
|
163
201
|
}), {
|
|
164
|
-
default:
|
|
202
|
+
default: le(() => [U.value ? (m(), s("div", {
|
|
165
203
|
key: 0,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
204
|
+
ref_key: "floatingRef",
|
|
205
|
+
ref: N,
|
|
206
|
+
style: ie(he.value),
|
|
207
|
+
"data-placement": c.placement,
|
|
208
|
+
class: p([
|
|
209
|
+
v(F)(),
|
|
210
|
+
v(I)(c.type),
|
|
211
|
+
v(L)(v(R), !!v(R)),
|
|
212
|
+
v(L)("plain", !!c.plain),
|
|
213
|
+
c.floatingClass
|
|
174
214
|
])
|
|
175
215
|
}, [
|
|
176
|
-
|
|
216
|
+
g(e.$slots, "icon", {}, () => [c.showIcon ? (m(), s(r, { key: 0 }, [typeof V.value == "string" ? (m(), s("i", {
|
|
177
217
|
key: 0,
|
|
178
|
-
class:
|
|
218
|
+
class: p([v(P)("icon"), V.value]),
|
|
179
219
|
"aria-hidden": "true"
|
|
180
|
-
}, null, 2)) : (
|
|
220
|
+
}, null, 2)) : (m(), a(_(V.value), {
|
|
181
221
|
key: 1,
|
|
182
|
-
class:
|
|
222
|
+
class: p([v(P)("icon")]),
|
|
183
223
|
"aria-hidden": "true"
|
|
184
|
-
}, null, 8, ["class"]))], 64)) :
|
|
185
|
-
|
|
224
|
+
}, null, 8, ["class"]))], 64)) : o("", !0)]),
|
|
225
|
+
c.isHtml && typeof c.content == "string" ? (m(), s("span", {
|
|
186
226
|
key: 0,
|
|
187
|
-
class:
|
|
188
|
-
innerHTML:
|
|
189
|
-
}, null, 10,
|
|
227
|
+
class: p([v(P)("content")]),
|
|
228
|
+
innerHTML: c.content
|
|
229
|
+
}, null, 10, pe)) : E.value ? (m(), a(_(E.value), {
|
|
190
230
|
key: 1,
|
|
191
|
-
class:
|
|
192
|
-
},
|
|
193
|
-
|
|
231
|
+
class: p([v(P)("content")])
|
|
232
|
+
}, null, 8, ["class"])) : (m(), s("span", {
|
|
233
|
+
key: 2,
|
|
234
|
+
class: p([v(P)("content")])
|
|
235
|
+
}, se(c.content), 3)),
|
|
236
|
+
g(e.$slots, "close", {}, () => [c.showClose ? (m(), s(r, { key: 0 }, [typeof c.closeIcon == "string" ? (m(), s("i", {
|
|
194
237
|
key: 0,
|
|
195
|
-
class:
|
|
238
|
+
class: p([v(P)("close"), c.closeIcon]),
|
|
196
239
|
"aria-hidden": "true",
|
|
197
|
-
onClick: t[0] || (t[0] = (e) =>
|
|
198
|
-
}, null, 2)) : (
|
|
240
|
+
onClick: t[0] || (t[0] = (e) => U.value = !1)
|
|
241
|
+
}, null, 2)) : (m(), a(_(c.closeIcon), {
|
|
199
242
|
key: 1,
|
|
200
|
-
class:
|
|
243
|
+
class: p([v(P)("close")]),
|
|
201
244
|
"aria-hidden": "true",
|
|
202
|
-
onClick: t[1] || (t[1] = (e) =>
|
|
203
|
-
}, null, 8, ["class"]))], 64)) :
|
|
204
|
-
], 14,
|
|
245
|
+
onClick: t[1] || (t[1] = (e) => U.value = !1)
|
|
246
|
+
}, null, 8, ["class"]))], 64)) : o("", !0)])
|
|
247
|
+
], 14, fe)) : o("", !0)]),
|
|
205
248
|
_: 3
|
|
206
249
|
}, 16, [
|
|
207
250
|
"teleported",
|
|
@@ -225,4 +268,4 @@ var j = ["data-placement"], M = ["innerHTML"], N = f({
|
|
|
225
268
|
}
|
|
226
269
|
});
|
|
227
270
|
//#endregion
|
|
228
|
-
export {
|
|
271
|
+
export { T as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createVNode, Component } from 'vue';
|
|
1
|
+
import { createVNode, Component, VNode } from 'vue';
|
|
2
2
|
import { TransitionEmits, TransitionProps } from '../../transition';
|
|
3
3
|
import { Placement } from '../../tooltip';
|
|
4
4
|
import { Theme, MaybeClass } from '../../../types';
|
|
@@ -12,12 +12,13 @@ export type CreateMessageType = CreateMessageFn & MessageShortcuts & {
|
|
|
12
12
|
closeAll: () => void;
|
|
13
13
|
};
|
|
14
14
|
export interface MessageOptions extends TransitionProps {
|
|
15
|
-
content?: string | HTMLElement;
|
|
15
|
+
content?: string | HTMLElement | VNode | (() => VNode);
|
|
16
16
|
isHtml?: boolean;
|
|
17
17
|
stayDuration?: number;
|
|
18
18
|
theme?: Theme;
|
|
19
19
|
reverseTheme?: boolean;
|
|
20
20
|
type?: (typeof messageTypes)[number];
|
|
21
|
+
plain?: boolean;
|
|
21
22
|
offset?: number | string;
|
|
22
23
|
zIndex?: number;
|
|
23
24
|
width?: number | string;
|
|
@@ -28,6 +29,7 @@ export interface MessageOptions extends TransitionProps {
|
|
|
28
29
|
placement?: MessagePlacement;
|
|
29
30
|
closeIcon?: string | Component;
|
|
30
31
|
showClose?: boolean;
|
|
32
|
+
autoClose?: boolean;
|
|
31
33
|
icon?: string | Component;
|
|
32
34
|
showIcon?: boolean;
|
|
33
35
|
onClose?: (el: HTMLElement) => void;
|
|
@@ -42,6 +44,7 @@ export interface MessageInstance {
|
|
|
42
44
|
vnode: ReturnType<typeof createVNode>;
|
|
43
45
|
props: MessageOptions;
|
|
44
46
|
placement?: MessagePlacement;
|
|
47
|
+
actualOffset: number;
|
|
45
48
|
close: () => void;
|
|
46
49
|
show: () => void;
|
|
47
50
|
}
|
|
@@ -94,12 +94,12 @@ export declare const RePopconfirm: {
|
|
|
94
94
|
}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
95
95
|
$slots: {
|
|
96
96
|
header?: (props: {
|
|
97
|
-
icon: string | Component | undefined;
|
|
97
|
+
icon: string | Component | null | undefined;
|
|
98
98
|
title: string;
|
|
99
99
|
}) => any;
|
|
100
100
|
} & {
|
|
101
101
|
icon?: (props: {
|
|
102
|
-
icon: string | Component | undefined;
|
|
102
|
+
icon: string | Component | null | undefined;
|
|
103
103
|
}) => any;
|
|
104
104
|
} & {
|
|
105
105
|
title?: (props: {
|
|
@@ -113,18 +113,18 @@ export declare const RePopconfirm: {
|
|
|
113
113
|
footer?: (props: {
|
|
114
114
|
cancel: (e: MouseEvent) => void;
|
|
115
115
|
cancelSize: "" | "small" | "mini" | "large";
|
|
116
|
-
cancelType: "" | "primary" | "success" | "warning" | "danger" | "info";
|
|
116
|
+
cancelType: "" | "primary" | "success" | "warning" | "danger" | "error" | "info";
|
|
117
117
|
cancelText: string;
|
|
118
118
|
confirm: (e: MouseEvent) => void;
|
|
119
119
|
confirmSize: "" | "small" | "mini" | "large";
|
|
120
|
-
confirmType: "" | "primary" | "success" | "warning" | "danger" | "info";
|
|
120
|
+
confirmType: "" | "primary" | "success" | "warning" | "danger" | "error" | "info";
|
|
121
121
|
confirmText: string;
|
|
122
122
|
}) => any;
|
|
123
123
|
} & {
|
|
124
124
|
cancel?: (props: {
|
|
125
125
|
cancel: (e: MouseEvent) => void;
|
|
126
126
|
cancelSize: "" | "small" | "mini" | "large";
|
|
127
|
-
cancelType: "" | "primary" | "success" | "warning" | "danger" | "info";
|
|
127
|
+
cancelType: "" | "primary" | "success" | "warning" | "danger" | "error" | "info";
|
|
128
128
|
cancelText: string;
|
|
129
129
|
}) => any;
|
|
130
130
|
} & {
|
|
@@ -136,7 +136,7 @@ export declare const RePopconfirm: {
|
|
|
136
136
|
confirm?: (props: {
|
|
137
137
|
confirm: (e: MouseEvent) => void;
|
|
138
138
|
confirmSize: "" | "small" | "mini" | "large";
|
|
139
|
-
confirmType: "" | "primary" | "success" | "warning" | "danger" | "info";
|
|
139
|
+
confirmType: "" | "primary" | "success" | "warning" | "danger" | "error" | "info";
|
|
140
140
|
confirmText: string;
|
|
141
141
|
}) => any;
|
|
142
142
|
};
|
|
@@ -6,10 +6,10 @@ type __VLS_ModelProps = {
|
|
|
6
6
|
};
|
|
7
7
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
8
|
declare var __VLS_24: {
|
|
9
|
-
icon: string | Component | undefined;
|
|
9
|
+
icon: string | Component | null | undefined;
|
|
10
10
|
title: string;
|
|
11
11
|
}, __VLS_26: {
|
|
12
|
-
icon: string | Component | undefined;
|
|
12
|
+
icon: string | Component | null | undefined;
|
|
13
13
|
}, __VLS_33: {
|
|
14
14
|
title: string;
|
|
15
15
|
}, __VLS_35: {
|
|
@@ -17,16 +17,16 @@ declare var __VLS_24: {
|
|
|
17
17
|
}, __VLS_37: {
|
|
18
18
|
cancel: (e: MouseEvent) => void;
|
|
19
19
|
cancelSize: "" | "small" | "mini" | "large";
|
|
20
|
-
cancelType: "" | "primary" | "success" | "warning" | "danger" | "info";
|
|
20
|
+
cancelType: "" | "primary" | "success" | "warning" | "danger" | "error" | "info";
|
|
21
21
|
cancelText: string;
|
|
22
22
|
confirm: (e: MouseEvent) => void;
|
|
23
23
|
confirmSize: "" | "small" | "mini" | "large";
|
|
24
|
-
confirmType: "" | "primary" | "success" | "warning" | "danger" | "info";
|
|
24
|
+
confirmType: "" | "primary" | "success" | "warning" | "danger" | "error" | "info";
|
|
25
25
|
confirmText: string;
|
|
26
26
|
}, __VLS_39: {
|
|
27
27
|
cancel: (e: MouseEvent) => void;
|
|
28
28
|
cancelSize: "" | "small" | "mini" | "large";
|
|
29
|
-
cancelType: "" | "primary" | "success" | "warning" | "danger" | "info";
|
|
29
|
+
cancelType: "" | "primary" | "success" | "warning" | "danger" | "error" | "info";
|
|
30
30
|
cancelText: string;
|
|
31
31
|
}, __VLS_49: {
|
|
32
32
|
cancel: (e: MouseEvent) => void;
|
|
@@ -34,7 +34,7 @@ declare var __VLS_24: {
|
|
|
34
34
|
}, __VLS_51: {
|
|
35
35
|
confirm: (e: MouseEvent) => void;
|
|
36
36
|
confirmSize: "" | "small" | "mini" | "large";
|
|
37
|
-
confirmType: "" | "primary" | "success" | "warning" | "danger" | "info";
|
|
37
|
+
confirmType: "" | "primary" | "success" | "warning" | "danger" | "error" | "info";
|
|
38
38
|
confirmText: string;
|
|
39
39
|
};
|
|
40
40
|
type __VLS_Slots = {} & {
|
|
@@ -11,7 +11,8 @@ var l = [
|
|
|
11
11
|
], u = [
|
|
12
12
|
"d",
|
|
13
13
|
"name",
|
|
14
|
-
"fill"
|
|
14
|
+
"fill",
|
|
15
|
+
"fill-rule"
|
|
15
16
|
], d = a({
|
|
16
17
|
name: "ReSvgIcon",
|
|
17
18
|
__name: "svg-icon",
|
|
@@ -20,6 +21,7 @@ var l = [
|
|
|
20
21
|
path: { default: "" },
|
|
21
22
|
size: { default: 16 },
|
|
22
23
|
fill: { default: () => void 0 },
|
|
24
|
+
fillRule: { default: () => void 0 },
|
|
23
25
|
color: { default: "currentColor" },
|
|
24
26
|
spin: {
|
|
25
27
|
type: Boolean,
|
|
@@ -37,13 +39,14 @@ var l = [
|
|
|
37
39
|
"stroke-linecap": "round",
|
|
38
40
|
"stroke-linejoin": "round",
|
|
39
41
|
"stroke-width": "2",
|
|
40
|
-
stroke: a.color,
|
|
42
|
+
stroke: a.fill ? void 0 : a.color,
|
|
41
43
|
xmlns: "http://www.w3.org/2000/svg",
|
|
42
44
|
"aria-hidden": "true"
|
|
43
45
|
}, [i("path", {
|
|
44
46
|
d: a.path,
|
|
45
47
|
name: a.name,
|
|
46
|
-
fill: a.fill
|
|
48
|
+
fill: a.fill,
|
|
49
|
+
"fill-rule": a.fillRule
|
|
47
50
|
}, null, 8, u)], 10, l));
|
|
48
51
|
}
|
|
49
52
|
});
|