index.js 856 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. center: Boolean,
  10. iconPrefix: String,
  11. finishIcon: String,
  12. activeColor: String,
  13. inactiveIcon: String,
  14. inactiveColor: String,
  15. active: {
  16. type: [Number, String],
  17. default: 0
  18. },
  19. direction: {
  20. type: String,
  21. default: 'horizontal'
  22. },
  23. activeIcon: {
  24. type: String,
  25. default: 'checked'
  26. }
  27. },
  28. render: function render() {
  29. var h = arguments[0];
  30. return h("div", {
  31. "class": bem([this.direction])
  32. }, [h("div", {
  33. "class": bem('items')
  34. }, [this.slots()])]);
  35. }
  36. });