import { LibComponent } from '$const/component';
export default [
    {
        label:'昵称',
        key:'nick_name',
        placeholder:'请输入昵称',
        rules:''
    },
    {
        label: '生日',
        key:'birthday',
        component:LibComponent.date,
        placeholder:'请选择生日日期',
        rules:''
    },
    {
        label: '性别',
        data:[
            {
                label:'男',
                value:1
            },
            {
                label:'女',
                value:2
            }
        ],
        component:LibComponent.select,
        key:'sex',
        format:function(value,item){
            return value === 1 ? '男':'女'
        },
        rules:'请选择性别'
    },
    {
        label:'家乡',
        key:'city',
        component:LibComponent.address,
        rules:'请选择家乡地址'
    },
    {
        label: '星座',
        key:'constellation',
        type:'getters',
        disabled:true
    },
    {
        label: '签名',
        key: 'autograph',
        labelPlaceholder:'暂未设置签名',
        component: LibComponent.textarea,
        maxLength:22,
        placeholder:'请输入签名',
        rules:''
    }
] as LibDataArray