shuishen
2023-10-28 ed8a450409d89a448b4394300d33ebc2fd31fe0d
components/menuList/index.vue
@@ -1,6 +1,6 @@
<template>
   <view class="cur-container">
      <cur-menu class="child-menu" v-for="(item, index) in menuData" :curMenu="item" :key="index"></cur-menu>
      <cur-menu :class="{'boder-f7f8f9-1': border}" class="up-down-0-20 child-menu" v-for="(item, index) in menuData" :curMenu="item" :key="index"></cur-menu>
   </view>
</template>
@@ -12,7 +12,12 @@
         menuData: {
            type: Array,
            default: () => []
         }
         },
         border: {
            type: Boolean,
            default: false
         },
      },
      
      components: {
@@ -24,10 +29,13 @@
<style lang="scss" scoped>
   .cur-container {
      display: flex;
      flex-wrap: wrap;
      height: 100%;
      
      .child-menu {
         flex: 1;
         min-width: calc(100% / 3);
         box-sizing: border-box;
      }
   }
</style>