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

宽度

parent 4df2230e
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
type: String, type: String,
default: '请输入' default: '请输入'
}, },
width: { // 例如:454rpx // width: { // 例如:454rpx
type: String, // type: String,
default: '100%' // default: '100%'
} // }
}, },
data() { data() {
return {} return {}
...@@ -36,6 +36,9 @@ ...@@ -36,6 +36,9 @@
return 'text' return 'text'
} }
}, },
fieldsWidth() {
return this.item.fieldsWidth || '100%'
},
placeholderStyle() { placeholderStyle() {
return 'color:#999999;font-size:26rpx' return 'color:#999999;font-size:26rpx'
}, },
...@@ -45,7 +48,7 @@ ...@@ -45,7 +48,7 @@
'border-radius': '12rpx', 'border-radius': '12rpx',
'color': '#333333', 'color': '#333333',
'padding-left': this.textarea ? '0rpx' : '20rpx', 'padding-left': this.textarea ? '0rpx' : '20rpx',
'width': this.width, 'width': this.fieldsWidth,
'font-size':'26rpx', 'font-size':'26rpx',
'height': '76rpx' '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