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