parent
ffaf72c111
commit
316f673989
@ -1,4 +1,4 @@
|
||||
<!--pages/components/custom-echarts/index.wxml-->
|
||||
<view style="height: {{ height }};width:100%">
|
||||
<view style="height: {{ height }}; width:100%;">
|
||||
<ec-canvas force-use-old-canvas="{{true}}" wx:if="{{showChart}}" id="{{ chartId }}" canvas-id="eventBar" ec="{{ec}}" options="{{chartOption}}"></ec-canvas>
|
||||
</view>
|
||||
|
@ -1,12 +1,12 @@
|
||||
<!--index.wxml-->
|
||||
<view class="container">
|
||||
<van-tabs class="menu-tabs" active="{{ active }}" ellipsis="{{false}}" animated="{{true}}">
|
||||
<van-tabs class="menu-tabs" active="{{ active }}" ellipsis="{{false}}" animated="{{true}}" bind:change="changeTab">
|
||||
<van-tab wx:for="{{navData}}" title="{{item.text}}" wx:key="index">
|
||||
<data-child wx:if="{{item.component === 'data-child'}}"></data-child>
|
||||
<event-child wx:if="{{item.component === 'event-child'}}"></event-child>
|
||||
<media-child wx:if="{{item.component === 'media-child'}}"></media-child>
|
||||
<sound-child wx:if="{{item.component === 'sound-child'}}"></sound-child>
|
||||
<barometer-child wx:if="{{item.component === 'barometer-child'}}"></barometer-child>
|
||||
<data-child wx:if="{{item.component === 'data-child' && active === 0}}"></data-child>
|
||||
<event-child wx:if="{{item.component === 'event-child' && active === 1}}"></event-child>
|
||||
<media-child wx:if="{{item.component === 'media-child' && active === 2}}"></media-child>
|
||||
<sound-child wx:if="{{item.component === 'sound-child' && active === 3}}"></sound-child>
|
||||
<barometer-child wx:if="{{item.component === 'barometer-child' && active === 4}}"></barometer-child>
|
||||
</van-tab>
|
||||
</van-tabs>
|
||||
<tabbar />
|
||||
|
Loading…
Reference in new issue