UNPKG

tk-eui-plus

Version:

2 lines (1 loc) 1.18 kB
(function(e,l){typeof exports=="object"&&typeof module<"u"?module.exports=l(require("vue")):typeof define=="function"&&define.amd?define(["vue"],l):(e=typeof globalThis<"u"?globalThis:e||self,e.index=l(e.Vue))})(this,function(e){"use strict";const l=e.defineComponent({__name:"index",props:{value:{type:String,default:""},type:{type:String,default:"",validator:t=>["","card","border-card"].includes(t)},style:{type:Object,default:()=>{}},closable:{type:Boolean,default:!1},addable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},tabPosition:{type:String,default:"top"},stretch:{type:Boolean,default:!1}},setup(t){let n=e.useSlots();return(a,s)=>{const o=e.resolveComponent("el-tabs");return e.openBlock(),e.createBlock(o,e.mergeProps({value:t.value,type:t.type,"tab-position":t.tabPosition,closable:t.closable,addable:t.addable,editable:t.editable,stretch:t.stretch,style:t.style},a.$attrs,{class:"my-tabs"}),{default:e.withCtx(()=>[e.unref(n).default?e.renderSlot(a.$slots,"default",{key:0}):e.createCommentVNode("v-if",!0)]),_:3},16,["value","type","tab-position","closable","addable","editable","stretch","style"])}}});return{install(t){t.component("tkTabs",l)}}});