vue-amazing-ui 2.2.13 → 2.2.14
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/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/dist/index.iife.js +93 -66
- package/dist/index.js +2637 -2597
- package/dist/index.umd.cjs +88 -61
- package/dist/style.css +1 -1
- package/es/alert/Alert.css +1 -1
- package/es/alert/Alert.vue.js +2 -2
- package/es/alert/Alert.vue2.js +62 -48
- package/es/backtop/BackTop.css +1 -1
- package/es/backtop/BackTop.vue.js +2 -2
- package/es/backtop/BackTop.vue2.js +43 -43
- package/es/carousel/Carousel.css +1 -1
- package/es/carousel/Carousel.vue.js +2 -2
- package/es/carousel/Carousel.vue2.js +73 -65
- package/es/cascader/Cascader.css +1 -1
- package/es/cascader/Cascader.d.ts +5 -3
- package/es/cascader/Cascader.vue.js +2 -2
- package/es/cascader/Cascader.vue2.js +61 -50
- package/es/cascader/index.d.ts +3 -0
- package/es/image/Image.css +1 -1
- package/es/image/Image.vue.js +2 -2
- package/es/image/Image.vue2.js +1 -1
- package/es/loadingbar/LoadingBar.css +1 -1
- package/es/loadingbar/LoadingBar.vue.js +2 -2
- package/es/loadingbar/LoadingBar.vue2.js +26 -23
- package/es/progress/Progress.css +1 -1
- package/es/progress/Progress.vue.js +2 -2
- package/es/progress/Progress.vue2.js +16 -11
- package/es/select/Select.css +1 -1
- package/es/select/Select.d.ts +3 -3
- package/es/select/Select.vue.js +2 -2
- package/es/select/Select.vue2.js +80 -81
- package/es/utils/resolver.js +6 -6
- package/lib/alert/Alert.css +1 -1
- package/lib/alert/Alert.vue.cjs +1 -1
- package/lib/alert/Alert.vue2.cjs +14 -1
- package/lib/backtop/BackTop.css +1 -1
- package/lib/backtop/BackTop.vue.cjs +1 -1
- package/lib/backtop/BackTop.vue2.cjs +19 -19
- package/lib/carousel/Carousel.css +1 -1
- package/lib/carousel/Carousel.vue.cjs +1 -1
- package/lib/carousel/Carousel.vue2.cjs +9 -1
- package/lib/cascader/Cascader.css +1 -1
- package/lib/cascader/Cascader.d.ts +5 -3
- package/lib/cascader/Cascader.vue.cjs +1 -1
- package/lib/cascader/Cascader.vue2.cjs +1 -1
- package/lib/cascader/index.d.ts +3 -0
- 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/loadingbar/LoadingBar.css +1 -1
- package/lib/loadingbar/LoadingBar.vue.cjs +1 -1
- package/lib/loadingbar/LoadingBar.vue2.cjs +1 -1
- package/lib/progress/Progress.css +1 -1
- package/lib/progress/Progress.vue.cjs +1 -1
- package/lib/progress/Progress.vue2.cjs +11 -5
- package/lib/select/Select.css +1 -1
- package/lib/select/Select.d.ts +3 -3
- package/lib/select/Select.vue.cjs +1 -1
- package/lib/select/Select.vue2.cjs +2 -2
- package/lib/utils/resolver.cjs +1 -1
- package/package.json +15 -15
- /package/es/node_modules/.pnpm/{@vuepic_vue-datepicker@11.0.1_vue@3.5.13_typescript@5.7.3_ → @vuepic_vue-datepicker@11.0.1_vue@3.5.13_typescript@5.8.2_}/node_modules/@vuepic/vue-datepicker/dist/main.css +0 -0
- /package/es/node_modules/.pnpm/{swiper@11.2.4 → swiper@11.2.5}/node_modules/swiper/modules/effect-cards.css +0 -0
- /package/es/node_modules/.pnpm/{swiper@11.2.4 → swiper@11.2.5}/node_modules/swiper/modules/effect-creative.css +0 -0
- /package/es/node_modules/.pnpm/{swiper@11.2.4 → swiper@11.2.5}/node_modules/swiper/modules/effect-cube.css +0 -0
- /package/es/node_modules/.pnpm/{swiper@11.2.4 → swiper@11.2.5}/node_modules/swiper/modules/effect-fade.css +0 -0
- /package/es/node_modules/.pnpm/{swiper@11.2.4 → swiper@11.2.5}/node_modules/swiper/modules/effect-flip.css +0 -0
- /package/es/node_modules/.pnpm/{swiper@11.2.4 → swiper@11.2.5}/node_modules/swiper/modules/navigation.css +0 -0
- /package/es/node_modules/.pnpm/{swiper@11.2.4 → swiper@11.2.5}/node_modules/swiper/modules/pagination.css +0 -0
- /package/es/node_modules/.pnpm/{swiper@11.2.4 → swiper@11.2.5}/node_modules/swiper/swiper.css +0 -0
- /package/lib/node_modules/.pnpm/{@vuepic_vue-datepicker@11.0.1_vue@3.5.13_typescript@5.7.3_ → @vuepic_vue-datepicker@11.0.1_vue@3.5.13_typescript@5.8.2_}/node_modules/@vuepic/vue-datepicker/dist/main.css +0 -0
- /package/lib/node_modules/.pnpm/{swiper@11.2.4 → swiper@11.2.5}/node_modules/swiper/modules/effect-cards.css +0 -0
- /package/lib/node_modules/.pnpm/{swiper@11.2.4 → swiper@11.2.5}/node_modules/swiper/modules/effect-creative.css +0 -0
- /package/lib/node_modules/.pnpm/{swiper@11.2.4 → swiper@11.2.5}/node_modules/swiper/modules/effect-cube.css +0 -0
- /package/lib/node_modules/.pnpm/{swiper@11.2.4 → swiper@11.2.5}/node_modules/swiper/modules/effect-fade.css +0 -0
- /package/lib/node_modules/.pnpm/{swiper@11.2.4 → swiper@11.2.5}/node_modules/swiper/modules/effect-flip.css +0 -0
- /package/lib/node_modules/.pnpm/{swiper@11.2.4 → swiper@11.2.5}/node_modules/swiper/modules/navigation.css +0 -0
- /package/lib/node_modules/.pnpm/{swiper@11.2.4 → swiper@11.2.5}/node_modules/swiper/modules/pagination.css +0 -0
- /package/lib/node_modules/.pnpm/{swiper@11.2.4 → swiper@11.2.5}/node_modules/swiper/swiper.css +0 -0
package/es/alert/Alert.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.alert-motion-leave[data-v-
|
|
1
|
+
.alert-motion-leave[data-v-e51e5bc0]{overflow:hidden;opacity:1;transition:max-height .3s cubic-bezier(.78,.14,.15,.86),opacity .3s cubic-bezier(.78,.14,.15,.86),padding .3s cubic-bezier(.78,.14,.15,.86)}.alert-motion-leave-active[data-v-e51e5bc0]{max-height:0!important;opacity:0!important;padding-block:0!important}.m-alert[data-v-e51e5bc0]{padding:8px 12px;color:#000000e0;font-size:14px;line-height:1.57142857;position:relative;display:flex;align-items:center;word-break:break-all;border-radius:8px}.m-alert .m-alert-icon[data-v-e51e5bc0]{display:inline-block;margin-right:8px;line-height:0}.m-alert .m-big-icon[data-v-e51e5bc0]{margin-right:12px;font-size:24px;line-height:0}.m-alert .icon-img[data-v-e51e5bc0]{display:inline-block;width:14px;height:14px}.m-alert .big-icon-img[data-v-e51e5bc0]{display:inline-block;width:24px;height:24px}.m-alert .icon-svg[data-v-e51e5bc0]{display:inline-block}.m-alert .m-alert-content[data-v-e51e5bc0]{flex:1;min-width:0}.m-alert .m-alert-actions[data-v-e51e5bc0]{margin-left:8px}.m-alert .m-alert-close[data-v-e51e5bc0]{margin-left:8px;font-size:12px;color:#00000073;line-height:12px;cursor:pointer;outline:none;transition:color .2s}.m-alert .m-alert-close[data-v-e51e5bc0]:hover{color:#000000e0}.m-alert .m-alert-close .alert-close[data-v-e51e5bc0]{display:inline-block;vertical-align:bottom;fill:#00000073;transition:fill .2s}.m-alert .m-alert-close .alert-close[data-v-e51e5bc0]:hover{fill:#000000e0}.alert-default[data-v-e51e5bc0]{background-color:#00000005;border:1px solid #d9d9d9}.alert-default .m-alert-icon[data-v-e51e5bc0],.alert-default .m-big-icon[data-v-e51e5bc0]{color:#000000e0}.alert-default .m-alert-icon .icon-svg[data-v-e51e5bc0],.alert-default .m-big-icon .icon-svg[data-v-e51e5bc0],.alert-default .m-alert-icon[data-v-e51e5bc0] svg,.alert-default .m-big-icon[data-v-e51e5bc0] svg{fill:currentColor}.alert-info[data-v-e51e5bc0]{background-color:var(--alert-primary-bg-color);border:1px solid var(--alert-primary-border-color)}.alert-info .m-alert-icon[data-v-e51e5bc0],.alert-info .m-big-icon[data-v-e51e5bc0]{color:var(--alert-primary-color)}.alert-info .m-alert-icon .icon-svg[data-v-e51e5bc0],.alert-info .m-big-icon .icon-svg[data-v-e51e5bc0],.alert-info .m-alert-icon[data-v-e51e5bc0] svg,.alert-info .m-big-icon[data-v-e51e5bc0] svg{fill:currentColor}.alert-success[data-v-e51e5bc0]{background-color:var(--alert-success-bg-color);border:1px solid var(--alert-success-border-color)}.alert-success .m-alert-icon[data-v-e51e5bc0],.alert-success .m-big-icon[data-v-e51e5bc0]{color:var(--alert-success-color)}.alert-success .m-alert-icon .icon-svg[data-v-e51e5bc0],.alert-success .m-big-icon .icon-svg[data-v-e51e5bc0],.alert-success .m-alert-icon[data-v-e51e5bc0] svg,.alert-success .m-big-icon[data-v-e51e5bc0] svg{fill:currentColor}.alert-warning[data-v-e51e5bc0]{background-color:var(--alert-warning-bg-color);border:1px solid var(--alert-warning-border-color)}.alert-warning .m-alert-icon[data-v-e51e5bc0],.alert-warning .m-big-icon[data-v-e51e5bc0]{color:var(--alert-warning-color)}.alert-warning .m-alert-icon .icon-svg[data-v-e51e5bc0],.alert-warning .m-big-icon .icon-svg[data-v-e51e5bc0],.alert-warning .m-alert-icon[data-v-e51e5bc0] svg,.alert-warning .m-big-icon[data-v-e51e5bc0] svg{fill:currentColor}.alert-error[data-v-e51e5bc0]{background-color:var(--alert-error-bg-color);border:1px solid var(--alert-error-border-color)}.alert-error .m-alert-icon[data-v-e51e5bc0],.alert-error .m-big-icon[data-v-e51e5bc0]{color:var(--alert-error-color)}.alert-error .m-alert-icon .icon-svg[data-v-e51e5bc0],.alert-error .m-big-icon .icon-svg[data-v-e51e5bc0],.alert-error .m-alert-icon[data-v-e51e5bc0] svg,.alert-error .m-big-icon[data-v-e51e5bc0] svg{fill:currentColor}.alert-borderless[data-v-e51e5bc0]{border:none}.alert-width-description[data-v-e51e5bc0]{align-items:flex-start;padding:20px 24px}.alert-width-description .alert-message[data-v-e51e5bc0]{display:block;margin-bottom:8px;color:#000000e0;font-size:16px}.alert-width-description .alert-description[data-v-e51e5bc0]{display:block}
|
package/es/alert/Alert.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Alert.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e51e5bc0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
package/es/alert/Alert.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as k, ref as m, computed as v, createBlock as z, openBlock as o, Transition as C, withCtx as B, createElementBlock as l, createCommentVNode as i, normalizeClass as M, createElementVNode as t, Fragment as L, renderSlot as r, createTextVNode as p, toDisplayString as u, unref as S, withKeys as $, withModifiers as T, nextTick as V } from "vue";
|
|
2
2
|
import { useSlotsExist as H } from "../utils/index.js";
|
|
3
3
|
const E = {
|
|
4
4
|
key: 0,
|
|
@@ -102,7 +102,7 @@ const E = {
|
|
|
102
102
|
fill: "currentColor",
|
|
103
103
|
"aria-hidden": "true",
|
|
104
104
|
viewBox: "64 64 896 896"
|
|
105
|
-
}, x = /* @__PURE__ */
|
|
105
|
+
}, x = /* @__PURE__ */ k({
|
|
106
106
|
__name: "Alert",
|
|
107
107
|
props: {
|
|
108
108
|
message: { default: void 0 },
|
|
@@ -117,18 +117,18 @@ const E = {
|
|
|
117
117
|
},
|
|
118
118
|
emits: ["close"],
|
|
119
119
|
setup(g, { emit: y }) {
|
|
120
|
-
const
|
|
121
|
-
async function
|
|
122
|
-
c.value.style.maxHeight = `${c.value.offsetHeight}px`, await V(),
|
|
120
|
+
const a = g, c = m(), f = m(!1), w = y, n = H(["icon", "description", "actions"]), b = v(() => n.icon || a.icon || ["success", "info", "warning", "error"].includes(a.type)), d = v(() => n.description || a.description);
|
|
121
|
+
async function h(e) {
|
|
122
|
+
c.value.style.maxHeight = `${c.value.offsetHeight}px`, await V(), f.value = !0, w("close", e);
|
|
123
123
|
}
|
|
124
|
-
return (e,
|
|
124
|
+
return (e, s) => (o(), z(C, {
|
|
125
125
|
name: "alert-motion",
|
|
126
126
|
"leave-from-class": "alert-motion-leave",
|
|
127
127
|
"leave-active-class": "alert-motion-leave alert-motion-leave-active",
|
|
128
128
|
"leave-to-class": "alert-motion-leave alert-motion-leave-active"
|
|
129
129
|
}, {
|
|
130
130
|
default: B(() => [
|
|
131
|
-
|
|
131
|
+
f.value ? i("", !0) : (o(), l("div", {
|
|
132
132
|
key: 0,
|
|
133
133
|
ref_key: "alertRef",
|
|
134
134
|
ref: c,
|
|
@@ -138,72 +138,86 @@ const E = {
|
|
|
138
138
|
"alert-borderless": !e.bordered,
|
|
139
139
|
"alert-width-description": d.value
|
|
140
140
|
}
|
|
141
|
-
]])
|
|
141
|
+
]]),
|
|
142
|
+
style: `
|
|
143
|
+
--alert-primary-color: #1677ff;
|
|
144
|
+
--alert-primary-bg-color: #e6f4ff;
|
|
145
|
+
--alert-primary-border-color: #91caff;
|
|
146
|
+
--alert-success-color: #52c41a;
|
|
147
|
+
--alert-success-bg-color: #f6ffed;
|
|
148
|
+
--alert-success-border-color: #b7eb8f;
|
|
149
|
+
--alert-warning-color: #faad14;
|
|
150
|
+
--alert-warning-bg-color: #fffbe6;
|
|
151
|
+
--alert-warning-border-color: #ffe58f;
|
|
152
|
+
--alert-error-color: #ff4d4f;
|
|
153
|
+
--alert-error-bg-color: #fff2f0;
|
|
154
|
+
--alert-error-border-color: #ffccc7;
|
|
155
|
+
`
|
|
142
156
|
}, [
|
|
143
|
-
e.showIcon &&
|
|
144
|
-
d.value ? (
|
|
145
|
-
|
|
146
|
-
e.icon ? (
|
|
157
|
+
e.showIcon && b.value ? (o(), l(L, { key: 0 }, [
|
|
158
|
+
d.value ? (o(), l("span", R, [
|
|
159
|
+
r(e.$slots, "icon", {}, () => [
|
|
160
|
+
e.icon ? (o(), l("img", {
|
|
147
161
|
key: 0,
|
|
148
162
|
src: e.icon,
|
|
149
163
|
class: "big-icon-img"
|
|
150
|
-
}, null, 8, _)) : e.type === "info" ? (
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
]))) : e.type === "success" ? (
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
]))) : e.type === "warning" ? (
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
]))) : e.type === "error" ? (
|
|
160
|
-
|
|
161
|
-
|
|
164
|
+
}, null, 8, _)) : e.type === "info" ? (o(), l("svg", F, s[4] || (s[4] = [
|
|
165
|
+
t("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" }, null, -1),
|
|
166
|
+
t("path", { d: "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" }, null, -1)
|
|
167
|
+
]))) : e.type === "success" ? (o(), l("svg", j, s[5] || (s[5] = [
|
|
168
|
+
t("path", { d: "M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z" }, null, -1),
|
|
169
|
+
t("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" }, null, -1)
|
|
170
|
+
]))) : e.type === "warning" ? (o(), l("svg", q, s[6] || (s[6] = [
|
|
171
|
+
t("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" }, null, -1),
|
|
172
|
+
t("path", { d: "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" }, null, -1)
|
|
173
|
+
]))) : e.type === "error" ? (o(), l("svg", G, s[7] || (s[7] = [
|
|
174
|
+
t("path", { d: "M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-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 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z" }, null, -1),
|
|
175
|
+
t("path", { d: "M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" }, null, -1)
|
|
162
176
|
]))) : i("", !0)
|
|
163
177
|
], !0)
|
|
164
|
-
])) : (
|
|
165
|
-
|
|
166
|
-
e.icon ? (
|
|
178
|
+
])) : (o(), l("span", E, [
|
|
179
|
+
r(e.$slots, "icon", {}, () => [
|
|
180
|
+
e.icon ? (o(), l("img", {
|
|
167
181
|
key: 0,
|
|
168
182
|
src: e.icon,
|
|
169
183
|
class: "icon-img"
|
|
170
|
-
}, null, 8, A)) : e.type === "info" ? (
|
|
171
|
-
|
|
172
|
-
]))) : e.type === "success" ? (
|
|
173
|
-
|
|
174
|
-
]))) : e.type === "warning" ? (
|
|
175
|
-
|
|
176
|
-
]))) : e.type === "error" ? (
|
|
177
|
-
|
|
184
|
+
}, null, 8, A)) : e.type === "info" ? (o(), l("svg", I, s[0] || (s[0] = [
|
|
185
|
+
t("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)
|
|
186
|
+
]))) : e.type === "success" ? (o(), l("svg", K, s[1] || (s[1] = [
|
|
187
|
+
t("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)
|
|
188
|
+
]))) : e.type === "warning" ? (o(), l("svg", N, s[2] || (s[2] = [
|
|
189
|
+
t("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)
|
|
190
|
+
]))) : e.type === "error" ? (o(), l("svg", D, s[3] || (s[3] = [
|
|
191
|
+
t("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" }, null, -1)
|
|
178
192
|
]))) : i("", !0)
|
|
179
193
|
], !0)
|
|
180
194
|
]))
|
|
181
195
|
], 64)) : i("", !0),
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
196
|
+
t("div", J, [
|
|
197
|
+
t("div", O, [
|
|
198
|
+
r(e.$slots, "default", {}, () => [
|
|
185
199
|
p(u(e.message), 1)
|
|
186
200
|
], !0)
|
|
187
201
|
]),
|
|
188
|
-
d.value ? (
|
|
189
|
-
|
|
202
|
+
d.value ? (o(), l("div", P, [
|
|
203
|
+
r(e.$slots, "description", {}, () => [
|
|
190
204
|
p(u(e.description), 1)
|
|
191
205
|
], !0)
|
|
192
206
|
])) : i("", !0)
|
|
193
207
|
]),
|
|
194
|
-
S(
|
|
195
|
-
|
|
208
|
+
S(n).actions ? (o(), l("div", Q, [
|
|
209
|
+
r(e.$slots, "actions", {}, void 0, !0)
|
|
196
210
|
])) : i("", !0),
|
|
197
|
-
e.closable ? (
|
|
211
|
+
e.closable ? (o(), l("a", {
|
|
198
212
|
key: 2,
|
|
199
213
|
tabindex: "0",
|
|
200
214
|
class: "m-alert-close",
|
|
201
|
-
onClick:
|
|
202
|
-
onKeydown: $(T(
|
|
215
|
+
onClick: h,
|
|
216
|
+
onKeydown: $(T(h, ["prevent"]), ["enter"])
|
|
203
217
|
}, [
|
|
204
|
-
|
|
205
|
-
e.closeText ? (
|
|
206
|
-
|
|
218
|
+
r(e.$slots, "closeText", {}, () => [
|
|
219
|
+
e.closeText ? (o(), l("span", W, u(e.closeText), 1)) : (o(), l("svg", X, s[8] || (s[8] = [
|
|
220
|
+
t("path", { d: "M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" }, null, -1)
|
|
207
221
|
])))
|
|
208
222
|
], !0)
|
|
209
223
|
], 40, U)) : i("", !0)
|
package/es/backtop/BackTop.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zoom-enter-active[data-v-
|
|
1
|
+
.zoom-enter-active[data-v-b90c7785],.zoom-leave-active[data-v-b90c7785]{transition:all .3s cubic-bezier(.4,0,.2,1)}.zoom-enter-from[data-v-b90c7785],.zoom-leave-to[data-v-b90c7785]{opacity:0;transform:scale(.5)}.m-backtop[data-v-b90c7785]{position:fixed;z-index:var(--backtop-z-index)}.m-backtop .backtop-wrap[data-v-b90c7785]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:var(--backtop-height);min-width:var(--backtop-width);cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1)}.m-backtop .backtop-wrap .backtop-icon[data-v-b90c7785]{display:inline-flex;font-size:var(--backtop-icon-size)}.m-backtop .backtop-wrap .backtop-icon[data-v-b90c7785] svg{pointer-events:none;fill:currentColor;transition:color .3s cubic-bezier(.4,0,.2,1)}.m-backtop .backtop-wrap .icon-with-description[data-v-b90c7785]{font-size:var(--backtop-icon-with-desc-size)}.m-backtop .backtop-wrap .backtop-description[data-v-b90c7785]{display:flex;align-items:center;font-size:var(--backtop-desc-font-size);font-weight:500;line-height:1.2;pointer-events:none;transition:color .3s cubic-bezier(.4,0,.2,1)}.m-backtop .backtop-default[data-v-b90c7785]{color:var(--backtop-default-color);background-color:var(--backtop-default-bg-color);box-shadow:0 2px 8px 0 var(--backtop-default-shadow-color)}.m-backtop .backtop-default .backtop-icon[data-v-b90c7785],.m-backtop .backtop-default .backtop-description[data-v-b90c7785]{color:var(--backtop-default-color)}.m-backtop .backtop-default[data-v-b90c7785]:hover{color:var(--backtop-default-color-hover);background-color:var(--backtop-default-bg-color-hover);box-shadow:0 2px 8px 3px var(--backtop-default-shadow-color-hover)}.m-backtop .backtop-default:hover .backtop-icon[data-v-b90c7785],.m-backtop .backtop-default:hover .backtop-description[data-v-b90c7785]{color:var(--backtop-default-color-hover)}.m-backtop .backtop-primary[data-v-b90c7785]{color:var(--backtop-primary-color);background-color:var(--backtop-primary-bg-color);box-shadow:0 2px 8px 0 var(--backtop-primary-shadow-color)}.m-backtop .backtop-primary .backtop-icon[data-v-b90c7785],.m-backtop .backtop-primary .backtop-description[data-v-b90c7785]{color:var(--backtop-primary-color)}.m-backtop .backtop-primary[data-v-b90c7785]:hover{color:var(--backtop-primary-color-hover);background-color:var(--backtop-primary-bg-color-hover);box-shadow:0 2px 8px 3px var(--backtop-primary-shadow-color-hover)}.m-backtop .backtop-primary:hover .backtop-icon[data-v-b90c7785],.m-backtop .backtop-primary:hover .backtop-description[data-v-b90c7785]{color:var(--backtop-primary-color-hover)}.m-backtop .backtop-circle[data-v-b90c7785]{border-radius:var(--backtop-circle-border-radius)}.m-backtop .backtop-square[data-v-b90c7785]{border-radius:var(--backtop-square-border-radius)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./BackTop.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b90c7785"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as O, ref as s, computed as i, watch as d, onMounted as Z, onBeforeUnmount as q, createBlock as C, openBlock as
|
|
1
|
+
import { defineComponent as O, ref as s, computed as i, watch as d, onMounted as Z, onBeforeUnmount as q, createBlock as C, openBlock as c, Transition as U, withCtx as f, withDirectives as X, createElementVNode as r, normalizeStyle as Y, createVNode as j, unref as A, mergeProps as F, createSlots as G, normalizeClass as E, renderSlot as u, createElementBlock as S, createCommentVNode as J, resolveDynamicComponent as K, createTextVNode as $, toDisplayString as z, vShow as Q } from "vue";
|
|
2
2
|
import W from "../tooltip/index.js";
|
|
3
3
|
import { useSlotsExist as _, useMutationObserver as ee } from "../utils/index.js";
|
|
4
4
|
const te = {
|
|
@@ -30,14 +30,14 @@ const te = {
|
|
|
30
30
|
},
|
|
31
31
|
emits: ["click", "show"],
|
|
32
32
|
setup(B, { emit: x }) {
|
|
33
|
-
const t = B,
|
|
33
|
+
const t = B, a = s(null), p = s(0), o = s(null), n = s(null), m = x, b = _(["tooltip", "icon", "description"]), M = i(() => ({
|
|
34
34
|
bottom: typeof t.bottom == "number" ? `${t.bottom}px` : t.bottom,
|
|
35
35
|
right: typeof t.right == "number" ? `${t.right}px` : t.right
|
|
36
|
-
})),
|
|
36
|
+
})), v = i(() => p.value >= t.visibilityHeight), N = i(() => b.tooltip || t.tooltip), h = i(() => b.description || t.description);
|
|
37
37
|
d(
|
|
38
38
|
() => t.to,
|
|
39
39
|
() => {
|
|
40
|
-
|
|
40
|
+
y();
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
flush: "post"
|
|
@@ -45,20 +45,20 @@ const te = {
|
|
|
45
45
|
), d(
|
|
46
46
|
() => t.listenTo,
|
|
47
47
|
() => {
|
|
48
|
-
|
|
48
|
+
L();
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
flush: "post"
|
|
52
52
|
}
|
|
53
|
-
), d(
|
|
53
|
+
), d(v, (e) => {
|
|
54
54
|
m("show", e);
|
|
55
55
|
}), Z(() => {
|
|
56
|
-
|
|
56
|
+
L();
|
|
57
57
|
}), q(() => {
|
|
58
58
|
var e;
|
|
59
|
-
|
|
59
|
+
w(), (e = a.value) == null || e.remove();
|
|
60
60
|
});
|
|
61
|
-
const
|
|
61
|
+
const k = ee(
|
|
62
62
|
o,
|
|
63
63
|
() => {
|
|
64
64
|
var e;
|
|
@@ -66,18 +66,18 @@ const te = {
|
|
|
66
66
|
},
|
|
67
67
|
{ subtree: !0, childList: !0, attributes: !0, characterData: !0 }
|
|
68
68
|
);
|
|
69
|
-
function
|
|
69
|
+
function g(e) {
|
|
70
70
|
p.value = e.target.scrollTop;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
function y() {
|
|
76
|
-
o.value && o.value.removeEventListener("scroll", L), o.value = null, g.stop();
|
|
72
|
+
function L() {
|
|
73
|
+
w(), t.listenTo === void 0 ? o.value = T(a.value) : typeof t.listenTo == "string" ? o.value = document.getElementsByTagName(t.listenTo)[0] : t.listenTo instanceof HTMLElement && (o.value = t.listenTo), o.value || console.warn("Container of back-top element is not found."), o.value && o.value.addEventListener("scroll", g), o.value === document.documentElement && k.start(), y();
|
|
77
74
|
}
|
|
78
75
|
function w() {
|
|
76
|
+
o.value && o.value.removeEventListener("scroll", g), o.value = null, k.stop();
|
|
77
|
+
}
|
|
78
|
+
function y() {
|
|
79
79
|
var e;
|
|
80
|
-
typeof t.to == "string" ?
|
|
80
|
+
typeof t.to == "string" ? n.value = document.getElementsByTagName(t.to)[0] : t.to instanceof HTMLElement && (n.value = t.to), n.value && ((e = n.value) == null || e.appendChild(a.value));
|
|
81
81
|
}
|
|
82
82
|
function D(e) {
|
|
83
83
|
return e === document.documentElement ? null : e.parentElement;
|
|
@@ -97,11 +97,11 @@ const te = {
|
|
|
97
97
|
// 平滑滚动并产生过渡效果
|
|
98
98
|
}), m("click");
|
|
99
99
|
}
|
|
100
|
-
return (e, l) => (
|
|
100
|
+
return (e, l) => (c(), C(U, { name: "zoom" }, {
|
|
101
101
|
default: f(() => [
|
|
102
102
|
X(r("div", {
|
|
103
103
|
ref_key: "backtopRef",
|
|
104
|
-
ref:
|
|
104
|
+
ref: a,
|
|
105
105
|
class: "m-backtop",
|
|
106
106
|
style: Y([
|
|
107
107
|
M.value,
|
|
@@ -109,23 +109,23 @@ const te = {
|
|
|
109
109
|
--backtop-z-index: ${e.zIndex};
|
|
110
110
|
--backtop-width: 44px;
|
|
111
111
|
--backtop-height: 44px;
|
|
112
|
-
--icon-size: 26px;
|
|
113
|
-
--icon-
|
|
114
|
-
--desc-size: 12px;
|
|
115
|
-
--default-color: rgba(0, 0, 0, 0.88);
|
|
116
|
-
--default-color-hover: #1677ff;
|
|
117
|
-
--default-bg-color: rgba(255, 255, 255, 0.88);
|
|
118
|
-
--default-bg-color-hover: rgba(255, 255, 255);
|
|
119
|
-
--default-shadow-color: rgba(0, 0, 0, 0.12);
|
|
120
|
-
--default-shadow-color-hover: rgba(0, 0, 0, 0.12);
|
|
121
|
-
--primary-color: #fff;
|
|
122
|
-
--primary-color-hover: #fff;
|
|
123
|
-
--primary-bg-color: #1677ff;
|
|
124
|
-
--primary-bg-color-hover: #4096ff;
|
|
125
|
-
--primary-shadow-color: rgba(9, 88, 217, 0.32);
|
|
126
|
-
--primary-shadow-color-hover: rgba(9, 88, 217, 0.32);
|
|
127
|
-
--circle-border-radius: calc(var(--backtop-width) / 2);
|
|
128
|
-
--square-border-radius: 8px;
|
|
112
|
+
--backtop-icon-size: 26px;
|
|
113
|
+
--backtop-icon-with-desc-size: 24px;
|
|
114
|
+
--backtop-desc-font-size: 12px;
|
|
115
|
+
--backtop-default-color: rgba(0, 0, 0, 0.88);
|
|
116
|
+
--backtop-default-color-hover: #1677ff;
|
|
117
|
+
--backtop-default-bg-color: rgba(255, 255, 255, 0.88);
|
|
118
|
+
--backtop-default-bg-color-hover: rgba(255, 255, 255);
|
|
119
|
+
--backtop-default-shadow-color: rgba(0, 0, 0, 0.12);
|
|
120
|
+
--backtop-default-shadow-color-hover: rgba(0, 0, 0, 0.12);
|
|
121
|
+
--backtop-primary-color: #fff;
|
|
122
|
+
--backtop-primary-color-hover: #fff;
|
|
123
|
+
--backtop-primary-bg-color: #1677ff;
|
|
124
|
+
--backtop-primary-bg-color-hover: #4096ff;
|
|
125
|
+
--backtop-primary-shadow-color: rgba(9, 88, 217, 0.32);
|
|
126
|
+
--backtop-primary-shadow-color-hover: rgba(9, 88, 217, 0.32);
|
|
127
|
+
--backtop-circle-border-radius: calc(var(--backtop-width) / 2);
|
|
128
|
+
--backtop-square-border-radius: 8px;
|
|
129
129
|
`
|
|
130
130
|
]),
|
|
131
131
|
onClick: H
|
|
@@ -138,12 +138,12 @@ const te = {
|
|
|
138
138
|
r("div", {
|
|
139
139
|
class: E(["backtop-wrap", `backtop-${e.type} backtop-${e.shape}`])
|
|
140
140
|
}, [
|
|
141
|
-
|
|
141
|
+
u(e.$slots, "default", {}, () => [
|
|
142
142
|
r("span", {
|
|
143
|
-
class: E(["backtop-icon", { "icon-description":
|
|
143
|
+
class: E(["backtop-icon", { "icon-with-description": h.value }])
|
|
144
144
|
}, [
|
|
145
|
-
|
|
146
|
-
e.icon ? (
|
|
145
|
+
u(e.$slots, "icon", {}, () => [
|
|
146
|
+
e.icon ? (c(), C(K(e.icon), { key: 0 })) : (c(), S("svg", te, l[0] || (l[0] = [
|
|
147
147
|
r("g", {
|
|
148
148
|
stroke: "none",
|
|
149
149
|
"stroke-width": "1",
|
|
@@ -168,8 +168,8 @@ const te = {
|
|
|
168
168
|
])))
|
|
169
169
|
], !0)
|
|
170
170
|
], 2),
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
h.value ? (c(), S("span", oe, [
|
|
172
|
+
u(e.$slots, "description", {}, () => [
|
|
173
173
|
$(z(e.description), 1)
|
|
174
174
|
], !0)
|
|
175
175
|
])) : J("", !0)
|
|
@@ -181,7 +181,7 @@ const te = {
|
|
|
181
181
|
N.value ? {
|
|
182
182
|
name: "tooltip",
|
|
183
183
|
fn: f(() => [
|
|
184
|
-
|
|
184
|
+
u(e.$slots, "tooltip", {}, () => [
|
|
185
185
|
$(z(e.tooltip), 1)
|
|
186
186
|
], !0)
|
|
187
187
|
]),
|
|
@@ -189,7 +189,7 @@ const te = {
|
|
|
189
189
|
} : void 0
|
|
190
190
|
]), 1040, ["style", "content-style"])
|
|
191
191
|
], 4), [
|
|
192
|
-
[Q,
|
|
192
|
+
[Q, v.value]
|
|
193
193
|
])
|
|
194
194
|
]),
|
|
195
195
|
_: 3
|
package/es/carousel/Carousel.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.m-carousel[data-v-
|
|
1
|
+
.m-carousel[data-v-8219579c]{display:inline-block;width:var(--carousel-width);height:var(--carousel-height);margin:0 auto;position:relative;overflow:hidden}.m-carousel .carousel-flex-wrap[data-v-8219579c]{display:flex;width:100%;height:100%}.m-carousel .carousel-flex-wrap .image-wrap[data-v-8219579c]{flex-shrink:0;display:inline-block;cursor:pointer}.m-carousel .carousel-flex-wrap .image-wrap .image-link[data-v-8219579c]{display:block;height:100%;cursor:default}.m-carousel .carousel-flex-wrap .image-wrap .image-link .image-item[data-v-8219579c]{width:100%;height:100%;border-radius:var(--border-radius);display:inline-block;vertical-align:bottom}.m-carousel .carousel-flex-wrap .image-wrap .link-cursor[data-v-8219579c]{cursor:pointer}.m-carousel:hover .arrow-left[data-v-8219579c],.m-carousel:hover .arrow-right[data-v-8219579c]{opacity:.7;pointer-events:auto}.m-carousel .arrow-left[data-v-8219579c]{position:absolute;left:6px;top:50%;transform:translateY(-50%);color:var(--carousel-arrow-color);fill:currentColor;cursor:pointer;opacity:0;pointer-events:none;outline:none;transition:opacity .3s}.m-carousel .arrow-left[data-v-8219579c]:hover{opacity:1}.m-carousel .arrow-right[data-v-8219579c]{position:absolute;right:6px;top:50%;transform:translateY(-50%);color:var(--carousel-arrow-color);fill:currentColor;cursor:pointer;opacity:0;pointer-events:none;outline:none;transition:opacity .3s}.m-carousel .arrow-right[data-v-8219579c]:hover{opacity:1}.m-carousel .carousel-switch[data-v-8219579c]{display:flex;justify-content:center;gap:8px;position:absolute;z-index:9;bottom:12px;left:50%;transform:translate(-50%);height:auto}.m-carousel .carousel-switch .dot-item[data-v-8219579c]{width:var(--carousel-dot-size);height:var(--carousel-dot-size);border-radius:var(--carousel-dot-size);background-color:var(--carousel-dot-color);cursor:pointer;outline:none;transition:all .3s cubic-bezier(.4,0,.2,1)}.m-carousel .switch-top[data-v-8219579c]{top:12px;bottom:auto}.m-carousel .switch-left[data-v-8219579c]{left:12px;right:auto;top:50%;bottom:auto;transform:translateY(-50%);flex-direction:column}.m-carousel .switch-right[data-v-8219579c]{right:12px;left:auto;top:50%;bottom:auto;transform:translateY(-50%);flex-direction:column}.carousel-vertical .carousel-flex-wrap[data-v-8219579c]{flex-direction:column}.carousel-vertical .arrow-left[data-v-8219579c]{top:6px;left:50%;transform:translate(-50%) rotate(90deg)}.carousel-vertical .arrow-right[data-v-8219579c]{top:auto;bottom:6px;left:50%;transform:translate(-50%) rotate(90deg)}.carousel-fade .image-wrap[data-v-8219579c]{position:absolute;opacity:0;pointer-events:none;transition-property:opacity;transition-duration:var(--carousel-fade-duration);transition-timing-function:var(--carousel-fade-function)}.carousel-fade .image-fade-active[data-v-8219579c]{opacity:1;pointer-events:auto}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Carousel.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-8219579c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|