quick-admin-vue3-core
Version:
以快(计算机执行效率、开发效率)为核心的后台管理系统开发模板
48 lines (47 loc) • 1.73 kB
JavaScript
import { defineComponent as P, useAttrs as k, computed as y, resolveComponent as t, createBlock as p, createCommentVNode as a, openBlock as c, normalizeProps as C, mergeProps as l, withCtx as r, createVNode as i, unref as e } from "vue";
import { _ as h, b0 as E, n as V } from "./platform-DsTwHxm6.js";
import { B as g } from "./index-D-KS7NhM.js";
import "./index-C0qRtkRj.js";
/* empty css */
import { u as z } from "./form-attrs-Ddm3tVIR.js";
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
const F = /* @__PURE__ */ P({
inheritAttrs: !1,
__name: "ExplainPopover",
props: {
explain: {},
type: { default: "info" }
},
setup(m) {
const { upperFirst: u } = h, _ = k(), { size: f } = z(), d = m, o = y(() => E(d.explain));
return (v, N) => {
const x = t("BaseRender"), A = t("el-icon"), B = t("el-popover");
return o.value ? (c(), p(B, C(l({ key: 0 }, o.value)), {
reference: r(() => [
i(A, l({
color: e(V)[`color${e(u)(v.type)}`],
class: ["icon f-0", [e(f)]]
}, e(_)), {
default: r(() => [
i(e(g))
]),
_: 1
}, 16, ["color", "class"])
]),
default: r(() => {
var s, n;
return [
(s = o.value.slots) != null && s.default ? (c(), p(x, {
key: 0,
renderData: (n = o.value.slots) == null ? void 0 : n.default
}, null, 8, ["renderData"])) : a("", !0)
];
}),
_: 1
}, 16)) : a("", !0);
};
}
}), G = /* @__PURE__ */ D(F, [["__scopeId", "data-v-0d590e64"]]);
export {
G as E
};