- <!--components/Chart/Chart.wxml-->
- <view wx:if="{{show}}" class="canvas">
- <view class="btnType" wx:if="{{btnList.length}}">
- <view
- bindtap="changeselect"
- data-type="{{item.type}}"
- class="{{'chartBtn' + (item.type === select ? ' active' : '')}}"
- wx:for="{{btnList}}" wx:key="name">{{item.name}}</view>
- </view>
- <ec-canvas id="{{id}}" canvasId="{{canvasId}}" ec="{{ ec }}"></ec-canvas>
- </view>
|