| | |
| | | <view class="content" :style="[{top:StatusBar + 'px'}]"> |
| | | <slot name="content"></slot> |
| | | </view> |
| | | <slot name="right"></slot> |
| | | <!-- <slot name="right"></slot> -->
|
| | | <view class="right" @tap="HandleRight" v-if="isRight">
|
| | | <text class="cuIcon-discover"></text>
|
| | | <slot name="rihjtText"></slot>
|
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | isBack: { |
| | | type: [Boolean, String], |
| | | default: false |
| | | },
|
| | | isRight: {
|
| | | type: [Boolean, String],
|
| | | default: false
|
| | | }, |
| | | bgImage: { |
| | | type: String, |
| | |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }); |
| | | },
|
| | | HandleRight(){
|
| | | this.$emit('rightclick'); // 触发自定义事件
|
| | | } |
| | | } |
| | | } |