提交 37e396bf authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

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

上级 8d1812f8
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
/> />
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">{{ $t('table.cancel') }}</el-button> <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> </span>
</el-dialog> </el-dialog>
...@@ -202,6 +202,9 @@ export default { ...@@ -202,6 +202,9 @@ export default {
}, },
borderActiveColor() { borderActiveColor() {
return this.element && this.element.style && this.element.style.headBorderActiveColor || 'none' return this.element && this.element.style && this.element.style.headBorderActiveColor || 'none'
},
titleValid() {
return !!this.textarea && !!this.textarea.trim()
} }
}, },
watch: { watch: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论