index.js 382B

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