@progress/kendo-vue-layout
Version:
9 lines (8 loc) • 1.42 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 n=require("vue"),l=require("@progress/kendo-vue-common"),f=n.defineComponent({name:"KendoSplitterPane",props:{orientation:{type:String,default:function(){},validator:function(e){return["vertical","horizontal"].includes(e)}},overlay:Boolean,containsSplitter:Boolean,size:String,min:String,max:String,resizable:Boolean,collapsible:Boolean,collapsed:Boolean,scrollable:Boolean,keepMounted:Boolean,content:[Object,Function,String]},render(){const{size:e,collapsed:t,overlay:o,containsSplitter:a,collapsible:i,resizable:r,scrollable:s,keepMounted:c}=this.$props,d=e&&e.length>0,p={flexBasis:e},u=l.classNames("k-pane",{"k-hidden":t,hidden:t,"k-pane-flex":a,"k-pane-static":!r&&!i||d,"k-scrollable":s}),S=l.getTemplate.call(this,{h:n.h,template:this.$props.content,defaultRendering:null});return n.createVNode("div",{style:p,class:u,role:"group"},[!t||c?S:void 0,o?n.createVNode("div",{class:"k-splitter-overlay k-overlay"},null):void 0])}});exports.SplitterPane=f;