Home  >  Article  >  Web Front-end  >  How to disable page sliding in uniapp

How to disable page sliding in uniapp

coldplay.xixi
coldplay.xixiOriginal
2020-12-14 12:00:2028477browse

How to disable page sliding in uniapp: First find the file [pages.json]; then turn off the bounce attribute, the code is ["app-plus":{"bounce":"none" }].

How to disable page sliding in uniapp

The operating environment of this tutorial: windows7 system, uni-app2.5.1 version, thinkpad t480 computer.

Recommended (free): uni-app development tutorial

How to prohibit page sliding in uniapp:

Disable the page drop-down to display blank, in pages.json: turn off the rebound attribute

{
    "path" : "pages/my_personal/my/my",
    "style" : {
        "navigationBarTitleText": "我的",
        "navigationStyle":"default",
        "navigationBarBackgroundColor":"#FFFFFF",
        "navigationBarTextStyle":"black",
        "enablePullDownRefresh":false,
        "app-plus":{
            "bounce":"none" // 将回弹属性关掉
        }
    }
},

Related free learning recommendations:php programming (video)

The above is the detailed content of How to disable page sliding in uniapp. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn