mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 03:08:21 +08:00
docs(components): [mention] example error (#17760)
This commit is contained in:
parent
707e0c9f00
commit
f5c6310d93
@ -10,7 +10,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onBeforeMount, ref } from 'vue'
|
||||
import { onBeforeUnmount, ref } from 'vue'
|
||||
import type { MentionOption } from 'element-plus'
|
||||
|
||||
const value = ref('')
|
||||
@ -33,7 +33,7 @@ const handleSearch = (pattern: string) => {
|
||||
}, 1500)
|
||||
}
|
||||
|
||||
onBeforeMount(() => {
|
||||
onBeforeUnmount(() => {
|
||||
if (timer) clearTimeout(timer)
|
||||
})
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user