UNPKG

chowa

Version:

UI component library based on React

41 lines (40 loc) 1.47 kB
/** * @license chowa v1.1.3 * * Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn). * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import * as React from 'react'; import { Nodes, Node } from './tree'; import { DropPosition } from './tree-node-drag-wrapper'; export interface TreeNodeListProps { nodes: Nodes; parentIndexs: number[]; selectable: boolean; globalCheckable: boolean; globalDisabled: boolean; draggable: boolean; checkStrictly: boolean; expandIndexs: React.ReactText[]; checkedIndexs: React.ReactText[]; indeterminateIndexs: React.ReactText[]; selectedIndexs: React.ReactText[]; fetchingIndexs: React.ReactText[]; formatter: (node: Node) => React.ReactNode; onSelectHandler: (node: Node) => void; onCheckHandler: (node: Node, e: React.ChangeEvent<HTMLInputElement>) => void; onLoadDataHandler: (node: Node, parentIndexs: number[]) => void; onExpandHandler: (node: Node) => void; onContextMenu: (node: Node, e: React.MouseEvent) => void; searchable: boolean; searchValue: string; dragSorter: (dragSelfIndexs: number[], dropSelfIndexs: number[], dropPosition: DropPosition) => void; } declare class TreeNodeList extends React.PureComponent<TreeNodeListProps> { private hightlightTitle; private renderNode; render(): JSX.Element; } export default TreeNodeList;