x-skeleton-configs.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. export default {
  2. methods: {
  3. bannerConfigs() {
  4. return {
  5. padding: '30rpx',
  6. gridRows: 1,
  7. gridColumns: 1,
  8. gridRowsGap: '40rpx',
  9. gridColumnsGap: '24rpx',
  10. itemDirection: 'row',
  11. itemGap: '30rpx',
  12. itemAlign: 'center',
  13. headShow: true,
  14. headWidth: '100%',
  15. headHeight: '300rpx',
  16. headBorderRadius: '20rpx',
  17. textShow: false,
  18. textRows: 3,
  19. textRowsGap: '20rpx',
  20. textWidth: '100%',
  21. textHeight: '30rpx',
  22. textBorderRadius: '6rpx',
  23. ...this.configs
  24. }
  25. },
  26. infoConfigs() {
  27. return {
  28. padding: '30rpx',
  29. gridRows: 1,
  30. gridColumns: 1,
  31. gridRowsGap: '50rpx',
  32. gridColumnsGap: '24rpx',
  33. itemDirection: 'row',
  34. itemGap: '30rpx',
  35. itemAlign: 'flex-start',
  36. headShow: true,
  37. headWidth: '100rpx',
  38. headHeight: '100rpx',
  39. headBorderRadius: '50%',
  40. textShow: true,
  41. textRows: 4,
  42. textRowsGap: '32rpx',
  43. textWidth: ['50%', '100%', '100%', '80%'],
  44. textHeight: ['40rpx', '24rpx', '24rpx', '24rpx'],
  45. textBorderRadius: '30rpx',
  46. ...this.configs
  47. }
  48. },
  49. textConfigs() {
  50. return {
  51. padding: '30rpx',
  52. gridRows: 1,
  53. gridColumns: 1,
  54. gridRowsGap: '50rpx',
  55. gridColumnsGap: '24rpx',
  56. itemDirection: 'row',
  57. itemGap: '30rpx',
  58. itemAlign: 'flex-start',
  59. headShow: false,
  60. headWidth: '100rpx',
  61. headHeight: '100rpx',
  62. headBorderRadius: '50%',
  63. textShow: true,
  64. textRows: 4,
  65. textRowsGap: '30rpx',
  66. textWidth: ['50%', '100%', '100%', '80%'],
  67. textHeight: '32rpx',
  68. textBorderRadius: '32rpx',
  69. ...this.configs
  70. }
  71. },
  72. menuConfigs() {
  73. return {
  74. padding: '30rpx',
  75. gridRows: 2,
  76. gridColumns: 5,
  77. gridRowsGap: '40rpx',
  78. gridColumnsGap: '40rpx',
  79. itemDirection: 'column',
  80. itemGap: '16rpx',
  81. itemAlign: 'center',
  82. headShow: true,
  83. headWidth: '100rpx',
  84. headHeight: '100rpx',
  85. headBorderRadius: '50%',
  86. textShow: true,
  87. textRows: 1,
  88. textRowsGap: '0rpx',
  89. textWidth: '100%',
  90. textHeight: '24rpx',
  91. textBorderRadius: '32rpx',
  92. ...this.configs
  93. }
  94. },
  95. listConfigs() {
  96. return {
  97. padding: '30rpx',
  98. gridRows: 2,
  99. gridColumns: 1,
  100. gridRowsGap: '50rpx',
  101. gridColumnsGap: '24rpx',
  102. itemDirection: 'row',
  103. itemGap: '30rpx',
  104. itemAlign: 'flex-start',
  105. headShow: true,
  106. headWidth: '200rpx',
  107. headHeight: '200rpx',
  108. headBorderRadius: '16rpx',
  109. textShow: true,
  110. textRows: 4,
  111. textRowsGap: '32rpx',
  112. textWidth: ['50%', '100%', '100%', '80%'],
  113. textHeight: ['38rpx', '24rpx', '24rpx', '24rpx'],
  114. textBorderRadius: '32rpx',
  115. ...this.configs
  116. }
  117. },
  118. waterfallConfigs() {
  119. return {
  120. padding: '30rpx',
  121. gridRows: 2,
  122. gridColumns: 2,
  123. gridRowsGap: '40rpx',
  124. gridColumnsGap: '24rpx',
  125. itemDirection: 'column',
  126. itemGap: '16rpx',
  127. itemAlign: 'center',
  128. headShow: true,
  129. headWidth: '100%',
  130. headHeight: '400rpx',
  131. headBorderRadius: '12rpx',
  132. textShow: true,
  133. textRows: 3,
  134. textRowsGap: '12rpx',
  135. textWidth: ['40%', '85%', '60%'],
  136. textHeight: ['30rpx', '20rpx', '20rpx'],
  137. textBorderRadius: '6rpx',
  138. ...this.configs
  139. }
  140. },
  141. }
  142. }