index.js 705 B

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