UNPKG

yk-element-components-v2

Version:

2 lines (1 loc) 1.61 kB
(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";function s(t,e,l,m,a,d,u,g){var n=typeof t=="function"?t.options:t;e&&(n.render=e,n.staticRenderFns=l,n._compiled=!0),m&&(n.functional=!0),d&&(n._scopeId="data-v-"+d);var o;if(u?(o=function(i){i=i||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!i&&typeof __VUE_SSR_CONTEXT__<"u"&&(i=__VUE_SSR_CONTEXT__),a&&a.call(this,i),i&&i._registeredComponents&&i._registeredComponents.add(u)},n._ssrRegister=o):a&&(o=g?function(){a.call(this,(n.functional?this.parent:this).$root.$options.shadowRoot)}:a),o)if(n.functional){n._injectStyles=o;var b=n.render;n.render=function(C,c){return o.call(c),b(C,c)}}else{var _=n.beforeCreate;n.beforeCreate=_?[].concat(_,o):[o]}return{exports:t,options:n}}const r={name:"yk-tag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator(t){return["dark","light","plain"].indexOf(t)!==-1}}},data(){return{switchValue:this.value}},methods:{close(){this.$emit("close")}}};var h=function(){var e=this,l=e._self._c;return l("el-tag",{attrs:{text:e.text,closable:e.closable,type:e.type,hit:e.hit,disableTransitions:e.disableTransitions,color:e.color,size:e.size,effect:e.effect},on:{close:e.close}},[e._t("default")],2)},p=[],v=s(r,h,p,!1,null,null,null,null);const f=v.exports;return{install(t){t.component(f.name,f)}}});