jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
47 lines (46 loc) • 1.56 kB
TypeScript
import React from 'react';
import type { Schema } from 'jamis-core';
import type { FormItemProps } from './types';
export declare class FormItemWrap extends React.Component<FormItemProps> {
reaction: Array<() => void>;
lastSearchTerm: any;
target: HTMLElement;
constructor(props: FormItemProps);
componentDidUpdate(prevProps: FormItemProps): void;
componentDidMount(): void;
componentWillUnmount(): void;
handleFocus(e: any): void;
handleBlur(e: any): void;
handleAutoFill(type: string): void;
updateAutoFillData(context: any): void;
syncAutoFill: import("lodash").DebouncedFunc<(term: any, reload?: boolean) => void>;
buildSchema(): JSX.Element | {
type: any;
className: string;
title: string;
size: any;
body: Schema;
actions: ({
type: string;
actionType: string;
label: string;
level?: undefined;
} | {
type: string;
actionType: string;
level: string;
label: string;
})[];
} | undefined;
hanldeSubmit(values: any): void;
hanldeClose(): void;
handleOpenDialog(schema: Schema, data: any): Promise<unknown>;
handleDialogConfirm([values]: Array<any>): void;
handleDialogClose(confirmed?: boolean): void;
/**
*
* @deprecated 本方法实际没有调用, 调用的是asFormItem里的renderControl
*/
renderControl(className?: string | string[]): JSX.Element | null;
render(): JSX.Element | null;
}