mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-11 09:52:35 +00:00
Refactor #3965 - For Splitter
This commit is contained in:
parent
b752ba69e9
commit
6b3fe54feb
6 changed files with 180 additions and 113 deletions
|
@ -1,29 +1,16 @@
|
|||
<template>
|
||||
<div ref="container" :class="containerClass" v-bind="ptm('root')">
|
||||
<div ref="container" :class="cx('root')" data-pc-name="splitterpanel" v-bind="ptm('root')">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import BaseComponent from 'primevue/basecomponent';
|
||||
import BaseSplitterPanel from './BaseSplitterPanel.vue';
|
||||
|
||||
export default {
|
||||
name: 'SplitterPanel',
|
||||
extends: BaseComponent,
|
||||
props: {
|
||||
size: {
|
||||
type: Number,
|
||||
default: null
|
||||
},
|
||||
minSize: {
|
||||
type: Number,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
extends: BaseSplitterPanel,
|
||||
computed: {
|
||||
containerClass() {
|
||||
return ['p-splitter-panel', { 'p-splitter-panel-nested': this.isNested }];
|
||||
},
|
||||
isNested() {
|
||||
return this.$slots.default().some((child) => {
|
||||
return child.type.name === 'Splitter';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue