Commit 0cf1dfcb by 李伟康

修改样式

1 parent 8dc7cbd3
...@@ -182,7 +182,9 @@ class Draw { ...@@ -182,7 +182,9 @@ class Draw {
if (this.getTextWidth(lastText) > width - fontX - this.getTextWidth('…')) throw lastText if (this.getTextWidth(lastText) > width - fontX - this.getTextWidth('…')) throw lastText
}) })
} catch (error) { } catch (error) {
e = `${error}…` let {lastFont} = textParams
if (lastFont) e = `${error.substring(0, error.length - lastFont.length)}…${lastFont}`
else e = `${error}…`
} }
} }
let textHeight = y + index * (lineHeight || fontSize) let textHeight = y + index * (lineHeight || fontSize)
......
...@@ -140,6 +140,7 @@ export default { ...@@ -140,6 +140,7 @@ export default {
label.lineNum = 2 label.lineNum = 2
label.lineHeight = 24 label.lineHeight = 24
label.width = labelEndX label.width = labelEndX
label.lastFont = ':'
} }
} }
if (e === '支付定金') { if (e === '支付定金') {
......
...@@ -287,7 +287,8 @@ export default { ...@@ -287,7 +287,8 @@ export default {
}, },
created () { created () {
let _this = this let _this = this
const jsApiList = ['getLocation', const jsApiList = [
'getLocation',
'openLocation', 'openLocation',
'getNetworkType', 'getNetworkType',
'onMenuShareAppMessage', 'onMenuShareAppMessage',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!