index.js 811 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { createNamespace } from '../utils';
  2. import { ParentMixin } from '../mixins/relation';
  3. var _createNamespace = createNamespace('steps'),
  4. createComponent = _createNamespace[0],
  5. bem = _createNamespace[1];
  6. export default createComponent({
  7. mixins: [ParentMixin('vanSteps')],
  8. props: {
  9. finishIcon: String,
  10. activeColor: String,
  11. inactiveIcon: String,
  12. inactiveColor: String,
  13. active: {
  14. type: [Number, String],
  15. default: 0
  16. },
  17. direction: {
  18. type: String,
  19. default: 'horizontal'
  20. },
  21. activeIcon: {
  22. type: String,
  23. default: 'checked'
  24. }
  25. },
  26. render: function render() {
  27. var h = arguments[0];
  28. return h("div", {
  29. "class": bem([this.direction])
  30. }, [h("div", {
  31. "class": bem('items')
  32. }, [this.slots()])]);
  33. }
  34. });