Commit 2efebef2 authored by 刘用法's avatar 刘用法

输入框样式

parent a80603ff
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<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" :clearable="false"/>
</view> </view>
</template> </template>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
type: String, type: String,
default: '请输入' default: '请输入'
}, },
width: { width: { // 例如:454rpx
type: String, type: String,
default: '100%' default: '100%'
} }
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
} }
}, },
placeholderStyle() { placeholderStyle() {
return 'color:#FFFFFF;font-size:26rpx' return 'color:#999999;font-size:26rpx'
}, },
customStyle() { customStyle() {
return { return {
......
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