fix: tab add component

This commit is contained in:
wangjiahao
2025-07-30 12:30:12 +08:00
parent 389b304f28
commit 57f4dede6b
2 changed files with 2 additions and 3 deletions
@@ -27,7 +27,7 @@ const COMPONENT_LIST = [
collisionActive: false,
moveInActive: false,
moveOutActive: false,
activeTabName: 'tab',
activeTabName: null,
propValue: [
{
name: 'tab',
@@ -161,9 +161,8 @@ const titleStyle = (itemName: string) => {
onMounted(() => {
currentInstance = getCurrentInstance()
if (configItem.value.propValue.length > 0) {
if (configItem.value.propValue.length > 0 && !configItem.value.activeTabName) {
configItem.value.activeTabName = configItem.value.propValue[0].name
console.log('test1')
}
})