index.js 683 B

1234567891011121314151617181920212223
  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. 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. });