@doreamonjs/gate
Version:
gate for doreamonjs
32 lines (31 loc) • 820 B
TypeScript
import { PureComponent } from 'react';
export interface Props {
type?: 'modal' | 'drawer';
title?: string;
cancelText?: string;
submitText?: string;
loading?: boolean;
visible?: boolean;
titles?: string[];
values?: {
dataSource?: any[];
targetKeys: string[];
};
onClose?(): void;
onSubmit?(values: any, lastValues: any): void;
onValueChange?(name: string, value: any): void;
}
export default class ZTreeSelect extends PureComponent<Props> {
static defaultProps: {
type: string;
};
state: {
targetKeys: any[];
};
private get dataSource();
componentWillReceiveProps(nextProps: Props): void;
private get modalProps();
private onSubmit;
onChange: (targetKeys: string[]) => void;
render(): JSX.Element;
}