<template>
  <div class="table-operator-item flex valign-center" @click="onClick(data)">
    <slot name="icon"><i :class="icon"></i></slot><span><slot /></span>
  </div>
</template>

<script>
export default {
  name: 'EditButton',
  props: {
    data: {
      required: true,
      type: Object
    },
    icon: {
      type: String
    },
    onClick: {
      required: true,
      type: Function
    }
  }
}
</script>

<style lang="scss"></style>
