合并代码
This commit is contained in:
@@ -44,11 +44,10 @@
|
||||
const emits = defineEmits(['update:modelValue'], )
|
||||
const selText = computed(() => {
|
||||
const item = props.list.filter(ele => ele.value == props.modelValue)[0]
|
||||
if (item) {
|
||||
return item.name
|
||||
} else {
|
||||
if(!item){
|
||||
return ''
|
||||
}
|
||||
return item.name
|
||||
})
|
||||
|
||||
watch(() => index.value, (newval) => {
|
||||
|
||||
Reference in New Issue
Block a user