import { OnInit, ComponentRef, ElementRef, ViewRef } from '@angular/core'; import { Observable } from 'rxjs'; import { LayoutHostDirective } from '../layout-host.directive'; import { AbstractControlContainerComponent } from '../../controls/abstract-control-container/abstract-control-container.component'; import { ToolAdapterService } from '../../tools/tool-adapter.service'; import { DesignerConfigurationService } from '../../services/designer-configuration.service'; import { DragService } from '../../services/drag.service'; import { ContainerViewModel, AbstractControl, ControlLayoutModel, DesignHostContainer, DynamicControlContainer, ControlViewModel } from '../../types/control.types'; import { ControlDataModel } from '../../types/control.types'; import { ControlTranslate } from '../../utils'; export declare class DesignHostComponent extends AbstractControlContainerComponent implements DesignHostContainer, OnInit { private configuration; protected element: ElementRef; private toolAdapter; private dragService; readonly disableOperateControl: boolean; selected: boolean; controlTranslate: ControlTranslate; type: string; isDesign: boolean; isContainer: boolean; model: ContainerViewModel; control: AbstractControl | any; readonly class: string; layoutHost: LayoutHostDirective; parentHost: DynamicControlContainer; componentRef: ComponentRef; private _selected; constructor(configuration: DesignerConfigurationService, element: ElementRef, toolAdapter: ToolAdapterService, dragService: DragService); ngOnInit(): void; getViewIndex(): number; getDataModel(): ControlDataModel; addControls(controls: Array): Observable[]>; addControl(control: ControlLayoutModel): Observable>; moveUpView(hostView: ViewRef): void; moveDownView(hostView: ViewRef): void; select(): void; cut(): void; copy(): void; remove(): void; moveUp(): void; moveDown(): void; /** * @description 监听鼠标在这个控件上释放 * * @param event * @memberof DesignHostComponent */ onMouseup(event: any): void; }