mirror of
https://github.com/dataease/dataease.git
synced 2026-05-19 18:38:16 +08:00
refactor: 优化字体大小限制,防止过滤组件标题被隐藏
This commit is contained in:
@@ -35,6 +35,9 @@ export function getStyle(style, filter = []) {
|
||||
if (key === 'backgroundColor') {
|
||||
result[key] = colorRgb(style[key], style.opacity)
|
||||
}
|
||||
if(key=== 'fontSize' && result[key] < 12){
|
||||
result[key] = 12
|
||||
}
|
||||
if (needUnit.includes(key)) {
|
||||
result[key] += 'px'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user