index.js 862 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import { VantComponent } from '../common/component';
  2. VantComponent({
  3. props: {
  4. row: {
  5. type: Number,
  6. value: 0
  7. },
  8. title: Boolean,
  9. avatar: Boolean,
  10. loading: {
  11. type: Boolean,
  12. value: true
  13. },
  14. animate: {
  15. type: Boolean,
  16. value: true
  17. },
  18. avatarSize: {
  19. type: String,
  20. value: '32px'
  21. },
  22. avatarShape: {
  23. type: String,
  24. value: 'round'
  25. },
  26. titleWidth: {
  27. type: String,
  28. value: '40%'
  29. },
  30. rowWidth: {
  31. type: null,
  32. value: '100%',
  33. observer(val) {
  34. this.setData({ isArray: val instanceof Array });
  35. }
  36. }
  37. },
  38. data: {
  39. isArray: false
  40. }
  41. });