<import-sjs from="./handler.sjs" name="tools"/>
<import-sjs from="../../wxs/utils.sjs" name="utils"/>
<!--components/table/table.axml-->
<view class="table">
  <view class="thead">
    <view class="tr">
      <view
        class="th"
        a:for="{{tableThemes}}"
        a:key="{{index}}"
      >{{item}}</view>
    </view>
  </view>
  <view class="tbody">
    <view
      class="tr"
      a:for="{{tableItems}}"
      a:for-item="item"
      a:for-index="k"
      a:key="{{k}}"
    >
      <view class="td">{{item.productCount}}</view>
      <view class="td">{{item.productName}}</view>
      <view class="td">{{utils.numberFormat(item.productMoney / 100)}}</view>
    </view>
  </view>
</view>