feat:backup

This commit is contained in:
shixiaohua 2024-02-21 09:37:15 +08:00
parent 74a5c0bd76
commit 1d5a56b4b0
4 changed files with 18 additions and 7 deletions

View File

@ -331,7 +331,7 @@ const ItemTree = (prop) => {
//
autoExpandParent={autoExpandParent}
showIcon={true}
// selectedKeys={[useSelector(state => state.tableBarItem.activeKey)]}
selectedKeys={[useSelector(state => state.tableBarItem.activeKey)]}
defaultExpandedKeys={useSelector(state => state.tableBarItem.expandedKeyList)}
// treeNodes TreeNode key
treeData={defaultValueState}

View File

@ -27,5 +27,15 @@
overflow: hidden;
text-overflow: ellipsis;
}
.ant-tabs{
height: 100%;
}
.ant-tabs-content {
height: 100%;
}
.ant-tabs-tabpane{
height: 100%;
}
.HlexicalName {
height: 94.5%;
}

View File

@ -174,10 +174,10 @@ export default function Hlexical(props) {
return (
<LexicalComposer initialConfig={editorConfig}>
<div className="editor-container">
<div className="editor-container" style={{height:"100%"}}>
{/* 富文本插件 */}
<ToolbarPlugin/>
<div className="editor-inner">
<div className="editor-inner" style={{height:"100%"}}>
<RichTextPlugin
contentEditable={<ContentEditable className="editor-input"/>}
placeholder={<Placeholder/>}
@ -185,7 +185,7 @@ export default function Hlexical(props) {
/>
<HistoryPlugin/>
{/*黑窗口动态记录当前操作*/}
<TreeViewPlugin/>
{/*<TreeViewPlugin/>*/}
<AutoFocusPlugin/>
<CodeHighlightPlugin />

View File

@ -75,7 +75,8 @@ const Note = () => {
<p style={{color: colorBgContainer, 'fontSize': 60}}>上善若水</p>
</div>
</Sider>
<Sider trigger={null} collapsedWidth={0} width={217} collapsible collapsed={collapsed} style={{overflow:"hidden scroll"}}>
<Sider trigger={null} collapsedWidth={0} width={217} collapsible collapsed={collapsed}
style={{overflow:"auto"}}>
<ItemTree filePath={filePath}></ItemTree>
</Sider>
<Layout>