chowa
Version:
UI component library based on React
22 lines (21 loc) • 1.36 kB
TypeScript
/**
* @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';
export declare function transformReactNodeToNodes(children: React.ReactNode, parentIndex?: React.ReactText): Nodes;
export declare function complutedNodes(nodes: Nodes, parentIndex?: React.ReactText): Nodes;
export declare function computedCheckedNodeIndexs(checkedIndexs: React.ReactText[], nodes: Nodes, checked: boolean): React.ReactText[];
export declare function compuntedIndeterminteNodeIndexs(checkedIndexs: React.ReactText[], nodes: Nodes): React.ReactText[];
export declare function updateNodeChildren(nodes: Nodes, parentIndexs: number[], children: Nodes): Nodes;
export declare function findHasChildNodeIndexs(nodes: Nodes): React.ReactText[];
export declare function cloneNodes(nodes: Nodes): Nodes;
export declare function getNodeBySelfIndexs(nodes: Nodes, selfIndexs: number[]): Node;
export declare function getChildNodesBySelfIndexs(nodes: Nodes, selfIndexs: number[]): Nodes;
export declare function isDropInSameParent(a: number[], b: number[]): boolean;
export declare function isDropInSamePreParent(a: number[], b: number[]): boolean;