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
42
43
44
45
46
47
<template>
<div class = "twotitle">
<div class="fisttname">{{title}}</div>
<div class="secondname">{{subhead}}</div>
<div style="display:flex">
<van-grid :border="false" :column-num="2">
<van-grid-item v-for="(item,index) in groupMenus" :icon="item.img?item.icon:'photo-o'" v-bind:key ="index"></van-grid-item>
</van-grid>
</div>
</div>
</template>
<script lang="ts">
import {Vue, Component, Prop, Provide, Emit, Watch} from "vue-property-decorator";
@Component({
components: {}
})
export default class AppTwoTitle extends Vue{
/**
* 名称
*
* @type {string}
* @memberof AppTwoTitle
*/
@Prop() public title?: string;
/**
* 菜单数据
*
* @type {Array<any>}
* @memberof AppTwoTitle
*/
@Prop() public groupMenus?:Array<any>;
/**
* 小标题
*
* @type {string}
* @memberof AppTwoTitle
*/
@Prop() public subhead?: string;
}
</script>
<style lang = "less">
@import "./app-twotitle-list.less";
</style>