<!--component/SubjectTreeChooserNodeItem/childrenPage.wxml-->
<van-collapse value="{{ activeNames }}" bind:change="onChange">
  <van-collapse-item 
      wx:for="{{subjects}}"
      name="{{item.subjectId}}"
      is-link="{{item.children && item.children.length > 0}}"
      disabled="{{!(item.children && item.children.length > 0)}}"
      >
        <view slot="title" bind:tap="onItemClicked" data-item="{{item}}" style="color: #333333;">
          {{ item.subjectId }} {{ item.subjectName }}
        </view>
        <view>
          <childrenPage wx:if="{{item.children && item.children.length > 0}}" subjects="{{item.children}}"></childrenPage>
        </view>
        
    <!-- bind:tap="($event) => onItemClicked($event, subject)" wx:if="{{item.visible}}" is-link="{{item.is_last != 'Y'}}"  <SubjectTreeChooserNodeItem :ref="'childCollapse' + index" :subjects="subject.children" v-if="subject.children && Array.isArray(subject.children) && subject.children.length > 0" @clicked="onChildItemClicked" :can-select-non-leaf="canSelectNonLeaf">
    </SubjectTreeChooserNodeItem> -->
  </van-collapse-item>
</van-collapse>