提交 a1d0ee32 编写于 作者: fxy060608's avatar fxy060608

feat: pass navigationBarTitleText to topWindow

上级 12b41ff1
......@@ -14,6 +14,7 @@
>
<v-uni-top-window
ref="top"
:navigation-bar-title-text="navigationBarTitleText"
v-bind="bindWindow"
@hook:mounted="onTopWindowInit"
/>
......@@ -142,7 +143,8 @@ export default {
topWindowHeight: '0px',
apiShowTopWindow: false,
apiShowLeftWindow: false,
apiShowRightWindow: false
apiShowRightWindow: false,
navigationBarTitleText: ''
}
},
computed: {
......@@ -222,6 +224,10 @@ export default {
this.rightWindowStyle = this.rightWindow.options.style
}
windowTypes.forEach(type => this.initMediaQuery(type))
UniServiceJSBridge.on('onNavigationBarChange', (navigationBar) => {
this.navigationBarTitleText = navigationBar.titleText
})
}
}
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册