提交 322c5094 编写于 作者: D DCloud_LXH

feat(app): page style add disableSwipeBack param

上级 9683adc4
...@@ -67,12 +67,17 @@ function parseStyle (style = {}, root = '') { ...@@ -67,12 +67,17 @@ function parseStyle (style = {}, root = '') {
} }
}) })
if (root && process.env.UNI_PLATFORM === 'app-plus') { // 处理分包逻辑 if (process.env.UNI_PLATFORM === 'app-plus') {
if (Array.isArray(platformStyle.subNVues) && platformStyle.subNVues.length) { if (root && Array.isArray(platformStyle.subNVues) && platformStyle.subNVues.length) { // 处理分包逻辑
platformStyle.subNVues.forEach(subNVue => { platformStyle.subNVues.forEach(subNVue => {
subNVue.path = normalizePath(path.join(root, subNVue.path)) subNVue.path = normalizePath(path.join(root, subNVue.path))
}) })
} }
style.disableSwipeBack === true
? platformStyle.popGesture = 'none'
: delete platformStyle.popGesture
delete style.disableSwipeBack
} }
if (process.env.UNI_PLATFORM === 'mp-alipay') { if (process.env.UNI_PLATFORM === 'mp-alipay') {
...@@ -130,4 +135,4 @@ module.exports = { ...@@ -130,4 +135,4 @@ module.exports = {
parseStyle, parseStyle,
parseTabBar, parseTabBar,
trimMPJson trimMPJson
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册