You've already forked AstralRinth
forked from didirus/AstralRinth
Use TypeScript for Promotion component (#131)
* Use TypeScript for Promotion component * Apply suggestion from brawaru
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user