From 9738054dd40135648a9fb3aac38b3be7eb8545b7 Mon Sep 17 00:00:00 2001 From: Jiewei Qian Date: Mon, 12 Nov 2018 22:19:58 +1100 Subject: [PATCH] DatePicker: optimize code, fix #12980, follow up #8156 (#13374) * date-table: simplify implementation, fix #12980 * date-table: remove rangeState's row and column * date-table: fix disabled cell highlight this is a regression introduced in pr #8156, which allows disabled date to be highlighted. Also simplifies handleClick's implementation to avoid DOM operations. --- packages/date-picker/src/basic/date-table.vue | 182 ++++++------------ 1 file changed, 60 insertions(+), 122 deletions(-) diff --git a/packages/date-picker/src/basic/date-table.vue b/packages/date-picker/src/basic/date-table.vue index f145cf3f6..e7ce6d6d4 100644 --- a/packages/date-picker/src/basic/date-table.vue +++ b/packages/date-picker/src/basic/date-table.vue @@ -32,16 +32,19 @@