Update ImportCodeDialog.vue

This commit is contained in:
Aqr-K
2024-11-29 17:33:00 +08:00
committed by GitHub
parent 46127cac1f
commit f59fb119e4
+5 -4
View File
@@ -2,17 +2,18 @@
// 输入参数 // 输入参数
const props = defineProps({ const props = defineProps({
title: String, title: String,
dataType: String,
}) })
// 定义事件
const emit = defineEmits(['update:modelValue', 'close'])
// 代码 // 代码
const codeString = ref('') const codeString = ref('')
// 定义事件
const emit = defineEmits(['close', 'save'])
// 导入 // 导入
function handleImport() { function handleImport() {
emit('update:modelValue', codeString.value) emit('save', props.dataType, codeString)
emit('close') emit('close')
} }
</script> </script>