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