vue-mobile-hotel-calendar-tmd
vue-移动端-酒店预订类-日历组件
2,293
| Install | |
|---|---|
npm install vue-mobile-hotel-calendar-tmd |
|
| Latest Version: | 1.9.3 |
| Vue: | 2 |
| License: | ISC |
| Last Updated: | Jan 2, 2020 |
| Links: | npm |
Maintainer: tumingdong
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
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.9.3 | ^2.6.8 | ISC | |
| 1.9.2 | ^2.6.8 | ISC | |
| 1.9.1 | ^2.6.8 | ISC | |
| 1.9.0 | ^2.6.8 | ISC | |
| 1.8.9 | ^2.6.8 | ISC | |
| 1.8.8 | ^2.6.8 | ISC | |
| 1.8.6 | ^2.6.8 | ISC | |
| 1.8.5 | ^2.6.8 | ISC | |
| 1.8.4 | ^2.6.8 | ISC | |
| 1.8.3 | ^2.6.8 | ISC | |
| 1.8.2 | ^2.6.8 | ISC | |
| 1.8.1 | ^2.6.8 | ISC | |
| 1.8.0 | ^2.6.8 | ISC | |
| 1.7.9 | ^2.6.8 | ISC | |
| 1.7.8 | ^2.6.8 | ISC | |
| 1.7.7 | ^2.6.8 | ISC | |
| 1.7.6 | ^2.6.8 | ISC | |
| 1.7.5 | ^2.6.8 | ISC | |
| 1.7.4 | ^2.6.8 | ISC | |
| 1.7.3 | ^2.6.8 | ISC | |
| 1.7.2 | ^2.6.8 | ISC | |
| 1.7.1 | ^2.6.8 | ISC | |
| 1.7.0 | ^2.6.8 | ISC | |
| 1.6.9 | ^2.6.8 | ISC | |
| 1.6.8 | ^2.6.8 | ISC | |
| 1.6.7 | ^2.6.8 | ISC | |
| 1.6.6 | ^2.6.8 | ISC | |
| 1.6.5 | ^2.6.8 | ISC | |
| 1.6.3 | ^2.6.8 | ISC | |
| 1.6.2 | ^2.6.8 | ISC |
Showing the latest 30 of 72. See every release on npm