jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
29 lines (28 loc) • 936 B
TypeScript
/**
* 结果树(暂时不支持结果排序)
*/
import React from 'react';
import type { Option, Options } from 'jamis-core';
import type { ResultTreeListProps } from '../types';
export interface ItemRenderStates {
index: number;
disabled?: boolean;
onChange: (value: any, name: string) => void;
}
interface ResultTreeListState {
inputValue?: string;
treeOptions: Options;
}
export declare class BaseResultTreeList extends React.Component<ResultTreeListProps, ResultTreeListState> {
static itemRender: (option: any) => JSX.Element;
static defaultProps: Partial<ResultTreeListProps>;
state: ResultTreeListState;
static getDerivedStateFromProps(props: ResultTreeListProps): {
treeOptions: Option[];
};
deleteTreeChecked: (option: Option) => void;
search: (inputValue: string) => void;
renderTree(): JSX.Element;
render(): JSX.Element;
}
export default BaseResultTreeList;