<template>
    <van-field  :name="data.id" :label="data.name" :placeholder="data.placeholder" :rules="[{ validator: validator }]" />
</template>

<script>
export default {
    props: {
        data: {
            type: Object
        },
        validator:{
            type:Function
        }
    }
}
</script>

<style lang="less" scoped>

</style>
