
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
vue-ztree-component
Advanced tools
一个不依赖ztree的vue ztree插件
项目中需要使用到和ztree一样效果的树状图组件,考虑引入jQuery和ztree过于庞大,得不偿失,简单封装一个基于vue的ztree组件。后期会考虑加入更多可配置性功能。
# install dependencies
npm install vue-ztree-component -S
# use
main.js
import ZtreeComponent from 'vue-ztree-component'
Vue.use(ZtreeComponent)
everyone.vue
import ZtreeComponent from 'vue-ztree-component'
components:{
ZtreeComponent
}
<ztree-component :nodes="list" @handle="handle" ></ztree-component>
list = [{
id: "1",
name: "父节点1",
childArr: [{
id: "1-1",
name: "子节点1-1",
childArr: [
{
id: "1-1-1",
name: "子节点1-1-1"
}, {
id: "1-1-2",
name: "子节点1-1-2"
}, {
id: "1-1-3",
name: "子节点1-1-3"
}
]
},
{
id: "1-2",
name: "子节点1-2"
}, {
id: "1-3",
name: "子节点1-3"
}]
},{
id: "1",
name:'父节点2-无子元素'
}]
FAQs
A Vue.js project
We found that vue-ztree-component 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
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.