Commit 7e998821 authored by Damon's avatar Damon
parents 24666e5f a80603ff
<!-- ******************* 输入框 ******************* --> <!-- ******************* 输入框 ******************* -->
<template> <template>
<view> <view>
<u-input :type="type" class="input-item" v-model="dataValue" @input="valueChange" :placeholder="placeholder" placeholder-style="placeholderStyle" <u-input :type="type" class="input-item" v-model="dataValue" @input="valueChange" :placeholder="placeholder" :placeholder-style="placeholderStyle"
custom-style="customStyle"/> :custom-style="customStyle"/>
</view> </view>
</template> </template>
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
placeholder: { placeholder: {
type: String, type: String,
default: '请输入' default: '请输入'
},
width: {
type: String,
default: '100%'
} }
}, },
data() { data() {
...@@ -36,7 +40,9 @@ ...@@ -36,7 +40,9 @@
return { return {
'background-color': '#F4F5F7', 'background-color': '#F4F5F7',
'border-radius': '12rpx', '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