Merge pull request #10051 from dataease/pr@dev-v2@fix_scroll-text

fix(数据大屏): 新建数据大屏-添加跑马灯,鼠标焦点从输入框移动到输入框外点击确定,输入框内存在&nbsp
This commit is contained in:
王嘉豪 2024-06-03 18:16:31 +08:00 committed by GitHub
commit 9e070b837a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -81,14 +81,14 @@ const clearStyle = e => {
}
const handleBlur = e => {
element.value.propValue = e.target.innerHTML || ' '
element.value.propValue = e.target.innerHTML || ''
const html = e.target.innerHTML
if (html !== '') {
element.value.propValue = e.target.innerHTML
} else {
element.value.propValue = ''
nextTick(function () {
element.value.propValue = ' '
element.value.propValue = ''
})
}
canEdit.value = false