<template>
    <van-field
      v-model="username"
      name="用户名"
      label="用户名"
      placeholder="用户名"
      :rules="[{ required: true, message: '请填写用户名' }]"
    />
</template>
<script>
export default {
    props:{
        data:{
            type:Object
        },
        validator:{
            type:Function
        }
    }
}
</script>
<style lang="less" scoped>

</style>