<template>
  <el-button v-bind="$attrs" :type="type" v-on="$listeners">
    <template v-if="text">
      <el-link :underline="false" :type="type" text>
        <slot></slot>
      </el-link>
    </template>
    <template v-else>
      <slot></slot>
    </template>
  </el-button>
</template>

<script>
export default {
  name: 'MButton',
  props: {
    text: Boolean,
    type: String
  }
}
</script>

<style lang="scss" scoped>

</style>
