diff --git a/packages/vant/src/text-ellipsis/types.ts b/packages/vant/src/text-ellipsis/types.ts index 4a08f939b..0927dda66 100644 --- a/packages/vant/src/text-ellipsis/types.ts +++ b/packages/vant/src/text-ellipsis/types.ts @@ -2,7 +2,7 @@ import type { ComponentPublicInstance } from 'vue'; import type { TextEllipsisProps } from './TextEllipsis'; export type TextEllipsisExpose = { - toggle: () => void; + toggle: (expanded?: boolean) => void; }; export type TextEllipsisInstance = ComponentPublicInstance<