<template>
<view>
<input class="input" v-bind:value="value" @input="$emit('change', $event.target.value)"/>
</view>
</template>
<script>
export default {
name: 'BaseInput',
model: {
prop: 'value',
event: 'change'
},
props: {
value: {
type: String,
default: ''
}
},
}
</script>
<style scoped>
.input{
width: 100%;
height: 50upx;
background-color: red;
}
</style>
<base-input v-model="inputText"></base-input>