
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
husky-left-menu-plus
Advanced tools
npm install husky-left-menu-plus --save-dev
import huskyLeftMenuPlus from 'husky-left-menu-plus' //引入改组件
vue.use(huskyLeftMenuPlus)
// in xxx.vue
<template>
<husky-left-menu
:collapse="isCollapse"
:menu-data="routeList"
></husky-left-menu>
</template>
// 参数类型
menuData: {
type: Array<{
path:String
name?:String
meta:{
menuName: String
menuIcon?:String
}
}>,
default: () => [],
},
defaultActive: {
type: String, //默认高亮的表单item 同element-plus
default: () => '',
},
collapse: { type: Boolean, default: false }, //菜单栏展开收起 同element-plus
backgroundColor: {
type: String, //背景色 同element-plus
default: () => '#001529',
},
textColor: {
type: String, //文字颜色 同element-plus
default: 'rgba(255,255,255,.65)',
},
activeTextColor: {
type: String, //高亮的文字颜色 同element-plus
default: '#fff',
},
FAQs
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
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.