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

输入框样式

parent 57de6d0f
<!-- ******************* 输入框 ******************* -->
<template>
<view>
<u-input :type="type" class="input-item" v-model="dataValue" @input="valueChange" :placeholder="placeholder" placeholder-style="placeholderStyle"
custom-style="customStyle"/>
<u-input :type="type" class="input-item" v-model="dataValue" @input="valueChange" :placeholder="placeholder" :placeholder-style="placeholderStyle"
:custom-style="customStyle"/>
</view>
</template>
......@@ -16,6 +16,10 @@
placeholder: {
type: String,
default: '请输入'
},
width: {
type: String,
default: '100%'
}
},
data() {
......@@ -36,7 +40,9 @@
return {
'background-color': '#F4F5F7',
'border-radius': '12rpx',
'color': '#ff0000'
'color': '#333333',
'padding-left': '20rpx',
'width': this.width
}
}
},
......
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