补充部分组件描述
This commit is contained in:
@@ -8,13 +8,13 @@ export default {
|
||||
import { provide, ref, watch } from "vue";
|
||||
import { useClickOutside } from "@layui/hooks-vue";
|
||||
|
||||
const dropdownRef = ref<null | HTMLElement>(null);
|
||||
const isClickOutside = useClickOutside(dropdownRef);
|
||||
|
||||
export interface LayDropdownProps {
|
||||
trigger?: string;
|
||||
}
|
||||
|
||||
const dropdownRef = ref<null | HTMLElement>(null);
|
||||
const isClickOutside = useClickOutside(dropdownRef);
|
||||
|
||||
const props = withDefaults(defineProps<LayDropdownProps>(), {
|
||||
trigger: "click",
|
||||
});
|
||||
|
||||
0
src/component/dropdown/interface.ts
Normal file
0
src/component/dropdown/interface.ts
Normal file
Reference in New Issue
Block a user