zl程序教程

您现在的位置是:首页 >  前端

当前栏目

[Vue @Component] Load Vue Async Components

Vueasync Component load Components
2023-09-14 09:00:50 时间

Vue provides a straight-forward syntax for loading components at runtime to help shave off initial bundle size. You simply define a function that returns an object with a component property pointing to a promise that loads a component, then Vue takes care of the rest for you.

 

https://vuejs.org/v2/guide/components-dynamic-async.html#Handling-Loading-State