mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix: 关闭按钮
This commit is contained in:
parent
3690307d0b
commit
1a94e20691
@ -7,7 +7,7 @@
|
||||
</t-tab-panel>
|
||||
</t-tabs>
|
||||
</t-space>
|
||||
<t-dialog :visible.sync="isDialogVisible" header="添加新选项卡" @confirm="addTab">
|
||||
<t-dialog :visible.sync="isDialogVisible" header="添加新选项卡" @confirm="addTab" @close="isDialogVisible = false">
|
||||
<t-form :model="newTab" ref="form">
|
||||
<t-form-item label="名称" name="name" :rules="[{ required: true, message: '请输入名称' }]">
|
||||
<t-input v-model="newTab.name" />
|
||||
@ -123,7 +123,7 @@ const addTab = async () => {
|
||||
label: name,
|
||||
removable: true,
|
||||
component: componentMap[type],
|
||||
config: {},
|
||||
config: { name: name },
|
||||
});
|
||||
value.value = `${type}-${id}`;
|
||||
id += 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user