Skip to content

Commit

Permalink
fix: 完善pi-navbar注释
Browse files Browse the repository at this point in the history
  • Loading branch information
Jau-work committed Mar 29, 2021
1 parent d39353f commit 654f619
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions components/pi-navbar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</template>
</view>
<!-- 标题剩余空间 -->
<view :style="[navTitleStyle]" class="pi-flex-sub ">
<view :style="[navTitleStyle]" class="pi-flex-sub">
<!-- 定制导航栏标题 -->
<slot v-if="$slots.title" name="title" />
</view>
Expand Down Expand Up @@ -88,16 +88,16 @@ export default {
// 自定义样式 添加到组件的根节点上
customStyle: {
type: Object,
// {}
default() {
// {}
return navbar.customStyle
}
},
// 自定义样式类 添加到组件的根节点上
customClass: {
type: String,
// ''
default() {
// ''
return navbar.customClass
}
},
Expand Down Expand Up @@ -178,7 +178,7 @@ export default {
type: String,
// `'light'`
default: navbar.capsuleTheme,
validator: function(value) {
validator: function (value) {
return ['light', 'dark'].includes(value)
}
},
Expand Down Expand Up @@ -294,10 +294,10 @@ export default {
methods: {
syncPageRoute() {
if (this.showBack === '') {
/* eslint-disable */
const pages = getCurrentPages()
// 如果堆栈大于1表示打开了子页面,需要显示返回按钮
this.isShowBack = pages.length > 1
/* eslint-disable */
const pages = getCurrentPages()
// 如果堆栈大于1表示打开了子页面,需要显示返回按钮
this.isShowBack = pages.length > 1
} else {
this.isShowBack = this.showBack
}
Expand Down

0 comments on commit 654f619

Please sign in to comment.