claude-web/node_modules/primevue/splitterpanel/SplitterPanel.vue

37 lines
808 B
Vue
Raw Normal View History

2026-02-23 02:23:38 +00:00
<template>
<div ref="container" :class="cx('root')" v-bind="ptmi('root', getPTOptions)">
<slot></slot>
</div>
</template>
<script>
import BaseSplitterPanel from './BaseSplitterPanel.vue';
export default {
name: 'SplitterPanel',
extends: BaseSplitterPanel,
inheritAttrs: false,
data() {
return {
nestedState: null
};
},
computed: {
isNested() {
return this.$slots.default().some((child) => {
this.nestedState = child.type.name === 'Splitter' ? true : null;
return this.nestedState;
});
},
getPTOptions() {
return {
context: {
nested: this.isNested
}
};
}
}
};
</script>