UNPKG

ivue-material-plus

Version:

A high quality UI components Library with Vue.js

83 lines (78 loc) 3.46 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var index_vue_vue_type_script_lang = require('./index.vue_vue_type_script_lang.js'); var vue = require('vue'); var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js'); function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [ vue.createCommentVNode(" \u72B6\u6001\u70B9 "), _ctx.dot ? (vue.openBlock(), vue.createElementBlock("span", { key: 0, class: vue.normalizeClass(_ctx.prefixCls) }, [ vue.renderSlot(_ctx.$slots, "default"), vue.withDirectives(vue.createElementVNode("sup", { style: vue.normalizeStyle(_ctx.styles), class: vue.normalizeClass(_ctx.dotClasses) }, null, 6), [ [vue.vShow, _ctx.showBadge] ]) ], 2)) : _ctx.status ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [ vue.createCommentVNode(" \u72B6\u6001\u70B9\u7684\u989C\u8272 "), vue.createElementVNode("span", { class: vue.normalizeClass(_ctx.statusWrapperClasses) }, [ vue.createElementVNode("span", { class: vue.normalizeClass(_ctx.statusClasses), style: vue.normalizeStyle(_ctx.statusStyles) }, null, 6), vue.createCommentVNode(" text "), vue.createElementVNode("span", { class: vue.normalizeClass(`${_ctx.prefixCls}-status--text`) }, [ vue.renderSlot(_ctx.$slots, "text", {}, () => [ vue.createTextVNode(vue.toDisplayString(_ctx.text), 1) ]) ], 2) ], 2) ], 2112)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [ vue.createCommentVNode(" \u666E\u901A\u663E\u793A "), vue.createElementVNode("span", { class: vue.normalizeClass(_ctx.prefixCls) }, [ vue.renderSlot(_ctx.$slots, "default"), vue.createVNode(vue.Transition, { name: `${_ctx.prefixCls}-fade` }, { default: vue.withCtx(() => [ _ctx.$slots.count ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("sup", { key: 0, style: vue.normalizeStyle(_ctx.slotsStyles), class: vue.normalizeClass(_ctx.countSlotsClasses) }, [ vue.renderSlot(_ctx.$slots, "count") ], 6)), [ [vue.vShow, _ctx.showBadge] ]) : _ctx.hasCount ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("sup", { key: 1, style: vue.normalizeStyle(_ctx.styles), class: vue.normalizeClass(_ctx.countClasses) }, [ vue.createElementVNode("sup", null, [ vue.renderSlot(_ctx.$slots, "text", {}, () => [ vue.createTextVNode(vue.toDisplayString(_ctx.finalCount), 1) ]) ]) ], 6)), [ [vue.vShow, _ctx.showBadge] ]) : vue.createCommentVNode("v-if", true) ]), _: 3 }, 8, ["name"]) ], 2) ], 2112)) ], 2112); } var Badge = /* @__PURE__ */ _pluginVue_exportHelper["default"](index_vue_vue_type_script_lang["default"], [["render", _sfc_render], ["__file", "D:\\louise\\person\\project\\GitHub\\ivue-ui-plus\\src\\components\\ivue-badge\\index.vue"]]); exports["default"] = Badge; //# sourceMappingURL=index2.js.map