primevue
Version:
PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc
2 lines (1 loc) • 828 B
JavaScript
import t from"primevue/basecomponent";import e from"primevue/splitterpanel/style";import{openBlock as n,createElementBlock as r,mergeProps as s,renderSlot as i}from"vue";var o={name:"SplitterPanel",extends:{name:"BaseSplitterPanel",extends:t,props:{size:{type:Number,default:null},minSize:{type:Number,default:null}},style:e,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,data:function(){return{nestedState:null}},computed:{isNested:function(){var t=this;return this.$slots.default().some((function(e){return t.nestedState="Splitter"===e.type.name||null,t.nestedState}))},getPTOptions:function(){return{context:{nested:this.isNested}}}}};o.render=function(t,e,o,u,a,l){return n(),r("div",s({ref:"container",class:t.cx("root")},t.ptmi("root",l.getPTOptions)),[i(t.$slots,"default")],16)};export{o as default};