From defd4ecdda00bfcbb1c6674f9a4305e31bdd9745 Mon Sep 17 00:00:00 2001 From: Le Minh Tri Date: Fri, 10 Jan 2020 00:47:06 +0700 Subject: [PATCH 1/2] Fix typo error --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c8f04f7..1e15800 100644 --- a/README.md +++ b/README.md @@ -193,14 +193,14 @@ You can also override some of the default locale by `lang`. the `format` accepts an object to customize formatting. ```html - + ``` ```js data() { return { // Use moment.js instead of the default - momentForamt: { + momentFormat: { // Date to String stringify: (date) => { return date ? moment(date).format('LL') : '' From 0c4490bf9dde83da9309ff260c553d115da9ce39 Mon Sep 17 00:00:00 2001 From: Le Minh Tri Date: Fri, 10 Jan 2020 00:49:12 +0700 Subject: [PATCH 2/2] Fix typo error --- README.zh-CN.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.zh-CN.md b/README.zh-CN.md index 01f2636..bbd3141 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -191,14 +191,14 @@ import 'vue2-datepicker/locale/zh-cn'; `format` 接受一个对象去自定义格式化 ```html - + ``` ```js data() { return { // 使用moment.js 替换默认 - momentForamt: { + momentFormat: { // Date to String stringify: (date) => { return date ? moment(date).format('LL') : ''