<template>
  <div class="ivu-button" @click.stop="handleClick">
    {{label}}
  </div>
</template>

<script>
export default {
  name: 'ivu-button',
  props: {
    label: String
  },

  methods: {
    handleClick (item) {
      console.log('item', item)
      this.$emit('click', item)
    }
  }
}
</script>

<style lang="less" scoped>
.ivu-button{
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid red;
  border-radius: 4px;
  color: red;
}
</style>
