
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
vue-nested-menu
Advanced tools
A simple hands-on mobile nested menu UI component with a smooth slide animation.
$ yarn add vue-nested-menu
main.js
import VueNestedMenu from 'vue-nested-menu';
Vue.use(VueNestedMenu);
index.html
<div id="app">
<vue-nested-menu :source="menu"></vue-nested-menu>
</div>
main.js
import VueNestedMenu from 'vue-nested-menu';
Vue.use(VueNestedMenu)
new Vue({
el: '#app',
data: {
menu: {
title: '首頁',
children: [
{
title: `Today's Deals`,
link: `/today`,
children: [],
},
{
title: `Shop By Department`,
children: [
{
title: `Amazon Music`,
link: `/music`,
children: [],
},
{
title: `CDs and Vinyl`,
link: `/cds`,
children: [],
},
],
},
],
},
},
});
app.js
import VueNestedMenu from 'vue-nested-menu';
Vue.use(VueNestedMenu);
// ...
MyMenu.vue
<template>
<vue-nested-menu :source="menu" />
</template>
<script>
export default {
data() {
return {
menu: {
// your menu data
},
};
},
};
</script>
You can use following classes for your own customizations
default style
.Menu__header {
display: flex;
align-items: center;
padding-left: 35px;
height: 50px;
color: #fff;
font-size: 16px;
background-color: #232f3e;
cursor: pointer;
.arrow {
padding-top: 2px;
fill: #fff;
margin-right: 10px;
width: 10px;
height: 100%;
display: flex;
align-items: center;
}
}
.Menu__list {
list-style: none;
padding-bottom: 2px;
.separator {
border-bottom: 1px solid #d5dbdb;
padding: 2px 0 0 0;
margin: 0;
}
}
.Menu__item {
color: #4a4a4a;
padding-left: 35px;
height: 45px;
display: flex;
align-items: center;
cursor: pointer;
a {
color: #4a4a4a;
text-decoration: none;
}
.arrow {
padding-top: 2px;
padding-left: 15px;
display: flex;
align-items: center;
width: 10px;
height: 100%;
}
}
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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.