UNPKG

yk-element-components-v2

Version:

64 lines (63 loc) 1.67 kB
function h(a, n, i, u, o, s, _, p) { var e = typeof a == "function" ? a.options : a; n && (e.render = n, e.staticRenderFns = i, e._compiled = !0), u && (e.functional = !0), s && (e._scopeId = "data-v-" + s); var t; if (_ ? (t = function(r) { r = r || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !r && typeof __VUE_SSR_CONTEXT__ < "u" && (r = __VUE_SSR_CONTEXT__), o && o.call(this, r), r && r._registeredComponents && r._registeredComponents.add(_); }, e._ssrRegister = t) : o && (t = p ? function() { o.call( this, (e.functional ? this.parent : this).$root.$options.shadowRoot ); } : o), t) if (e.functional) { e._injectStyles = t; var v = e.render; e.render = function(c, f) { return t.call(f), v(c, f); }; } else { var d = e.beforeCreate; e.beforeCreate = d ? [].concat(d, t) : [t]; } return { exports: a, options: e }; } const m = { name: "yk-badge", props: { value: [String, Number], max: Number, isDot: Boolean, hidden: Boolean, type: { type: String, validator(a) { return ["primary", "success", "warning", "info", "danger"].indexOf(a) > -1; } } } }; var g = function() { var n = this, i = n._self._c; return i("el-badge", { attrs: { value: n.value, max: n.max, isDot: n.isDot, hidden: n.hidden, type: n.type } }, [n._t("default")], 2); }, b = [], C = /* @__PURE__ */ h( m, g, b, !1, null, "2a6f957b", null, null ); const l = C.exports, y = { install(a) { a.component(l.name, l); } }; export { y as default };