Skip to content

Commit dc107f9

Browse files
committed
uview update to 20220202
1 parent a9723d1 commit dc107f9

7 files changed

Lines changed: 505 additions & 465 deletions

File tree

uni_modules/uview-ui/changelog.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## 2.0.27(2022-01-28)
2+
# uView2.0重磅发布,利剑出鞘,一统江湖
3+
4+
1.样式修复
5+
## 2.0.26(2022-01-28)
6+
# uView2.0重磅发布,利剑出鞘,一统江湖
7+
8+
1.样式修复
9+
## 2.0.25(2022-01-27)
10+
# uView2.0重磅发布,利剑出鞘,一统江湖
11+
12+
1. 修复text组件mode=price时,可能会导致精度错误的问题
13+
2. 添加$u.setConfig()方法,可设置uView内置的config, props, zIndex, color属性,详见:[修改uView内置配置方案](https://uviewui.com/components/setting.html#%E9%BB%98%E8%AE%A4%E5%8D%95%E4%BD%8D%E9%85%8D%E7%BD%AE)
14+
3. 优化form组件在errorType=toast时,如果输入错误页面会有抖动的问题
15+
4. 修复$u.addUnit()对配置默认单位可能无效的问题
116
## 2.0.24(2022-01-25)
217
# uView2.0重磅发布,利剑出鞘,一统江湖
318

uni_modules/uview-ui/components/u-form-item/u-form-item.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<u-line
7070
v-if="borderBottom"
7171
:color="message && parentData.errorType === 'border-bottom' ? $u.color.error : propsLine.color"
72-
:customStyle="`margin-top: ${message ? '5px' : 0}`"
72+
:customStyle="`margin-top: ${message && parentData.errorType === 'message' ? '5px' : 0}`"
7373
></u-line>
7474
</view>
7575
</template>

uni_modules/uview-ui/components/u-tabs/u-tabs.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
:class="[`u-tabs__wrapper__nav__item-${index}`, item.disabled && 'u-tabs__wrapper__nav__item--disabled']"
2929
>
3030
<text
31-
:class="['ellipsis' && 'u-line-1', item.disabled && 'u-tabs__wrapper__nav__item__text--disabled']"
31+
:class="[item.disabled && 'u-tabs__wrapper__nav__item__text--disabled']"
3232
class="u-tabs__wrapper__nav__item__text"
3333
:style="[textStyle(index)]"
3434
>{{ item[keyName] }}</text>
@@ -236,7 +236,7 @@
236236
resize() {
237237
// 如果不存在list,则不处理
238238
if(this.list.length === 0) {
239-
return
239+
return
240240
}
241241
Promise.all([this.getTabsRect(), this.getAllItemRect()]).then(([tabsRect, itemRect = []]) => {
242242
this.tabsRect = tabsRect
@@ -278,7 +278,7 @@
278278
})
279279
// #endif
280280
281-
// #ifdef APP-NVUE
281+
// #ifdef APP-NVUE
282282
// nvue下,使用dom模块查询元素高度
283283
// 返回一个promise,让调用此方法的主体能使用then回调
284284
return new Promise(resolve => {
@@ -322,7 +322,6 @@
322322
@include flex;
323323
align-items: center;
324324
justify-content: center;
325-
flex: 1;
326325
327326
&--disabled {
328327
/* #ifndef APP-NVUE */

uni_modules/uview-ui/libs/config/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// 此版本发布于2022-01-25
2-
const version = '2.0.24'
1+
// 此版本发布于2022-01-28
2+
const version = '2.0.27'
33

44
// 开发环境才提示,生产环境不会提示
55
if (process.env.NODE_ENV === 'development') {

uni_modules/uview-ui/libs/css/common.scss

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,65 +9,64 @@
99
overflow: hidden;
1010
flex: 1;
1111
/* #endif */
12-
12+
1313
/* #ifndef APP-NVUE */
1414
// vue下,单行和多行显示省略号需要单独处理
15-
@if $i == 1 {
16-
display: inline-block !important;
15+
@if $i == '1' {
1716
overflow: hidden;
1817
white-space: nowrap;
1918
text-overflow: ellipsis;
2019
} @else {
21-
display: -webkit-box !important;
20+
display: -webkit-box!important;
2221
overflow: hidden;
2322
text-overflow: ellipsis;
2423
word-break: break-all;
2524
-webkit-line-clamp: $i;
26-
-webkit-box-orient: vertical !important;
25+
-webkit-box-orient: vertical!important;
2726
}
2827
/* #endif */
2928
}
3029
}
31-
32-
30+
31+
3332
// 此处加上!important并非随意乱用,而是因为目前*.nvue页面编译到H5时,
3433
// App.vue的样式会被uni-app的view元素的自带border属性覆盖,导致无效
3534
// 综上,这是uni-app的缺陷导致我们为了多端兼容,而必须要加上!important
3635
// 移动端兼容性较好,直接使用0.5px去实现细边框,不使用伪元素形式实现
3736
.u-border {
3837
border-width: 0.5px!important;
39-
border-color: $u-border-color!important;
38+
border-color: $u-border-color!important;
4039
border-style: solid;
4140
}
42-
41+
4342
.u-border-top {
44-
border-top-width: 0.5px!important;
45-
border-color: $u-border-color!important;
43+
border-top-width: 0.5px!important;
44+
border-color: $u-border-color!important;
4645
border-top-style: solid;
4746
}
4847

4948
.u-border-left {
50-
border-left-width: 0.5px!important;
51-
border-color: $u-border-color!important;
49+
border-left-width: 0.5px!important;
50+
border-color: $u-border-color!important;
5251
border-left-style: solid;
5352
}
5453

5554
.u-border-right {
56-
border-right-width: 0.5px!important;
57-
border-color: $u-border-color!important;
55+
border-right-width: 0.5px!important;
56+
border-color: $u-border-color!important;
5857
border-right-style: solid;
5958
}
60-
59+
6160
.u-border-bottom {
62-
border-bottom-width: 0.5px!important;
63-
border-color: $u-border-color!important;
61+
border-bottom-width: 0.5px!important;
62+
border-color: $u-border-color!important;
6463
border-bottom-style: solid;
6564
}
6665

6766
.u-border-top-bottom {
68-
border-top-width: 0.5px!important;
69-
border-bottom-width: 0.5px!important;
70-
border-color: $u-border-color!important;
67+
border-top-width: 0.5px!important;
68+
border-bottom-width: 0.5px!important;
69+
border-color: $u-border-color!important;
7170
border-top-style: solid;
7271
border-bottom-style: solid;
7372
}

0 commit comments

Comments
 (0)