mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
fix: 修复下划线设置按钮样式未能试试反馈问题
This commit is contained in:
parent
6ca1db9572
commit
c7db0d16d3
@ -584,10 +584,10 @@ const checkItalic = () => {
|
||||
}
|
||||
|
||||
const checkTextDecoration = () => {
|
||||
if (styleForm.value.textDecoration === 'normal') {
|
||||
if (styleForm.value.textDecoration === 'none') {
|
||||
styleForm.value.textDecoration = 'underline'
|
||||
} else {
|
||||
styleForm.value.textDecoration = 'normal'
|
||||
styleForm.value.textDecoration = 'none'
|
||||
}
|
||||
changeStyle({ key: 'textDecoration', value: styleForm.value.textDecoration })
|
||||
}
|
||||
|
@ -563,7 +563,7 @@ const list = [
|
||||
// #13540
|
||||
fontWeight: 'normal',
|
||||
fontStyle: 'normal',
|
||||
textDecoration: 'normal'
|
||||
textDecoration: 'none'
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -422,16 +422,16 @@ const headClass = computed(() => {
|
||||
const titleStyle = itemName => {
|
||||
if (editableTabsValue.value === itemName) {
|
||||
return {
|
||||
textDecoration: element.value.style.textDecoration,
|
||||
fontStyle: element.value.style.fontStyle,
|
||||
fontWeight: element.value.style.fontWeight,
|
||||
textDecoration: element.value.style.textDecoration,
|
||||
fontSize: (element.value.style.activeFontSize || 18) * scale.value + 'px'
|
||||
}
|
||||
} else {
|
||||
return {
|
||||
textDecoration: element.value.style.textDecoration,
|
||||
fontStyle: element.value.style.fontStyle,
|
||||
fontWeight: element.value.style.fontWeight,
|
||||
textDecoration: element.value.style.textDecoration,
|
||||
fontSize: (element.value.style.fontSize || 16) * scale.value + 'px'
|
||||
}
|
||||
}
|
||||
|
@ -210,7 +210,7 @@ export function historyItemAdaptor(
|
||||
if (componentItem.component === 'DeTabs') {
|
||||
componentItem.style.fontStyle = componentItem.style.fontStyle || 'normal'
|
||||
componentItem.style.fontWeight = componentItem.style.fontWeight || 'normal'
|
||||
componentItem.style.textDecoration = componentItem.style.textDecoration || 'normal'
|
||||
componentItem.style.textDecoration = componentItem.style.textDecoration || 'none'
|
||||
componentItem.propValue.forEach(tabItem => {
|
||||
tabItem.componentData.forEach(tabComponent => {
|
||||
historyItemAdaptor(tabComponent, reportFilterInfo, attachInfo, canvasVersion, canvasInfo)
|
||||
|
Loading…
Reference in New Issue
Block a user