refactor: link.vue to use composition api

This commit is contained in:
Norm 2022-07-22 14:23:39 -04:00 committed by Gitea
parent bbb16208ab
commit 2f432dce65

View file

@ -19,33 +19,18 @@
</div> </div>
</template> </template>
<script lang="ts"> <script lang="ts" setup>
import { defineComponent } from 'vue'; import { } from 'vue';
export default defineComponent({ type Behavior = 'window' | 'browser' | 'modalWindow';
props: {
to: { defineProps<{
type: String, to: string;
required: true active?: boolean;
}, external?: boolean;
active: { behavior?: Behavior;
type: Boolean, inline?: boolean;
required: false }>();
},
external: {
type: Boolean,
required: false
},
behavior: {
type: String,
required: false,
},
inline: {
type: Boolean,
required: false
},
},
});
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>