el-moment

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i el-moment

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • qingwei.li