fix: 拼写检查
This commit is contained in:
parent
9ab5896317
commit
7b603d06cc
@ -18,10 +18,10 @@ export default {
|
|||||||
update: function(el, binding) {
|
update: function(el, binding) {
|
||||||
const { value, maxlength, buttonDisabled } = binding.value
|
const { value, maxlength, buttonDisabled } = binding.value
|
||||||
if (buttonDisabled && el.querySelector('.el-input__count')) {
|
if (buttonDisabled && el.querySelector('.el-input__count')) {
|
||||||
el.querySelector('.el-input__count').style.dispaly = 'none'
|
el.querySelector('.el-input__count').style.display = 'none'
|
||||||
return
|
return
|
||||||
} else if (el.querySelector('.el-input__count')) {
|
} else if (el.querySelector('.el-input__count')) {
|
||||||
el.querySelector('.el-input__count').style.dispaly = 'block'
|
el.querySelector('.el-input__count').style.display = 'block'
|
||||||
}
|
}
|
||||||
const lg = value?.length || 0
|
const lg = value?.length || 0
|
||||||
const count = el.querySelector('.el-input__count')
|
const count = el.querySelector('.el-input__count')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user