Skip to content

Commit

Permalink
fix(types): AtTabBarProps
Browse files Browse the repository at this point in the history
  • Loading branch information
limichange authored Sep 4, 2018
1 parent 80efa61 commit 8a75691
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions @types/tab-bar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,34 @@ import { MouseEvent, ComponentClass } from 'react'
import { BaseEventFunction, BaseEvent } from '@tarojs/components/types/common'

export interface TabItem {
max: number
dot: boolean
text: string
max?: number
dot?: boolean
text?: string
title: string
iconType: string
selectedIconType: string
iconType?: string
selectedIconType?: string
}

export interface AtTabBarProps {
fixed: boolean
fixed?: boolean

backgroundColor: string
backgroundColor?: string

current: number
current?: number

iconSize: number
iconSize?: number

fontSize: number
fontSize?: number

color: string
color?: string

selectedColor: string
selectedColor?: string

scroll: boolean
scroll?: boolean

tabList: Array<TabItem>
tabList: TabItem[]

onClick: (index: number, event: BaseEvent) => void
onClick?: (index: number, event: BaseEvent) => void
}

declare const AtTabBar: ComponentClass<AtTabBarProps>
Expand Down

0 comments on commit 8a75691

Please sign in to comment.