index.wxml 912 B

123456789101112131415
  1. <template name="zan-steps">
  2. <view class="zan-steps zan-steps--{{ type == 'vertical' ? 'vsteps' : 'steps' }} zan-steps--{{ steps.length }} {{ className }}">
  3. <view
  4. wx:for="{{ steps }}" wx:for-item="step" wx:key="unique" wx:for-index="index"
  5. class="zan-steps__step {{ hasDesc ? 'zan-steps__step--db-title' : '' }} {{ index == 0 ? 'zan-steps__step--first-child' : '' }} {{ index == steps.length - 1 ? 'zan-steps__step--last-child' : '' }} {{ step.done ? 'zan-steps__step--done' : '' }} {{ step.current ? 'zan-steps__step--cur' : '' }}"
  6. >
  7. <view class="zan-steps__title">{{ step.text }}</view>
  8. <view wx:if="{{ hasDesc && step.desc }}" class="zan-steps__title zan-steps__title--desc">{{ step.desc }}</view>
  9. <view class="zan-steps__icons">
  10. <view class="zan-steps__circle"></view>
  11. </view>
  12. <view class="zan-steps__line"></view>
  13. </view>
  14. </view>
  15. </template>