feat:backup
This commit is contained in:
parent
74a5c0bd76
commit
1d5a56b4b0
|
@ -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}
|
||||||
|
|
|
@ -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%;
|
||||||
|
}
|
||||||
|
|
|
@ -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 />
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue