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

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

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