Commit e2d9974a by 王志慧

fixed

1 parent e85f9c2d
......@@ -46,7 +46,7 @@ export default {
data() {
return {
textNum: 0,
maxNum: 20,
maxNum: 200,
emotionStatus: false
}
},
......@@ -82,7 +82,7 @@ export default {
this.textNum = text.length
if (this.textNum > this.maxNum) {
this.textNum = this.maxNum
this.update(val.substring(0,this.maxNum))
this.update(val.substring(0, this.maxNum))
}
},
//展开表情
......@@ -149,6 +149,9 @@ export default {
if (htm.substr(-1, 1) == '>' && navigator.userAgent.indexOf('Firefox') > 0) {
htm += ' '
}
const html = this.getTextValue(htm),
text = html.replace(/\[.+?\]/g, '').replace(/\${.+?}/g, '')
this.textNum = text.length
setTimeout(() => {
document.querySelector('.w-textarea_input').innerHTML = htm
}, 100)
......@@ -170,6 +173,7 @@ export default {
background: #fafbfe;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
position: relative;
.btn-group {
display: flex;
column-gap: 20px;
......@@ -206,6 +210,10 @@ export default {
}
.text-num {
padding-right: 10px;
font-size: 14px;
color: #999999;
position: absolute;
right: -56px;
}
}
.date-picker {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!