index.js 755 B

12345678910111213141516171819202122232425262728
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var component_1 = require("../common/component");
  4. var button_1 = require("../mixins/button");
  5. var link_1 = require("../mixins/link");
  6. (0, component_1.VantComponent)({
  7. classes: ['icon-class', 'text-class'],
  8. mixins: [link_1.link, button_1.button],
  9. props: {
  10. text: String,
  11. dot: Boolean,
  12. info: String,
  13. icon: String,
  14. color: String,
  15. classPrefix: {
  16. type: String,
  17. value: 'van-icon',
  18. },
  19. disabled: Boolean,
  20. loading: Boolean,
  21. },
  22. methods: {
  23. onClick: function (event) {
  24. this.$emit('click', event.detail);
  25. this.jumpLink();
  26. },
  27. },
  28. });