1
0
mirror of synced 2025-11-06 04:20:54 +08:00

丰富了文本组件的样式属性

This commit is contained in:
李帅武
2025-06-05 10:53:28 +08:00
parent 0d1aef92dc
commit 4c4b2747c2
2 changed files with 50 additions and 1 deletions

View File

@@ -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: '识别换行符',

View File

@@ -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() {