grid-field-column-provider.ts 684 字节
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
import {
  IGridColumnProvider,
  GridController,
  GridFieldColumnController,
} from '@ibiz-template/controller';
import { GridFieldColumnModel } from '@ibiz-template/model';
/**
 * 表格列适配器
 *
 * @author lxm
 * @date 2022-09-19 22:09:03
 * @export
 * @class GridFieldColumnProvider
 * @implements {IGridColumnProvider}
 */
export class GridFieldColumnProvider implements IGridColumnProvider {
  component: string = 'GridFieldColumn';

  async createController(
    columnModel: GridFieldColumnModel,
    grid: GridController,
  ): Promise<GridFieldColumnController> {
    const c = new GridFieldColumnController(columnModel, grid);
    await c.init();
    return c;
  }
}