import ElementUI from 'element-ui'
import Select from './MySelect.vue'
import UploadImage from '@/components/UploadImage'
import UploadFile from '@/components/UploadFile'
import TableImage from './TableImage'
import TableDes from './TableDes'
import Tinymce from '@/components/Tinymce'

export default {
  // form表单默认显示 组件
  defaultFormFiled: ElementUI.Input,
  // form表单组件列表 name对应字段里的type
  formFileds: [
    {
      name: 'input',
      cmp: ElementUI.Input
    },
    {
      name: 'select',
      cmp: Select
    },
    {
      name: 'datepicker',
      cmp: ElementUI.DatePicker
    },
    {
      name: 'image',
      cmp: UploadImage
    },
    {
      name: 'file',
      cmp: UploadFile
    },
    {
      name: 'editor',
      cmp: Tinymce
    },
  ],
  // table表格组件列表 name对应字段里的type
  tableFileds: [
    {
      name: 'image',
      cmp: TableImage
    },
    {
      name: 'tooltip',
      cmp: TableDes
    },
  ],
  // tablePage组件默认props
  tablePage: {
    listQuery: {
      current: 1,
      size: 10
    }
  },
  // table表格中空白显示
  tableEmptyFill: '',
  // 导出Excel中空白显示
  exportEmptyFill: '',
  // 导出接口的参数, 比如 page 传 -1 导出全部数据等...
  exportQuery: {
    size: 999999999
  },
}
