index.js 969 B

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