1.0.1 • Published 5 years ago
timestamp-hy v1.0.1
时间戳转化
vue时间戳转化插件。
插件的安装
NPM
npm i timestamp-hy
引入插件
import Vue from 'vue';
import timestamp-hy from 'timestamp-hy';
Vue.use(timestamp-hy);
基本用法
<transform :timestamp=timestamp></transform>
API
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
timestamp | 时间戳 | String/Number | true |