<template>
    <button :class="btnClass" @click="handleClickLink">
        <span ref="slot"><slot></slot></span>
    </button>
</template>

<script>

const prefix = 'my-ivu-btn';

export default {
    name: "My-Button",
    data(){
        return {

        }
    },
    props:[],
    methods:{
        handleClickLink(event){
            console.log("我被点击了");
        }
    },
    computed:{
        btnClass(){
            return "my-ivu-btn";
        }
    }
}
</script>

<style scoped>
.my-ivu-btn{
    background:red;
    border-radius: 5px solid green;
}
</style>


