Commit e2d9974a by 王志慧

fixed

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