提交 dbaaa73a 编写于 作者: DCloud_JSON's avatar DCloud_JSON

更新 图片最大宽为 100px

上级 c7314481
<template> <template>
<view> <view>
<!-- 注意:根节点都view不能去掉,否则鼠标右键出不来菜单 --> <!-- 注意:根节点都view不能去掉,否则鼠标右键出不来菜单 -->
<uni-im-img max-width="400rpx" :src="msg.body.url" mode="widthFix" @click="previewImage" class="img" /> <uni-im-img max-width="100px" :src="msg.body.url" mode="widthFix" @click="previewImage" class="img" />
</view> </view>
</template> </template>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
size="14px" :color="item.isRead?'#25882a':'#bbb'"></uni-im-icons> size="14px" :color="item.isRead?'#25882a':'#bbb'"></uni-im-icons>
</template> </template>
<text class="text" v-else-if="item.type == 'text'" :decode="true" space="ensp">{{item.text}}</text> <text class="text" v-else-if="item.type == 'text'" :decode="true" space="ensp">{{item.text}}</text>
<uni-im-img v-else-if="item.name == 'img'" max-width="400rpx" @click="previewImage(item.attrs.src)" <uni-im-img v-else-if="item.name == 'img'" max-width="100px" @click="previewImage(item.attrs.src)"
:src="item.attrs.src" mode="widthFix" class="img" /> :src="item.attrs.src" mode="widthFix" class="img" />
<uni-link class="link" v-else-if="item.name == 'a'" :href="item.attrs.href" color="#007fff" <uni-link class="link" v-else-if="item.name == 'a'" :href="item.attrs.href" color="#007fff"
:text="item.children[0].text"></uni-link> :text="item.children[0].text"></uni-link>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册