File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -193,14 +193,14 @@ You can also override some of the default locale by `lang`.
193
193
the ` format ` accepts an object to customize formatting.
194
194
195
195
``` html
196
- <date-picker :format =" momentForamt " />
196
+ <date-picker :format =" momentFormat " />
197
197
```
198
198
199
199
``` js
200
200
data () {
201
201
return {
202
202
// Use moment.js instead of the default
203
- momentForamt : {
203
+ momentFormat : {
204
204
// Date to String
205
205
stringify : (date ) => {
206
206
return date ? moment (date).format (' LL' ) : ' '
Original file line number Diff line number Diff line change @@ -191,14 +191,14 @@ import 'vue2-datepicker/locale/zh-cn';
191
191
` format ` 接受一个对象去自定义格式化
192
192
193
193
``` html
194
- <date-picker :format =" momentForamt " />
194
+ <date-picker :format =" momentFormat " />
195
195
```
196
196
197
197
``` js
198
198
data () {
199
199
return {
200
200
// 使用moment.js 替换默认
201
- momentForamt : {
201
+ momentFormat : {
202
202
// Date to String
203
203
stringify : (date ) => {
204
204
return date ? moment (date).format (' LL' ) : ' '
You can’t perform that action at this time.
0 commit comments