简体   繁体   English

如何在 svelte 中实现 Draggable Bottom Sheet Modal?

[英]How to implement Draggable Bottom Sheet Modal in svelte?

How to achieve the dragging effect?如何实现拖动效果?

example bottom sheet modal Maps: https://preview.redd.it/l9aos22q0sr51.gif?format=mp4&s=745a5f3a940436941610e36e3d2242f367803e71示例底部工作表模态地图: https://preview.redd.it/l9aos22q0sr51.gif?format=mp4&s=745a5f3a940436941610e36e3d2242f367803e71

Svelte tutorials has a nice introduction to handling mouse events using actions. Svelte 教程很好地介绍了如何使用操作处理鼠标事件。 Check out the actions tutorial .查看操作教程

Using this same actions here is a vertical splitter on the svelte REPL.在这里使用相同的操作是在 svelte REPL 上的垂直拆分器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM