From 4346e5502b6e99db8ab08f9785c9a346b13373b2 Mon Sep 17 00:00:00 2001 From: bcastlel Date: Wed, 10 Jan 2024 21:22:41 +0400 Subject: [PATCH] improve the transitionOpacity type --- README.md | 2 +- packages/vue-use-fixed-header/src/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3fb0340..abed325 100644 --- a/README.md +++ b/README.md @@ -169,7 +169,7 @@ interface UseFixedHeaderOptions { * * @default false */ - transitionOpacity: Ref | boolean + transitionOpacity: boolean | Ref | ComputedRef } ``` diff --git a/packages/vue-use-fixed-header/src/types.ts b/packages/vue-use-fixed-header/src/types.ts index b73eeb6..17190b2 100644 --- a/packages/vue-use-fixed-header/src/types.ts +++ b/packages/vue-use-fixed-header/src/types.ts @@ -22,5 +22,5 @@ export interface UseFixedHeaderOptions { * * @default false */ - transitionOpacity: boolean + transitionOpacity: boolean | Ref | ComputedRef }