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