You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AppExternalLink.vue 358B

1234567891011121314151617181920212223242526
  1. <template>
  2. <a href="#"
  3. class="c-app-external-link"
  4. @click.prevent="openExternal">
  5. <slot />
  6. </a>
  7. </template>
  8. <script>
  9. const { shell } = $provider.api
  10. export default {
  11. props: {
  12. href: {
  13. type: String,
  14. required: true,
  15. },
  16. },
  17. methods: {
  18. openExternal() {
  19. shell.openExternal(this.href)
  20. },
  21. },
  22. }
  23. </script>