提交 84752f89 编写于 作者: DCloud_iOS_XHY's avatar DCloud_iOS_XHY

修复 setPageBackgroundColorContent 示例,屏蔽web端

(cherry picked from commit 1753dd81)
上级 712ad885
......@@ -396,12 +396,14 @@
"navigationBarTitleText": "设置导航条标题"
}
},
// #ifdef APP
{
"path": "pages/API/set-page-backgroundColorContent/set-page-backgroundColorContent",
"style": {
"navigationBarTitleText": "设置页面容器背景色"
}
},
// #endif
{
"path": "pages/API/navigator/new-page/new-page-1",
"style": {
......
describe('set-page-backgroundColorContent', () => {
describe('set-page-backgroundColorContent', () => {
if (process.env.uniTestPlatformInfo.startsWith('web')) {
it('dummyTest', async () => {
expect(1).toBe(1)
})
return
}
let page
beforeAll(async () => {
page = await program.reLaunch('/pages/API/set-page-backgroundColorContent/set-page-backgroundColorContent')
......
......@@ -9,7 +9,7 @@
data() {
return {
isChange : false,
currentBackgroundColorContent: ""
currentBackgroundColorContent: "" as any | null
}
},
methods: {
......@@ -20,9 +20,7 @@
this.isChange = !this.isChange
let pageJson = page.$getPageStyle()
this.currentBackgroundColorContent = pageJson.backgroundColorContent
console.log(this.currentBackgroundColorContent)
this.currentBackgroundColorContent = pageJson["backgroundColorContent"]
}
}
}
......
......@@ -109,10 +109,12 @@
name: '设置导航条颜色',
url: 'set-navigation-bar-color',
},
// #ifdef APP
{
name: '设置页面容器背景色',
url: 'set-page-backgroundColorContent',
},
// #endif
{
name: '设置TabBar',
url: 'set-tabbar',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册