Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Use TypeScript for Promotion component (#131)
Browse files Browse the repository at this point in the history
* Use TypeScript for Promotion component

* Apply suggestion from brawaru
  • Loading branch information
Mysterious-Dev authored Nov 13, 2023
1 parent ba159e1 commit 39e1a80
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/components/base/Promotion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 39e1a80

Please sign in to comment.