refactor(ContactModal): 将forwardMode属性定义改为完整props对象

使用defineProps的完整对象语法定义forwardMode属性,增加类型检查和默认值
This commit is contained in:
xingyy 2025-09-05 13:23:51 +08:00
parent c49a77d42a
commit 6cdf5cfbd0

View File

@ -30,7 +30,12 @@ const loading = ref(true)
const items = ref([])
const keywords = ref('')
const loadGroupStatus = ref(false)
const forwardMode = defineProps(['forwardMode'])
const props = defineProps({
'forwardMode': {
type: Number,
default: 0
}
})
//
const state = reactive({