<template>
  <el-button
    :icon="icon"
    :plain="plain"
    :loading="loading"
    :title="title"
    @click="handleClick"
  >
    <slot></slot>
  </el-button>
</template>

<script>
export default {
  name: 'IntButton',
  props: {
    icon: {
      type: String,
      default: ''
    },
    plain: {
      type: Boolean,
      default: true
    },
    loading: {
      type: Boolean,
      default: false
    },
    title: {
      type: String,
      default: ''
    }
  },
  methods: {
    handleClick() {
      this.$emit('click');
    }
  }
};
</script>

<style scoped>
</style> 