Coder Social home page Coder Social logo

Comments (6)

shanerou avatar shanerou commented on May 28, 2024

同样也遇到了这个问题,上来找了一圈,结果发现没回复,,,,

from mini-antui.

linxz avatar linxz commented on May 28, 2024

@shanerou 这个可以通过设置 disableScroll="{{false}}" 来处理。

from mini-antui.

shanerou avatar shanerou commented on May 28, 2024

但是设置了disableScroll="{{false}}",如果遮罩底下的主页面是可以滑动的,滑动遮罩,主页面会跟着滑动,我想要的效果是popup页面内,不管如何滑动,主页面不动,这个问题在modal也是存在!

from mini-antui.

linxz avatar linxz commented on May 28, 2024

但是设置了disableScroll="{{false}}",如果遮罩底下的主页面是可以滑动的,滑动遮罩,主页面会跟着滑动,我想要的效果是popup页面内,不管如何滑动,主页面不动,这个问题在modal也是存在!

那么需要使用 sjs 的方式来处理,可以参考:https://opendocs.alipay.com/mini/01og7z#%E7%A4%BA%E4%BE%8B%E4%BB%A3%E7%A0%81

在这个 demo 中有一段内容或许应该是你所希望的结果,可以试试看。

  //......
  // 不往上冒泡,相当于调用了同时调用了
  // event.stopPropagation() 和
  // event.preventDefault()
  return false;

from mini-antui.

coderxixi avatar coderxixi commented on May 28, 2024

我也发现了 怎么解决?

from mini-antui.

Simplyme0823 avatar Simplyme0823 commented on May 28, 2024

我也发现了 怎么解决?

用的是小程序1.0基础库还是2.0基础库?

from mini-antui.

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.