fix: обновил типы в DataTable.vue
Frontend CI / build-and-check (push) Failing after 18s
🚀 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 8s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Failing after 17s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 3s
Frontend CI / build-and-check (push) Failing after 18s
🚀 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 8s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Failing after 17s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 3s
This commit is contained in:
@@ -1,15 +1,15 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
type Column = { key: string; label: string; align?: 'left' | 'center' | 'right' }
|
type Column = { key: string; label: string; align?: 'left' | 'center' | 'right' }
|
||||||
type DataTableSlotRow = Record<string, any>
|
type DataTableSlotRow = Record<string, unknown>
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
columns: Column[]
|
columns: Column[]
|
||||||
rows: DataTableSlotRow[]
|
rows: DataTableSlotRow[]
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
defineSlots<Record<string, (props: { row: DataTableSlotRow; value: any }) => unknown>>()
|
defineSlots<Record<string, (props: { row: DataTableSlotRow; value: unknown }) => unknown>>()
|
||||||
|
|
||||||
function getCell(row: DataTableSlotRow, key: string): any {
|
function getCell(row: DataTableSlotRow, key: string): unknown {
|
||||||
return row[key]
|
return row[key]
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user