<template>
|
|
<uv-input
|
|
:value="value"
|
|
@input="$emit('input', value)"
|
|
:placeholder="placeholder"
|
|
:placeholderStyle="{
|
|
color: '#999999',
|
|
fontSize: '28rpx',
|
|
}"
|
|
:customStyle="{
|
|
backgroundColor: '#F3F3F3',
|
|
width,
|
|
height: '60rpx',
|
|
padding: '16rpx 20rpx',
|
|
boxSizing: 'border-box',
|
|
fontSize: '28rpx',
|
|
borderRadius: '30rpx',
|
|
border: 'none',
|
|
}"
|
|
></uv-input>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
value: {
|
|
default: null
|
|
},
|
|
placeholder: {
|
|
type: String,
|
|
default: '请输入'
|
|
},
|
|
width: {
|
|
type: String,
|
|
default: 'auto',
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
}
|
|
},
|
|
}
|
|
</script>
|