Commit 4ef78844 authored by wlxuqu's avatar wlxuqu

1. 优化message-input组件box模式下,输入完成后删除内容,无法去掉高亮的问题

2. 优化avatar组件,重新赋值后默认头像可能不显示的问题
parent 667de30b
......@@ -10,7 +10,7 @@ export default {
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'
},
nav: {
components: 'Comonents',
components: 'Components',
js: 'JS',
template: 'Template'
},
......
......@@ -6,7 +6,7 @@
<u-avatar
:mode="mode"
:size="size"
:src="''"
:src="src"
:text="text"
:showLevel="showLevel"
:showSex="showSex"
......
......@@ -124,6 +124,7 @@
// 用户可能会在头像加载失败时,再次修改头像值,所以需要重新赋值
if(!n) {
// 如果传入null或者'',或者undefined,显示默认头像
this.avatar = base64Avatar;
this.error = true;
} else {
this.avatar = n;
......
......@@ -11,7 +11,7 @@
color: value == item.value ? activeColor : inactiveColor
}">
<u-icon v-if="value == item.value" name="checkbox-mark" :color="activeColor" size="32"></u-icon>
</u-cell-item>
</u-cell-item>
</u-cell-group>
</view>
</scroll-view>
......
......@@ -41,7 +41,7 @@
export default {
name: "u-loadmore",
props: {
//当前页面背景颜色,如果背景为非白色的时候,需要把此值设置为背景的颜
// 组件背景
bgColor: {
type: String,
default: 'transparent'
......
......@@ -11,7 +11,7 @@
width: width + 'rpx',
height: width + 'rpx',
color: inactiveColor,
borderColor: charArrLength === index && mode == 'box' ? activeColor : 'none'
borderColor: charArrLength === index && mode == 'box' ? activeColor : inactiveColor
}">
<view class="u-placeholder-line" :style="{
display: charArrLength === index ? 'block' : 'none',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment