<template>
    <div>
        <div v-for="item in points" :key="item.value" @click="go(item.value)">{{item.label}}</div>
    </div>
</template>
<script>
export default {
    data() {
        return {
            points: [
                {
                    label: '基本信息',
                    value: 'basic'
                },
                {
                    label: '地理信息',
                    value: 'geo'
                },
                {
                    label: '项目信息',
                    value: 'project'
                },
                {
                    label: '商业信息',
                    value: 'business'
                }
            ]
        }
    },
    methods: {
        go(value) {
            this.$emit('goAnchor', value)
        }
    }
}
</script>
<style lang="less" scoped></style>