config.data.ts 1.24 KB
import { BasicColumn, FormSchema } from '/@/components/Table';

// 表格列数据
export const columns: BasicColumn[] = [
  {
    title: '主题',
    dataIndex: 'title',
    width: 80,
  },
  {
    title: '姓名',
    dataIndex: 'name',
    width: 120,
  },
  {
    title: '反馈信息',
    dataIndex: 'message',
    width: 120,
  },
  {
    title: '添加时间',
    dataIndex: 'createTime',
    width: 180,
  },
];

// 查询字段
export const searchFormSchema: FormSchema[] = [
  {
    field: 'name',
    label: '姓名',
    component: 'Input',
    colProps: { span: 8 },
    componentProps: {
      maxLength: 36,
      placeholder: '请输入姓名',
    },
  },
];

// 弹框配置项
export const formSchema: FormSchema[] = [
  {
    field: 'title',
    label: '主题',
    component: 'Input',
    componentProps: {
      disabled: true,
    },
  },
  {
    field: 'name',
    label: '姓名',
    component: 'Input',
    componentProps: {
      disabled: true,
    },
  },
  {
    field: 'message',
    label: '反馈信息',
    colProps: { span: 24 },
    component: 'InputTextArea',
    componentProps: {
      disabled: true,
    },
  },
  {
    field: 'images',
    label: '预览图片',
    slot: 'iconSelect',
    component: 'Input',
  },
];