Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@cool_zjy/vue-calendars
Advanced tools
一个极简的日历控件。
<day :month="now" :selected="selected" @click="select"></day>
import { Day } from 'vue-calendars'
export default {
data: {
const now = new Date()
return {
now,
selected: { start: now, end: now }
}
},
methods: {
select (date) {
this.selected = { start: date, end: date }
}
},
components: { Day }
}
Prop | 类型 | 描述 | 默认值/必需 |
---|---|---|---|
month(year) | Date | 日历展示的月份(在月日历中为年份) | 必需 |
filter | Function (Date => Boolean) | 过滤日历中可以选择的项 | () => true |
selected | Object({ start: Date, end: Date }) | 设置选中项 | |
pending | Array([ Date, Date ]) | 设置未决选中项 | [] |
Event | 参数 | 描述 |
---|---|---|
click | date | 点击日历中某一项时触发 |
enter | date | 鼠标移入日历中某一项时触发 |
leave | date | 鼠标移出日历中某一项时触发 |
⚠️注意:事件参数提交的 date 对象为开始的时间点,即:选中一天时结果为该天 00:00:00,选中一周时结果为该周周一 00:00:00,选中一月时结果为该月 1 日 00:00:00。
参考 examples 文件夹。
FAQs
Multifunctional calendar component for Vue
The npm package @cool_zjy/vue-calendars receives a total of 1 weekly downloads. As such, @cool_zjy/vue-calendars popularity was classified as not popular.
We found that @cool_zjy/vue-calendars 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.