mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-10-25 18:57:15 +08:00
28 lines
714 B
Vue
28 lines
714 B
Vue
<template>
|
|
<a-tag v-if="props.gender === 1" color="arcoblue" size="small" class="gi_round">
|
|
<template #icon><icon-man /></template>
|
|
<template #default>男</template>
|
|
</a-tag>
|
|
<a-tag v-else-if="props.gender === 2" color="magenta" size="small" class="gi_round">
|
|
<template #icon><icon-woman /></template>
|
|
<template #default>女</template>
|
|
</a-tag>
|
|
<a-tag v-else color="gray" size="small" class="gi_round">
|
|
<template #default>未知</template>
|
|
</a-tag>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
defineOptions({ name: 'GiCellGender' })
|
|
|
|
const props = withDefaults(defineProps<Props>(), {
|
|
gender: 1,
|
|
})
|
|
|
|
interface Props {
|
|
gender: 1 | 2 | 0
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped></style>
|