perf: 修改 use 为 hooks

This commit is contained in:
就眠仪式
2021-10-24 23:41:19 +08:00
parent 2145e0d2c5
commit dd8f37181a
12 changed files with 28 additions and 15 deletions

View File

@@ -22,7 +22,7 @@
<script setup name="LaySelect" lang="ts">
import { defineProps, provide, reactive, ref, watch } from 'vue'
import useClickOutside from '../../use/useClickOutside'
import useClickOutside from '../../hooks/useClickOutside'
const selectRef = ref<null | HTMLElement>(null)
const isClickOutside = useClickOutside(selectRef)