ivue-material-plus
Version:
A high quality UI components Library with Vue.js
79 lines (76 loc) • 3.28 kB
JavaScript
import _sfc_main from './index.vue_vue_type_script_lang.mjs';
import { openBlock, createElementBlock, Fragment, createCommentVNode, normalizeClass, renderSlot, withDirectives, createElementVNode, normalizeStyle, vShow, createTextVNode, toDisplayString, createVNode, Transition, withCtx } from 'vue';
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return openBlock(), createElementBlock(Fragment, null, [
createCommentVNode(" \u72B6\u6001\u70B9 "),
_ctx.dot ? (openBlock(), createElementBlock("span", {
key: 0,
class: normalizeClass(_ctx.prefixCls)
}, [
renderSlot(_ctx.$slots, "default"),
withDirectives(createElementVNode("sup", {
style: normalizeStyle(_ctx.styles),
class: normalizeClass(_ctx.dotClasses)
}, null, 6), [
[vShow, _ctx.showBadge]
])
], 2)) : _ctx.status ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
createCommentVNode(" \u72B6\u6001\u70B9\u7684\u989C\u8272 "),
createElementVNode("span", {
class: normalizeClass(_ctx.statusWrapperClasses)
}, [
createElementVNode("span", {
class: normalizeClass(_ctx.statusClasses),
style: normalizeStyle(_ctx.statusStyles)
}, null, 6),
createCommentVNode(" text "),
createElementVNode("span", {
class: normalizeClass(`${_ctx.prefixCls}-status--text`)
}, [
renderSlot(_ctx.$slots, "text", {}, () => [
createTextVNode(toDisplayString(_ctx.text), 1)
])
], 2)
], 2)
], 2112)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
createCommentVNode(" \u666E\u901A\u663E\u793A "),
createElementVNode("span", {
class: normalizeClass(_ctx.prefixCls)
}, [
renderSlot(_ctx.$slots, "default"),
createVNode(Transition, {
name: `${_ctx.prefixCls}-fade`
}, {
default: withCtx(() => [
_ctx.$slots.count ? withDirectives((openBlock(), createElementBlock("sup", {
key: 0,
style: normalizeStyle(_ctx.slotsStyles),
class: normalizeClass(_ctx.countSlotsClasses)
}, [
renderSlot(_ctx.$slots, "count")
], 6)), [
[vShow, _ctx.showBadge]
]) : _ctx.hasCount ? withDirectives((openBlock(), createElementBlock("sup", {
key: 1,
style: normalizeStyle(_ctx.styles),
class: normalizeClass(_ctx.countClasses)
}, [
createElementVNode("sup", null, [
renderSlot(_ctx.$slots, "text", {}, () => [
createTextVNode(toDisplayString(_ctx.finalCount), 1)
])
])
], 6)), [
[vShow, _ctx.showBadge]
]) : createCommentVNode("v-if", true)
]),
_: 3
}, 8, ["name"])
], 2)
], 2112))
], 2112);
}
var Badge = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\louise\\person\\project\\GitHub\\ivue-ui-plus\\src\\components\\ivue-badge\\index.vue"]]);
export { Badge as default };
//# sourceMappingURL=index2.mjs.map