<template>
  <el-button
    @click="$emit('click')"
    :icon="icon"
    class="selfButton"
    :style="`width: ${width}`"
    ><slot></slot
  ></el-button>
</template>

<script>
export default {
  props: {
    text: {
      default: '默认按钮'
    },
    icon: {
      default: 'el-icon-plus'
    },
    width: {
      default: '100%'
    }
  }
}
</script>
<style lang="scss" scoped>
.selfButton {
  background-color: transparent;
  color: $--color-primary;
  border: 1px dashed;
  padding: 4px;
}
</style>
