diff --git a/core/core-frontend/src/custom-component/common/CommonStyleSet.vue b/core/core-frontend/src/custom-component/common/CommonStyleSet.vue index 84b6e7c035..34cf381d04 100644 --- a/core/core-frontend/src/custom-component/common/CommonStyleSet.vue +++ b/core/core-frontend/src/custom-component/common/CommonStyleSet.vue @@ -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 }) } diff --git a/core/core-frontend/src/custom-component/component-list.ts b/core/core-frontend/src/custom-component/component-list.ts index bd01862fae..e1c0c9cb24 100644 --- a/core/core-frontend/src/custom-component/component-list.ts +++ b/core/core-frontend/src/custom-component/component-list.ts @@ -563,7 +563,7 @@ const list = [ // #13540 fontWeight: 'normal', fontStyle: 'normal', - textDecoration: 'normal' + textDecoration: 'none' } }, { diff --git a/core/core-frontend/src/custom-component/de-tabs/Component.vue b/core/core-frontend/src/custom-component/de-tabs/Component.vue index a02b84a2fa..c84dd38a4a 100644 --- a/core/core-frontend/src/custom-component/de-tabs/Component.vue +++ b/core/core-frontend/src/custom-component/de-tabs/Component.vue @@ -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' } } diff --git a/core/core-frontend/src/utils/canvasUtils.ts b/core/core-frontend/src/utils/canvasUtils.ts index d0cc60b42b..3c66bbc9c4 100644 --- a/core/core-frontend/src/utils/canvasUtils.ts +++ b/core/core-frontend/src/utils/canvasUtils.ts @@ -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)