From a547cc9fa99436d82d0ae2ac2804b0b94d0d3da0 Mon Sep 17 00:00:00 2001 From: BeADre Date: Sat, 18 Sep 2021 22:12:31 +0800 Subject: [PATCH] fix(types): add props type declaration --- packages/varlet-ui/types/indexBar.d.ts | 1 + packages/varlet-ui/types/sticky.d.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/packages/varlet-ui/types/indexBar.d.ts b/packages/varlet-ui/types/indexBar.d.ts index da2d623f6d2..2a44b816e50 100644 --- a/packages/varlet-ui/types/indexBar.d.ts +++ b/packages/varlet-ui/types/indexBar.d.ts @@ -4,6 +4,7 @@ export interface IndexBarProps { sticky?: boolean stickyOffsetTop?: number hideList?: boolean + cssMode?: boolean zIndex?: number | string highlightColor?: string duration?: number | string diff --git a/packages/varlet-ui/types/sticky.d.ts b/packages/varlet-ui/types/sticky.d.ts index 4d1b2022df5..b11aaea2aae 100644 --- a/packages/varlet-ui/types/sticky.d.ts +++ b/packages/varlet-ui/types/sticky.d.ts @@ -3,6 +3,8 @@ import { VarComponent } from './varComponent' export interface StickyProps { offsetTop?: string | number zIndex?: string | number + cssMode?: boolean + disabled?: boolean onScroll?: (offsetTop: number, isFixed: boolean) => void }