【issues/7402】CollapseContainer组件增加默认不展开属性

pull/7524/head
JEECG 2024-11-12 09:37:49 +08:00
parent 55a25caafd
commit 44ec26574e
1 changed files with 4 additions and 2 deletions

View File

@ -36,6 +36,7 @@
const props = defineProps({
title: { type: String, default: '' },
defaultExpan: { type: Boolean, default: true },
loading: { type: Boolean },
/**
* Can it be expanded
@ -58,8 +59,9 @@
*/
lazyTime: { type: Number, default: 0 },
});
const show = ref(true);
// update-begin-author:liaozhiyang---date:2024-11-11--for:issues/7402CollapseContainer
const show = ref(props.defaultExpan);
// update-begin-author:liaozhiyang---date:2024-11-11--for:issues/7402CollapseContainer
const { prefixCls } = useDesign('collapse-container');