index.ts.hbs 2.7 KB
Newer Older
chitanda's avatar
chitanda committed
1
import AppIndexViewLayout from './app-index-view-layout';
2
import DECalendarView from './view-layout-model-repository/view-layout-model-repository-de-calendar-view-layout';
chitanda's avatar
chitanda committed
3
import DEDataViewExpView from './view-layout-model-repository/view-layout-model-repository-de-data-view-exp-view-layout';
4
import DEDataView from './view-layout-model-repository/view-layout-model-repository-de-data-view-layout';
5
import DEEditView from './view-layout-model-repository/view-layout-model-repository-de-edit-view-layout';
chitanda's avatar
chitanda committed
6
import DEGridViewExpView from './view-layout-model-repository/view-layout-model-repository-de-grid-exp-view-layout';
7
import DEGridView from './view-layout-model-repository/view-layout-model-repository-de-grid-view-layout';
chitanda's avatar
chitanda committed
8
import DEListViewExpView from './view-layout-model-repository/view-layout-model-repository-de-list-exp-view-layout';
9
import DEListView from './view-layout-model-repository/view-layout-model-repository-de-list-view-layout';
10
import DEOptView from './view-layout-model-repository/view-layout-model-repository-de-option-view-layout';
11 12
import DEPickupGirdView from './view-layout-model-repository/view-layout-model-repository-de-pickup-grid-view-layout';
import DEPickupView from './view-layout-model-repository/view-layout-model-repository-de-pickup-view-layout';
13
import DETabExpView from './view-layout-model-repository/view-layout-model-repository-de-tab-exp-view-layout';
chitanda's avatar
chitanda committed
14 15
import DETreeViewExpView from './view-layout-model-repository/view-layout-model-repository-de-tree-exp-view-layout';
import DETreeView from './view-layout-model-repository/view-layout-model-repository-de-tree-view-layout';
16
import DEMPickupView from './view-layout-model-repository/view-layout-model-repository-dem-pickup-view-layout';
chitanda's avatar
chitanda committed
17 18 19 20 21 22 23 24 25 26 27

/**
 * 安装视图默认布局
 *
 * @author chitanda
 * @date 2023-04-28 15:04:37
 * @export
 * @param {(key: string, model: any) => void} callBack
 */
export function install(callBack: (key: string, model: any) => void): void {
  callBack('APPINDEXVIEW_DEFAULT', AppIndexViewLayout);
28
  callBack('DECALENDARVIEW_DEFAULT', DECalendarView);
chitanda's avatar
chitanda committed
29
  callBack('DEDATAVIEWEXPVIEW_DEFAULT', DEDataViewExpView);
30
  callBack('DEDATAVIEW_DEFAULT', DEDataView);
31
  callBack('DEEDITVIEW_DEFAULT', DEEditView);
chitanda's avatar
chitanda committed
32 33
  callBack('DEGRIDEXPVIEW_DEFAULT', DEGridViewExpView);
  callBack('DEGRIDVIEW_DEFAULT', DEGridView);
chitanda's avatar
chitanda committed
34
  callBack('DELISTEXPVIEW_DEFAULT', DEListViewExpView);
35
  callBack('DELISTVIEW_DEFAULT', DEListView);
36
  callBack('DEOPTVIEW_DEFAULT', DEOptView);
37 38
  callBack('DEPICKUPGRIDVIEW_DEFAULT', DEPickupGirdView);
  callBack('DEPICKUPVIEW_DEFAULT', DEPickupView);
39
  callBack('DETABEXPVIEW_DEFAULT', DETabExpView);
chitanda's avatar
chitanda committed
40 41
  callBack('DETREEEXPVIEW_DEFAULT', DETreeViewExpView);
  callBack('DETREEVIEW_DEFAULT', DETreeView);
42
  callBack('DEMPICKUPVIEW_DEFAULT', DEMPickupView);
chitanda's avatar
chitanda committed
43
}