We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00cdbba commit 119b9e8Copy full SHA for 119b9e8
packages/plugins/datasource/src/DataSourceRemoteDataResult.vue
@@ -10,7 +10,13 @@
10
></tiny-alert>
11
</div>
12
<div id="remote-data-editor" class="data-editor">
13
- <monaco-editor ref="editor" :value="state.value" class="monaco-editor" :options="state.options" />
+ <monaco-editor
14
+ ref="editor"
15
+ :value="state.value"
16
+ class="monaco-editor"
17
+ :options="state.options"
18
+ @change="handleChange"
19
+ />
20
21
22
</template>
@@ -68,10 +74,15 @@ export default {
68
74
emit('copy', state.value)
69
75
}
70
76
77
+ const handleChange = (val) => {
78
+ state.value = val
79
+ }
80
+
71
81
return {
72
82
state,
73
83
copyData,
- editor
84
+ editor,
85
+ handleChange
86
87
88
0 commit comments