form-mdctrl-provider.ts 735 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
import { FormMDCtrlModel } from '@ibiz-template/model';
import {
  FormContainerController,
  FormController,
  FormMDCtrlController,
  IFormDetailProvider,
} from '@ibiz-template/controller';
/**
 * 表单多数据部件适配器
 *
 * @author lxm
 * @date 2022-09-19 22:09:03
 * @export
 * @class FormMDCtrlProvider
 * @implements {EditorProvider}
 */
export class FormMDCtrlProvider implements IFormDetailProvider {
  component: string = 'FormMDCtrl';

  async createController(
    detailModel: FormMDCtrlModel,
    form: FormController,
    parent: FormContainerController | undefined,
  ): Promise<FormMDCtrlController> {
    const c = new FormMDCtrlController(detailModel, form, parent);
    await c.init();
    return c;
  }
}