From 6f93b0344988190e8230c2f166a9f4ca51dbcf79 Mon Sep 17 00:00:00 2001 From: Adam Bem Date: Thu, 30 Nov 2023 08:40:24 +0100 Subject: [PATCH] Implemented v-model in XML tools --- Frontend/src/components/xml/XmlInputFieldComponent.vue | 4 ++-- Frontend/src/components/xml/XmlTabbedInputComponent.vue | 4 ++-- Frontend/src/views/XPathView.vue | 4 ++-- Frontend/src/views/XQueryView.vue | 4 ++-- Frontend/src/views/XSDView.vue | 4 ++-- Frontend/src/views/XSLTView.vue | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Frontend/src/components/xml/XmlInputFieldComponent.vue b/Frontend/src/components/xml/XmlInputFieldComponent.vue index 8780c3d..b14767a 100644 --- a/Frontend/src/components/xml/XmlInputFieldComponent.vue +++ b/Frontend/src/components/xml/XmlInputFieldComponent.vue @@ -10,13 +10,13 @@ const props = defineProps( data: {type: String}, } ) -const emit = defineEmits(['update']) +const emit = defineEmits(['update:modelValue']) const data = ref('') const inputFile = ref() function sendValue() { - emit('update', data.value) + emit('update:modelValue', data.value) } function updateData(newData: string, clearFileSelector: boolean = true) { diff --git a/Frontend/src/components/xml/XmlTabbedInputComponent.vue b/Frontend/src/components/xml/XmlTabbedInputComponent.vue index eafab19..ff0a2ba 100644 --- a/Frontend/src/components/xml/XmlTabbedInputComponent.vue +++ b/Frontend/src/components/xml/XmlTabbedInputComponent.vue @@ -13,7 +13,7 @@ const props = defineProps( tabCountLimit: {type: Number, required: false} } ) -const emit = defineEmits(['update']) +const emit = defineEmits(['update:modelValue']) const newTabId = ref(0); const activeTabId = ref(0); @@ -30,7 +30,7 @@ const inputFile = ref() function sendValue() { - emit('update', tabs.value); + emit('update:modelValue', tabs.value); } function updateData(newData: string) { diff --git a/Frontend/src/views/XPathView.vue b/Frontend/src/views/XPathView.vue index be12426..41c06df 100644 --- a/Frontend/src/views/XPathView.vue +++ b/Frontend/src/views/XPathView.vue @@ -19,8 +19,8 @@ function updateVersion(newVersion: string) {
- - + +
diff --git a/Frontend/src/views/XQueryView.vue b/Frontend/src/views/XQueryView.vue index 244c5d4..051f3e1 100644 --- a/Frontend/src/views/XQueryView.vue +++ b/Frontend/src/views/XQueryView.vue @@ -12,8 +12,8 @@ const query = ref('');