index.js 732 B

123456789101112131415161718192021222324252627
  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. classPrefix: {
  15. type: String,
  16. value: 'van-icon',
  17. },
  18. disabled: Boolean,
  19. loading: Boolean,
  20. },
  21. methods: {
  22. onClick: function (event) {
  23. this.$emit('click', event.detail);
  24. this.jumpLink();
  25. },
  26. },
  27. });