mirror of
https://github.com/sahadev/vue-component-creater-ui.git
synced 2025-07-05 00:12:49 +08:00
17 lines
446 B
JavaScript
17 lines
446 B
JavaScript
// 其它UI组件库应该在这里集成
|
|
function loadVant() {
|
|
(() => import("vant/lib/index.css"))();
|
|
const vantLoadPromise = (() => import("vant"))();
|
|
return vantLoadPromise;
|
|
}
|
|
|
|
function loadAntD() {
|
|
(() => import("ant-design-vue/dist/antd.css"))();
|
|
const vantLoadPromise = (() => import("ant-design-vue"))();
|
|
return vantLoadPromise;
|
|
}
|
|
|
|
export default function loadCompontents() {
|
|
return Promise.all([loadAntD(), loadVant()]);
|
|
}
|