mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-14 10:57:16 +08:00
25 lines
472 B
Vue
25 lines
472 B
Vue
<template>
|
|
<span v-if="props.status === 1">
|
|
<icon-check-circle-fill class="success" />
|
|
<span>启用</span>
|
|
</span>
|
|
<span v-if="props.status === 2">
|
|
<icon-minus-circle-fill class="warning" />
|
|
<span>禁用</span>
|
|
</span>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
defineOptions({ name: 'GiCellStatus' })
|
|
|
|
const props = withDefaults(defineProps<Props>(), {
|
|
status: 1,
|
|
})
|
|
|
|
interface Props {
|
|
status: 1 | 2
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss"></style>
|