Skip to content

Commit

Permalink
docs: 更新 tabBar 默认高度
Browse files Browse the repository at this point in the history
  • Loading branch information
zhetengbiji committed Sep 30, 2019
1 parent 2feb692 commit 30a203b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/api/ui/tabbar.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ uni.setTabBarBadge({

|App|H5|微信小程序|支付宝小程序|百度小程序|头条小程序|QQ小程序|
|:-:|:-:|:-:|:-:|:-:|:-:|:-:|
|√(HBuilderX 2.3.4+|x|x|x|x|x|x|
|√(HBuilderX 2.3.4 群测版|x|x|x|x|x|x|


**Tip**
Expand Down
16 changes: 8 additions & 8 deletions docs/collocation/pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
"selectedColor": "#3cc51f",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"height": "56px",
"fontSize": "12px",
"height": "50px",
"fontSize": "10px",
"iconWidth": "24px",
"list": [{
"pagePath": "pages/component/index",
Expand All @@ -71,7 +71,7 @@
}],
"midButton": {
"width": "80px",
"height": "56px",
"height": "50px",
"text": "文字",
"iconPath": "static/image/midButton_iconPath.png",
"iconWidth": "24px",
Expand Down Expand Up @@ -674,10 +674,10 @@ h5 平台下拉刷新动画,只有 circle 类型。
|borderStyle|String||black|tabbar 上边框的颜色,仅支持 black/white||
|list|Array|||tab 的列表,详见 list 属性说明,最少2个、最多5个 tab||
|position|String||bottom|可选值 bottom、top|top 值仅微信小程序支持|
|fontSize|String||12px|文字默认大小|App(HBuilderX 2.3.4+|
|iconWidth|String||24px|图标默认宽度(高度等比例缩放)|App(HBuilderX 2.3.4+|
|height|String||56px|tabBar 默认高度|App(HBuilderX 2.3.4+|
|midButton|Object|||中间按钮 仅在 list 项为偶数时有效|App(HBuilderX 2.3.4+|
|fontSize|String||10px|文字默认大小|App(HBuilderX 2.3.4 群测版|
|iconWidth|String||24px|图标默认宽度(高度等比例缩放)|App(HBuilderX 2.3.4 群测版|
|height|String||50px|tabBar 默认高度|App(HBuilderX 2.3.4 群测版|
|midButton|Object|||中间按钮 仅在 list 项为偶数时有效|App(HBuilderX 2.3.4 群测版|

其中 list 接收一个数组,数组中的每个项都是一个对象,其属性值如下:

Expand All @@ -693,7 +693,7 @@ h5 平台下拉刷新动画,只有 circle 类型。
|属性|类型|必填|默认值|描述|
|:-|:-|:-|:-|:-|
|width|String||80px|中间按钮的宽度,tabBar 其它项为减去此宽度后平分,默认值为与其它项平分宽度|
|height|String||56px|中间按钮的高度,可以大于 tabBar 高度|
|height|String||50px|中间按钮的高度,可以大于 tabBar 高度|
|text|String|||中间按钮的文字|
|iconPath|String|||中间按钮的图片路径|
|iconWidth|String||24px||图片宽度(高度等比例缩放)|
Expand Down
2 changes: 1 addition & 1 deletion docs/frame.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ uni-app 提供内置 CSS 变量
|组件|描述|5+App|H5|
|:-|:-|:-|:-|
|NavigationBar|导航栏|44px|44px|
|TabBar|底部选项卡|56px|50px|
|TabBar|底部选项卡|56px(HBuilderX 2.3.4 群测版默认为 50px 且可以更改)|50px|

各小程序平台,包括同小程序平台的iOS和Android的高度也不一样。TabBar在App端默认高度,与微信iOS版主界面的tabbar高度保持一致。

Expand Down

0 comments on commit 30a203b

Please sign in to comment.