<import-sjs name="h" from="./index.sjs"/>
<view class="tree-select-second-item{{ open ? ' open' : '' }}">
  <view class="second-item-row" onTap="onOpen">
    <view class="row-text">
      <text number-of-lines="5">{{ item.name }}</text>
    </view>
    <view class="arrow">
      <am-icon type="right" color="#999" size="16" />
    </view>
  </view>
  <view class="second-last-items" style="{{ style }}">
    <view
      onTap="onTapItem"
      data-item="{{ item }}"
      class="second-item-row"
      a:for="{{ h.getItems(item, lastCache) }}"
    >
      <view class="row-text">
        <text number-of-lines="5">{{ item.name }}</text>
      </view>
      <view class="arrow">
        <am-icon type="right" color="#999" size="16" />
      </view>
    </view>
  </view>
</view>
