refactor: link.vue to use composition api
ci/woodpecker/pr/lint-backend Pipeline was successful Details
ci/woodpecker/pr/build Pipeline was successful Details
ci/woodpecker/pr/lint-client Pipeline failed Details
ci/woodpecker/pr/test Pipeline failed Details

This commit is contained in:
Norm 2022-07-22 14:23:39 -04:00
parent 150f373ebf
commit 98802d61b6
Signed by: norm
GPG Key ID: 7123E30E441E80DE
1 changed files with 11 additions and 26 deletions

View File

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