前端说插件里没这个功能,不想加。 后来想了一个办法, 默认每个节点都是关闭状态,然后每次新增节点或者编辑节点的时候都由后端把当前节点以及它的父节点的状态设置成开启状态。 然后前端再去调用查询层级的接口。后端在返回查询层级的结果之前,再悄默默的把所有节点的状态改成关闭状态,但不要影响这次要返回的结果。 ...
JavaScript Add a description, image, and links to thereact-org-treetopic page so that developers can more easily learn about it. To associate your repository with thereact-org-treetopic, visit your repo's landing page and select "manage topics."...
组织机构树. Latest version: 0.0.17, last published: 3 years ago. Start using yf-react-orgtree in your project by running `npm i yf-react-orgtree`. There are no other projects in the npm registry using yf-react-orgtree.
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.. Latest version: 1.1.4, last published: a year ago. Start using @pluve/lego-org-tree-react in your project by running `npm i @pluve/lego-org-tree-react`.
Contribute to sandeep-synswift/react-tailwind-org-tree development by creating an account on GitHub.
import React from 'react'; import { OrgTree } from 'an-orgtree-react-antd-simple'; export default function Index(params) { const data = { name: '11111', description: '职位', // imgSrc: userPng, children: [ { name: '1111-1111', description: '职位1\n职位2', }, { name: '2133...