index.js 433 B

123456789101112131415161718
  1. import { VantComponent } from '../common/component';
  2. import { link } from '../mixins/link';
  3. import { button } from '../mixins/button';
  4. import { openType } from '../mixins/open-type';
  5. VantComponent({
  6. mixins: [link, button, openType],
  7. props: {
  8. text: String,
  9. info: String,
  10. icon: String
  11. },
  12. methods: {
  13. onClick: function onClick(event) {
  14. this.$emit('click', event.detail);
  15. this.jumpLink();
  16. }
  17. }
  18. });