Merge pull request #8259 from dataease/pr@dev@refactor_tab

refactor(仪表板): 优化预览界面Tab标题显示样式,防止超出边框
This commit is contained in:
王嘉豪 2024-03-01 10:20:02 +08:00 committed by GitHub
commit d3f30edf5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)
}