Added placeholders for all XPath versions

This commit is contained in:
2023-06-27 13:12:51 +02:00
parent 4da8cb705f
commit d6287469b6
3 changed files with 92 additions and 3 deletions

View File

@@ -5,6 +5,8 @@ import tooltipEntryComponent from '@components/xml/tooltips/TooltipEntryComponen
import xpath1 from '@/assets/tooltips/xpath/xpath1.json';
import xpath2 from '@/assets/tooltips/xpath/xpath2.json';
import xpath3 from '@/assets/tooltips/xpath/xpath3.json';
import xpath31 from '@/assets/tooltips/xpath/xpath31.json';
const props = defineProps({
version: {
@@ -16,10 +18,17 @@ const props = defineProps({
const areTooltipsHidden = ref(true)
function selectXPathVersion() {
if (props.version == "1.0") {
return xpath1;
switch(props.version) {
case "1.0":
return xpath1;
case "2.0":
return xpath2;
case "3.0":
return xpath3;
case "3.1":
default:
return xpath31;
}
else return xpath2;
}
function toggleTooltips() {