gui-demo-list.vue 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <view>
  3. <view class="demo-list"
  4. v-for="(item, idx) in pageList" :key="idx">
  5. <view class="gui-flex gui-rows">
  6. <text class="demo-title gui-color-gray gui-h5">{{item.title}}</text>
  7. <text class="gui-text-small gui-text-small-ml gui-color-gray">{{item.desc}}</text>
  8. </view>
  9. <navigator class="demo-list-cell gui-flex gui-rows gui-space-between gui-bg-gray gui-border-radius"
  10. v-for="(nav, index) in item.pages" :key="index" :url="nav[1]">
  11. <text class="demo-list-cell-title">{{(index+1)}}. {{nav[0]}}</text>
  12. <text class="demo-list-cell-arrow gui-icons gui-color-gray-light">&#xe601;</text>
  13. </navigator>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default{
  19. props:{
  20. pageList:{type:Array, default:function(){return [];}}
  21. }
  22. }
  23. </script>
  24. <style scoped>
  25. .demo-list{margin-top:60rpx;}
  26. .demo-title{line-height:50rpx;}
  27. .demo-list-cell{padding-left:25rpx; padding-right:20rpx; padding-top:20rpx; padding-bottom:20rpx; margin-top:25rpx;}
  28. .demo-list-cell-title{line-height:50rpx; font-size:26rpx;}
  29. .demo-list-cell-arrow{line-height:50rpx; font-size:36rpx;}
  30. .gui-text-small-ml{margin-left:20rpx; margin-top:8rpx; line-height:38rpx;}
  31. </style>