Spaces:
Sleeping
Sleeping
File size: 630 Bytes
6e41657 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <script setup lang="ts">
import type { ICellRendererParams } from 'ag-grid-community';
interface Props {
params: ICellRendererParams;
}
const props = defineProps<Props>();
const count = ref(props.params.data.count);
const total = ref(props.params.data.total_count || Number.MAX_SAFE_INTEGER);
function refresh(params: ICellRendererParams): boolean {
count.value = params.data.count;
total.value = params.data.total_count || Number.MAX_SAFE_INTEGER;
return true;
}
</script>
<template>
<div class="mt-0">
<UProgress color="sky" :value="count" :max="total" indicator />
</div>
</template>
|