index.js 948 B

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