SOURCE

console 命令行工具 X clear

                    
>
console
new Vue({
    el: '#app',
    data() {
        return {
            searchValue:'',
            data: [
                {
                title: "parent 1",
                expand: true,
                children: [
                    {
                    title: "parent 1-1",
                    expand: true,
                    children: [
                        {
                        title: "leaf 1-1-1"
                        },
                        {
                        title: "leaf 1-1-2"
                        }
                    ]
                    },
                    {
                    title: "parent 1-2",
                    expand: true,
                    children: [
                        {
                        title: "leaf 1-2-1"
                        },
                        {
                        title: "leaf 1-2-1"
                        }
                    ]
                    }
                ]
                }
            ]
        }
    }
})
<div id="app">
    <i-input v-model="searchValue" placeholder="请输入搜索关键字"></i-input>
    <uino-tree :data="data" :filter-tree="searchValue" />
</div>
#app {
    padding: 20px;
}

本项目引用的自定义外部资源