<template>
  <ElButton v-if="visible"
            class="x-toolbar__button"
            v-bind="props"
            :size="size"
            :disabled="disabled"
            @click="handleClick">{{label}}
  </ElButton>
</template>

<script>
import { Button as ElButton } from 'element-ui';
import common from '../common';

export default {
  name: 'XToolBarButton',
  mixins: [common],
  components: {
    ElButton
  }
};
</script>
