fix: invalid Function prop (#1963)

This commit is contained in:
neverland 2019-09-05 16:39:10 +08:00 committed by GitHub
parent fea272200d
commit 5c7b4fb4b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,12 +45,8 @@ VantComponent({
props: {
...pickerProps,
formatter: {
type: Function,
value: defaultFormatter
},
filter: Function,
value: null,
filter: null,
type: {
type: String,
value: 'datetime'
@ -59,6 +55,10 @@ VantComponent({
type: Boolean,
value: true
},
formatter: {
type: null,
value: defaultFormatter
},
minDate: {
type: Number,
value: new Date(currentYear - 10, 0, 1).getTime()