根据输入的数量来判断行高大小
2022-12-12 本文已影响0人
Pluto_7a23
const LineNum = Math.ceil(this.changeByte(this.address) / 68)
if (LineNum == 2) {
this.addressLineHeight = 20
}
if (LineNum > 2) {
this.addressLineHeight = 20
this.addHeight = (LineNum - 2) * 20
}