index.js 583 B

123456789101112131415161718192021222324252627
  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: {
  14. type: String,
  15. observer(val) {
  16. this.setData({
  17. isImageName: val.indexOf('/') !== -1
  18. });
  19. }
  20. }
  21. },
  22. methods: {
  23. onClick() {
  24. this.$emit('click');
  25. }
  26. }
  27. });