mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 15:46:01 +00:00
expand all in json cell
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
<script lang="ts" context="module">
|
||||
export function openJsonDocument(json, title = 'JSON') {
|
||||
export function openJsonDocument(json, title = 'JSON', expandAll = false) {
|
||||
openNewTab(
|
||||
{
|
||||
title,
|
||||
icon: 'img json',
|
||||
tabComponent: 'JsonTab',
|
||||
props: {
|
||||
expandAll,
|
||||
},
|
||||
},
|
||||
{ editor: json }
|
||||
);
|
||||
@@ -21,6 +24,7 @@
|
||||
export let selection;
|
||||
export let showWholeRow = false;
|
||||
export let tabid;
|
||||
export let expandAll;
|
||||
|
||||
let json = null;
|
||||
let error = null;
|
||||
@@ -35,7 +39,7 @@
|
||||
|
||||
<div class="outer">
|
||||
<div class="inner">
|
||||
<JSONTree value={json} expanded />
|
||||
<JSONTree value={json} {expandAll} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user