/** * @description 基于antd的Tree实现 * 与 Tree 的区别: * - 小图标的使用有所区别, prefixIcon、suffixIcon 是一个组件 * 待完善: * - 暂不支持拖拽事件,可通过小图标实现拖拽功能 * - 不支持使用Footer展示选中数据 * - 增加 httpConfig.onPressEnter */ import React from "react" import { IProps } from "../../../@types/Tree" import { Service } from "./Service" import { StateManage } from "../../../service/state" import { PropertyService } from "../../../service/property" import { Tree } from "./Tree" import SearchAutoComplete from "./SearchAutoComplete" export const Tree2 = (props: IProps, bool?: boolean): any => { const service = new Service(props) const { height = 500, positionKey, allowSearch, mode } = props const heightMapArr = { container: height - 10, tree: height - 80 } const Template = () => { return