mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 19:26:00 +00:00
renamed directory
This commit is contained in:
20
packages/web/src/jsontree/JSONKey.svelte
Normal file
20
packages/web/src/jsontree/JSONKey.svelte
Normal file
@@ -0,0 +1,20 @@
|
||||
<script>
|
||||
export let key, isParentExpanded, isParentArray = false, colon = ':';
|
||||
|
||||
$: showKey = (isParentExpanded || !isParentArray || key != +key);
|
||||
</script>
|
||||
<style>
|
||||
label {
|
||||
display: inline-block;
|
||||
color: var(--label-color);
|
||||
padding: 0;
|
||||
}
|
||||
.spaced {
|
||||
padding-right: var(--li-colon-space);
|
||||
}
|
||||
</style>
|
||||
{#if showKey && key}
|
||||
<label class:spaced={isParentExpanded} on:click>
|
||||
<span>{key}{colon}</span>
|
||||
</label>
|
||||
{/if}
|
||||
Reference in New Issue
Block a user