import { FormPage, DetailPage, ListPage } from '../../templates';
export * from './editor';
export * from './playground';
export * from './renderer'; // 全部页面模板

export var PageMap = {
  LIST: ListPage,
  DETAIL: DetailPage,
  FORM: FormPage
}; // 全部页面模板默认初始值

export var PageDefaultInitialValues = {
  LIST: {
    header: {
      title: '页面标题'
    },
    content: {
      header: {
        title: '表格标题'
      },
      columns: [{
        dataIndex: 'instanceName',
        title: '实例ID/实例名称'
      }, {
        dataIndex: 'organizationName',
        title: '组织',
        tooltip: '我这一列是可以被复制的～',
        render: {
          copy: true
        }
      }],
      url: 'https://oneapi.alibaba-inc.com/mock/teamix-pro/api/getTableResource',
      formatResult: {
        data: 'data',
        total: 'pageInfo.total'
      }
    }
  },
  DETAIL: {},
  FORM: {}
};