fix: 选项卡空标题样式错位

This commit is contained in:
fit2cloud-chenyw 2022-04-06 10:09:18 +08:00
parent 4b5c76e5c2
commit 284fcefe2b

View File

@ -93,7 +93,7 @@
/>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">{{ $t('table.cancel') }}</el-button>
<el-button :disabled="!textarea" type="primary" @click="sureCurTitle">{{ $t('table.confirm') }}</el-button>
<el-button :disabled="!titleValid" type="primary" @click="sureCurTitle">{{ $t('table.confirm') }}</el-button>
</span>
</el-dialog>
@ -202,6 +202,9 @@ export default {
},
borderActiveColor() {
return this.element && this.element.style && this.element.style.headBorderActiveColor || 'none'
},
titleValid() {
return !!this.textarea && !!this.textarea.trim()
}
},
watch: {