vue2-mobile-calendar

1.0.8 • Public • Published

vue-calendar

npm npm npm

没什么用的移动端日历,支持左右滑动,支持缩小显示周日历,自己看demo呗。

使用方式

# bash:
npm i vue2-mobile-calendar --save
// *.js:
import vueCalendar from 'vue2-mobile-calendar'
 
// *.vue:
components: {
  vueCalendar
}
<!-- html: -->
<vue-calendar></vue-calendar>

参数

不支持低版本浏览器,懒得适配

highlight: {
  type: String,
  default: '#000'
},
selectcolor: {
  type: String,
  default: '#000'
},
weekstart: {
  type: Number,
  default: 7
},
selectdate: {
  type: [Date, String],
  default () {
    return new Date()
  }
},
callback: {
  type: Function,
  default () {
    return () => {}
  }
},
open: {
  type: Boolean,
  default: false
}

Build Setup

Requires Node.js 7+

# install dependencies
npm install
 
# serve with hot reload at localhost:8080
npm run dev
 
# build for production with minification
npm run build

License

MIT

Package Sidebar

Install

npm i vue2-mobile-calendar

Weekly Downloads

6

Version

1.0.8

License

MIT

Last publish

Collaborators

  • rhinel