Use TypeScript for Promotion component (#131)

* Use TypeScript for Promotion component

* Apply suggestion from brawaru
This commit is contained in:
Mysterious_Dev
2023-11-13 21:05:01 +01:00
committed by GitHub
parent ba159e1a3e
commit 39e1a803a1

View File

@@ -26,20 +26,20 @@
</div>
</template>
<script setup>
<script setup lang="ts">
import { computed } from 'vue'
import { BisectIcon } from '@'
const props = defineProps({
external: {
type: Boolean,
default: true,
},
queryParam: {
type: String,
default: '',
},
})
const props = withDefaults(
defineProps<{
external: boolean
queryParam: string
}>(),
{
external: true,
queryParam: '',
}
)
const target = computed(() => (props.external ? '_blank' : '_self'))
</script>