Commit 6822d245 by 前端

Merge branch 'yangm_dev_2.0.0' into 'v2.0.0'

fixed

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