mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 00:23:57 +00:00
show changeset in json view
This commit is contained in:
19
packages/web/src/jsonview/CollectionJsonRow.svelte
Normal file
19
packages/web/src/jsonview/CollectionJsonRow.svelte
Normal file
@@ -0,0 +1,19 @@
|
||||
<script lang="ts">
|
||||
import JSONTree from '../jsontree/JSONTree.svelte';
|
||||
|
||||
export let rowIndex;
|
||||
export let grider;
|
||||
export let commonMenu;
|
||||
|
||||
$: rowData = grider.getRowData(rowIndex);
|
||||
$: rowStatus = grider.getRowStatus(rowIndex);
|
||||
</script>
|
||||
|
||||
<JSONTree
|
||||
value={rowData}
|
||||
labelOverride="({rowIndex + 1}) "
|
||||
menu={commonMenu}
|
||||
isModified={rowStatus.status == 'updated'}
|
||||
isInserted={rowStatus.status == 'inserted'}
|
||||
isDeleted={rowStatus.status == 'deleted'}
|
||||
/>
|
||||
Reference in New Issue
Block a user