Implemented v-model in XML tools
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user