smartmeter-app/echarts-for-weixin-master/pages/lazyLoad/index.wxml

7 lines
315 B
Plaintext
Raw Normal View History

2023-12-05 16:45:28 +08:00
<!--index.wxml-->
<view class="container">
<button bindtap="init" wx:if="{{!isLoaded}}">加载图表</button>
<button bindtap="dispose" wx:if="{{isLoaded && !isDisposed}}">释放图表</button>
<ec-canvas wx:if="{{!isDisposed}}" id="mychart-dom-bar" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>
</view>