Merge pull request #10590 from dataease/pr@dev-v2_st

fix(查询组件): 查询条件名称字号设置超过30,名称显示被遮挡
This commit is contained in:
dataeaseShu 2024-06-28 11:41:18 +08:00 committed by GitHub
commit 7267cc964d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -165,6 +165,7 @@ const setCustomStyle = val => {
customStyle.labelColorBtn = labelColorBtn || '#ffffff'
customStyle.labelShow = labelShow ?? true
customStyle.btnColor = btnColor || '#3370ff'
snapshotStore.recordSnapshotCache()
}
watch(
@ -450,7 +451,8 @@ const titleStyle = computed(() => {
const labelStyle = computed(() => {
const style = {
fontSize: customStyle.fontSize + 'px'
fontSize: customStyle.fontSize + 'px',
lineHeight: +customStyle.fontSize + 8 + 'px'
} as CSSProperties
if (customStyle.fontWeight) {
style.fontWeight = customStyle.fontWeight