丰富了文本组件的样式属性
This commit is contained in:
@@ -98,6 +98,50 @@ export const widgetText = {
|
||||
],
|
||||
value: 'center'
|
||||
},
|
||||
{
|
||||
type: 'el-input-number',
|
||||
label: '行高',
|
||||
name: 'lineHeight',
|
||||
required: false,
|
||||
placeholder: '',
|
||||
value: '0',
|
||||
},
|
||||
{
|
||||
type: 'el-input-number',
|
||||
label: '边框宽度',
|
||||
name: 'borderWidth',
|
||||
required: false,
|
||||
placeholder: '',
|
||||
value: '0',
|
||||
},
|
||||
{
|
||||
type: 'vue-color',
|
||||
label: '边框颜色',
|
||||
name: 'borderColor',
|
||||
required: false,
|
||||
placeholder: '',
|
||||
value: 'rgba(255,255,255,0)',
|
||||
},
|
||||
{
|
||||
type: 'el-select',
|
||||
label: '边框类型',
|
||||
name: 'borderStyle',
|
||||
required: false,
|
||||
placeholder: '',
|
||||
selectOptions: [
|
||||
{ code: 'solid', name: '实线' },
|
||||
{ code: 'dashed', name: '虚线' },
|
||||
],
|
||||
value: 'solid',
|
||||
},
|
||||
{
|
||||
type: 'el-input-number',
|
||||
label: '边框圆角',
|
||||
name: 'borderRadius',
|
||||
required: false,
|
||||
placeholder: '',
|
||||
value: '0',
|
||||
},
|
||||
{
|
||||
type: 'el-switch',
|
||||
label: '识别换行符',
|
||||
|
||||
@@ -46,7 +46,12 @@ export default {
|
||||
left: this.transStyle.left + "px",
|
||||
top: this.transStyle.top + "px",
|
||||
right: this.transStyle.right + "px",
|
||||
whiteSpace: this.transStyle.whiteSpace ? "pre-line": "normal"
|
||||
whiteSpace: this.transStyle.whiteSpace ? "pre-line": "normal",
|
||||
lineHeight: this.transStyle.lineHeight + "px",
|
||||
borderColor: this.transStyle.borderColor,
|
||||
borderWidth: this.transStyle.borderWidth + "px",
|
||||
borderStyle: this.transStyle.borderStyle,
|
||||
borderRadius: this.transStyle.borderRadius + "px",
|
||||
};
|
||||
},
|
||||
computedStyleColor() {
|
||||
|
||||
Reference in New Issue
Block a user