index.js 791 B

1234567891011121314151617181920212223242526272829
  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', 'info-class'],
  8. mixins: [link_1.link, button_1.button],
  9. props: {
  10. text: String,
  11. dot: Boolean,
  12. info: String,
  13. icon: String,
  14. size: String,
  15. color: String,
  16. classPrefix: {
  17. type: String,
  18. value: 'van-icon',
  19. },
  20. disabled: Boolean,
  21. loading: Boolean,
  22. },
  23. methods: {
  24. onClick: function (event) {
  25. this.$emit('click', event.detail);
  26. this.jumpLink();
  27. },
  28. },
  29. });