ant design antd react实现tree树状多级目录示例代码

代码语言:html

所属分类:其他

代码描述:ant design antd react实现tree树状多级目录示例代码

代码标签: ant design antd react tree 树状 多级 目录 示例 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">

<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/babel.7.18.13.js"></script>
   <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/react.production.18.2.0.js"></script>
   <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/react-dom.production.18.2.0.js"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/dayjs@1.js"></script>

<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/antd.5.7.0.js"></script>
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/antd.reset.5.7.0.css">

</head>
<body>
    <div id="app">
       
    </div>
    
    <script type="text/babel">

const  {useState }  =  window.React;

const { Tree } = antd;
const { DirectoryTree } = Tree;
const treeData = [
  {
    title: 'pa.........完整代码请登录后点击上方下载按钮下载查看

网友评论0