Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(taro-weapp): 更新TabBar类型声明 #2465

Merged
merged 1 commit into from
Mar 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions packages/taro/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,20 @@ declare namespace Taro {
backgroundColor?: string,
/**
* tabbar上边框的颜色, 仅支持 black/white
* default: black
* @default: black
*/
borderStyle?: 'black' | 'white',
/**
* tabar 的位置,可选值 bottom、top
* default: 'bottom'
* @default: 'bottom'
*/
position?: 'bottom' | 'top',
/**
* 自定义 tabBar,见[详情](https://developers.weixin.qq.com/miniprogram/dev/framework/ability/custom-tabbar.html)
* @default false
* @since 2.1.0
*/
custom: boolean;

list: TarbarList[]
}
Expand Down