From dbac632fc324db47d17fdc3c67ef82a6130a4a61 Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Mon, 27 Jul 2020 16:04:37 +0800 Subject: [PATCH] fix: calendar v-model not work --- antdv-demo | 2 +- breakChange-2.x.md | 6 + .../__snapshots__/index.test.js.snap | 202 +++++++++++++----- components/calendar/__tests__/index.test.js | 102 +++------ components/calendar/index.jsx | 5 +- components/vc-select/SelectTrigger.jsx | 2 +- examples/App.vue | 2 +- examples/index.js | 1 + 8 files changed, 194 insertions(+), 128 deletions(-) diff --git a/antdv-demo b/antdv-demo index 0946782cc..fedb9ecff 160000 --- a/antdv-demo +++ b/antdv-demo @@ -1 +1 @@ -Subproject commit 0946782cced82b75cd9a75a80fa97814381e9d19 +Subproject commit fedb9ecff3abc0ef5d7f57cf5cee1f8352dd9d85 diff --git a/breakChange-2.x.md b/breakChange-2.x.md index 850bc1591..ab1a183da 100644 --- a/breakChange-2.x.md +++ b/breakChange-2.x.md @@ -113,3 +113,9 @@ customRender( text, record, index, column ); => customRender({ text, record, ind expandedRowRender(record, index, indent, expanded) => expandedRowRender({ record, index, indent, expanded }) filterIcon(filtered, column) => filterIcon({ filtered, column }) + +## calendar + +dateCellRender、dateFullCellRender、monthCellRender、monthFullCellRender + +function (date, today?) => function({current, today?}) diff --git a/components/calendar/__tests__/__snapshots__/index.test.js.snap b/components/calendar/__tests__/__snapshots__/index.test.js.snap index 2c7ccfa2d..21b00d630 100644 --- a/components/calendar/__tests__/__snapshots__/index.test.js.snap +++ b/components/calendar/__tests__/__snapshots__/index.test.js.snap @@ -3,27 +3,35 @@ exports[`Calendar Calendar should support locale 1`] = `
Su | Mo | Tu | @@ -35,266 +43,356 @@ exports[`Calendar Calendar should support locale 1`] = `||||
---|---|---|---|---|---|---|
30
-
+
+
+
|
01
-
+
+
+
|
02
-
+
+
+
|
03
-
+
+
+
|
04
-
+
+
+
|
05
-
+
+
+
|
06
-
+
+
+
|
07
-
+
+
+
|
08
-
+
+
+
|
09
-
+
+
+
|
10
-
+
+
+
|
11
-
+
+
+
|
12
-
+
+
+
|
13
-
+
+
+
|
14
-
+
+
+
|
15
-
+
+
+
|
16
-
+
+
+
|
17
-
+
+
+
|
18
-
+
+
+
|
19
-
+
+
+
|
20
-
+
+
+
|
21
-
+
+
+
|
22
-
+
+
+
|
23
-
+
+
+
|
24
-
+
+
+
|
25
-
+
+
+
|
26
-
+
+
+
|
27
-
+
+
+
|
28
-
+
+
+
|
29
-
+
+
+
|
30
-
+
+
+
|
31
-
+
+
+
|
01
-
+
+
+
|
02
-
+
+
+
|
03
-
+
+
+
|
04
-
+
+
+
|
05
-
+
+
+
|
06
-
+
+
+
|
07
-
+
+
+
|
08
-
+
+
+
|
09
-
+
+
+
|
10
-
+
+
+
|