/** * Created by Dio.Zhu */ import React, { ReactInstance } from 'react'; import { CreateViewProps, CreateViewState } from './iDynamicView'; export default class CreateView extends React.Component { static RUN_MODE_RUNTIME: string; static RUN_MODE_DESIGN: string; static defaultProps: { appCode: null; pageCode: null; billCode: null; jsPluginUrl: null; baseHost: null; uiMeta: null; uiParser: null; uiEvent: null; uiParams: null; uiRunMode: string; onCreateParser: null; onViewAuthValidate: null; globalParser: null; globalEvent: null; globalParams: null; globalActions: null; onWillReceiveProps: null; onWillMount: null; onWillUpdate: null; onDidMount: null; onDidUpdate: null; }; refItems: { [key: string]: ReactInstance; }; constructor(props: CreateViewProps); componentWillReceiveProps(nextProps: CreateViewProps): void; shouldComponentUpdate(_nextProps: CreateViewProps, nextState: CreateViewState): boolean; componentWillMount(): void; componentDidMount(): void; componentWillUpdate(nextProps: CreateViewProps, nextState: CreateViewState): void; componentDidUpdate(prevProps: CreateViewProps, prevState: CreateViewState): void; _callEvent(eventName: string, { uiMeta, uiEvent }: any): void; _processUIParams(uiParams: { [key: string]: any; }): any; _processUIMeta(uiMeta: any): any; _processUIParser(uiParser: any): any; _processUIEvent(uiEvent: any): any; /** * 执行多个表单的验证 * @param options{ * formKeys:[] // 需要进行验证的表单键值集合 * keepAll:true // 当设置为false时,验证过程中任意一表单存在错误则不再继续进行验证 * success:null // 所有表单都验证通过时触发的回调 * error:null // keepAll=true时,所有表单验证后存在错误则触发回调;keepAll=false时,当任意一个表单验证不通过时触发回调; * } */ validateForms(options: any): void; /** * 刷新重绘页面 */ refresh(callback: Function, state: any): void; /** * 获取当前页面 */ getPage(): this; /** * 获取应用编码 */ getAppCode(): string | null | undefined; /** * 获取页面编码 */ getPageCode(): string | null | undefined; /** * 获取页面单据唯一编码 */ getBillCode(): string | null | undefined; /** * 获取扩展的js插件文件路径 */ getJsPluginUrl(format?: boolean): string | null | undefined; /** * 通过键值查找UI对象模型 * @param uikey */ findUI: (uikey: string) => any; _findUI(options: { uiMeta: CreateViewState['uiMeta']; uikey: string; }): any; /** * 通过类型查找UI数据模型 * @param uitype 解析器名称 * @param options { * loop 默认:true,是否递归遍历子集合 * only 默认:false,是否匹配到第一个就终止 * } */ findUIByType: (uitype: string, options: any) => any[] | null; _findByRef(ref: string): React.ReactInstance | null; _processParams(node: { [key: string]: any; }): void; _getViewContent(options: { uiMeta: CreateViewState['uiMeta']; uiParser: CreateViewState['uiParser']; uiEvent: CreateViewState['uiEvent']; }): any; _processViews(items: CreateViewState['uiMeta'], uiEvent: CreateViewState['uiEvent'], uiParser: CreateViewState['uiParser']): any[] | null; render(): any; }