KingJeason / Wepy Calendar
微信小程序/wepy/日历组件
Stars: ✭ 58
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Wepy Calendar
Wxapp Redux Starter
微信小程序,集成redux,并且提供了方便快捷的开发环境;内置好奇心日报Demo...
Stars: ✭ 205 (+253.45%)
Mutual labels: wxml, wxapp
black horse mall project
品优购,微信小程序电商项目,适合各位拿来学习,可以动动发财的小手点个小star⭐
Stars: ✭ 72 (+24.14%)
Mutual labels: wxml, wxapp
Wuss Weapp
🐳wuss-weapp 一款高质量,组件齐全,高自定义的微信小程序UI组件库
Stars: ✭ 338 (+482.76%)
Mutual labels: wxml, calendar
weixinCustomerService
主要使用了微信小程序的客服接口,通过将用户输入的消息发送至自己服务器端。 此服务器端用于接收和存储聊天内容,并且提供简单的查看历史资料和模拟客服发送消息的功能。
Stars: ✭ 53 (-8.62%)
Mutual labels: wxml, wxapp
Mp canvas drawer
🚀 微信小程序上canvas绘制图片助手,一个json就制作分享朋友圈图片
Stars: ✭ 1,611 (+2677.59%)
Mutual labels: wepy, wxapp
wepy-canlendar
一款微信小程序的日历组件 支持左右翻页,picker.
Screenshots
Usage
首先记得把asset/icons下的2个小图标放到自己的资源文件里哦
项目依赖moment
cnpm install moment --save
代码全部有注释,使用上有问题请在github联系我,欢迎pr
import calendar from '../components/calendar
<calendar :visible.sync="calendarVisible" :value.sync="time" @hanleConfirm.user="hanleConfirm" color="#05c8d3"></calendar>
data = {
calendarVisible: false,
time: '2018-04-11'
}
components = {
calendar
}
methods = {
showcalendar () {
this.calendarVisible = true
},
hanleConfirm (e) {
console.log(e)// 导出数据
}
}
最后导出的数据很友好:
// 导出一个object
{
day:27,
formatDay:'2018-05-27',
month:5,
weekCh:'周日',
year: 2018
}
API
wepy-calendar props
name | type | default | description |
---|---|---|---|
visible | Boolean | false | 控制dialog的显示 |
value | String(YYYY-MM-DD) | moment().format('YYYY-MM-DD') | 日历初始值 |
hanleConfirm.user | 自定义事件 | 必填 | 点击确定按钮触发的钩子 |
color | rgb rgba等(css里的颜色值都可用) | black | 日历主色 |
License
wepy-calendar is released under the MIT license.
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].