diff --git a/src/components/ItemTree/index.jsx b/src/components/ItemTree/index.jsx index 280d6b6..edbf668 100644 --- a/src/components/ItemTree/index.jsx +++ b/src/components/ItemTree/index.jsx @@ -314,10 +314,10 @@ const ItemTree = (prop) => { } return ( -
+
{getNodeTreeRightClickMenu()} diff --git a/src/pages/Note/index.jsx b/src/pages/Note/index.jsx index 085b360..6b79ac1 100644 --- a/src/pages/Note/index.jsx +++ b/src/pages/Note/index.jsx @@ -2,7 +2,7 @@ import React, {useRef, useState} from 'react'; import { UserOutlined, } from '@ant-design/icons'; -import {Layout, Avatar, Tabs} from 'antd'; +import {Layout, Avatar, Tabs, Button} from 'antd'; import Hlexical from './Hlexical'; import ItemTree from "../../components/ItemTree"; import './index.less' @@ -22,6 +22,18 @@ const Note = () => { const activeKey=useSelector(state => state.tableBarItem.activeKey); const items = useSelector(state => state.tableBarItem.data) let filePath = useSelector(state => state.dirMessage.data); + + const itemTreeTab=[ + { + key: '1', + label: '文件', + children: , + }, { + key: '2', + label: '标题', + children: '开发中,尽情期待。。', + } + ] const onChange = (newActiveKey) => { console.log("setActiveKey(newActiveKey)",newActiveKey) dispatch(setActiveKey({"activeKey":newActiveKey})); @@ -76,8 +88,12 @@ const Note = () => {
- + // style={{overflow:"auto"}} + > +