mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 05:26:00 +00:00
expand all in json cell
This commit is contained in:
@@ -7,12 +7,13 @@
|
||||
import JSONValueNode from './JSONValueNode.svelte';
|
||||
import ErrorNode from './ErrorNode.svelte';
|
||||
import objType from './objType';
|
||||
import { getContext } from 'svelte';
|
||||
|
||||
export let key;
|
||||
export let value;
|
||||
export let isParentExpanded;
|
||||
export let isParentArray;
|
||||
export let expanded = false;
|
||||
export let expanded = !!getContext('json-tree-default-expanded');
|
||||
export let labelOverride = null;
|
||||
|
||||
$: nodeType = objType(value);
|
||||
|
||||
@@ -10,13 +10,16 @@
|
||||
export let key = '';
|
||||
export let menu = null;
|
||||
export let value;
|
||||
export let expanded = false;
|
||||
export let expandAll = false;
|
||||
export let expanded = expandAll;
|
||||
export let labelOverride = null;
|
||||
|
||||
export let isDeleted;
|
||||
export let isInserted;
|
||||
export let isModified;
|
||||
|
||||
setContext('json-tree-default-expanded', expandAll);
|
||||
|
||||
const elementData = new WeakMap();
|
||||
|
||||
if (elementData) {
|
||||
|
||||
Reference in New Issue
Block a user