lijh
2022-01-12 bf6fbec0b5593eb28dc195a58a4208d29b79dfee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<template>
    <div>
        <div v-for="(item, index) in articles" :key="index" @click="emitIndex(index)">{{item}}</div>
    </div>
</template>
 
<script>
    export default {
        props: ['articles'],
        methods: {
            emitIndex(index) {
                this.$emit('onEmitIndexEvent', index)
            }
        }
    }
</script>