vue-amazing-ui 2.2.11 → 2.2.13
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/index.iife.js +144 -69
- package/dist/index.js +4925 -4804
- package/dist/index.umd.cjs +139 -64
- package/dist/style.css +1 -1
- package/es/backtop/BackTop.css +1 -1
- package/es/backtop/BackTop.vue.js +1 -1
- package/es/backtop/BackTop.vue2.js +7 -7
- package/es/button/Button.css +1 -1
- package/es/button/Button.vue.js +2 -2
- package/es/button/Button.vue2.js +34 -34
- package/es/calendar/Calendar.css +1 -1
- package/es/calendar/Calendar.d.ts +6 -0
- package/es/calendar/Calendar.vue.js +2 -2
- package/es/calendar/Calendar.vue2.js +130 -126
- package/es/calendar/index.d.ts +9 -0
- package/es/collapse/Collapse.css +1 -1
- package/es/collapse/Collapse.vue.js +2 -2
- package/es/colorpicker/ColorPicker.css +1 -1
- package/es/colorpicker/ColorPicker.d.ts +4 -0
- package/es/colorpicker/ColorPicker.vue.js +2 -2
- package/es/colorpicker/ColorPicker.vue2.js +244 -234
- package/es/colorpicker/index.d.ts +6 -0
- package/es/floatbutton/FloatButton.css +1 -1
- package/es/floatbutton/FloatButton.vue.js +2 -2
- package/es/floatbutton/FloatButton.vue2.js +5 -3
- package/es/image/Image.css +1 -1
- package/es/image/Image.vue.js +1 -1
- package/es/image/Image.vue2.js +25 -21
- package/es/input/Input.css +1 -1
- package/es/input/Input.vue.js +2 -2
- package/es/input/Input.vue2.js +35 -29
- package/es/inputnumber/InputNumber.css +1 -1
- package/es/inputnumber/InputNumber.vue.js +2 -2
- package/es/inputnumber/InputNumber.vue2.js +41 -35
- package/es/inputsearch/InputSearch.css +1 -1
- package/es/inputsearch/InputSearch.vue.js +1 -1
- package/es/inputsearch/InputSearch.vue2.js +31 -25
- package/es/message/Message.css +1 -1
- package/es/message/Message.vue.js +2 -2
- package/es/message/Message.vue2.js +38 -32
- package/es/modal/Modal.css +1 -1
- package/es/modal/Modal.vue.js +1 -1
- package/es/modal/Modal.vue2.js +39 -29
- package/es/notification/Notification.css +1 -1
- package/es/notification/Notification.vue.js +1 -1
- package/es/notification/Notification.vue2.js +36 -27
- package/es/pagination/Pagination.css +1 -1
- package/es/pagination/Pagination.d.ts +5 -0
- package/es/pagination/Pagination.vue.js +1 -1
- package/es/pagination/Pagination.vue2.js +123 -103
- package/es/pagination/index.d.ts +7 -0
- package/es/popconfirm/Popconfirm.css +1 -1
- package/es/popconfirm/Popconfirm.vue.js +1 -1
- package/es/popconfirm/Popconfirm.vue2.js +20 -14
- package/es/progress/Progress.css +1 -1
- package/es/progress/Progress.vue.js +2 -2
- package/es/progress/Progress.vue2.js +13 -12
- package/es/qrcode/QRCode.css +1 -1
- package/es/qrcode/QRCode.vue.js +2 -2
- package/es/rate/Rate.css +1 -1
- package/es/rate/Rate.vue.js +2 -2
- package/es/rate/Rate.vue2.js +1 -1
- package/es/scrollbar/Scrollbar.css +1 -1
- package/es/scrollbar/Scrollbar.d.ts +1 -7
- package/es/scrollbar/Scrollbar.vue.js +2 -2
- package/es/scrollbar/index.d.ts +3 -21
- package/es/select/Select.css +1 -1
- package/es/select/Select.d.ts +2 -14
- package/es/select/Select.vue.js +2 -2
- package/es/select/Select.vue2.js +91 -82
- package/es/select/index.d.ts +2 -14
- package/es/slider/Slider.css +1 -1
- package/es/slider/Slider.vue.js +2 -2
- package/es/slider/Slider.vue2.js +18 -18
- package/es/spin/Spin.css +1 -1
- package/es/spin/Spin.vue.js +2 -2
- package/es/spin/Spin.vue2.js +32 -32
- package/es/steps/Steps.css +1 -1
- package/es/steps/Steps.vue.js +2 -2
- package/es/steps/Steps.vue2.js +22 -16
- package/es/style/global.css +1 -1
- package/es/switch/Switch.css +1 -1
- package/es/switch/Switch.vue.js +2 -2
- package/es/switch/Switch.vue2.js +19 -15
- package/es/table/Table.d.ts +4 -28
- package/es/table/index.d.ts +2 -14
- package/es/tabs/Tabs.css +1 -1
- package/es/tabs/Tabs.vue.js +2 -2
- package/es/tabs/Tabs.vue2.js +14 -13
- package/es/textarea/Textarea.css +1 -1
- package/es/textarea/Textarea.vue.js +4 -4
- package/es/textarea/Textarea.vue2.js +41 -35
- package/es/textscroll/TextScroll.css +1 -1
- package/es/textscroll/TextScroll.vue.js +1 -1
- package/es/textscroll/TextScroll.vue2.js +71 -71
- package/es/upload/Upload.css +1 -1
- package/es/upload/Upload.vue.js +1 -1
- package/es/upload/Upload.vue2.js +35 -30
- package/lib/backtop/BackTop.css +1 -1
- package/lib/backtop/BackTop.vue.cjs +1 -1
- package/lib/backtop/BackTop.vue2.cjs +1 -1
- package/lib/button/Button.css +1 -1
- package/lib/button/Button.vue.cjs +1 -1
- package/lib/button/Button.vue2.cjs +11 -11
- package/lib/calendar/Calendar.css +1 -1
- package/lib/calendar/Calendar.d.ts +6 -0
- package/lib/calendar/Calendar.vue.cjs +1 -1
- package/lib/calendar/Calendar.vue2.cjs +5 -1
- package/lib/calendar/index.d.ts +9 -0
- package/lib/collapse/Collapse.css +1 -1
- package/lib/collapse/Collapse.vue.cjs +1 -1
- package/lib/colorpicker/ColorPicker.css +1 -1
- package/lib/colorpicker/ColorPicker.d.ts +4 -0
- package/lib/colorpicker/ColorPicker.vue.cjs +1 -1
- package/lib/colorpicker/ColorPicker.vue2.cjs +10 -3
- package/lib/colorpicker/index.d.ts +6 -0
- package/lib/floatbutton/FloatButton.css +1 -1
- package/lib/floatbutton/FloatButton.vue.cjs +1 -1
- package/lib/floatbutton/FloatButton.vue2.cjs +4 -2
- package/lib/image/Image.css +1 -1
- package/lib/image/Image.vue.cjs +1 -1
- package/lib/image/Image.vue2.cjs +1 -1
- package/lib/input/Input.css +1 -1
- package/lib/input/Input.vue.cjs +1 -1
- package/lib/input/Input.vue2.cjs +6 -1
- package/lib/inputnumber/InputNumber.css +1 -1
- package/lib/inputnumber/InputNumber.vue.cjs +1 -1
- package/lib/inputnumber/InputNumber.vue2.cjs +7 -1
- package/lib/inputsearch/InputSearch.css +1 -1
- package/lib/inputsearch/InputSearch.vue.cjs +1 -1
- package/lib/inputsearch/InputSearch.vue2.cjs +6 -1
- package/lib/message/Message.css +1 -1
- package/lib/message/Message.vue.cjs +1 -1
- package/lib/message/Message.vue2.cjs +7 -1
- package/lib/modal/Modal.css +1 -1
- package/lib/modal/Modal.vue.cjs +1 -1
- package/lib/modal/Modal.vue2.cjs +8 -1
- package/lib/notification/Notification.css +1 -1
- package/lib/notification/Notification.vue.cjs +1 -1
- package/lib/notification/Notification.vue2.cjs +6 -1
- package/lib/pagination/Pagination.css +1 -1
- package/lib/pagination/Pagination.d.ts +5 -0
- package/lib/pagination/Pagination.vue.cjs +1 -1
- package/lib/pagination/Pagination.vue2.cjs +1 -1
- package/lib/pagination/index.d.ts +7 -0
- package/lib/popconfirm/Popconfirm.css +1 -1
- package/lib/popconfirm/Popconfirm.vue.cjs +1 -1
- package/lib/popconfirm/Popconfirm.vue2.cjs +6 -1
- package/lib/progress/Progress.css +1 -1
- package/lib/progress/Progress.vue.cjs +1 -1
- package/lib/progress/Progress.vue2.cjs +5 -4
- package/lib/qrcode/QRCode.css +1 -1
- package/lib/qrcode/QRCode.vue.cjs +1 -1
- package/lib/rate/Rate.css +1 -1
- package/lib/rate/Rate.vue.cjs +1 -1
- package/lib/rate/Rate.vue2.cjs +1 -1
- package/lib/scrollbar/Scrollbar.css +1 -1
- package/lib/scrollbar/Scrollbar.d.ts +1 -7
- package/lib/scrollbar/Scrollbar.vue.cjs +1 -1
- package/lib/scrollbar/index.d.ts +3 -21
- package/lib/select/Select.css +1 -1
- package/lib/select/Select.d.ts +2 -14
- package/lib/select/Select.vue.cjs +1 -1
- package/lib/select/Select.vue2.cjs +8 -1
- package/lib/select/index.d.ts +2 -14
- package/lib/slider/Slider.css +1 -1
- package/lib/slider/Slider.vue.cjs +1 -1
- package/lib/slider/Slider.vue2.cjs +20 -20
- package/lib/spin/Spin.css +1 -1
- package/lib/spin/Spin.vue.cjs +1 -1
- package/lib/spin/Spin.vue2.cjs +2 -2
- package/lib/steps/Steps.css +1 -1
- package/lib/steps/Steps.vue.cjs +1 -1
- package/lib/steps/Steps.vue2.cjs +7 -1
- package/lib/style/global.css +1 -1
- package/lib/switch/Switch.css +1 -1
- package/lib/switch/Switch.vue.cjs +1 -1
- package/lib/switch/Switch.vue2.cjs +5 -1
- package/lib/table/Table.d.ts +4 -28
- package/lib/table/index.d.ts +2 -14
- package/lib/tabs/Tabs.css +1 -1
- package/lib/tabs/Tabs.vue.cjs +1 -1
- package/lib/tabs/Tabs.vue2.cjs +1 -1
- package/lib/textarea/Textarea.css +1 -1
- package/lib/textarea/Textarea.vue.cjs +1 -1
- package/lib/textarea/Textarea.vue2.cjs +6 -1
- package/lib/textscroll/TextScroll.css +1 -1
- package/lib/textscroll/TextScroll.vue.cjs +1 -1
- package/lib/textscroll/TextScroll.vue2.cjs +18 -18
- package/lib/upload/Upload.css +1 -1
- package/lib/upload/Upload.vue.cjs +1 -1
- package/lib/upload/Upload.vue2.cjs +1 -1
- package/package.json +3 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as P, ref as x, computed as
|
|
1
|
+
import { defineComponent as P, ref as x, computed as m, watch as R, nextTick as U, createElementBlock as V, openBlock as k, normalizeStyle as W, normalizeClass as h, createElementVNode as r, createCommentVNode as T, withDirectives as O, renderSlot as j, createTextVNode as q, toDisplayString as G, withKeys as N, withModifiers as C, vModelText as H } from "vue";
|
|
2
2
|
import { useSlotsExist as J, add as S } from "../utils/index.js";
|
|
3
3
|
const Q = { class: "input-number-wrap" }, X = {
|
|
4
4
|
key: 0,
|
|
@@ -22,20 +22,20 @@ const Q = { class: "input-number-wrap" }, X = {
|
|
|
22
22
|
},
|
|
23
23
|
emits: ["update:value", "change", "enter"],
|
|
24
24
|
setup(F, { emit: M }) {
|
|
25
|
-
const n = F, u = x(),
|
|
25
|
+
const n = F, u = x(), i = x(), v = M, z = J(["prefix"]), B = m(() => typeof n.width == "number" ? `${n.width}px` : n.width), s = m(() => {
|
|
26
26
|
var t;
|
|
27
27
|
const e = ((t = String(n.step).split(".")[1]) == null ? void 0 : t.length) || 0;
|
|
28
28
|
return Math.max(n.precision, e);
|
|
29
|
-
}), E =
|
|
29
|
+
}), E = m(() => z.prefix || n.prefix), b = m(() => "lazy" in n.valueModifiers);
|
|
30
30
|
R(
|
|
31
31
|
() => [n.value, s.value, n.formatter],
|
|
32
32
|
async () => {
|
|
33
33
|
if (n.value !== void 0)
|
|
34
34
|
if (u.value) {
|
|
35
|
-
const { selectionStart: e, selectionEnd: t, value: a } = u.value,
|
|
36
|
-
|
|
35
|
+
const { selectionStart: e, selectionEnd: t, value: a } = u.value, o = a.slice(0, e), l = a.slice(t);
|
|
36
|
+
i.value = p(), await U(), I(e, o, l);
|
|
37
37
|
} else
|
|
38
|
-
|
|
38
|
+
i.value = p();
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
immediate: !0,
|
|
@@ -44,20 +44,20 @@ const Q = { class: "input-number-wrap" }, X = {
|
|
|
44
44
|
}
|
|
45
45
|
);
|
|
46
46
|
function I(e, t, a) {
|
|
47
|
-
const { value:
|
|
48
|
-
let
|
|
49
|
-
if (
|
|
50
|
-
|
|
51
|
-
else if (
|
|
52
|
-
|
|
47
|
+
const { value: o } = u.value;
|
|
48
|
+
let l = o.length;
|
|
49
|
+
if (o.endsWith(a))
|
|
50
|
+
l = o.length - a.length;
|
|
51
|
+
else if (o.startsWith(t))
|
|
52
|
+
l = t.length;
|
|
53
53
|
else {
|
|
54
|
-
const A = t[e - 1], y =
|
|
55
|
-
y !== -1 && (
|
|
54
|
+
const A = t[e - 1], y = o.indexOf(A, e - 1);
|
|
55
|
+
y !== -1 && (l = y + 1);
|
|
56
56
|
}
|
|
57
|
-
u.value.setSelectionRange(
|
|
57
|
+
u.value.setSelectionRange(l, l);
|
|
58
58
|
}
|
|
59
59
|
function f(e) {
|
|
60
|
-
|
|
60
|
+
v("update:value", e), v("change", e);
|
|
61
61
|
}
|
|
62
62
|
function p() {
|
|
63
63
|
var e, t;
|
|
@@ -69,14 +69,14 @@ const Q = { class: "input-number-wrap" }, X = {
|
|
|
69
69
|
}
|
|
70
70
|
function c(e) {
|
|
71
71
|
if (Number.isNaN(parseFloat(e)))
|
|
72
|
-
n.value ?
|
|
72
|
+
n.value ? i.value = p() : n.formatter && (i.value = n.formatter(e));
|
|
73
73
|
else {
|
|
74
74
|
const t = d(e);
|
|
75
|
-
t !== n.value ? f(t) :
|
|
75
|
+
t !== n.value ? f(t) : i.value = p();
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
function L(e) {
|
|
79
|
-
if (!
|
|
79
|
+
if (!b.value) {
|
|
80
80
|
const t = e.target, a = n.parser ? String(n.parser(t.value)) : t.value;
|
|
81
81
|
a && !Number.isNaN(d(a)) && d(a) !== n.value && c(a), !a && n.value !== void 0 && f(void 0);
|
|
82
82
|
}
|
|
@@ -86,15 +86,15 @@ const Q = { class: "input-number-wrap" }, X = {
|
|
|
86
86
|
c(a);
|
|
87
87
|
}
|
|
88
88
|
function D(e) {
|
|
89
|
-
e.key === "ArrowUp" &&
|
|
89
|
+
e.key === "ArrowUp" && w(), e.key === "ArrowDown" && g();
|
|
90
90
|
}
|
|
91
91
|
function K(e) {
|
|
92
|
-
if (
|
|
92
|
+
if (v("enter", e), b.value) {
|
|
93
93
|
const t = e.target, a = n.parser ? String(n.parser(t.value)) : t.value;
|
|
94
94
|
c(a);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function w() {
|
|
98
98
|
const e = Math.min(n.max, S(n.value || 0, +n.step)).toFixed(s.value);
|
|
99
99
|
f(d(e));
|
|
100
100
|
}
|
|
@@ -105,22 +105,28 @@ const Q = { class: "input-number-wrap" }, X = {
|
|
|
105
105
|
return (e, t) => (k(), V("div", {
|
|
106
106
|
tabindex: "1",
|
|
107
107
|
class: h(["m-input-number", { "input-number-disabled": e.disabled }]),
|
|
108
|
-
style: W(`
|
|
108
|
+
style: W(`
|
|
109
|
+
--input-number-width: ${B.value};
|
|
110
|
+
--input-number-primary-color: #1677ff;
|
|
111
|
+
--input-number-primary-color-hover: #4096ff;
|
|
112
|
+
--input-number-primary-color-focus: #4096ff;
|
|
113
|
+
--input-number-primary-shadow-color: rgba(5, 145, 255, 0.1);
|
|
114
|
+
`)
|
|
109
115
|
}, [
|
|
110
|
-
|
|
116
|
+
r("div", Q, [
|
|
111
117
|
E.value ? (k(), V("span", X, [
|
|
112
118
|
j(e.$slots, "prefix", {}, () => [
|
|
113
119
|
q(G(e.prefix), 1)
|
|
114
120
|
], !0)
|
|
115
121
|
])) : T("", !0),
|
|
116
|
-
O(
|
|
122
|
+
O(r("input", {
|
|
117
123
|
ref_key: "inputRef",
|
|
118
124
|
ref: u,
|
|
119
125
|
class: "input-number",
|
|
120
126
|
autocomplete: "off",
|
|
121
127
|
disabled: e.disabled,
|
|
122
128
|
placeholder: e.placeholder,
|
|
123
|
-
"onUpdate:modelValue": t[0] || (t[0] = (a) =>
|
|
129
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => i.value = a),
|
|
124
130
|
onInput: L,
|
|
125
131
|
onChange: $,
|
|
126
132
|
onKeydown: [
|
|
@@ -130,15 +136,15 @@ const Q = { class: "input-number-wrap" }, X = {
|
|
|
130
136
|
N(C(K, ["prevent"]), ["enter"])
|
|
131
137
|
]
|
|
132
138
|
}, null, 40, Y), [
|
|
133
|
-
[H,
|
|
139
|
+
[H, i.value]
|
|
134
140
|
])
|
|
135
141
|
]),
|
|
136
|
-
|
|
137
|
-
|
|
142
|
+
r("div", Z, [
|
|
143
|
+
r("span", {
|
|
138
144
|
class: h(["input-number-arrow up-arrow", { "arrow-disabled": (e.value || 0) >= e.max }]),
|
|
139
|
-
onClick: t[3] || (t[3] = (a) => (e.value || 0) >= e.max ? () => !1 :
|
|
145
|
+
onClick: t[3] || (t[3] = (a) => (e.value || 0) >= e.max ? () => !1 : w())
|
|
140
146
|
}, t[5] || (t[5] = [
|
|
141
|
-
|
|
147
|
+
r("svg", {
|
|
142
148
|
class: "icon-svg",
|
|
143
149
|
focusable: "false",
|
|
144
150
|
"data-icon": "up",
|
|
@@ -148,14 +154,14 @@ const Q = { class: "input-number-wrap" }, X = {
|
|
|
148
154
|
"aria-hidden": "true",
|
|
149
155
|
viewBox: "64 64 896 896"
|
|
150
156
|
}, [
|
|
151
|
-
|
|
157
|
+
r("path", { d: "M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" })
|
|
152
158
|
], -1)
|
|
153
159
|
]), 2),
|
|
154
|
-
|
|
160
|
+
r("span", {
|
|
155
161
|
class: h(["input-number-arrow down-arrow", { "arrow-disabled": (e.value || 0) <= e.min }]),
|
|
156
162
|
onClick: t[4] || (t[4] = (a) => (e.value || 0) <= e.min ? () => !1 : g())
|
|
157
163
|
}, t[6] || (t[6] = [
|
|
158
|
-
|
|
164
|
+
r("svg", {
|
|
159
165
|
class: "icon-svg",
|
|
160
166
|
focusable: "false",
|
|
161
167
|
"data-icon": "down",
|
|
@@ -165,7 +171,7 @@ const Q = { class: "input-number-wrap" }, X = {
|
|
|
165
171
|
"aria-hidden": "true",
|
|
166
172
|
viewBox: "64 64 896 896"
|
|
167
173
|
}, [
|
|
168
|
-
|
|
174
|
+
r("path", { d: "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" })
|
|
169
175
|
], -1)
|
|
170
176
|
]), 2)
|
|
171
177
|
])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.m-input-search[data-v-
|
|
1
|
+
.m-input-search[data-v-6cf7da04]{width:var(--input-search-width);position:relative;display:inline-flex;align-items:center}.m-input-search .input-search-addon-before[data-v-6cf7da04]{display:inline-flex;justify-content:center;align-items:center;position:relative;padding:0 11px;color:#000000e0;font-weight:400;font-size:14px;line-height:1.57142857;text-align:center;background-color:#00000005;border:1px solid #d9d9d9;border-radius:6px 0 0 6px;border-right:0;transition:all .3s}.m-input-search .input-search-addon-before[data-v-6cf7da04] svg{fill:currentColor}.m-input-search .addon-before-small[data-v-6cf7da04]{height:24px}.m-input-search .addon-before-middle[data-v-6cf7da04]{height:32px}.m-input-search .addon-before-small[data-v-6cf7da04]{height:40px}.m-input-search .input-search-wrap[data-v-6cf7da04]{font-size:14px;color:#000000e0;line-height:1.57142857;position:relative;display:inline-flex;width:100%;min-width:0;background-color:#fff;border:1px solid #d9d9d9;transition:all .2s}.m-input-search .input-search-wrap[data-v-6cf7da04]:hover{border-color:var(--input-search-primary-color-hover);border-right-width:1px;z-index:1}.m-input-search .input-search-wrap[data-v-6cf7da04]:focus-within{border-color:var(--input-search-primary-color-focus);box-shadow:0 0 0 2px var(--input-search-primary-shadow-color);border-right-width:1px;outline:0;z-index:1}.m-input-search .input-search-wrap .input-search-prefix[data-v-6cf7da04]{margin-right:4px;display:flex;flex:none;align-items:center}.m-input-search .input-search-wrap .input-search-prefix[data-v-6cf7da04] svg{fill:currentColor}.m-input-search .input-search-wrap .input-search[data-v-6cf7da04]{font-size:14px;color:inherit;line-height:1.57142857;position:relative;display:inline-block;width:100%;min-width:0;background-color:#fff;border:none;outline:none;text-overflow:ellipsis;transition:all .2s}.m-input-search .input-search-wrap input[data-v-6cf7da04]::-webkit-input-placeholder{color:#00000040}.m-input-search .input-search-wrap input[data-v-6cf7da04]:-moz-placeholder{color:#00000040}.m-input-search .input-search-wrap input[data-v-6cf7da04]::-moz-placeholder{color:#00000040}.m-input-search .input-search-wrap input[data-v-6cf7da04]:-ms-input-placeholder{color:#00000040}.m-input-search .input-search-wrap .input-search-suffix[data-v-6cf7da04]{margin-left:4px;display:flex;flex:none;gap:8px;align-items:center}.m-input-search .input-search-wrap .input-search-suffix .input-search-clear[data-v-6cf7da04]{display:inline-flex;justify-content:center;align-items:center;cursor:pointer}.m-input-search .input-search-wrap .input-search-suffix .input-search-clear .clear-svg[data-v-6cf7da04]{display:inline-block;font-size:12px;color:#00000040;fill:currentColor;transition:color .3s}.m-input-search .input-search-wrap .input-search-suffix .input-search-clear .clear-svg[data-v-6cf7da04]:hover{color:#00000073}.m-input-search .input-search-wrap .input-search-suffix .clear-hidden[data-v-6cf7da04]{visibility:hidden}.m-input-search .input-search-wrap .input-search-suffix .input-search-count[data-v-6cf7da04]{color:#00000073}.m-input-search .input-search-wrap .input-search-suffix .suffix-item[data-v-6cf7da04]{display:flex;flex:none;align-items:center}.m-input-search .input-search-wrap .input-search-suffix .suffix-item[data-v-6cf7da04] svg{fill:currentColor}.m-input-search .input-search-small[data-v-6cf7da04]{height:24px;padding:0 7px;border-radius:4px 0 0 4px}.m-input-search .input-search-middle[data-v-6cf7da04]{height:32px;padding:4px 11px;border-radius:6px 0 0 6px}.m-input-search .input-search-large[data-v-6cf7da04]{height:40px;padding:7px 11px;font-size:16px;line-height:1.5;border-radius:8px 0 0 8px}.m-input-search .input-search-large .input-search[data-v-6cf7da04]{font-size:16px;line-height:1.5}.m-input-search .input-search-before[data-v-6cf7da04]{border-top-left-radius:0;border-bottom-left-radius:0}.m-input-search .input-search-disabled[data-v-6cf7da04]{color:#00000040;background-color:#0000000a;cursor:not-allowed}.m-input-search .input-search-disabled[data-v-6cf7da04]:hover{border-color:#d9d9d9}.m-input-search .input-search-disabled[data-v-6cf7da04]:focus-within{border-color:#d9d9d9;box-shadow:none}.m-input-search .input-search-disabled .input-search[data-v-6cf7da04]{color:#00000040;background-color:transparent;cursor:not-allowed}.m-input-search .input-search-button[data-v-6cf7da04]{position:relative;left:-1px;border-left:0;color:#000000e0;font-weight:400;font-size:14px;text-align:center;background-color:#00000005;border-radius:0 6px 6px 0;transition:all .3s;line-height:1}.m-input-search .input-search-button[data-v-6cf7da04] .m-btn{padding-top:0;padding-bottom:0;border-radius:0 6px 6px 0}.m-input-search .input-search-button[data-v-6cf7da04] .m-btn:not(.btn-primary):not(.btn-danger):not(.btn-link):not(.btn-disabled){color:#00000073}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./InputSearch.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6cf7da04"]]);
|
|
5
5
|
export {
|
|
6
6
|
c as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as V, ref as R, computed as s, createElementBlock as
|
|
1
|
+
import { defineComponent as V, ref as R, computed as s, createElementBlock as n, openBlock as l, normalizeStyle as D, createCommentVNode as i, createElementVNode as r, normalizeClass as h, renderSlot as u, createTextVNode as f, toDisplayString as d, withKeys as b, withModifiers as B, createVNode as T, unref as W, mergeProps as j, createSlots as q, withCtx as z } from "vue";
|
|
2
2
|
import A from "../button/index.js";
|
|
3
3
|
import { useSlotsExist as F } from "../utils/index.js";
|
|
4
4
|
const G = {
|
|
@@ -35,41 +35,47 @@ const G = {
|
|
|
35
35
|
},
|
|
36
36
|
emits: ["update:value", "change", "search"],
|
|
37
37
|
setup(S, { emit: k }) {
|
|
38
|
-
const a = S, p = R(), c = F(["prefix", "suffix", "addonBefore"]),
|
|
38
|
+
const a = S, p = R(null), c = F(["prefix", "suffix", "addonBefore"]), o = k, x = s(() => typeof a.width == "number" ? `${a.width}px` : a.width), v = s(() => !a.disabled && a.allowClear), $ = s(() => a.maxlength ? (a.value ? a.value.length : 0) + " / " + a.maxlength : a.value ? a.value.length : 0), E = s(() => c.prefix || a.prefix), m = s(() => c.suffix || a.suffix), M = s(() => v.value || a.showCount || m.value), g = s(() => c.addonBefore || a.addonBefore), w = s(() => "lazy" in a.valueModifiers);
|
|
39
39
|
function I(e) {
|
|
40
40
|
const t = e.target;
|
|
41
|
-
w.value || (
|
|
41
|
+
w.value || (o("update:value", t.value), o("change", e));
|
|
42
42
|
}
|
|
43
43
|
function K(e) {
|
|
44
44
|
const t = e.target;
|
|
45
|
-
t.value !== a.value && (
|
|
45
|
+
t.value !== a.value && (o("update:value", t.value), o("change", e));
|
|
46
46
|
}
|
|
47
47
|
function L() {
|
|
48
|
-
|
|
48
|
+
var e;
|
|
49
|
+
o("update:value", ""), (e = p.value) == null || e.focus();
|
|
49
50
|
}
|
|
50
51
|
async function N(e) {
|
|
51
52
|
var C;
|
|
52
53
|
const t = e.target;
|
|
53
|
-
if (
|
|
54
|
+
if (o("search", t.value, e), w.value) {
|
|
54
55
|
const P = new Event("change");
|
|
55
56
|
(C = e.target) == null || C.dispatchEvent(P);
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
function y(e) {
|
|
59
|
-
|
|
60
|
+
o("search", a.value, e);
|
|
60
61
|
}
|
|
61
|
-
return (e, t) => (l(),
|
|
62
|
+
return (e, t) => (l(), n("div", {
|
|
62
63
|
class: "m-input-search",
|
|
63
|
-
style: D(`
|
|
64
|
+
style: D(`
|
|
65
|
+
--input-search-width: ${x.value};
|
|
66
|
+
--input-search-primary-color-hover: #4096ff;
|
|
67
|
+
--input-search-primary-color-focus: #4096ff;
|
|
68
|
+
--input-search-primary-shadow-color: rgba(5, 145, 255, 0.1);
|
|
69
|
+
`)
|
|
64
70
|
}, [
|
|
65
|
-
g.value ? (l(),
|
|
71
|
+
g.value ? (l(), n("span", {
|
|
66
72
|
key: 0,
|
|
67
73
|
class: h(["input-search-addon-before", `addon-before-${e.size}`])
|
|
68
74
|
}, [
|
|
69
|
-
|
|
75
|
+
u(e.$slots, "addonBefore", {}, () => [
|
|
70
76
|
f(d(e.addonBefore), 1)
|
|
71
77
|
], !0)
|
|
72
|
-
], 2)) :
|
|
78
|
+
], 2)) : i("", !0),
|
|
73
79
|
r("div", {
|
|
74
80
|
tabindex: "1",
|
|
75
81
|
class: h(["input-search-wrap", [
|
|
@@ -80,11 +86,11 @@ const G = {
|
|
|
80
86
|
}
|
|
81
87
|
]])
|
|
82
88
|
}, [
|
|
83
|
-
E.value ? (l(),
|
|
84
|
-
|
|
89
|
+
E.value ? (l(), n("span", G, [
|
|
90
|
+
u(e.$slots, "prefix", {}, () => [
|
|
85
91
|
f(d(e.prefix), 1)
|
|
86
92
|
], !0)
|
|
87
|
-
])) :
|
|
93
|
+
])) : i("", !0),
|
|
88
94
|
r("input", {
|
|
89
95
|
ref_key: "inputRef",
|
|
90
96
|
ref: p,
|
|
@@ -98,8 +104,8 @@ const G = {
|
|
|
98
104
|
onChange: K,
|
|
99
105
|
onKeydown: b(B(N, ["prevent"]), ["enter"])
|
|
100
106
|
}, null, 40, H),
|
|
101
|
-
M.value ? (l(),
|
|
102
|
-
v.value ? (l(),
|
|
107
|
+
M.value ? (l(), n("span", J, [
|
|
108
|
+
v.value ? (l(), n("span", {
|
|
103
109
|
key: 0,
|
|
104
110
|
class: h(["input-search-clear", { "clear-hidden": !e.value }]),
|
|
105
111
|
onClick: L
|
|
@@ -116,21 +122,21 @@ const G = {
|
|
|
116
122
|
}, [
|
|
117
123
|
r("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" })
|
|
118
124
|
], -1)
|
|
119
|
-
]), 2)) :
|
|
120
|
-
e.showCount ? (l(),
|
|
121
|
-
m.value ? (l(),
|
|
122
|
-
|
|
125
|
+
]), 2)) : i("", !0),
|
|
126
|
+
e.showCount ? (l(), n("span", O, d($.value), 1)) : i("", !0),
|
|
127
|
+
m.value ? (l(), n("span", Q, [
|
|
128
|
+
u(e.$slots, "suffix", {}, () => [
|
|
123
129
|
f(d(e.suffix), 1)
|
|
124
130
|
], !0)
|
|
125
|
-
])) :
|
|
126
|
-
])) :
|
|
131
|
+
])) : i("", !0)
|
|
132
|
+
])) : i("", !0)
|
|
127
133
|
], 2),
|
|
128
134
|
r("span", {
|
|
129
135
|
class: "input-search-button",
|
|
130
136
|
onClick: y,
|
|
131
137
|
onKeydown: b(B(y, ["prevent"]), ["enter"])
|
|
132
138
|
}, [
|
|
133
|
-
|
|
139
|
+
u(e.$slots, "search", {}, () => [
|
|
134
140
|
T(W(A), j({
|
|
135
141
|
class: "search-btn",
|
|
136
142
|
size: e.size,
|
|
@@ -145,7 +151,7 @@ const G = {
|
|
|
145
151
|
e.icon ? {
|
|
146
152
|
name: "icon",
|
|
147
153
|
fn: z(() => [
|
|
148
|
-
|
|
154
|
+
u(e.$slots, "icon", {}, () => [
|
|
149
155
|
t[1] || (t[1] = r("svg", {
|
|
150
156
|
focusable: "false",
|
|
151
157
|
"data-icon": "search",
|
package/es/message/Message.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.slide-fade-move[data-v-
|
|
1
|
+
.slide-fade-move[data-v-dc2f0631],.slide-fade-enter-active[data-v-dc2f0631],.slide-fade-leave-active[data-v-dc2f0631]{transition:all .3s cubic-bezier(.78,.14,.15,.86)}.slide-fade-enter-from[data-v-dc2f0631],.slide-fade-leave-to[data-v-dc2f0631]{transform:translateY(-100%);opacity:0}.slide-fade-leave-active[data-v-dc2f0631]{position:absolute;left:0;right:0;margin:0 auto}.m-message[data-v-dc2f0631]{font-size:14px;color:#000000e0;line-height:1.57142857;position:fixed;z-index:999;width:100%;left:0;right:0;pointer-events:none}.m-message .message-wrap[data-v-dc2f0631]{text-align:center}.m-message .message-wrap[data-v-dc2f0631]:not(:last-child){margin-bottom:8px}.m-message .message-wrap .message-content-wrap[data-v-dc2f0631]{display:inline-flex;gap:8px;align-items:center;padding:9px 12px;background:#fff;border-radius:8px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;pointer-events:auto}.m-message .message-wrap .message-content-wrap[data-v-dc2f0631] .icon-svg{display:inline-block;font-size:16px;fill:currentColor}.m-message .message-wrap .message-content-wrap .circle[data-v-dc2f0631]{display:inline-block;stroke:currentColor;animation:loadingRotate-dc2f0631 2s linear infinite}@keyframes loadingRotate-dc2f0631{to{transform:rotate(360deg)}}.m-message .message-wrap .message-content-wrap .circle .path[data-v-dc2f0631]{stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:5;stroke-linecap:round;animation:loadingDash-dc2f0631 1.5s ease-in-out infinite}@keyframes loadingDash-dc2f0631{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}.m-message .message-wrap .message-content-wrap .message-content[data-v-dc2f0631]{display:inline-block}.m-message .message-wrap .icon-open[data-v-dc2f0631] svg{fill:currentColor}.m-message .message-wrap .icon-info[data-v-dc2f0631] svg,.m-message .message-wrap .icon-loading[data-v-dc2f0631] svg{color:var(--message-primary-color);fill:currentColor}.m-message .message-wrap .icon-success[data-v-dc2f0631] svg{color:var(--message-success-color);fill:currentColor}.m-message .message-wrap .icon-warning[data-v-dc2f0631] svg{color:var(--message-warning-color);fill:currentColor}.m-message .message-wrap .icon-error[data-v-dc2f0631] svg{color:var(--message-error-color);fill:currentColor}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Message.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const e = /* @__PURE__ */
|
|
3
|
+
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dc2f0631"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as F, ref as
|
|
2
|
-
import { rafTimeout as z, cancelRaf as
|
|
1
|
+
import { defineComponent as F, ref as s, computed as G, watch as H, onBeforeUnmount as R, createElementBlock as c, openBlock as t, normalizeStyle as C, createVNode as U, TransitionGroup as j, withCtx as q, Fragment as A, renderList as J, withDirectives as K, normalizeClass as k, createElementVNode as i, createBlock as O, createCommentVNode as P, resolveDynamicComponent as Q, toDisplayString as W, vShow as X } from "vue";
|
|
2
|
+
import { rafTimeout as z, cancelRaf as g } from "../utils/index.js";
|
|
3
3
|
const Y = ["onMouseenter", "onMouseleave", "onClick"], Z = {
|
|
4
4
|
key: 1,
|
|
5
5
|
class: "icon-svg",
|
|
@@ -48,7 +48,7 @@ const Y = ["onMouseenter", "onMouseleave", "onClick"], Z = {
|
|
|
48
48
|
fill: "currentColor",
|
|
49
49
|
class: "icon-svg circle",
|
|
50
50
|
viewBox: "0 0 50 50"
|
|
51
|
-
},
|
|
51
|
+
}, le = { class: "message-content" }, ie = /* @__PURE__ */ F({
|
|
52
52
|
__name: "Message",
|
|
53
53
|
props: {
|
|
54
54
|
content: { default: void 0 },
|
|
@@ -57,34 +57,34 @@ const Y = ["onMouseenter", "onMouseleave", "onClick"], Z = {
|
|
|
57
57
|
},
|
|
58
58
|
emits: ["click", "close"],
|
|
59
59
|
setup(M, { expose: _, emit: B }) {
|
|
60
|
-
const
|
|
60
|
+
const f = M, p = s(), u = s([]), r = s([]), n = s([]), d = s(null), y = B, m = s(), L = G(() => u.value.every((e) => !e));
|
|
61
61
|
H(L, (e, o) => {
|
|
62
62
|
!o && e && (p.value = z(() => {
|
|
63
|
-
n.value = [],
|
|
63
|
+
n.value = [], u.value = [];
|
|
64
64
|
}, 300));
|
|
65
65
|
}), R(() => {
|
|
66
66
|
r.value.forEach((e) => {
|
|
67
|
-
e &&
|
|
67
|
+
e && g(e);
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
70
|
function S(e) {
|
|
71
|
-
r.value[e] &&
|
|
71
|
+
r.value[e] && g(r.value[e]);
|
|
72
72
|
}
|
|
73
73
|
function b(e) {
|
|
74
|
-
|
|
74
|
+
w(e);
|
|
75
75
|
}
|
|
76
76
|
function $(e, o) {
|
|
77
|
-
n.value[o].onClick && n.value[o].onClick(),
|
|
77
|
+
n.value[o].onClick && n.value[o].onClick(), y("click", e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
},
|
|
79
|
+
function w(e) {
|
|
80
|
+
d.value !== null && (r.value[e] = z(() => {
|
|
81
|
+
u.value[e] = !1, r.value[e] = null, n.value[e].onClose && n.value[e].onClose(), y("close");
|
|
82
|
+
}, d.value));
|
|
83
83
|
}
|
|
84
84
|
function a() {
|
|
85
|
-
p.value &&
|
|
85
|
+
p.value && g(p.value);
|
|
86
86
|
const e = n.value.length - 1, o = n.value[e];
|
|
87
|
-
o.top !== void 0 ?
|
|
87
|
+
o.top !== void 0 ? m.value = typeof o.top == "number" ? `${o.top}px` : o.top : m.value = typeof f.top == "number" ? `${f.top}px` : f.top, u.value[e] = !0, o.duration !== null ? (d.value = o.duration || f.duration, w(e)) : d.value = null;
|
|
88
88
|
}
|
|
89
89
|
function T(e) {
|
|
90
90
|
typeof e == "string" ? n.value.push({
|
|
@@ -147,35 +147,41 @@ const Y = ["onMouseenter", "onMouseleave", "onClick"], Z = {
|
|
|
147
147
|
error: E,
|
|
148
148
|
warning: x,
|
|
149
149
|
loading: N
|
|
150
|
-
}), (e, o) => (
|
|
150
|
+
}), (e, o) => (t(), c("div", {
|
|
151
151
|
class: "m-message",
|
|
152
|
-
style:
|
|
152
|
+
style: C(`
|
|
153
|
+
top: ${m.value};
|
|
154
|
+
--message-primary-color: #1677ff;
|
|
155
|
+
--message-success-color: #52c41a;
|
|
156
|
+
--message-warning-color: #faad14;
|
|
157
|
+
--message-error-color: #ff4d4f;
|
|
158
|
+
`)
|
|
153
159
|
}, [
|
|
154
160
|
U(j, { name: "slide-fade" }, {
|
|
155
161
|
default: q(() => [
|
|
156
|
-
(
|
|
157
|
-
class: k(["message-wrap",
|
|
158
|
-
style:
|
|
162
|
+
(t(!0), c(A, null, J(n.value, (l, v) => K((t(), c("div", {
|
|
163
|
+
class: k(["message-wrap", l.class]),
|
|
164
|
+
style: C(l.style),
|
|
159
165
|
key: v
|
|
160
166
|
}, [
|
|
161
167
|
i("div", {
|
|
162
|
-
class: k(["message-content-wrap", `icon-${
|
|
163
|
-
onMouseenter: (
|
|
164
|
-
onMouseleave: (
|
|
165
|
-
onClick: (
|
|
168
|
+
class: k(["message-content-wrap", `icon-${l.mode}`]),
|
|
169
|
+
onMouseenter: (h) => S(v),
|
|
170
|
+
onMouseleave: (h) => b(v),
|
|
171
|
+
onClick: (h) => $(h, v)
|
|
166
172
|
}, [
|
|
167
|
-
|
|
173
|
+
l.icon ? (t(), O(Q(l.icon), {
|
|
168
174
|
key: 0,
|
|
169
175
|
class: "icon-svg"
|
|
170
|
-
})) :
|
|
176
|
+
})) : l.mode === "info" ? (t(), c("svg", Z, o[0] || (o[0] = [
|
|
171
177
|
i("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" }, null, -1)
|
|
172
|
-
]))) :
|
|
178
|
+
]))) : l.mode === "success" ? (t(), c("svg", I, o[1] || (o[1] = [
|
|
173
179
|
i("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" }, null, -1)
|
|
174
|
-
]))) :
|
|
180
|
+
]))) : l.mode === "error" ? (t(), c("svg", ee, o[2] || (o[2] = [
|
|
175
181
|
i("path", { d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" }, null, -1)
|
|
176
|
-
]))) :
|
|
182
|
+
]))) : l.mode === "warning" ? (t(), c("svg", oe, o[3] || (o[3] = [
|
|
177
183
|
i("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" }, null, -1)
|
|
178
|
-
]))) :
|
|
184
|
+
]))) : l.mode === "loading" ? (t(), c("svg", ne, o[4] || (o[4] = [
|
|
179
185
|
i("circle", {
|
|
180
186
|
class: "path",
|
|
181
187
|
cx: "25",
|
|
@@ -184,10 +190,10 @@ const Y = ["onMouseenter", "onMouseleave", "onClick"], Z = {
|
|
|
184
190
|
fill: "none"
|
|
185
191
|
}, null, -1)
|
|
186
192
|
]))) : P("", !0),
|
|
187
|
-
i("div",
|
|
193
|
+
i("div", le, W(l.content || e.content), 1)
|
|
188
194
|
], 42, Y)
|
|
189
195
|
], 6)), [
|
|
190
|
-
[X,
|
|
196
|
+
[X, u.value[v]]
|
|
191
197
|
])), 128))
|
|
192
198
|
]),
|
|
193
199
|
_: 1
|
package/es/modal/Modal.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.fade-enter-active[data-v-
|
|
1
|
+
.fade-enter-active[data-v-2313a020],.fade-leave-active[data-v-2313a020]{transition:opacity .2s linear}.fade-enter-from[data-v-2313a020],.fade-leave-to[data-v-2313a020]{opacity:0}.zoom-enter[data-v-2313a020]{transform:none;opacity:0;animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.08,.82,.17,1);animation-play-state:paused}.zoom-enter-active[data-v-2313a020]{animation-name:zoomIn-2313a020;animation-play-state:running}@keyframes zoomIn-2313a020{0%{transform:scale(.2);opacity:0}to{transform:scale(1);opacity:1}}.zoom-leave[data-v-2313a020]{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused;animation-timing-function:cubic-bezier(.78,.14,.15,.86)}.zoom-leave-active[data-v-2313a020]{animation-name:zoomOut-2313a020;animation-play-state:running}@keyframes zoomOut-2313a020{0%{transform:scale(1);opacity:1}to{transform:scale(.2);opacity:0}}.modal-mask[data-v-2313a020]{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:1000;background:#00000073}.m-modal-wrap[data-v-2313a020]{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;outline:0;z-index:1010}.m-modal-wrap .m-modal[data-v-2313a020]{position:relative;margin:0 auto;color:#000000e0;font-size:14px;line-height:1.57142857;padding-bottom:24px;outline:none}.m-modal-wrap .m-modal .modal-body-wrap[data-v-2313a020]{position:relative;word-break:break-all;padding:20px 24px;background-color:#fff;border-radius:8px;width:auto;max-width:calc(100vw - 32px);box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d}.m-modal-wrap .m-modal .modal-body-wrap .modal-body[data-v-2313a020]{display:flex;flex-wrap:wrap;align-items:center}.m-modal-wrap .m-modal .modal-body-wrap .modal-body .modal-header[data-v-2313a020]{display:flex;align-items:center}.m-modal-wrap .m-modal .modal-body-wrap .modal-body .modal-header[data-v-2313a020] .icon-svg{flex-shrink:0;align-self:flex-start;display:inline-block;margin-right:12px;margin-top:1px;font-size:22px;fill:currentColor}.m-modal-wrap .m-modal .modal-body-wrap .modal-body .modal-header .modal-title[data-v-2313a020]{display:inline-block;font-size:16px;color:#000000e0;line-height:1.5;font-weight:600}.m-modal-wrap .m-modal .modal-body-wrap .modal-body .modal-header[data-v-2313a020] svg{fill:currentColor}.m-modal-wrap .m-modal .modal-body-wrap .modal-body .icon-info[data-v-2313a020]{color:var(--modal-primary-color)}.m-modal-wrap .m-modal .modal-body-wrap .modal-body .icon-success[data-v-2313a020]{color:var(--modal-success-color)}.m-modal-wrap .m-modal .modal-body-wrap .modal-body .icon-error[data-v-2313a020]{color:var(--modal-error-color)}.m-modal-wrap .m-modal .modal-body-wrap .modal-body .icon-warning[data-v-2313a020]{color:var(--modal-warning-color)}.m-modal-wrap .m-modal .modal-body-wrap .modal-body .icon-confirm[data-v-2313a020]{color:var(--modal-confirm-color)}.m-modal-wrap .m-modal .modal-body-wrap .modal-body .icon-erase[data-v-2313a020]{color:var(--modal-erase-color)}.m-modal-wrap .m-modal .modal-body-wrap .modal-body .modal-content[data-v-2313a020]{flex-basis:100%;margin-top:8px;font-size:14px;color:#000000e0;margin-left:34px;max-width:calc(100% - 34px)}.m-modal-wrap .m-modal .modal-body-wrap .modal-btns[data-v-2313a020]{margin-top:12px;text-align:right}.m-modal-wrap .m-modal .modal-body-wrap .modal-btns .mr8[data-v-2313a020]{margin-right:8px}.flex-centered[data-v-2313a020]{display:flex;justify-content:center;align-items:center}.flex-centered .m-modal[data-v-2313a020]{padding-bottom:0}
|
package/es/modal/Modal.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Modal.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2313a020"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|