Skip to content

Commit a58f250

Browse files
committed
Merge branch 'master' into dev
2 parents 82080aa + 5f4700e commit a58f250

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,14 @@ You can also override some of the default locale by `lang`.
193193
the `format` accepts an object to customize formatting.
194194

195195
```html
196-
<date-picker :format="momentForamt" />
196+
<date-picker :format="momentFormat" />
197197
```
198198

199199
```js
200200
data() {
201201
return {
202202
// Use moment.js instead of the default
203-
momentForamt: {
203+
momentFormat: {
204204
// Date to String
205205
stringify: (date) => {
206206
return date ? moment(date).format('LL') : ''

README.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,14 @@ import 'vue2-datepicker/locale/zh-cn';
191191
`format` 接受一个对象去自定义格式化
192192

193193
```html
194-
<date-picker :format="momentForamt" />
194+
<date-picker :format="momentFormat" />
195195
```
196196

197197
```js
198198
data() {
199199
return {
200200
// 使用moment.js 替换默认
201-
momentForamt: {
201+
momentFormat: {
202202
// Date to String
203203
stringify: (date) => {
204204
return date ? moment(date).format('LL') : ''

0 commit comments

Comments
 (0)