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

Use TypeScript for Promotion component #131

Merged
merged 2 commits into from
Nov 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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