pull/7024/head
tugcekucukoglu 2024-12-27 13:57:14 +03:00
parent f8911e789e
commit c7b0d46233
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@
<script>
import { getHeight, getOuterHeight, getOuterWidth, getWidth, isRTL } from '@primeuix/utils/dom';
import { isArray } from '@primeuix/utils/object';
import { isArray, isNotEmpty } from '@primeuix/utils/object';
import { getVNodeProp } from '@primevue/core/utils';
import BaseSplitter from './BaseSplitter.vue';
@ -76,7 +76,7 @@ export default {
let _panelSizes = [];
this.panels.map((panel, i) => {
let panelInitialSize = panel.props && panel.props.size ? panel.props.size : null;
let panelInitialSize = panel.props && isNotEmpty(panel.props.size) ? panel.props.size : null;
let panelSize = panelInitialSize || 100 / this.panels.length;
_panelSizes[i] = panelSize;