提交 0fcca3e6 编写于 作者: S songchenglin3

fix: 修改drag doc 文档

上级 27739a9e
......@@ -40,12 +40,12 @@
## 限制拖拽边界
```tsx
// const right = () => {
// return document.documentElement.clientWidth - 300 - 9
// }
// const bottom = () => {
// return document.documentElement.clientHeight - 559
// }
const right = () => {
return document.documentElement.clientWidth - 300 - 9
}
const bottom = () => {
return document.documentElement.clientHeight - 559
}
<Drag boundary={{ top: 361, left: 9, bottom: bottom(), right: right() }}>
<div class="touch-dom">拖动我</div>
</Drag>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册