index.wxml 465 B

12345678910111213141516171819
  1. <van-cell
  2. center
  3. title="{{ title }}"
  4. border="{{ border }}"
  5. custom-class="van-switch-cell"
  6. >
  7. <van-switch
  8. size="{{ size }}"
  9. checked="{{ checked }}"
  10. loading="{{ loading }}"
  11. disabled="{{ disabled }}"
  12. active-color="{{ activeColor }}"
  13. inactive-color="{{ inactiveColor }}"
  14. active-value="{{ activeValue }}"
  15. inactive-value="{{ inactiveValue }}"
  16. custom-class="van-switch-cell__switch"
  17. bind:change="onChange"
  18. />
  19. </van-cell>