mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2026-01-05 02:38:10 +00:00
修复拖拽边界的问题
This commit is contained in:
parent
9ee0398a82
commit
5f214a8537
@ -3,6 +3,7 @@
|
||||
"scripts": {
|
||||
"start": "umi dev",
|
||||
"build": "umi build",
|
||||
"postinstall": "umi generate tmp",
|
||||
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
|
||||
"test": "umi-test",
|
||||
"test:coverage": "umi-test --coverage"
|
||||
@ -19,12 +20,11 @@
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"@ant-design/charts": "^0.9.9",
|
||||
"@ant-design/icons": "^4.2.1",
|
||||
"@types/node": "^14.6.2",
|
||||
"@umijs/plugin-sass": "^1.1.1",
|
||||
"@umijs/preset-react": "1.x",
|
||||
"@umijs/test": "^3.0.12",
|
||||
"@umijs/test": "^3.2.19",
|
||||
"antd": "^4.2.3",
|
||||
"antd-img-crop": "^3.10.0",
|
||||
"axios": "^0.19.2",
|
||||
@ -41,8 +41,10 @@
|
||||
"react-dom": "^16.12.0",
|
||||
"react-draggable": "^4.4.3",
|
||||
"react-grid-layout": "^1.0.0",
|
||||
"react-text-loop": "^2.3.0",
|
||||
"sass-loader": "^9.0.3",
|
||||
"umi": "^3.0.12",
|
||||
"socket.io-client": "^2.3.0",
|
||||
"umi": "^3.2.19",
|
||||
"video-react": "^0.14.1",
|
||||
"yorkie": "^2.0.0",
|
||||
"zarm": "^2.5.1"
|
||||
|
||||
@ -18,7 +18,7 @@ const SourceBox = memo(props => {
|
||||
pointRect = parentDiv.getBoundingClientRect(),
|
||||
top = pointRect.top,
|
||||
pointEnd = monitor.getSourceClientOffset(),
|
||||
y = pointEnd.y - top,
|
||||
y = pointEnd.y < top ? 0 : pointEnd.y - top,
|
||||
col = 24, // 网格列数
|
||||
cellHeight = 2;
|
||||
// 转换成网格规则的坐标和大小
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user