From ed8a450409d89a448b4394300d33ebc2fd31fe0d Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sat, 28 Oct 2023 17:27:15 +0800
Subject: [PATCH] 首页文件修改
---
components/menuList/index.vue | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/components/menuList/index.vue b/components/menuList/index.vue
index 1f2bc87..f800f6f 100644
--- a/components/menuList/index.vue
+++ b/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>
\ No newline at end of file
--
Gitblit v1.9.3