Merge pull request #3171 from dataease/pr@dev@fix_text-component

fix(仪表板): 优化文字组件修改字号时数字变动异常 #3099
This commit is contained in:
王嘉豪 2022-09-23 18:14:18 +08:00 committed by GitHub
commit e14850e688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -218,7 +218,7 @@ export default {
innerOpacity: 0,
mainWidthOffset: 600,
initFontSize: 12,
miniFontSize: 12,
miniFontSize: 0,
maxFontSize: 128,
textAlignOptions: [
{

View File

@ -194,8 +194,8 @@ export default {
if (this.editStatus&&this.canEdit===false) {
this.canEdit = true
this.element['editing'] = true
this.reShow()
this.myValue = this.element.propValue.textValue
this.reShow()
}
},
reShow() {

View File

@ -362,8 +362,10 @@ export default {
const checkAllAxisStr = chartDetails.xaxis + chartDetails.xaxisExt + chartDetails.yaxis + chartDetails.yaxisExt + chartDetails.drillFields
let checkJumpStr
if (chartDetails.type === 'table-pivot') {
checkJumpStr = chartDetails.yaxis + chartDetails.yaxisExt
} else {
checkJumpStr = chartDetails.yaxis + chartDetails.yaxisExt + chartDetails.drillFields
}else if(chartDetails.type === 'table-info') {
checkJumpStr = chartDetails.xaxis + chartDetails.drillFields
}else {
checkJumpStr = checkAllAxisStr
}
//