logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/

optional_router_link.vue (305B)


  1. <template>
  2. <!-- eslint-disable vue/no-multiple-template-root -->
  3. <router-link
  4. v-if="to"
  5. v-slot="props"
  6. :to="to"
  7. custom
  8. >
  9. <slot
  10. v-bind="props"
  11. />
  12. </router-link>
  13. <slot
  14. v-else
  15. v-bind="{}"
  16. />
  17. </template>
  18. <script>
  19. export default {
  20. props: ['to']
  21. }
  22. </script>