<template>
    <view @click="jump">
        <slot></slot>
    </view>
</template>
<script>
    export default {
        name:'app-link',
        props:{
            link:String,
            type:{
                type: String,
                default: 'to'
            }
        },
        methods:{
            jump(){
                this.$jump({
                    url: this.link,
                    type: this.type
                })
            }
        }
    }
</script>
