Commit 4ef78844 authored by wlxuqu's avatar wlxuqu

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

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