Commit 0ce9e464 authored by JingChao's avatar JingChao

value is empty

parent e7f412e8
......@@ -105,7 +105,7 @@ export default {
},
showClean () {
let vm = this
if (vm.clearable && vm.value) {
if (vm.clearable && (vm.value !== '' && vm.value !== undefined && vm.value !== null)) {
return true
} else {
return !vm.showIcon
......
......@@ -130,7 +130,7 @@ export default {
},
showClean () {
let vm = this
if (vm.clearable && vm.value) {
if (vm.clearable && (vm.value !== '' && vm.value !== undefined && vm.value !== null)) {
return true
} else {
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