更新依赖,code lint

This commit is contained in:
lyswhut
2023-05-19 22:01:18 +08:00
parent bd5107bbaf
commit fe94a1eac9
74 changed files with 1537 additions and 1210 deletions
+2 -2
View File
@@ -37,11 +37,11 @@ export default {
default: '',
},
},
emits: ['update:modelValue', 'change'],
emits: ['update:model-value', 'change'],
setup(props, { emit }) {
const handleToggle = id => {
if (id == props.modelValue) return
emit('update:modelValue', id)
emit('update:model-value', id)
emit('change', id)
}