提交 4cd149d3 编写于 作者: 雪洛's avatar 雪洛

feat: setPageStyle、getPageStyle不支持微信小程序

上级 64b49c9d
......@@ -26,6 +26,10 @@ describe('getCurrentPages', () => {
const data = await page.data()
expect(data.checked).toBe(true)
})
if (process.env.uniTestPlatformInfo.startsWith('mp')) {
return
}
it('page-style', async () => {
await page.callMethod('getPageStyle')
await page.waitFor(200)
......
......@@ -25,8 +25,8 @@
<button class="uni-common-mt" @click="checkGetAndroidView">
check getAndroidView
</button>
</view>
</view>
<!-- #ifndef MP -->
<page-head title="currentPageStyle"></page-head>
<template v-for="(item, index) in PageStyleArray">
<view class="page-style-item" v-if="currentPageStyle[item.key] != null" :key="index">
......@@ -55,7 +55,8 @@
</template>
<button style="margin: 10px" @click="goSetDisablePullDownRefresh">
go set disable pullDownRefresh
</button>
</button>
<!-- #endif -->
</view>
<!-- #ifdef APP -->
</scroll-view>
......
const PAGE_PATH = '/pages/API/get-current-pages/set-page-style-disable-pull-down-refresh'
describe('getCurrentPages', () => {
if (process.env.uniTestPlatformInfo.toLowerCase().startsWith('ios')) {
if (
process.env.uniTestPlatformInfo.toLowerCase().startsWith('ios') ||
process.env.uniTestPlatformInfo.startsWith('mp')
) {
it('not-support', async () => {
expect(1).toBe(1)
})
......
......@@ -105,8 +105,10 @@
onReady(() => {
const pages = getCurrentPages();
// #ifndef MP
isStatusBarShow.value = !(pages[pages.length - 1].getPageStyle()['hideStatusBar'] as boolean);
isBottomNavigationIndicatorShow.value = !(pages[pages.length - 1].getPageStyle()['hideBottomNavigationIndicator'] as boolean);
// #endif
getWindowInfo();
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册