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} autoExpandParent={autoExpandParent}
showIcon={true} showIcon={true}
// selectedKeys={[useSelector(state => state.tableBarItem.activeKey)]} selectedKeys={[useSelector(state => state.tableBarItem.activeKey)]}
defaultExpandedKeys={useSelector(state => state.tableBarItem.expandedKeyList)} defaultExpandedKeys={useSelector(state => state.tableBarItem.expandedKeyList)}
// treeNodes TreeNode key // treeNodes TreeNode key
treeData={defaultValueState} treeData={defaultValueState}

View File

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

View File

@ -75,7 +75,8 @@ const Note = () => {
<p style={{color: colorBgContainer, 'fontSize': 60}}>上善若水</p> <p style={{color: colorBgContainer, 'fontSize': 60}}>上善若水</p>
</div> </div>
</Sider> </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> <ItemTree filePath={filePath}></ItemTree>
</Sider> </Sider>
<Layout> <Layout>