fix:调整组件布局
This commit is contained in:
@ -4,21 +4,22 @@
|
||||
<a-layout style="height: 400px;">
|
||||
<a-layout-header>Header</a-layout-header>
|
||||
<a-layout>
|
||||
<a-layout-sider style="background-color: aliceblue;">Sider</a-layout-sider>
|
||||
<a-layout-content>
|
||||
<div style="display: flex;flex-direction: row;">
|
||||
<a-layout-sider style="background-color: aliceblue;width: fit-content;">
|
||||
|
||||
<div ref="el2"
|
||||
style="margin: 5%;display: flex;flex-direction: column;overflow-x:scroll;height: 350px;width: 300px;">
|
||||
<div ref="el2" style="display: flex;flex-direction: column;height: 500px;width: 100%;">
|
||||
<div v-for="item in componentsList" :key="item.id"
|
||||
style="height: 30px;width: 300px;border: 1px solid red;">
|
||||
style="height: 30px;width: 250px;border: 1px solid red;">
|
||||
{{ item.name }}:{{ item.id }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</a-layout-sider>
|
||||
<a-layout-content>
|
||||
<div style="margin-left: 64px;">
|
||||
<div style="display: flex;flex-direction: row;width: 100%;">
|
||||
|
||||
<div class="flex justify-between">
|
||||
<NestedFunction v-model="list" class="w-full"></NestedFunction>
|
||||
<NestedFunction v-model="list"></NestedFunction>
|
||||
{{ list }}
|
||||
</div>
|
||||
|
||||
@ -32,9 +33,9 @@
|
||||
</DynamicComponent>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</a-layout-content>
|
||||
</a-layout>
|
||||
<a-layout-footer>Footer</a-layout-footer>
|
||||
|
||||
Reference in New Issue
Block a user