vue-mobile-hotel-calendar-tmd

1.9.3 • Public • Published

vue-mobile-hotel-calendar-tmd

基于vue2.x的移动端日历组件,适用于酒店预订的应用场景,将进行个性化修改

安装

$ npm install vue-mobile-hotel-calendar-tmd -S

使用

html

<calendarv-if="calendarVisible" ref="calendar"></calendar>

js

import Calendar from 'vue-mobile-hotel-calendar-tmd'

触发

this.calendarVisible = true
this.$nextTick(() => {
  this.$refs.calendar.editDate()
})

属性

属性名 说明 类型 可选值 默认值
total 被渲染出的月数,从当前月份开始 Number - 5
startText 开始日期的描述 String - 入住
endText 结束日期的描述 String - 退房
isMultiple 是否单选 Boolean - (默认false)

事件

事件名 说明 参数
confirm 点击确定触发 (chooseDate)
change 触发日期选中的回调 (startDate, endDate, dayGap)
setStartDate 选中开始日期的回调 (startDate)
setEndDate 选中结束日期的回调 (endDate)

设计缺陷

未通过js动态计算日期,没有实现万年历的效果。只是针对于酒店预订类的业务,从当月开始,+n个月的日历渲染。

Git

vue-mobile-hotel-calendar-tmd

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.9.31latest

Version History

VersionDownloads (Last 7 Days)Published
1.9.31
1.9.20
1.9.10
1.9.00
1.8.90
1.8.80
1.8.60
1.8.50
1.8.40
1.8.30
1.8.20
1.8.10
1.8.00
1.7.90
1.7.80
1.7.71
1.7.60
1.7.50
1.7.41
1.7.30
1.7.20
1.7.10
1.7.00
1.6.90
1.6.80
1.6.70
1.6.60
1.6.50
1.6.30
1.6.20
1.6.10
1.6.00
1.5.90
1.5.81
1.5.70
1.5.60
1.5.50
1.5.30
1.5.20
1.5.10
1.4.90
1.4.70
1.4.60
1.4.50
1.4.41
1.4.10
1.4.00
1.3.90
1.3.70
1.3.60
1.3.40
1.3.30
1.3.20
1.3.10
1.3.00
1.2.90
1.2.80
1.2.70
1.2.60
1.2.50
1.2.40
1.2.30
1.2.20
1.1.20
1.1.10
1.0.10
1.0.00
0.1.60
0.0.60
0.0.50
0.0.40
0.0.30

Package Sidebar

Install

npm i vue-mobile-hotel-calendar-tmd

Weekly Downloads

5

Version

1.9.3

License

ISC

Unpacked Size

411 kB

Total Files

5

Last publish

Collaborators

  • tumingdong