web debug done

This commit is contained in:
Sense T
2024-04-12 20:03:34 +08:00
parent 01765c4e7f
commit a098d3056c
3 changed files with 13 additions and 13 deletions

View File

@@ -118,7 +118,7 @@ const generateColumns = (domain: string) => [
{
key: '',
render(row: Record) {
return <RecordOps record={row} domain={domain} onRecord-delete={deleteRecord} onEdit-record={showEditing} />
return <RecordOps record={row} domain={domain} onRecordDelete={deleteRecord} onEditRecord={showEditing} />
}
}
] as DataTableColumns<Record>
@@ -238,7 +238,7 @@ function RecordsView({ domain }: Props) {
}
return (
<div id='records'>
<RecordEditModal show={editModalShow.value} domain={domain} record={editingRecord.value} onReloadRecords={reloadRecords} />
<RecordEditModal show={editModalShow.value} domain={domain} record={editingRecord.value} onReloadRecords={reloadRecords} onUpdate:show={(v: boolean) => editModalShow.value = v} />
{
loading.value ? <NSpin size='large' /> : <recordsViewBody domain={domain} />
}