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

feat: 调整navbar-lite示例适配小程序

上级 417a03cd
<template>
<view class="uni-navbar">
<view v-if="statusBar" class="status-bar"></view>
<!-- #ifdef APP || WEB -->
<view v-if="statusBar" class="status-bar"></view>
<!-- #endif -->
<!-- #ifdef MP -->
<view v-if="statusBar" class="status-bar" :style="{ height: statusBarHeight + 'px' }"></view>
<!-- #endif -->
<view class="uni-navbar-inner">
<view class="left-content" @click="back">
<text :style="{ color: textColor }" class="uni-icons">{{
......@@ -66,7 +71,11 @@
uni.setNavigationBarColor({
frontColor: "#000000",
backgroundColor: "#ffffff",
});
});
// #ifdef MP-WEIXIN
// TODO 部分小程序平台不支持getWindowInfo
this.statusBarHeight = uni.getWindowInfo().statusBarHeight
// #endif
},
methods: {
back() {
......
......@@ -15,8 +15,10 @@
<text>测试输入框上推页面</text>
<radio-group @change="ChangeView" style="flex-direction: row;">
<radio value="0" :checked="true"><text>scroll-view</text></radio>
<radio value="1"><text>list-view</text></radio>
<radio value="2"><text>web-view</text></radio>
<radio value="1"><text>list-view</text></radio>
<!-- #ifndef MP -->
<radio value="2"><text>web-view</text></radio>
<!-- #endif -->
</radio-group>
</view>
<scroll-view v-if="indexView==0" class="scroll-view" :scroll-y="true" :refresher-enabled="false">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册