mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 04:26:01 +00:00
Pass keyType to DbKeyValueDetail for AceEditor mode
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
export let columnTitle;
|
||||
export let value;
|
||||
export let onChangeValue = null;
|
||||
export let keyType = null;
|
||||
</script>
|
||||
|
||||
<div class="colnamewrap">
|
||||
@@ -33,6 +34,7 @@
|
||||
<AceEditor
|
||||
readOnly={!onChangeValue}
|
||||
{value}
|
||||
mode={keyType === 'JSON' ? 'json' : undefined}
|
||||
on:input={e => {
|
||||
onChangeValue?.(e.detail);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user