摘要:
// 默认展开方式一(使用key属性和defaultExpandedKeys属性配合): <Tree checkable onCheck={onCheck} fieldNames={{ title: 'name', key: 'id', children: 'subFolderNodes' }} t 阅读全文
摘要:
递归遍历树结构,根据条件删除树的某些节点 根据条件删除树的某些节点。示例中条件为:grade !== 1 function filterTree (data) { var newTree = data.filter(x => x.grade !== 1) newTree.forEach(x => x 阅读全文
摘要:
// 子组件 import React, { useEffect, useImperativeHandle } from "react"; export interface DynamicFormRef { xxxx:()=>void; } const Index = (props: ChooseD 阅读全文