lampList.vue 603 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <view>
  3. <view class="item" v-for="(item,index) in listAll" :key="index">
  4. <view>{{item}}</view>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. name: "lampList",
  11. data() {
  12. return {
  13. listAll: []
  14. };
  15. },
  16. mounted() {
  17. var listAll = []
  18. for (let i = 0; i < 80; i++) {
  19. listAll.push(`我是第${i}号佳丽`)
  20. }
  21. this.listAll = listAll
  22. },
  23. methods: {
  24. }
  25. }
  26. </script>
  27. <style lang="scss">
  28. .item {
  29. width: 750rpx;
  30. height: 105rpx;
  31. padding: 5px;
  32. color: #666;
  33. box-sizing: border-box;
  34. background-color: bisque;
  35. margin-top: 10px;
  36. }
  37. </style>