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

export const modalRefundFormProps: VbenFormProps = {
  wrapperClass: 'grid-cols-12',
  commonConfig: {
    formItemClass: 'col-span-12',
    componentProps: {
      class: 'w-full',
    },
  },
  layout: 'horizontal',
  schema: [
    {
      component: 'VbenInput',
      fieldName: 'register_id',
      label: 'ID',
      formItemClass: 'col-span-6',
      dependencies: {
        show: false,
        triggerFields: ['register_id'],
      },
    },
    {
      component: 'Textarea',
      componentProps: {
        placeholder: '请输入退款备注',
      },
      fieldName: 'refund_reason',
      label: '退款备注',
      rules: 'required',
    },
  ],
  showDefaultActions: false,
};
