1***@qq.com
1***@qq.com
  • 发布:2023-08-23 12:33
  • 更新:2023-08-23 13:56
  • 阅读:172

有没有办法实现在scroll-view中拖动组件到滚动范围之外

分类:uni-app

部分代码如下,用touchstart touchmove touchend 能动但是托不出scroll-view的范围,以及在使用movable-area/movable-view也不太行,有什么思路提供吗?

<scroll-view scroll-y="true"style="height: 99%;display: flex;flex-direction: column;justify-content: center;align-items: center;">  
    <view class="input-flex" v-for="(value, key) in _id" :key="key">  
        <view class="input-index">OFFLINE  
        </view>  
        <view class="input-mac">{{value.value}}</view>  
    </view>  
</scroll-view>
2023-08-23 12:33 负责人:无 分享
已邀请:
Diligent_UI

Diligent_UI - 【插件开发】【专治疑难杂症】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=193663(微信搜索飘逸科技UI小程序直接体验)】【骗子请绕道】问题咨询请加QQ群:120594820,代表作灵感实用工具小程序

实现拖动可以使用movable-area/movable-view,可以配置可拖动范围以及方向

  • 1***@qq.com (作者)

    谢谢,movable-area/movable-view不太满足我现在的需求,想要将组件拖离scroll-view之外,

    2023-08-23 14:17

  • Diligent_UI

    回复 1***@qq.com: 这个可以拖到外面的

    2023-08-23 14:33

  • 1***@qq.com (作者)

    回复 Diligent_UI: 拖出范围外的部分,会被scroll-view遮住,且能拖出范围的距离好短

    2023-08-23 14:48

要回复问题请先登录注册