Commit f25b6b08 authored by JingChao's avatar JingChao

value is empty

parent 780f4fe9
......@@ -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