
Security News
npm Tooling Bug Incorrectly Marks One-Character Packages as Security Holders
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.
quark-switch
Advanced tools
用来打开或关闭选项。
<quark-switch
:active="true"
>
</quark-switch>
加上 .sync 可实现数据的“双向绑定”。
<quark-switch
:active.sync="swActive"
>
</quark-switch>
export default {
data() {
return {
swActive: true
};
}
};
内置 small,base,large 三种规格供使用。
<quark-switch
:active="true"
size="small"
>
<quark-switch
:active="true"
size="base"
>
<quark-switch
:active="true"
size="large"
>
<quark-switch
@change="onChange"
>
</quark-switch>
export default {
methods: {
onChange(status) {
alert(status);
}
}
};
<quark-switch
:disabled="true"
>
</quark-switch>
禁用状态下,change事件参数永远为初始值
<quark-switch
:active="true"
class="my-switch"
>
</quark-switch>
| 字段 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| active | 开关状态 | Boolean | false |
| size | 尺寸,可选值small/base/large | String | base |
| disabled | 是否禁用 | Boolean | false |
FAQs
一种基于vue框架的滑动开关组件
We found that quark-switch 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
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.