primevue-mirror/components/lib/splitterpanel/SplitterPanel.vue

22 lines
492 B
Vue

<template>
<div ref="container" :class="cx('root')" data-pc-name="splitterpanel" v-bind="ptm('root')">
<slot></slot>
</div>
</template>
<script>
import BaseSplitterPanel from './BaseSplitterPanel.vue';
export default {
name: 'SplitterPanel',
extends: BaseSplitterPanel,
computed: {
isNested() {
return this.$slots.default().some((child) => {
return child.type.name === 'Splitter';
});
}
}
};
</script>