refactor(仪表板): 优化预览界面Tab标题显示样式,防止超出边框

This commit is contained in:
wangjiahao 2024-03-01 10:14:56 +08:00
parent ad758304a1
commit 07c59b7094

View File

@ -829,8 +829,8 @@ export default {
if ((key === 'fontSize' || key === 'activeFontSize') && (this.terminal === 'mobile' || ['custom'].includes(component.type))) {
// do nothing ( v-text )
} else {
if (key === 'fontSize') {
component.style[key] = this.formatPoint(component.style[key], this.previewCanvasScale.scalePointWidth * 1.6)
if (key === 'fontSize' && component.component !== 'de-tabs') {
component.style[key] = this.formatPoint(component.style[key], this.previewCanvasScale.scalePointWidth * 1.4)
} else {
component.style[key] = this.formatPoint(component.style[key], this.previewCanvasScale.scalePointWidth)
}