npm install
npm run serve
npm run build
npm run lint
A tree full of wonders.
npm install
npm run serve
npm run build
npm run lint
1、合理优化 beforeMountedForTreeFlatList 的默认值
2、添加节点过滤功能 !
3、节点的4个组成部分:节点容器、左、中、右部分,各自都可以接收 provide 进来的,以 plain object 形式存在的样式包。淡化默认样式。
4、标签上,所做的 v-bind 不要把整个 nodeInstance 给 bind 出来。这样会影响程序的性能。provide keys 进去,告诉具体要 bind 出来的是哪几个 key 。
关于 v-bind 有几种情形:
5、虽然已经证明了即使数据量很大,通过 requestIdleCallback 去做完全渲染也不会对交互产生任何负面影响,但是从环保的角度来说,我们还是应该要增加 passive 和 positive 两种模式。
6、状态方法化:把很多去修改状态的操作,封装成 method ,这样 v-bind 出方法之后,只要调用方法,就可以实现和修改状态,实现响应一样的效果。还不需要安排深度 data 。
7、left、main、right就不添加默认的点击事件了。直接把这些内容交给 slot content 来完成。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.