增加Text的换行支持

Stefan Zhu 1 year ago
parent 60e562df3a
commit bd3754c73c

@ -90,6 +90,14 @@ export const widgetText = {
],
value: 'center'
},
{
type: 'el-switch',
label: '识别换行符',
name: 'whiteSpace',
required: false,
placeholder: '',
value: true,
}
],
// 数据
data: [

@ -40,7 +40,8 @@ export default {
height: this.transStyle.height + "px",
left: this.transStyle.left + "px",
top: this.transStyle.top + "px",
right: this.transStyle.right + "px"
right: this.transStyle.right + "px",
whiteSpace: this.transStyle.whiteSpace ? "pre-line": null
};
}
},

Loading…
Cancel
Save