index.wxml 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <wxs
  2. src="./index.wxs"
  3. module="utils" />
  4. <view
  5. class="ant-steps ant-steps-{{ direction }} {{ className || '' }}"
  6. style="{{ style }}">
  7. <block
  8. wx:for="{{ items }}"
  9. wx:for-index="index"
  10. wx:for-item="item">
  11. <view
  12. class="ant-steps-item ant-steps-item-{{ direction }} {{ index < current ? 'ant-steps-item-finish' : '' }} {{ index === current ? 'ant-steps-item-active' : '' }} {{ index > current ? 'ant-steps-item-non-active' : '' }}">
  13. <view
  14. class="ant-steps-item-indicator ant-steps-item-indicator-{{ direction }}">
  15. <view
  16. class="ant-steps-item-indicator-icon ant-steps-item-{{ utils.getClassName(current, index, status) }}-icon">
  17. <view
  18. class="ant-steps-item-{{ utils.getClassName(current, index, status) }}-icon-default" />
  19. </view>
  20. </view>
  21. <view class="ant-steps-item-text">
  22. <view
  23. class="ant-steps-item-title ant-steps-item-title-{{ utils.getClassName(current, index, status) }}">
  24. {{ item.title }}
  25. </view>
  26. <view class="ant-steps-item-desc">{{ item.description }}</view>
  27. </view>
  28. </view>
  29. </block>
  30. </view>