mine-h5-ui
Version:
一款轻量级、模块化基于 Vue3.x 的 H5 前端 UI 组件库 👍
42 lines (41 loc) • 1.17 kB
JavaScript
import { defineComponent as i, createElementBlock as t, openBlock as o, normalizeStyle as r, createElementVNode as l, renderSlot as m, normalizeClass as c, unref as d, toDisplayString as u } from "vue";
import { useIconName as p } from "./hooks.js";
/*!
* mine-h5-ui v2.15.0
* Copyright (c) 2025 biaov
* @license MIT
*/
const f = { class: "img" }, h = ["src"], y = { class: "txt" }, v = /* @__PURE__ */ i({
name: "MeEmpty",
__name: "index",
props: {
text: { default: "" },
type: { default: "default" },
height: { default: 200 },
iconName: { default: "" },
url: { default: "" }
},
setup(n) {
const s = n, { icon: a } = p(s);
return (e, _) => (o(), t("div", {
class: "me-empty",
style: r(`min-height:${e.height}px;`)
}, [
l("div", f, [
e.url ? (o(), t("img", {
key: 0,
src: e.url,
alt: "empty"
}, null, 8, h)) : (o(), t("i", {
key: 1,
class: c(`iconfont icon-${d(a)}`)
}, null, 2))
]),
l("div", y, u(e.text), 1),
m(e.$slots, "default")
], 4));
}
});
export {
v as default
};