mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-21 14:10:35 +03:00
@@ -193,14 +193,14 @@ You can also override some of the default locale by `lang`.
|
|||||||
the `format` accepts an object to customize formatting.
|
the `format` accepts an object to customize formatting.
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<date-picker :format="momentForamt" />
|
<date-picker :format="momentFormat" />
|
||||||
```
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// Use moment.js instead of the default
|
// Use moment.js instead of the default
|
||||||
momentForamt: {
|
momentFormat: {
|
||||||
// Date to String
|
// Date to String
|
||||||
stringify: (date) => {
|
stringify: (date) => {
|
||||||
return date ? moment(date).format('LL') : ''
|
return date ? moment(date).format('LL') : ''
|
||||||
|
|||||||
Reference in New Issue
Block a user