inleft
2022-03-02 620f759cfe9fa42fa9667b2ec63d7d00944e4af0
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>