From 2b657446ece6243acd7456de692982d3f19c9013 Mon Sep 17 00:00:00 2001 From: dengrongyao Date: Mon, 12 Apr 2021 19:50:43 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/datetime-picker/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/datetime-picker/README.md b/packages/datetime-picker/README.md index 0e0001c1..a6be06b9 100644 --- a/packages/datetime-picker/README.md +++ b/packages/datetime-picker/README.md @@ -70,7 +70,8 @@ Page({ formatter(type, value) { if (type === 'year') { return `${value}年`; - } else if (type === 'month') { + } + if (type === 'month') { return `${value}月`; } return value;