import { IDesignerHost } from '@farris/designer-element'; import { DomService, EventEditorService, FormBasicService, RefreshFormService, StateMachineService, WebCmdService } from '@farris/designer-services'; import { ElementPropertyConfig, PropertyEntity } from '@farris/ide-property-panel'; import { IdService } from '@farris/ui-common'; import { FormPropertyChangeObject } from '../../../../entity/property-change-entity'; import { ExpressionEditorComponent, ExpressionEditorParam } from '@farris/designer-devkit'; import { LocaleService } from '@farris/ui-locale'; import { ControlService } from '../../../../service/control.service'; export declare class NoCodeContainerUsualProp { serviceHost: IDesignerHost; formBasicService: FormBasicService; refreshFormService: RefreshFormService; domService: DomService; webCmdService: WebCmdService; viewModelId: string; componentId: string; idService: IdService; stateMachineService: StateMachineService; eventEditorService: EventEditorService; localeService: LocaleService; controlService: ControlService; constructor(serviceHost: IDesignerHost, viewModelId: string, componentId: string); getBasicPropConfig(propertyData: any, viewModelId: string): ElementPropertyConfig; getCommonAppearanceProperties(): PropertyEntity[]; getVisiblePropertyEntity(propertyData: any, viewModelId: string): { propertyID: string; propertyName: string; propertyType: string; description: string; editorParams: { controlName: string; constType: string; editorOptions: { types: string[]; enums: { key: boolean; value: string; }[]; variables: any[]; getVariables: () => any[]; newVariableType: string; newVariablePrefix: string; expressionConfig: { editor: typeof ExpressionEditorComponent; beforeOpenModal: () => { editorParams: ExpressionEditorParam; value: any; }; exprValue: { type: string; value: { value: any; parameters: any; type: string; }; }; }; }; }; }; /** * 新版属性编辑器,在编辑过程中可能会新增变量,此处需要将新增的变量追加到ViewModel中 */ addNewVariableToViewModelAfterPropertyChanged(changeObject: FormPropertyChangeObject, viewModelId: string): void; /** * 获取表达式编辑需要的参数:在属性面板弹出表达式窗口时调用 */ private getExpressionEditorParams; /** * 获取属性编辑器需要的初始绑定值 * @param expField 表达式配置字段 * @param propertyValue 属性值 */ private getExprValue; }