refactor: link.vue to use composition api #23

Merged
Johann150 merged 1 commit from :refactor/link into main 2022-07-23 20:26:46 +00:00
Showing only changes of commit 98802d61b6 - Show all commits

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>