Skip to content

Commit

Permalink
fix(types): add props type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
BeADre committed Sep 18, 2021
1 parent 52c1d9b commit a547cc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/varlet-ui/types/indexBar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export interface IndexBarProps {
sticky?: boolean
stickyOffsetTop?: number
hideList?: boolean
cssMode?: boolean
zIndex?: number | string
highlightColor?: string
duration?: number | string
Expand Down
2 changes: 2 additions & 0 deletions packages/varlet-ui/types/sticky.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit a547cc9

Please sign in to comment.