Implemented v-model in XML tools
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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