Commit 0ce9e464 authored by JingChao's avatar JingChao

value is empty

parent e7f412e8
...@@ -105,7 +105,7 @@ export default { ...@@ -105,7 +105,7 @@ export default {
}, },
showClean () { showClean () {
let vm = this let vm = this
if (vm.clearable && vm.value) { if (vm.clearable && (vm.value !== '' && vm.value !== undefined && vm.value !== null)) {
return true return true
} else { } else {
return !vm.showIcon return !vm.showIcon
......
...@@ -130,7 +130,7 @@ export default { ...@@ -130,7 +130,7 @@ export default {
}, },
showClean () { showClean () {
let vm = this let vm = this
if (vm.clearable && vm.value) { if (vm.clearable && (vm.value !== '' && vm.value !== undefined && vm.value !== null)) {
return true return true
} else { } else {
return !vm.showIcon return !vm.showIcon
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment