Commit 773df3eb by amateur

添加事件处理

1 parent 420b1a46
......@@ -12,7 +12,7 @@
<main>
<HomeBanner />
<MenuModule />
<DataModule v-for="item in modules" :key="item.type" v-bind="item" :datas="item.datas" @clickTop="handleTop(item)" />
<DataModule v-for="(item,idx) in modules" :key="idx" v-bind="item" :datas="item.datas" @clickMore="handleMore(item)" @clickItem="handleItem" @clickTop="handleTop(item)" />
</main>
</div>
</template>
......@@ -72,8 +72,15 @@ export default {
Object.assign(item, { showTop })
}
this.modules = modules
},
handleMore (module) {
},
handleItem (item) {
}
},
}
};
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!