【发布时间】:2019-11-14 07:05:12
【问题描述】:
如果我用<a>,<v-btn>扩展面板设计总是坏掉,这种情况下怎么用click事件?
我尝试使用filters、watch 和computed,但我没有。
这是我的代码:
<v-card xs12 sm6 md12>
<template v-for="item in activityitems">
<v-layout v-bind:key="item.ActivityID">
<a @click="activityList(item.ActivityID)">
<v-expansion-panel>
<v-expansion-panel-content>
<template v-slot:header>
<v-card flat>
<v-card-title>
<span class="grey--text">
Name:{{item.ActivityName}}
</span>
</v-card-title>
</v-card>
<v-card flat>
<v-card-title>
<span class="grey--text">
Date:{{item.ActivityDate}}
</span>
</v-card-title>
</v-card>
</template>
</v-expansion-panel-content>
</v-expansion-panel>
</a>
</v-layout>
</template>
</v-card>
【问题讨论】:
标签: javascript vue.js vuejs2 vuetify.js