💬 补充 hooks 文档
This commit is contained in:
@@ -4,11 +4,11 @@ export default {
|
||||
}
|
||||
</script>
|
||||
<script setup lang="ts">
|
||||
import { Nullable } from '/@src/module/type'
|
||||
import { Nullable } from '../type'
|
||||
import { computed, onMounted, ref } from 'vue'
|
||||
import { HSBToHEX, RGBSTo, RGBToHSB } from '/@src/module/colorPicker/colorUtil'
|
||||
import { HSBToHEX, RGBSTo, RGBToHSB } from './colorUtil'
|
||||
import ColorPicker from './ColorPicker.vue'
|
||||
import { usePosition } from '/@src/hooks/usePosition'
|
||||
import { usePosition } from '@layui/hooks-vue'
|
||||
|
||||
interface BoxProps {
|
||||
color?: string
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
<script setup name="LaySelect" lang="ts">
|
||||
import { defineProps, provide, ref, watch } from 'vue'
|
||||
import useClickOutside from '../../hooks/useClickOutside'
|
||||
import { useClickOutside } from '@layui/hooks-vue'
|
||||
|
||||
const dropdownRef = ref<null | HTMLElement>(null)
|
||||
const isClickOutside = useClickOutside(dropdownRef)
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
<script setup name="LaySelect" lang="ts">
|
||||
import { defineProps, provide, reactive, ref, watch } from 'vue'
|
||||
import useClickOutside from '../../hooks/useClickOutside'
|
||||
import { useClickOutside } from '@layui/hooks-vue'
|
||||
|
||||
const selectRef = ref<null | HTMLElement>(null)
|
||||
const isClickOutside = useClickOutside(selectRef)
|
||||
|
||||
Reference in New Issue
Block a user