Skip to content
This repository has been archived by the owner on Feb 11, 2018. It is now read-only.

ElementUI/el-moment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

el-moment

Build Status npm

A Vue component of formatting dates using moment.

Installation

yarn add el-moment moment
# npm i el-moment moment -S

Usage

import ElMoment from 'el-moment'

Vue.use(ElMoment)
// or
Vue.component(ElMoment.name, ElMoment)
<!-- component -->
<el-moment v-model="date" format="MMMM Do YYYY, h:mm:ss a">
  <el-date-picker></el-date-picker>
</el-moment>

<!-- native input -->
<el-moment v-model="date" format="MMMM Do YYYY, h:mm:ss a">
  <input type="text">
</el-moment>

No extra HTML tag is generated 😉

License

MIT

About

A Vue component of formatting dates using moment.

Resources

License

Stars

Watchers

Forks

Packages

No packages published