<template>
  <a href="JavaScript:;" @click="handleClick" :class="[disabled && 'is-disabled']">
    <son v-bind="$attrs" :disabled="disabled"></son>
  </a>
</template>

<script>
import son from './son.vue'
export default {
  name: 'ElSvg',
  components: { son },
  props: {
    disabled: {
      default: false,
      type: Boolean
    }
  },
  mounted() {
  },
  methods: {
    handleClick() {
      if (this.disabled) return
      this.$emit('click')
    }
  }
}
</script>
