wechat-article / components /grid /BooleanCellRenderer.vue
asemxin2000's picture
Deploy wechat-article-exporter to Space
6e41657 verified
Raw
History Blame Contribute Delete
512 Bytes
<script setup lang="ts">
import type { ICellRendererParams } from 'ag-grid-community';
import { Square, SquareCheckBig } from 'lucide-vue-next';
interface Props {
params: ICellRendererParams;
}
defineProps<Props>();
</script>
<template>
<p v-if="params.node.group">
<span>{{ params.value }}</span>
</p>
<p class="flex flex-wrap" v-else>
<SquareCheckBig v-if="params.value" class="size-5 text-gray-400" />
<Square v-else class="size-5 text-gray-400" />
</p>
</template>