From a9eef2345759303ef6762b80c5781c8c31b8bd98 Mon Sep 17 00:00:00 2001 From: "songwanli2025@163.com" Date: Wed, 19 Feb 2020 16:48:15 +0800 Subject: [PATCH] remove(DatePicker): useless code --- src/DatePicker/src/DatePicker.vue | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/DatePicker/src/DatePicker.vue b/src/DatePicker/src/DatePicker.vue index 960115ac6..03c02818a 100644 --- a/src/DatePicker/src/DatePicker.vue +++ b/src/DatePicker/src/DatePicker.vue @@ -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] }