mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 09:17:06 +08:00
fix: tab add component
This commit is contained in:
@@ -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')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user