import type { VbenFormProps } from '#/adapter/form';

export const modalFormProps: VbenFormProps = {
  wrapperClass: 'grid-cols-12', // 24栅格,
  commonConfig: {
    formItemClass: 'col-span-12',
    // 所有表单项
    componentProps: {
      class: 'w-full',
    },
  },
  // handleSubmit: onSubmit,
  layout: 'horizontal',
  schema: [
    {
      component: 'VbenInput',
      fieldName: 'id',
      label: 'ID',
      formItemClass: 'col-span-6',
      dependencies: {
        show: false,
        triggerFields: ['id'],
      },
    },
    {
      component: 'VbenInput',
      componentProps: {
        placeholder: '请输入快递公司昵称',
      },
      fieldName: 'name',
      label: '快递公司名称',
      rules: 'required',
    },
    {
      component: 'VbenInput',
      componentProps: {
        placeholder: '请输入快递公司编码',
      },
      fieldName: 'code',
      label: '快递公司编码',
      rules: 'required',
    },
    {
      component: 'VbenInput',
      componentProps: {
        placeholder: '请输入快递公司类型',
      },
      fieldName: 'type',
      label: '快递公司类型',
      rules: 'required',
    },
    // {
    //   component: 'Avatar',
    //   fieldName: 'logo',
    //   label: 'LOGO',
    //   rules: 'required',
    // },
    // {
    //   component: 'Textarea',
    //   componentProps: {
    //     placeholder: '请输入快递公司介绍',
    //   },
    //   fieldName: 'introduce',
    //   label: '快递公司介绍',
    //   rules: 'required',
    // },
  ],
  showDefaultActions: false,
};
