Merge pull request #8259 from dataease/pr@dev@refactor_tab
refactor(仪表板): 优化预览界面Tab标题显示样式,防止超出边框
This commit is contained in:
commit
d3f30edf5d
@ -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)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user