mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +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',
|
daterange: 'yyyy-MM-dd',
|
||||||
datetimerange: 'yyyy-MM-dd HH:mm:ss'
|
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 {
|
export default {
|
||||||
name: 'NDatePicker',
|
name: 'NDatePicker',
|
||||||
@ -311,9 +305,6 @@ export default {
|
|||||||
return this.endPlaceholder
|
return this.endPlaceholder
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computedValidateFormat () {
|
|
||||||
return DATE_VALIDATE_FORMAT[this.type]
|
|
||||||
},
|
|
||||||
computedFormat () {
|
computedFormat () {
|
||||||
return this.format || DATE_FORMAT[this.type]
|
return this.format || DATE_FORMAT[this.type]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user