Files
global-navigation-satellite…/src/render/components/FlagView.vue

23 lines
363 B
Vue

<template>
<div v-show="!!src">
<img :src="src">
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
const src = ref('')
const show_flag = (flag_name: string) => {
if (!flag_name) return
src.value = './image/flag/' + flag_name + '.png'
}
defineExpose({ show_flag })
</script>
<style scoped>
img {
width: 169px;
}
</style>