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;