@progress/kendo-vue-layout
Version:
9 lines (8 loc) • 1.22 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),t=require("@progress/kendo-vue-common"),n=i.defineComponent({name:"KendoTabStripTab",props:{disabled:Boolean,contentClassName:String,title:String,id:String,titleRender:[String,Function,Object]},inject:{addRenderTitle:{default:null},addTab:{default:null},removeTab:{default:null}},created(){this.tabId=t.guid(),this.addTab({title:this.$props.title,tabId:this.tabId,id:this.id,disabled:this.$props.disabled,contentClassName:this.$props.contentClassName})},unmounted(){this.removeTab(this.tabId)},render(){const e=this.$props.titleRender?t.templateRendering.call(this,this.$props.titleRender,t.getListeners.call(this)):null;return e&&this.addRenderTitle(this.tabId,e),i.createVNode("div",null,[t.getDefaultSlots(this)])}});exports.TabStripTab=n;