Commit dc9e995d authored by 刘用法's avatar 刘用法

宽度

parent 4df2230e
......@@ -17,10 +17,10 @@
type: String,
default: '请输入'
},
width: { // 例如:454rpx
type: String,
default: '100%'
}
// width: { // 例如:454rpx
// type: String,
// default: '100%'
// }
},
data() {
return {}
......@@ -36,6 +36,9 @@
return 'text'
}
},
fieldsWidth() {
return this.item.fieldsWidth || '100%'
},
placeholderStyle() {
return 'color:#999999;font-size:26rpx'
},
......@@ -45,7 +48,7 @@
'border-radius': '12rpx',
'color': '#333333',
'padding-left': this.textarea ? '0rpx' : '20rpx',
'width': this.width,
'width': this.fieldsWidth,
'font-size':'26rpx',
'height': '76rpx'
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment