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