• 移动端通讯录组织树https://github.com/yangjingyu/vs-tree

    <vs-tree :data="treeDate" :props="props" breadcrumb :max="5" show-checkbox @limit-check="limitCheck" @check-change="handleCheckChange"> </vs-tree> <script> const data = [ {name: '上海分部', id: 2, pid: 0, children: []}, {name: '成都分部', id: 3, pid: 0}, {name: '广州分部', id: 4, pid: 0}, {name: '沈阳分部', id: 5, pid: 0}, {name: '张三', id: 6, pid: 0, isLeaf: true}, {name: '李四', id: 7, pid: 0, isLeaf: true}, {name: '王五', id: 8, pid: 0, isLeaf: true}, {name: '项目管理部', id: 1006, pid: 1}, {name: '张小虎', id: 1007, pid: 1, isLeaf: true}, {name: '王小二', id: 1008, pid: 1, isLeaf: true}, {name: '李小三', id: 1009, pid: 1, isLeaf: true} ] export default { data() { return { treeDate: data, props: { label: 'name', children: 'children', isLeaf: 'isLeaf' }, count: 1 }; }, methods: { handleCheckChange(data, checked, indeterminate) { console.log(data, checked, indeterminate); }, handleNodeClick(data) { console.log(data); }, limitCheck() { alert('超过最大限制数量'); } } }; </script>

    0
    1652
    168KB
    2020-05-12
    44
  • 持续创作

    授予每个自然月内发布4篇或4篇以上原创或翻译IT博文的用户。不积跬步无以至千里,不积小流无以成江海,程序人生的精彩需要坚持不懈地积累!
  • 创作能手

    授予每个自然周发布1篇到3篇原创IT博文的用户
  • 分享学徒

    成功上传1个资源即可获取
关注 私信
上传资源赚积分or赚钱