UNPKG

fastlion-amis

Version:

一种MIS页面生成工具

78 lines (77 loc) 2.18 kB
import React from 'react'; import { RendererProps } from '../../factory'; import { Action } from '../../types'; export interface HeadCellBatchEditProps extends RendererProps { name: string | undefined; batchEdit: boolean | BatchEditConfig; onBatchEdit: (values: object) => void; } export interface BatchEditConfig { type?: string; name?: string; label?: string; body?: any; focusable?: boolean; [propName: string]: any; } export declare class HeadCellBatchEditDropdown extends React.Component<HeadCellBatchEditProps, any> { state: { isOpened: boolean; }; formItems: Array<string>; constructor(props: HeadCellBatchEditProps); buildSchema(): "error" | { wrapWithPanel: boolean; actions: ({ type: string; label: any; actionType: string; primary?: undefined; } | { label: any; type: string; primary: boolean; actionType?: undefined; })[]; type: string; title: string; autoFocus: boolean; body: { type: string; name: string | undefined; placeholder: any; label: boolean; }[]; } | { wrapWithPanel: boolean; actions: ({ type: string; label: any; actionType: string; primary?: undefined; } | { label: any; type: string; primary: boolean; actionType?: undefined; })[]; title: string; type: string; autoFocus: boolean; mode: string; body: { mode: undefined; type: string; name: string | undefined; label?: string | undefined; body?: any; focusable?: boolean | undefined; }[]; }; handleClickOutside(): void; open(): void; close(): void; handleAction(e: any, action: Action, ctx: object): void; handleSubmit(values: any): void; render(): JSX.Element; }