From 67ec0bf4271ef02c5033cba0e11af89f1c5c325d Mon Sep 17 00:00:00 2001 From: chin <1277180540@qq.com> Date: Mon, 7 Mar 2022 19:25:09 +0800 Subject: [PATCH] fix(data-picker):make n-date-panel-date fill all area of all demos --- src/date-picker/src/panel/daterange.tsx | 1 + src/date-picker/src/panel/datetime.tsx | 1 + src/date-picker/src/panel/datetimerange.tsx | 2 ++ 3 files changed, 4 insertions(+) diff --git a/src/date-picker/src/panel/daterange.tsx b/src/date-picker/src/panel/daterange.tsx index c40f3d62294..a41365d4c61 100644 --- a/src/date-picker/src/panel/daterange.tsx +++ b/src/date-picker/src/panel/daterange.tsx @@ -119,6 +119,7 @@ export default defineComponent({ onClick={() => this.handleDateClick(dateItem)} onMouseenter={() => this.handleDateMouseEnter(dateItem)} > +
{dateItem.dateObject.date} {dateItem.isCurrentDate ? ( diff --git a/src/date-picker/src/panel/datetime.tsx b/src/date-picker/src/panel/datetime.tsx index 9d6df4e0ab3..a3c27e858bc 100644 --- a/src/date-picker/src/panel/datetime.tsx +++ b/src/date-picker/src/panel/datetime.tsx @@ -133,6 +133,7 @@ export default defineComponent({ ]} onClick={() => this.handleDateClick(dateItem)} > + {dateItem.dateObject.date} {dateItem.isCurrentDate ? ( diff --git a/src/date-picker/src/panel/datetimerange.tsx b/src/date-picker/src/panel/datetimerange.tsx index efc95114854..9a96e00492f 100644 --- a/src/date-picker/src/panel/datetimerange.tsx +++ b/src/date-picker/src/panel/datetimerange.tsx @@ -177,6 +177,7 @@ export default defineComponent({ onClick={() => this.handleDateClick(dateItem)} onMouseenter={() => this.handleDateMouseEnter(dateItem)} > + {dateItem.dateObject.date} {dateItem.isCurrentDate ? ( @@ -262,6 +263,7 @@ export default defineComponent({ onClick={() => this.handleDateClick(dateItem)} onMouseenter={() => this.handleDateMouseEnter(dateItem)} > + {dateItem.dateObject.date} {dateItem.isCurrentDate ? (