mine-h5-ui
Version:
一款轻量级、模块化基于 Vue3.x 的 H5 前端 UI 组件库 👍
43 lines (42 loc) • 1.21 kB
JavaScript
import { defineComponent as a, createElementBlock as t, createCommentVNode as i, openBlock as o, normalizeClass as n, createElementVNode as s, toDisplayString as r } from "vue";
/*!
* mine-h5-ui v2.15.0
* Copyright (c) 2025 biaov
* @license MIT
*/
const d = { class: "me-error-text" }, m = {
key: 0,
class: "text-title"
}, u = {
key: 1,
class: "text-subtit"
}, c = /* @__PURE__ */ a({
name: "MeError",
__name: "index",
props: {
visible: { type: Boolean, default: !1 },
title: { default: "页面错误" },
subtit: { default: "请检查网络是否正常" },
theme: { default: "light" },
position: { default: "fixed" }
},
setup(p) {
return (e, l) => e.visible ? (o(), t("div", {
key: 0,
class: n(["me-error", [e.position, e.theme]])
}, [
l[0] || (l[0] = s("div", { class: "me-error-img" }, [
s("i", {
class: n("iconfont icon-zhongdaanjianguanli")
})
], -1)),
s("div", d, [
e.title ? (o(), t("div", m, r(e.title), 1)) : i("", !0),
e.subtit ? (o(), t("div", u, r(e.subtit), 1)) : i("", !0)
])
], 2)) : i("", !0);
}
});
export {
c as default
};