> 按需加载</h2> <ul><li>在组件中引入</li></ul> <div class="language-js extra-class"><pre class="language-js"><code><span class="token keyword">import</span> coButton <span class="token keyword">from</span> <span class="token string">'my-cool-ui/package/comps/components/button'</span>
<span class="token keyword">import</span> coInput <span class="token keyword">from</span> <span class="token string">'my-cool-ui/package/comps/components/input'</span>
<span class="token operator">...</span>

componen