Commit 7a112b94 by 匡雅琴

fixed

1 parent bd70251e
...@@ -73,7 +73,7 @@ export default { ...@@ -73,7 +73,7 @@ export default {
previewList(val) { previewList(val) {
if (val.length && val[0].attType == 1) { if (val.length && val[0].attType == 1) {
const attContent = val[0].attContent[0] const attContent = val[0].attContent[0]
const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function (res) { const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function(res) {
let word = res.replace(/\[|\]/gi, '') let word = res.replace(/\[|\]/gi, '')
const list = emoji.flat(Infinity) const list = emoji.flat(Infinity)
let index = parseInt(list.indexOf(word)) + 1 let index = parseInt(list.indexOf(word)) + 1
...@@ -189,6 +189,7 @@ export default { ...@@ -189,6 +189,7 @@ export default {
color: #333; color: #333;
background-color: #fff; background-color: #fff;
border-radius: 4px; border-radius: 4px;
word-wrap: break-word;
word-break: break-all; word-break: break-all;
line-height: 20px; line-height: 20px;
/deep/ img { /deep/ img {
...@@ -198,6 +199,7 @@ export default { ...@@ -198,6 +199,7 @@ export default {
} }
} }
.text { .text {
width: 100%;
font-size: 12px; font-size: 12px;
padding: 0px; padding: 0px;
margin-bottom: 6px; margin-bottom: 6px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!