|
[云开发]
用了个组件,在android可用,小程序里没出结果
[复制链接]
<template>
<view class="nav-container">
<status-bar-view></status-bar-view>
<view class="nav-header">
<view class="nav-header-button nav-left-button" onclick={this.props.onLeftButton ? this.props.onLeftButton : this.onLeftButton}>
<image width={this.props.leftButtonWidth ? this.props.leftButtonWidth : 11} src={this.props.leftButtonIcon ? this.props.leftButtonIcon : '../../image/act/back.png'} mode="widthFix"></image>
<text class="nav-header-text">{this.props.leftButtonText}</text>
</view>
<text class="nav-header-title">{this.props.title}</text>
<view class="nav-header-button nav-right-button" onclick={this.props.onRightButton}>
<image width={this.props.rightButtonWidth ? this.props.rightButtonWidth : 0} src={this.props.rightButtonIcon ? this.props.rightButtonIcon : ''} mode="widthFix"></image>
<text class="nav-header-text">{this.props.rightButtonText}</text>
</view>
</view>
</view>
</template>
<script>
import './status-bar-view.stml';
export default {
name: 'navigationBar',
methods: {
onLeftButton(e){
api.closeWin();
}
}
}
</script>
-----------------------------下面调用---------------------------
<view class="main-cart-main-cart">
<navigationBar title="测试" leftButtonWidth="0px"></navigationBar>
<view class="main-cart-empty" >
<text class="main-cart-btn-text">暂无记录</text>
</view>
</view>
安卓第一行会显示 测试 ,但小程序没结果
|
|