index.js 636B

123456789101112131415161718192021222324
  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. 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. disabled: Boolean,
  15. loading: Boolean,
  16. },
  17. methods: {
  18. onClick: function (event) {
  19. this.$emit('click', event.detail);
  20. this.jumpLink();
  21. },
  22. },
  23. });