diff --git a/src/platforms/app-plus/view/mixins/cover.js b/src/platforms/app-plus/view/mixins/cover.js index ea92d6475ab197314c7e0768d64837529b3688b0..c51aa9d98222ddc683a2e1401d21e81f66086d12 100644 --- a/src/platforms/app-plus/view/mixins/cover.js +++ b/src/platforms/app-plus/view/mixins/cover.js @@ -1,6 +1,7 @@ const base = ['padding', 'borderRadius', 'borderColor', 'borderWidth', 'backgroundColor'] -const text = ['color', 'textAlign', 'lineHeight', 'fontSize', 'fontWeight', 'textOverflow'] +const text = ['color', 'textAlign', 'lineHeight', 'fontSize', 'fontWeight', 'textOverflow', 'whiteSpace'] const image = [] +const textAlign = { start: 'left', end: 'right' } let index = 0 export default { @@ -53,13 +54,14 @@ export default { tag: 'font', position, textStyles: { - align: style.textAlign, + align: textAlign[style.textAlign] || style.textAlign, color: style.color, decoration: 'none', lineSpacing: (parseFloat(style.lineHeight) - parseFloat(style.fontSize)) + 'px', margin: style.padding, overflow: style.textOverflow, size: style.fontSize, + verticalAlign: 'top', weight: style.fontWeight, whiteSpace: style.whiteSpace },