<template>
  <el-link
    :type="type"
    :underline="underline"
    :href="href"
    :icon="icon"
    :target="target"
  >
    {{text}}
  </el-link>
</template>

<script>
export default {
  name: "HmElementLink",
  props: {
    /**
     * 类型
     */
    text: {
      type: String,
      default: '默认链接',
    },
    /**
     * href属性
     */
    href: {
      type: String,
      default: '#'
    },
    /**
     * 新窗口打开
     */
    target: {
      type: String,
      default: '_blank',
    },
    /**
     * 是否下划线
     */
    underline: {
      type: Boolean,
      default: true,
    },
    /**
     * 图标类名
     */
    icon: {
      type: String,
      default:"el-icon-delete"
    },
  }
}
</script>

<style scoped>

</style>