index.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var component_1 = require("../common/component");
  4. (0, component_1.VantComponent)({
  5. classes: ['avatar-class', 'title-class', 'row-class'],
  6. props: {
  7. row: {
  8. type: Number,
  9. value: 0,
  10. observer: function (value) {
  11. this.setData({ rowArray: Array.from({ length: value }) });
  12. },
  13. },
  14. title: Boolean,
  15. avatar: Boolean,
  16. loading: {
  17. type: Boolean,
  18. value: true,
  19. },
  20. animate: {
  21. type: Boolean,
  22. value: true,
  23. },
  24. avatarSize: {
  25. type: String,
  26. value: '32px',
  27. },
  28. avatarShape: {
  29. type: String,
  30. value: 'round',
  31. },
  32. titleWidth: {
  33. type: String,
  34. value: '40%',
  35. },
  36. rowWidth: {
  37. type: null,
  38. value: '100%',
  39. observer: function (val) {
  40. this.setData({ isArray: val instanceof Array });
  41. },
  42. },
  43. },
  44. data: {
  45. isArray: false,
  46. rowArray: [],
  47. },
  48. });