index.js 592 B

12345678910111213141516171819202122232425262728
  1. "use strict";
  2. var _component = require("../common/component");
  3. var _button = require("../mixins/button");
  4. var _link = require("../mixins/link");
  5. var _openType = require("../mixins/open-type");
  6. (0, _component.VantComponent)({
  7. classes: ["icon-class", "text-class"],
  8. mixins: [_link.link, _button.button, _openType.openType],
  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 onClick(event) {
  19. this.$emit("click", event.detail);
  20. this.jumpLink();
  21. }
  22. }
  23. });