import { ComponentInfoType } from "../../interface"; import GroupLayer from "./index"; import AbstractDesignerController from "../abstract-controller"; export interface GroupLayerProps { base: ComponentInfoType; } export default class GroupLayerController extends AbstractDesignerController { constructor(container: HTMLElement, config: GroupLayerProps, instance: GroupLayer) { super(); this.container = container; this.config = config; this.instance = instance; } async create(container: HTMLElement, config: GroupLayerProps): Promise { } public getConfig(): GroupLayerProps | null { return this.config; } public update(): void { } public show(): void { this.instance?.setState({ load: true }) } public hide(): void { this.instance?.setState({ load: false }) } }