<!--module/health/pages/record-index/record-index.wxml-->
<view class="chart-container">
  <block wx:if="{{loading}}">
    <view class="loading">加载中...</view>
  </block>
  <block wx:else>
      <view wx:for="{{charts}}" wx:key="*this" style="width: {{rect.width}}px; height: {{rect.height}}px;">
        <ec-canvas 
          id="dom-{{item.id}}"
          canvas-id="canvas-{{item.id}}"
          ec="{{item}}" 
          force-use-old-canvas="true"
          disable-scroll="true"
          style="width: {{rect.width}}px; height: {{rect.height}}px;"
        ></ec-canvas>
      </view>
  </block>
</view>