This commit is contained in:
2026-03-26 04:24:32 -03:00
parent 08b67f2bb7
commit 08c58a6a9d
43 changed files with 2627 additions and 252 deletions

View File

@@ -8,6 +8,7 @@ import type { DataSource } from 'mpr-ui-framework'
const props = defineProps<{
source: DataSource
status?: 'idle' | 'live' | 'processing' | 'error'
embedded?: boolean
}>()
const columns: TableColumn[] = [
@@ -45,7 +46,7 @@ function onSort(key: string) {
</script>
<template>
<Panel title="Detections" :status="status">
<Panel v-if="!embedded" title="Detections" :status="status">
<TableRenderer
:columns="columns"
:rows="rows"
@@ -54,4 +55,12 @@ function onSort(key: string) {
@sort="onSort"
/>
</Panel>
<TableRenderer
v-else
:columns="columns"
:rows="rows"
:sort-key="sortKey"
:sort-dir="sortDir"
@sort="onSort"
/>
</template>