perf: 修改 use 为 hooks

This commit is contained in:
就眠仪式
2021-10-24 23:42:18 +08:00
parent dd8f37181a
commit 6374ad4805
5 changed files with 11 additions and 13 deletions

View File

@@ -50,7 +50,7 @@ provide('selectItem', selectItem)
provide('openState', openState)
// select update 时, 通知 change 事件
const emit = defineEmits(['update:modelValue','change'])
const emit = defineEmits(['update:modelValue', 'change'])
watch(selectItem, function (item) {
emit('change', item.value)