Merge pull request #2051 from dataease/pr@dev@fix_panel_tabs_empty_title

fix: 选项卡空标题样式错位
This commit is contained in:
fit2cloud-chenyw 2022-04-06 10:10:19 +08:00 committed by GitHub
commit 89c14af300
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: {