birdpaper-ui
Version:
一个通用的 vue3 UI组件库。A common vue3 UI component library.
33 lines (32 loc) • 1.45 kB
JavaScript
;
const tag_vue_vue_type_script_lang = require("./tag.vue2.js");
const vue = require("vue");
const _pluginVue_exportHelper = require("../../_virtual/_plugin-vue_export-helper.js");
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_IconCloseLine = vue.resolveComponent("IconCloseLine");
return vue.openBlock(), vue.createElementBlock("div", {
class: vue.normalizeClass(_ctx.cls)
}, [
_ctx.dot ? (vue.openBlock(), vue.createElementBlock("div", {
key: 0,
class: vue.normalizeClass([`${_ctx.name}-dot`, `${_ctx.name}-dot-${_ctx.status}`])
}, null, 2)) : vue.createCommentVNode("", true),
vue.createElementVNode("div", {
class: vue.normalizeClass(`${_ctx.name}-icon`)
}, [
_ctx.slots.icon ? vue.renderSlot(_ctx.$slots, "icon", { key: 0 }) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon), { key: 1 }))
], 2),
vue.createElementVNode("span", {
class: vue.normalizeClass(`${_ctx.name}-inner`)
}, [
vue.renderSlot(_ctx.$slots, "default")
], 2),
_ctx.closeable ? (vue.openBlock(), vue.createBlock(_component_IconCloseLine, {
key: 1,
onClick: _ctx.handleClose,
size: "14px"
}, null, 8, ["onClick"])) : vue.createCommentVNode("", true)
], 2);
}
const _tag = /* @__PURE__ */ _pluginVue_exportHelper(tag_vue_vue_type_script_lang, [["render", _sfc_render]]);
module.exports = _tag;