mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 17:32:36 +00:00
Styles imported. Components added
This commit is contained in:
parent
3cb3910561
commit
8264983db4
452 changed files with 55902 additions and 0 deletions
31
components/splitterpanel/SplitterPanel.vue
Normal file
31
components/splitterpanel/SplitterPanel.vue
Normal file
|
@ -0,0 +1,31 @@
|
|||
<template>
|
||||
<div ref="container" :class="containerClass">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'SplitterPanel',
|
||||
props: {
|
||||
size: {
|
||||
type: Number,
|
||||
default: null
|
||||
},
|
||||
minSize: {
|
||||
type: Number,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
containerClass() {
|
||||
return ['p-splitter-panel', {'p-splitter-panel-nested': this.isNested}];
|
||||
},
|
||||
isNested() {
|
||||
return this.$slots.default().some(child => {
|
||||
return child.type.name === 'Splitter';
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue