mirror of https://github.com/openspug/spug
upgrade antd 4.9.4
parent
4c9468da65
commit
690b84584a
|
@ -68,8 +68,11 @@ class GroupView(View):
|
|||
dst = Group.objects.get(pk=form.d_id)
|
||||
if form.action == 0:
|
||||
src.parent_id = dst.id
|
||||
src.save()
|
||||
return json_response()
|
||||
dst = Group.objects.filter(parent_id=dst.id).first()
|
||||
if not dst:
|
||||
src.save()
|
||||
return json_response()
|
||||
form.action = -1
|
||||
src.parent_id = dst.parent_id
|
||||
if src.sort_id > dst.sort_id:
|
||||
if form.action == -1:
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"dependencies": {
|
||||
"@ant-design/icons": "^4.3.0",
|
||||
"ace-builds": "^1.4.7",
|
||||
"antd": "^4.8.5",
|
||||
"antd": "^4.9.4",
|
||||
"axios": "^0.21.0",
|
||||
"bizcharts": "^3.5.9",
|
||||
"history": "^4.10.1",
|
||||
|
|
|
@ -15,7 +15,6 @@ import {
|
|||
ScissorOutlined
|
||||
} from '@ant-design/icons';
|
||||
import { LoadingOutlined } from '@ant-design/icons';
|
||||
import styles from './index.module.css';
|
||||
import { http } from 'libs';
|
||||
import store from './store';
|
||||
import lds from 'lodash';
|
||||
|
@ -141,7 +140,6 @@ export default observer(function () {
|
|||
trigger={['contextMenu']}
|
||||
onVisibleChange={v => v || setVisible(v)}>
|
||||
<Tree.DirectoryTree
|
||||
className={styles.dragBox}
|
||||
autoExpandParent
|
||||
draggable={draggable}
|
||||
treeData={store.treeData}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import React, { useEffect, useState } from 'react';
|
||||
import { observer } from 'mobx-react';
|
||||
import { Modal, Row, Col, Tree, Table } from 'antd';
|
||||
import styles from './index.module.css';
|
||||
import store from './store';
|
||||
|
||||
export default observer(function (props) {
|
||||
|
@ -65,7 +64,6 @@ export default observer(function (props) {
|
|||
<Col span={6}>
|
||||
<Tree.DirectoryTree
|
||||
selectedKeys={[group.key]}
|
||||
className={styles.dragBox}
|
||||
treeData={store.treeData}
|
||||
titleRender={treeRender}
|
||||
onSelect={(_, {node}) => setGroup(node)}
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
.dragBox :global(.ant-tree-node-content-wrapper) {
|
||||
border-top: 2px transparent solid;
|
||||
border-bottom: 2px transparent solid;
|
||||
}
|
Loading…
Reference in New Issue