|
|
@@ -2,7 +2,7 @@
|
|
|
<view v-if="fixed && placeholder" class="nut-navbar--placeholder" :style="{ height: navHeight + 'px' }">
|
|
|
<view :class="classes" :style="styles" class="navBarHtml">
|
|
|
<view class="nut-navbar__left" @click="handleLeft">
|
|
|
- <slot name="leftShow" v-if="leftShow">
|
|
|
+ <slot name="left-show" v-if="leftShow">
|
|
|
<Left height="12px" color="#979797"></Left>
|
|
|
</slot>
|
|
|
<view v-if="leftText" class="nut-navbar__text">{{ leftText }}</view>
|
|
|
@@ -11,7 +11,7 @@
|
|
|
<view class="nut-navbar__title">
|
|
|
<view v-if="title" class="title" @click="handleCenter">{{ title }}</view>
|
|
|
<view v-if="titleIcon" class="icon" @click="handleCenterIcon">
|
|
|
- <slot name="titleIcon" @click="handleCenterIcon"></slot>
|
|
|
+ <slot name="title-icon" @click="handleCenterIcon"></slot>
|
|
|
</view>
|
|
|
<slot name="content"></slot>
|
|
|
</view>
|
|
|
@@ -23,7 +23,7 @@
|
|
|
</view>
|
|
|
<view v-else :class="classes" :style="styles">
|
|
|
<view class="nut-navbar__left" @click="handleLeft">
|
|
|
- <slot name="leftShow" v-if="leftShow">
|
|
|
+ <slot name="left-show" v-if="leftShow">
|
|
|
<Left height="12px" color="#979797"></Left>
|
|
|
</slot>
|
|
|
<view v-if="leftText" class="nut-navbar__text">{{ leftText }}</view>
|
|
|
@@ -32,7 +32,7 @@
|
|
|
<view class="nut-navbar__title">
|
|
|
<view v-if="title" class="title" @click="handleCenter">{{ title }}</view>
|
|
|
<view v-if="titleIcon" class="icon" @click="handleCenterIcon">
|
|
|
- <slot name="titleIcon" @click="handleCenterIcon"></slot>
|
|
|
+ <slot name="title-icon" @click="handleCenterIcon"></slot>
|
|
|
</view>
|
|
|
<slot name="content"></slot>
|
|
|
</view>
|