refactor(ContactModal): 将forwardMode属性定义改为完整props对象
使用defineProps的完整对象语法定义forwardMode属性,增加类型检查和默认值
This commit is contained in:
parent
c49a77d42a
commit
6cdf5cfbd0
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user