1.0.0 • Published 4 years ago
vue-moment-locale v1.0.0
README
设置moment#locale的Vue插件,插件将moment挂载到Vue#prototype
使用方法
import VueMomentLocalePlugin from 'vue-moment-locale'
Vue.use(VueMomentLocalePlugin, {
// 插件配置
lang: 'zh-cn' // 默认值
})
<template>
<div>{{ $moment() }}</div>
</template>
TODO
- 添加eslint
- 添加测试
1.0.0
4 years ago