
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@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 0 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.