Implemented v-model in XML tools

This commit is contained in:
2023-11-30 08:40:24 +01:00
parent b5fdf0fc9f
commit 6f93b03449
6 changed files with 12 additions and 12 deletions

View File

@@ -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) {

View File

@@ -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) {