app-time-list.vue 1.1 KB
Newer Older
zcdtk's avatar
zcdtk committed
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 48 49 50 51 52
<template>
    <div class="timetitle">
        <div class="title">
            <div class="fisttname">{{title}}</div>
        <div class="titleright">
            <van-count-down :time="time" />
        </div>
        </div>
        <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>
</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 time?: string;

    

}
</script>
<style lang = "less">
@import "./app-time-list.less";
</style>