index.js 406B

123456789101112131415161718192021
  1. import { VantComponent } from '../common/component';
  2. VantComponent({
  3. props: {
  4. dot: Boolean,
  5. info: null,
  6. size: null,
  7. color: String,
  8. customStyle: String,
  9. classPrefix: {
  10. type: String,
  11. value: 'van-icon',
  12. },
  13. name: String,
  14. },
  15. methods: {
  16. onClick() {
  17. this.$emit('click');
  18. },
  19. },
  20. });