提交 e3b2fcda 编写于 作者: Q qiang

fix: 修正 cover-view 文字排版(v3-app)

上级 108a3508
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
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册