index.js 1002 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // components/diy-article/index.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. },
  8. /**
  9. * 组件的初始数据
  10. */
  11. data: {
  12. style: {
  13. width: 100,
  14. height: 100,
  15. marginBottom: 10,
  16. marginAuto: 'auto',
  17. borderRadius: 0,
  18. background: '#FFFFFF',
  19. leftMeun: 10,
  20. titleTop: 15,
  21. titleDown: 5,
  22. titleSize: 18,
  23. titleWeight: 600,
  24. authorColor: '#787878',
  25. imageWidth: 75,
  26. imageHeight: 75,
  27. imageRadius: 5,
  28. imageTop: 15,
  29. imageRight: 15,
  30. },
  31. aritcleList: [
  32. {
  33. title: "文章标题在这里",
  34. author: "文章作者",
  35. image: "https://i.ibb.co/X2rgchS/80079-20210808214304311050-0.jpg"
  36. }
  37. ]
  38. },
  39. /**
  40. * 组件的方法列表
  41. */
  42. methods: {
  43. }
  44. })