style(date-picker): date-picker-com conditional judgment (#1823)

This commit is contained in:
xiejiahe 2021-04-13 15:03:40 +08:00 committed by GitHub
parent 834147c1cc
commit d2ce2604c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -374,7 +374,7 @@ export default defineComponent({
const isValidValue = value => {
return Array.isArray(value) &&
value && value[0] && value[1] &&
value[0] && value[1] &&
value[0].valueOf() <= value[1].valueOf()
}