聊天窗口的”+“可以邀请进群

This commit is contained in:
bob
2024-11-29 21:59:17 +08:00
parent cefcc4c189
commit 85e3d2efa2
4 changed files with 86 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
<script setup>
import { ref, computed } from 'vue'
import { ref, computed, watch } from 'vue'
import { Search, Close } from '@element-plus/icons-vue'
import ContactItem from '@/components/item/ContactItem.vue'
import HashNoData from '@/components/common/HasNoData.vue'
@@ -18,7 +18,14 @@ const props = defineProps([
])
const emit = defineEmits(['update:modelValue', 'showUserCard', 'confirm'])
const selected = ref(props.defaultSelected || [])
const selected = ref([])
watch(
() => props.defaultSelected,
(newValue) => {
selected.value = newValue
}
)
const searchKey = ref('')
const optionsFromServer = ref({})