All Projects → ydwan → vue-calendar

ydwan / vue-calendar

Licence: other
基于vue和moment开发的时间组件

Programming Languages

CSS
56736 projects
Vue
7211 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to vue-calendar

calendarium-romanum
liturgical calendar library (Roman Catholic, post-Vatican II)
Stars: ✭ 37 (+48%)
Mutual labels:  calendar
AndroidHotelCalendar
这是一个Android的酒店类型的日历选择空间,基于recyclerview实现
Stars: ✭ 33 (+32%)
Mutual labels:  calendar
persian-date-time
Persian Date Time
Stars: ✭ 54 (+116%)
Mutual labels:  calendar
Shift
Light-weight EventKit wrapper.
Stars: ✭ 31 (+24%)
Mutual labels:  calendar
go-sunrise
Go package for calculating the sunrise and sunset times for a given location
Stars: ✭ 42 (+68%)
Mutual labels:  calendar
prodcal ics
Производственный календарь в формате ics
Stars: ✭ 23 (-8%)
Mutual labels:  calendar
nepali date picker
Material Style Date Picker with Bikram Sambat(Nepali) Calendar Support. Supports both Android and ios.
Stars: ✭ 30 (+20%)
Mutual labels:  calendar
isoweek
Go package for calculating a start date and time of ISO 8601 week. (golang)
Stars: ✭ 32 (+28%)
Mutual labels:  calendar
markdown-it-calendar
Automatically produced markdown-it-calendar
Stars: ✭ 23 (-8%)
Mutual labels:  calendar
wp-event-calendar
The best way to manage events in WordPress
Stars: ✭ 46 (+84%)
Mutual labels:  calendar
calendar
calendar 日历的使用
Stars: ✭ 15 (-40%)
Mutual labels:  calendar
hebcal-es6
Hebcal, a perpetual Jewish Calendar (ES6)
Stars: ✭ 45 (+80%)
Mutual labels:  calendar
calendar-js
Pure calendar generator
Stars: ✭ 55 (+120%)
Mutual labels:  calendar
svelte-fullcalendar
A Svelte component wrapper around FullCalendar
Stars: ✭ 123 (+392%)
Mutual labels:  calendar
node-google-calendar
Simple node module that supports Google Calendar API
Stars: ✭ 76 (+204%)
Mutual labels:  calendar
laravel-fullcalendar
Laravel Fullcalendar component
Stars: ✭ 57 (+128%)
Mutual labels:  calendar
thymeflow
Installer for Thymeflow, a personal knowledge management system.
Stars: ✭ 27 (+8%)
Mutual labels:  calendar
nativescript-calendar
📅 NativeScript plugin to Create, Delete and Find Events in the native Calendar
Stars: ✭ 44 (+76%)
Mutual labels:  calendar
networkdays
Networkdays functions ... including `networkdays` excel like function with no dependencies (no NumPy)
Stars: ✭ 22 (-12%)
Mutual labels:  calendar
KM-MiniProgram
mini program for keep memory
Stars: ✭ 15 (-40%)
Mutual labels:  calendar

vue-calendar

基于vue和moment开发的时间组件

感谢jinzhe的项目vue-calendar,此项目是根据jinzhe的样式上完成

项目实现效果

单一时间

单一时间

区间时间

区间时间

运行方式:

npm i加载依赖

npm run dev跑测试端口,届时浏览器会自动打开并进入页面http://localhost:8080/

props参数:

Parameter Type Description
show Boolean 默认可以不传。传入时手动控制是否显示时间选择器,需要搭配open事件使用。具体查看RangeTime.vue
value String 视图渲染的时间值
cssClass [String, Number, Array, Object] 绑定到文本的样式class
rangeValue String 视图渲染的区间时间值(第二值)
single Boolean 是否为单一选择器,默认为true
autoClose Boolean 点击后是否关闭show,默认为true自动关闭
startview String 每次inti时显示的视图级别
minview String 最大显示的视图级别
maxview String 最大显示的视图级别
placeholder String placeholder
begin String 限制开始时间(包含)
end String 限制结束时间(包含)
usableEnable Boolean 可用列表启用,与usableList相关
usableList Array 需要显示的时间列表,假设需要显示2018-07-11,2018-07-13,2018-07-14,那么usableList应当传入['2018-07-11','2018-07-13','2018-07-14']
weeksWording Array 用于顶部显示周的文案,默认weeksWording:['日', '一', '二', '三', '四', '五', '六']
monthsWording Array 用于顶部显示月份文案,monthsWording:[{ text: '一月', value: 0 }]
format String 展示的日期格式,配置参考 moment.js
change Function({values}) 勾选时间之后的回调函数,参数示例:{values:['2017-01-01','2017-02-01']}
open Function({show}) 打开时间选择器的回调函数,show:true
close Function({show}) 关闭时间选择器的回调函数,show:false

调用示例:

<Calendar style="width:300px;margin:20px auto;" :value="calendar.items.value" :begin="calendar.items.begin" @close="dateClose" @change="dateOk" :end="calendar.items.end" :format="calendar.items.format" :single="calendar.items.single" :rangeValue='calendar.items.rangeValue' :autoClose='calendar.items.autoClose'>
</Calendar>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].