mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
remove(DatePicker): useless code
This commit is contained in:
parent
655860b9e5
commit
a9eef23457
@ -158,12 +158,6 @@ const DATE_FORMAT = {
|
||||
daterange: 'yyyy-MM-dd',
|
||||
datetimerange: 'yyyy-MM-dd HH:mm:ss'
|
||||
}
|
||||
const DATE_VALIDATE_FORMAT = {
|
||||
date: ['yyyy-MM-dd', 'yyyy-MM-D', 'yyyy-M-D', 'yyyy-M-dd'],
|
||||
datetime: ['yyyy-MM-dd HH:mm:ss', 'yyyy-MM-D HH:mm:ss', 'yyyy-M-D HH:mm:ss', 'yyyy-M-dd HH:mm:ss'],
|
||||
daterange: ['yyyy-MM-dd', 'yyyy-MM-D', 'yyyy-M-D', 'yyyy-M-dd'],
|
||||
datetimerange: ['yyyy-MM-dd HH:mm:ss', 'yyyy-MM-D HH:mm:ss', 'yyyy-M-D HH:mm:ss', 'yyyy-M-dd HH:mm:ss']
|
||||
}
|
||||
|
||||
export default {
|
||||
name: 'NDatePicker',
|
||||
@ -311,9 +305,6 @@ export default {
|
||||
return this.endPlaceholder
|
||||
}
|
||||
},
|
||||
computedValidateFormat () {
|
||||
return DATE_VALIDATE_FORMAT[this.type]
|
||||
},
|
||||
computedFormat () {
|
||||
return this.format || DATE_FORMAT[this.type]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user