fast-input-time

1.0.1 • Public • Published

fast-input-time

将用户输入的数字串迅速转换成标准的时间格式,为用户提供极为便捷的时间转换服务。

Install

npm install fast-input-time --save

vue

// 全局
import InputTime from 'fast-input-time'
Vue.use(InputTime)

// 组件内使用
import { inputTimeVue } from 'fast-input-time'

new Vue({
  directives: { inputTimeVue }
})

Usage

<input v-model="value" v-input-time="'HH:mm:ss'" @change="onChange" date="2023-05-06"></input>
var app = document.querySelector('.app')
new Vue({
  el: app,
  data () {
    return {
      value: ''
    }
  },
  methods: {
    onChange(val) {
      console.log(val)
    }
  }
})

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i fast-input-time

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

20.2 kB

Total Files

13

Last publish

Collaborators

  • super_mac