index.js 691 B

1234567891011121314151617181920212223242526272829
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var component_1 = require("../common/component");
  4. component_1.VantComponent({
  5. props: {
  6. dot: Boolean,
  7. info: null,
  8. size: null,
  9. color: String,
  10. customStyle: String,
  11. classPrefix: {
  12. type: String,
  13. value: 'van-icon'
  14. },
  15. name: {
  16. type: String,
  17. observer: function (val) {
  18. this.setData({
  19. isImageName: val.indexOf('/') !== -1
  20. });
  21. }
  22. }
  23. },
  24. methods: {
  25. onClick: function () {
  26. this.$emit('click');
  27. }
  28. }
  29. });