<template>
    <view class="addrAdd">
        <text class="username">{{desc}}</text>
        <input @input="input" :value=value type="text" class="shuru" placeholder="请输入">
        <!-- <input type="text" class="shuru" placeholder="请输入" v-ref:mycom> -->
    </view>
</template>
<script>
export default {
    name:'addrAdd',
    props:{
        desc:{
            type:String
        },
        value:{

        }
    },
    methods:{
        input(a){
        this.$emit("input",a.detail.value)
        }
    }
}
// desc : 输入框前面提示的要输入内容
</script>
<style lang="scss">
.addrAdd{
    height: 91upx;
    border-top:1upx solid #D9D9D9;
    border-bottom: 1upx solid #D9D9D9;
    display: flex;
    .username{
        color: #222222;
        font-size: 22upx;
        line-height: 91upx;
        text-indent: 31upx;
    }
    .shuru{
        margin: auto 0;
        margin-left: 50upx;
        font-size: 22upx;
        width: 74%;
    }
    
}
</style>