Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VUE.js下使用mui.js的侧滑菜单无效 #504

Open
houdianjie opened this issue Jul 31, 2020 · 0 comments
Open

VUE.js下使用mui.js的侧滑菜单无效 #504

houdianjie opened this issue Jul 31, 2020 · 0 comments

Comments

@houdianjie
Copy link

VUE.js下使用mui.js的侧滑菜单无效,在mounted里面加载的
mounted: function () {
var vm=this;
vm.$nextTick(()=>{
mui.init();
mui('.mui-input-row input').input();
//主界面和侧滑菜单界面均支持区域滚动;
mui('#offCanvasSideScroll').scroll();
mui('#offCanvasContentScroll').scroll();
//实现ios平台原生侧滑关闭页面;
if (mui.os.plus && mui.os.ios) {
mui.plusReady(function () { //5+ iOS暂时无法屏蔽popGesture时传递touch事件,故该demo直接屏蔽popGesture功能
plus.webview.currentWebview().setStyle({
'popGesture': 'none'
});
});
}
});
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant