Skip to content

Commit

Permalink
修复配置默认单位为rpx可能会导致自定义导航栏高度异常的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wlxuqu committed Dec 14, 2021
1 parent 1d3f7a3 commit 9a1b0fb
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions uni_modules/uview-ui/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2.0.13(2021-12-14)
## [点击加群交流反馈:364463526](https://jq.qq.com/?_chanwv=1027&k=mCxS3TGY)

# uView2.0重磅发布,利剑出鞘,一统江湖

1. 修复配置默认单位为rpx可能会导致自定义导航栏高度异常的问题
## 2.0.12(2021-12-14)
## [点击加群交流反馈:364463526](https://jq.qq.com/?_chanwv=1027&k=mCxS3TGY)

Expand Down
2 changes: 1 addition & 1 deletion uni_modules/uview-ui/components/u-list/u-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
if (this.width != 0) style.width = addUnit(this.width)
if (this.height != 0) style.height = addUnit(this.height)
// 如果没有定义列表高度,则默认使用屏幕高度
if (!style.height) style.height = addUnit(this.sys.windowHeight)
if (!style.height) style.height = addUnit(this.sys.windowHeight, 'px')
return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle))
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
const style = {};
// #ifdef APP-NVUE
// nvue下,高度使用js计算填充
style.height = uni.$u.sys().safeAreaInsets.bottom + "px";
style.height = uni.$u.addUnit(uni.$u.sys().safeAreaInsets.bottom, 'px');
// #endif
return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle));
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
style() {
const style = {}
// 状态栏高度,由于某些安卓和微信开发工具无法识别css的顶部状态栏变量,所以使用js获取的方式
style.height = uni.$u.addUnit(uni.$u.sys().statusBarHeight)
style.height = uni.$u.addUnit(uni.$u.sys().statusBarHeight, 'px')
style.backgroundColor = this.bgColor
return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle))
}
Expand Down
4 changes: 2 additions & 2 deletions uni_modules/uview-ui/libs/config/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// 此版本发布于2020-12-14
const version = '2.0.12'
// 此版本发布于2020-12-15
const version = '2.0.13'

export default {
v: version,
Expand Down
2 changes: 1 addition & 1 deletion uni_modules/uview-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "uview-ui",
"name": "uview-ui",
"displayName": "uView2.0重磅发布,利剑出鞘,一统江湖",
"version": "2.0.12",
"version": "2.0.13",
"description": "uView UI已完美兼容nvue,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
"keywords": [
"uview",
Expand Down

0 comments on commit 9a1b0fb

Please sign in to comment.