mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-08 12:13:08 +03:00
Fix typo error
This commit is contained in:
+2
-2
@@ -191,14 +191,14 @@ import 'vue2-datepicker/locale/zh-cn';
|
||||
`format` 接受一个对象去自定义格式化
|
||||
|
||||
```html
|
||||
<date-picker :format="momentForamt" />
|
||||
<date-picker :format="momentFormat" />
|
||||
```
|
||||
|
||||
```js
|
||||
data() {
|
||||
return {
|
||||
// 使用moment.js 替换默认
|
||||
momentForamt: {
|
||||
momentFormat: {
|
||||
// Date to String
|
||||
stringify: (date) => {
|
||||
return date ? moment(date).format('LL') : ''
|
||||
|
||||
Reference in New Issue
Block a user