File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
packages/component/component Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- import type { Placement , PopperTrigger } from "@layui/component/component/popper/index" ;
2
- import type { InjectionKey , StyleValue , TeleportProps } from "vue" ;
1
+ import type { Placement , PopperProps , PopperTrigger } from "@layui/component/component/popper/index" ;
2
+ import type { InjectionKey , StyleValue } from "vue" ;
3
3
4
4
export interface DropdownContext {
5
5
hide ?: ( ) => void ;
@@ -8,7 +8,7 @@ export interface DropdownContext {
8
8
export const DROPDOWN_INJECTION_KEY : InjectionKey < DropdownContext >
9
9
= Symbol ( "LayDropdown" ) ;
10
10
11
- export type DropdownTeleportProps = Partial < TeleportProps > ;
11
+ export type DropdownTeleportProps = PopperProps [ "teleportProps" ] ;
12
12
13
13
export interface DropdownProps {
14
14
visible ?: boolean ;
Original file line number Diff line number Diff line change @@ -24,13 +24,13 @@ export interface PopperProps {
24
24
popperStyle ?: StyleValue ;
25
25
clickOutsideToClose ?: boolean ;
26
26
middlewares ?: Middlewares ;
27
- teleportProps ?: TeleportProps ;
27
+ teleportProps ?: Partial < TeleportProps > ;
28
28
triggerCustomEvents ?: TriggerCustomEvents ;
29
29
}
30
30
31
31
export type ContentProps = PopperProps ;
32
32
33
- interface TriggerCustomEvents {
33
+ export interface TriggerCustomEvents {
34
34
click ?: ( e : Event ) => void ;
35
35
mouseenter ?: ( ) => void ;
36
36
mouseleave ?: ( ) => void ;
You can’t perform that action at this time.
0 commit comments