1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
| <template>
| <view class="cur-container">
| <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>
|
| <script>
| import curMenu from "@/components/curMenu/index.vue";
|
| export default {
| props: {
| menuData: {
| type: Array,
| default: () => []
| },
|
| border: {
| type: Boolean,
| default: false
| },
| },
|
| components: {
| curMenu
| }
| }
| </script>
|
| <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>
|
|