
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
wepy-vimming-one-line-calendar
Advanced tools
wepy calendar on-line-calendar 日历组件 单行日历组件
觉得样式还可以的话
/*********
* 安装
*********/
npm i wepy-one-line-calendar --save
/*********
* 使用
*********/
<template>
<calendar></calendar>
</template>
<script>
import wepy from 'wepy'
import calendar from 'wepy-one-line-calendar'
export default class Index extends wepy.page {
components = {
calendar: calendar
}
}
</script>
自己改造日历
| 事件 | 解释 |
|---|---|
| selectDay | 点击日期时触发 |
| selectMonth | 选择年或者月份触发 |
| userDefineTap | 自定义的slot被tap时触发 |
| 属性 | 解释 |
|---|---|
| scheduleNumOfDay | 日期右上角标数字 [{day: '2018-12-10', num: 4}] |
<slot name="slot"></slot>
结合emit, props, slot的实例
<template>
<Calendar @userDefineTap.user="add" @selectDay.user="selectDay" :scheduleNumOfDay.sync="scheduleNumOfDay">
<i class="iconfont icon-add" slot="slot"></i>
</Calendar>
</template>
<script>
import wepy from 'wepy'
import calendar from 'wepy-one-line-calendar'
export default class Index extends wepy.page {
components = {
calendar: calendar
}
data = {
scheduleNumOfDay: [{day: '2018-12-30', num: 5}]
}
methods = {
add(){
// slot click
},
selectDay(dayItem){
// select day
}
}
}
</script>
欢迎star,pr
FAQs
wepy calendar
We found that wepy-vimming-one-line-calendar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.