fixed bug
This commit is contained in:
@@ -19,6 +19,11 @@ function sendValue() {
|
|||||||
emit('update', data.value)
|
emit('update', data.value)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function sendNewValue(newValue : string) {
|
||||||
|
data.value = newValue
|
||||||
|
emit('update', data.value)
|
||||||
|
}
|
||||||
|
|
||||||
function updateData(newData: string) {
|
function updateData(newData: string) {
|
||||||
data.value = newData;
|
data.value = newData;
|
||||||
sendValue();
|
sendValue();
|
||||||
@@ -47,6 +52,6 @@ function canBeFormatted() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <textarea id="xmlField" v-model="data" @input="sendValue()" class="text-field h-full"></textarea> -->
|
<!-- <textarea id="xmlField" v-model="data" @input="sendValue()" class="text-field h-full"></textarea> -->
|
||||||
<CodeEditor @input="sendValue()" v-model="data" :code="data" :config="{disabled:false, language:stylizedName}"></CodeEditor>
|
<CodeEditor @update:updated-code="sendNewValue" v-model="data" :code="data" :config="{disabled:false, language:stylizedName}"></CodeEditor>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
Reference in New Issue
Block a user