fix: исправил типы в DataTable.vue и обновил зависимости Playwright
Frontend CI / build-and-check (push) Failing after 20s
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 6s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 10s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Failing after 24s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 3s

This commit is contained in:
2026-05-28 19:28:21 +03:00
parent 88146f22b6
commit cce7bea12f
3 changed files with 23 additions and 23 deletions
+5 -5
View File
@@ -1,15 +1,15 @@
<script setup lang="ts">
type Column = { key: string; label: string; align?: 'left' | 'center' | 'right' | string }
type DataTableSlotRow = Record<string, any>
type Column = { key: string; label: string; align?: 'left' | 'center' | 'right' }
type DataTableSlotRow = Record<string, unknown>
defineProps<{
columns: Column[]
rows: Record<string, unknown>[]
rows: DataTableSlotRow[]
}>()
defineSlots<Record<string, (props: { row: DataTableSlotRow; value: any }) => unknown>>()
defineSlots<Record<string, (props: { row: DataTableSlotRow; value: unknown }) => unknown>>()
function getCell(row: Record<string, unknown>, key: string) {
function getCell(row: DataTableSlotRow, key: string): unknown {
return row[key]
}
</script>