Commit 80c27a1f authored by 陈前坚's avatar 陈前坚

perf: 树收缩展开,提交按钮居中

parent 52a1093c
...@@ -123,7 +123,7 @@ const EditForm = props => { ...@@ -123,7 +123,7 @@ const EditForm = props => {
<Item label="功能参数" name="funParam"> <Item label="功能参数" name="funParam">
<Input /> <Input />
</Item> </Item>
<Item wrapperCol={{ offset: 5 }} style={{ marginTop: '40px' }}> <Item wrapperCol={{ offset: 10 }} style={{ marginTop: '40px' }}>
<Button type="primary" htmlType="submit"> <Button type="primary" htmlType="submit">
提交 提交
</Button> </Button>
...@@ -211,7 +211,7 @@ const EditForm = props => { ...@@ -211,7 +211,7 @@ const EditForm = props => {
<Item label="功能参数" name="funParam"> <Item label="功能参数" name="funParam">
<Input /> <Input />
</Item> </Item>
<Item wrapperCol={{ offset: 5 }} style={{ marginTop: '40px' }}> <Item wrapperCol={{ offset: 10 }} style={{ marginTop: '40px' }}>
<Button type="primary" htmlType="submit"> <Button type="primary" htmlType="submit">
提交 提交
</Button> </Button>
......
...@@ -154,10 +154,10 @@ const MiniMenu = props => { ...@@ -154,10 +154,10 @@ const MiniMenu = props => {
icon: icon:
obj.menuType !== 'MiniAppMenuThree' && obj.menuType !== 'MiniAppMenuThree' &&
obj.menuType !== 'MiniAppMenu' ? ( obj.menuType !== 'MiniAppMenu' ? (
<FolderFilled /> <FolderFilled />
) : ( ) : (
<FileOutlined /> <FileOutlined />
), ),
menuType: obj.menuType, menuType: obj.menuType,
children: hasChild ? obj.children.map(i => mapTree(i)) : [], children: hasChild ? obj.children.map(i => mapTree(i)) : [],
}; };
...@@ -527,7 +527,7 @@ const MiniMenu = props => { ...@@ -527,7 +527,7 @@ const MiniMenu = props => {
onDrop={handleDrop} onDrop={handleDrop}
// onDragEnter={handleDragEnter} // onDragEnter={handleDragEnter}
selectedKeys={[menuID]} selectedKeys={[menuID]}
expandedKeys={[menuID]} // expandedKeys={[menuID]}
/> />
)} )}
</div> </div>
......
...@@ -50,6 +50,9 @@ ...@@ -50,6 +50,9 @@
.ant-notification-close-icon{ .ant-notification-close-icon{
vertical-align: 0.2em; vertical-align: 0.2em;
} }
.ant-tree-switcher-icon svg{
font-size: 14px;
}
} }
.redText{ .redText{
color: red; color: red;
......
...@@ -354,7 +354,7 @@ const SiteManage = () => { ...@@ -354,7 +354,7 @@ const SiteManage = () => {
showIcon showIcon
onSelect={handleTreeSelect} onSelect={handleTreeSelect}
autoExpandParent autoExpandParent
expandedKeys={currentSelectId} // expandedKeys={currentSelectId}
treeData={treeData} treeData={treeData}
selectedKeys={currentSelectId} selectedKeys={currentSelectId}
blockNode blockNode
......
...@@ -97,7 +97,7 @@ const EditForm = props => { ...@@ -97,7 +97,7 @@ const EditForm = props => {
</Select> </Select>
</EditeConfigWrapper> </EditeConfigWrapper>
</Item> </Item>
<Item wrapperCol={{ offset: 5 }} style={{ marginTop: '40px' }}> <Item wrapperCol={{ offset: 10 }} style={{ marginTop: '40px' }}>
<Button type="primary" htmlType="submit"> <Button type="primary" htmlType="submit">
提交 提交
</Button> </Button>
...@@ -140,7 +140,7 @@ const EditForm = props => { ...@@ -140,7 +140,7 @@ const EditForm = props => {
> >
<PicturesWall /> <PicturesWall />
</Item> </Item>
<Item wrapperCol={{ offset: 5 }} style={{ marginTop: '40px' }}> <Item wrapperCol={{ offset: 10 }} style={{ marginTop: '40px' }}>
<Button type="primary" htmlType="submit"> <Button type="primary" htmlType="submit">
提交 提交
</Button> </Button>
......
...@@ -324,7 +324,7 @@ const MiniMenu = props => { ...@@ -324,7 +324,7 @@ const MiniMenu = props => {
blockNode blockNode
autoExpandParent autoExpandParent
selectedKeys={[menuID]} selectedKeys={[menuID]}
expandedKeys={[menuID]} // expandedKeys={[menuID]}
/> />
)} )}
</div> </div>
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
min-height: 100%; min-height: 100%;
border: 1px solid #eee; border: 1px solid #eee;
padding: 10px; padding: 10px;
height: calc( 100vh - 198px);
overflow-y: auto;
.ant-tree-node-content-wrapper{ .ant-tree-node-content-wrapper{
display: flex; display: flex;
align-items: center; align-items: center;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment