Skip to content

Commit 4ef7884

Browse files
committed
1. 优化message-input组件box模式下,输入完成后删除内容,无法去掉高亮的问题
2. 优化avatar组件,重新赋值后默认头像可能不显示的问题
1 parent 667de30 commit 4ef7884

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

common/locales/en.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default {
1010
desc: 'Collection of many commonly used pages and layouts, reducing the repetitive work of developers, allowing you to focus on logic and get twice the result with half the effort'
1111
},
1212
nav: {
13-
components: 'Comonents',
13+
components: 'Components',
1414
js: 'JS',
1515
template: 'Template'
1616
},

pages/componentsA/avatar/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<u-avatar
77
:mode="mode"
88
:size="size"
9-
:src="''"
9+
:src="src"
1010
:text="text"
1111
:showLevel="showLevel"
1212
:showSex="showSex"

uview-ui/components/u-avatar/u-avatar.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
// 用户可能会在头像加载失败时,再次修改头像值,所以需要重新赋值
125125
if(!n) {
126126
// 如果传入null或者'',或者undefined,显示默认头像
127+
this.avatar = base64Avatar;
127128
this.error = true;
128129
} else {
129130
this.avatar = n;

uview-ui/components/u-dropdown-item/u-dropdown-item.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
color: value == item.value ? activeColor : inactiveColor
1212
}">
1313
<u-icon v-if="value == item.value" name="checkbox-mark" :color="activeColor" size="32"></u-icon>
14-
</u-cell-item>
14+
</u-cell-item>
1515
</u-cell-group>
1616
</view>
1717
</scroll-view>

uview-ui/components/u-loadmore/u-loadmore.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
export default {
4242
name: "u-loadmore",
4343
props: {
44-
//当前页面背景颜色,如果背景为非白色的时候,需要把此值设置为背景的颜色
44+
// 组件背景色
4545
bgColor: {
4646
type: String,
4747
default: 'transparent'

uview-ui/components/u-message-input/u-message-input.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
width: width + 'rpx',
1212
height: width + 'rpx',
1313
color: inactiveColor,
14-
borderColor: charArrLength === index && mode == 'box' ? activeColor : 'none'
14+
borderColor: charArrLength === index && mode == 'box' ? activeColor : inactiveColor
1515
}">
1616
<view class="u-placeholder-line" :style="{
1717
display: charArrLength === index ? 'block' : 'none',

0 commit comments

Comments
 (0)