Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
224 views
in Technique[技术] by (71.8m points)

vue3.0中如何使用element-ui

vue3.0中如何使用element-ui?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

看了element-ui源码。由于vue3.0在插件install函数的入参从Vue原型(类)改成了app(vue实例e)。导致element-ui中Vue.prototype.* 这样的代码已经全都失效了。所以element-ui铁定是不兼容了。Vue3.0虽然兼容option api。但实际已经开始完全拥抱Composition API了。和react的hook很像。函数式编程。
当前的各种ui框架想要适配3.0,大规模重构基本是跑不掉了。
目前我就正在重构element-ui,不知道还要踩多少坑。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...