Giter VIP home page Giter VIP logo

Comments (6)

ArcRain avatar ArcRain commented on September 13, 2024 1

可以参考Light7的集成:http://light7.cn/extends/#swipeout

from sui-mobile.

Mickey- avatar Mickey- commented on September 13, 2024

SM里删去了这个功能,该功能在我们的姊妹版,F7-plus里有:http://framework7.taobao.org/docs/swipeout.html

后续可能会考虑合并,目前业务中需要的话可以从 https://github.com/sdc-fe/Framework7-Plus/blob/dev/src/js/swipeout.js 借鉴代码复用

from sui-mobile.

openks avatar openks commented on September 13, 2024

@Mickey- 谢谢哈

from sui-mobile.

Mickey- avatar Mickey- commented on September 13, 2024

#242

from sui-mobile.

capqueen avatar capqueen commented on September 13, 2024

求推荐滑动删除插件,自己集成不了额

from sui-mobile.

capqueen avatar capqueen commented on September 13, 2024

集成参考:

  1. 直接copy light7中的swipout.js,需要修改的地方是23行:
    改成:
    swipeoutOpenedEl[0] == target[0] || target.parents('.swipeout')[0] == swipeoutOpenedEl[0] ||
    原因是 zepto不支持对象的is()方法比较,light7使用的是jquery。
    其他地方没有发现要修改的。
    2.swiper 添加禁用局部class的参数:
    noSwiping:true,
    noSwipingClass: 'swiper-no-swiping'
    目的是防止swipout和swiper冲突, swiper-no-swiping加到swipeout的父dom上

from sui-mobile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.