!117 增加widgetText对多行文本的支持

Merge pull request !117 from StefanZhu/dev
Foming 1 year ago committed by Gitee
commit c02137718d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -24,7 +24,7 @@ export const widgetText = {
value: '文本框',
},
{
type: 'el-input-text',
type: 'el-input-textarea',
label: '文本内容',
name: 'text',
required: false,
@ -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": "normal"
};
}
},

Loading…
Cancel
Save