Skip to content

Commit e558159

Browse files
committed
fix(popper/types): Partial TeleportProps
1 parent fded8c9 commit e558159

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/component/component/dropdown/interface.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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";
33

44
export interface DropdownContext {
55
hide?: () => void;
@@ -8,7 +8,7 @@ export interface DropdownContext {
88
export const DROPDOWN_INJECTION_KEY: InjectionKey<DropdownContext>
99
= Symbol("LayDropdown");
1010

11-
export type DropdownTeleportProps = Partial<TeleportProps>;
11+
export type DropdownTeleportProps = PopperProps["teleportProps"];
1212

1313
export interface DropdownProps {
1414
visible?: boolean;

packages/component/component/popper/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ export interface PopperProps {
2424
popperStyle?: StyleValue;
2525
clickOutsideToClose?: boolean;
2626
middlewares?: Middlewares;
27-
teleportProps?: TeleportProps;
27+
teleportProps?: Partial<TeleportProps>;
2828
triggerCustomEvents?: TriggerCustomEvents;
2929
}
3030

3131
export type ContentProps = PopperProps;
3232

33-
interface TriggerCustomEvents {
33+
export interface TriggerCustomEvents {
3434
click?: (e: Event) => void;
3535
mouseenter?: () => void;
3636
mouseleave?: () => void;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy