feat: 异步动态加载组件
parent
3a961fdf39
commit
f435b831c2
@ -0,0 +1,11 @@
|
||||
<template>
|
||||
<div class="p-5 space-y-5 !bg-gray-100">
|
||||
<el-card header="我是头部"> </el-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
@ -0,0 +1,12 @@
|
||||
export const moduleAComponents = [
|
||||
{
|
||||
component: 'item1',
|
||||
title: '我是item1的名称',
|
||||
name: 'item1',
|
||||
},
|
||||
{
|
||||
component: 'item2',
|
||||
title: '我是item2的名称',
|
||||
name: 'item2',
|
||||
},
|
||||
];
|
||||
@ -0,0 +1,11 @@
|
||||
<template>
|
||||
<div class="p-5 space-y-5 !bg-gray-100">
|
||||
<el-card header="我是模块A-item1"> </el-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
@ -0,0 +1,11 @@
|
||||
<template>
|
||||
<div class="p-5 space-y-5 !bg-gray-100">
|
||||
<el-card header="我是模块A-item2"> </el-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
Loading…
Reference in New Issue