Finished logic

This commit is contained in:
2023-06-26 14:29:07 +02:00
parent 1088d27fea
commit 1229abc0b9
6 changed files with 41 additions and 15 deletions

View File

@@ -7,6 +7,11 @@ import { ref } from 'vue';
const xml = ref('');
const query = ref('');
const version = ref('');
function updateVersion(newVersion: string) {
version.value = newVersion;
}
</script>
@@ -16,7 +21,7 @@ const query = ref('');
<xmlInputFieldComponent stylized-name="XML" :data="xml" @update="(data) => {xml = data}"></xmlInputFieldComponent>
<xmlInputFieldComponent stylized-name="XPath" :data="query" @update="(data) => {query = data}"></xmlInputFieldComponent>
</div>
<xmlOutputFieldComponent tool="xpath" :xml="xml" :query="query"></xmlOutputFieldComponent>
<tooltipComponent></tooltipComponent>
<xmlOutputFieldComponent tool="xpath" :xml="xml" :query="query" @update="(version) => updateVersion(version)"></xmlOutputFieldComponent>
<tooltipComponent :version="version"></tooltipComponent>
</div>
</template>