index.ts 1.7 KB
Newer Older
1 2 3 4
import { FormButtonProvider } from './form-button-provider';
import { FormDRUIPartProvider } from './form-druipart-provider';
import { FormGroupPanelProvider } from './form-group-panel-provider';
import { FormItemProvider } from './form-item-provider';
5
import { FormMDCtrlProvider } from './form-mdctrl-provider';
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
import { FormPageProvider } from './form-page-provider';
import { FormRawItemProvider } from './form-raw-item-provider';
import { FormTabPageProvider } from './form-tab-page-provider';
import { FormTabPanelProvider } from './form-tab-panel-provider';

/**
 * 预置默认的表单成员适配器
 *
 * @author lxm
 * @date 2022-09-19 22:09:50
 * @export
 */
export function presetFormDetailProvider(): void {
  const { formDetail } = ibiz.register;
  if (!formDetail) {
    return;
  }
  // 表单项
  formDetail.register('FORMITEM', new FormItemProvider());
  // 表单分组
  formDetail.register('GROUPPANEL', new FormGroupPanelProvider());
  // 表单分页
  formDetail.register('FORMPAGE', new FormPageProvider());
  // 表单按钮
  formDetail.register('BUTTON', new FormButtonProvider());
  // 表单关系界面
  formDetail.register('DRUIPART', new FormDRUIPartProvider());
  // 表单直接内容
  formDetail.register('RAWITEM', new FormRawItemProvider());
  // 表单分页部件
  formDetail.register('TABPANEL', new FormTabPanelProvider());
  // 表单分页面板
  formDetail.register('TABPAGE', new FormTabPageProvider());
39 40
  // 表单多数据部件
  formDetail.register('MDCTRL', new FormMDCtrlProvider());
41 42 43 44 45 46 47 48 49 50 51 52
}

export {
  FormButtonProvider,
  FormDRUIPartProvider,
  FormGroupPanelProvider,
  FormItemProvider,
  FormPageProvider,
  FormRawItemProvider,
  FormTabPageProvider,
  FormTabPanelProvider,
};