element-gui
Version:
A Component Library for Vue.js.
1 lines • 3.15 kB
JavaScript
module.exports=function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=147)}({0:function(t,e,n){"use strict";function o(t,e,n,o,r,i,l,s){var a,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),l?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(l)},c._ssrRegister=a):r&&(a=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),a)if(c.functional){c._injectStyles=a;var u=c.render;c.render=function(t,e){return a.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,a):[a]}return{exports:t,options:c}}n.d(e,"a",(function(){return o}))},147:function(t,e,n){"use strict";n.r(e);var o={name:"ElTag",inject:{elFormItem:{default:""}},props:{text:String,closable:Boolean,type:String,hit:Boolean,round:Boolean,disableTransitions:Boolean,color:String,bgColor:String,borderColor:String,size:String,icon:String,effect:{type:String,default:"light",validator:function(t){return-1!==["dark","light","plain"].indexOf(t)}}},methods:{handleClose:function(t){t.stopPropagation(),this.$emit("close",t)},handleClick:function(t){this.$emit("click",t)}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},tagSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},render:function(t){var e=this.type,n=this.tagSize,o=this.hit,r=this.round,i=this.effect,l=this.icon,s=t("span",{class:["el-tag",e?"el-tag--"+e:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",o&&"is-hit",r&&"is-round"],style:{backgroundColor:this.bgColor,color:this.color,borderColor:this.borderColor},on:{click:this.handleClick}},[l&&t("i",{class:[l,this.$slots.default?"el-icon--left":null]}),this.$slots.default,this.closable&&t("i",{class:"el-tag__close el-icon-close",style:{color:this.color},on:{click:this.handleClose}})]);return this.disableTransitions?s:t("transition",{attrs:{name:"el-zoom-in-center"}},[s])}},r=n(0),i=Object(r.a)(o,void 0,void 0,!1,null,null,null).exports;i.install=function(t){t.component(i.name,i)};e.default=i}});