调试style时发现page中引入的组件admin的wxml不能展开,在前面显示...。开发者工具版本为1.05.2102010最新稳定版。一直在想是不是有什么地方设置不对呢?
下面是原代码:
<admin wx:if="{{pageCur=='admin'}}"></admin>
<view class="cu-bar tabbar bg-white shadow foot">
<view class="action" bindtap="NavChange" data-cur="home">
<view class="action text-{{pageCur=='home'?'red':''}}">
<view class="cuIcon-home"></view> 首页
</view>
</view>
<view class="action" bindtap="NavChange" data-cur="admin" wx:if="{{role!='user'}}">
<view class="action text-{{pageCur=='admin'?'red':''}}">
<view class="cuIcon-profile">
<view class="cu-tag badge" hidden="true"></view>
</view>
管理
</view>
</view>
</view>