1234567891011121314151617181920212223242526 |
- <template>
- <a
- :class="[
- 'link',
- disabled && 'cursor-not-allowed',
- underline && !disabled && 'underline'
- ]"
- :href="disabled ? null : href"
- >
- <slot />
- </a>
- </template>
- <script>
- export default {
- props: {
- underline: {
- type: Boolean,
- default: false
- },
- href: String,
- disabled: Boolean
- }
- }
- </script>
|