[暂存] 待实现 dropdown 组件

This commit is contained in:
就眠仪式 2021-10-05 19:47:42 +08:00
parent ca490d6430
commit eefc41e8b9
2 changed files with 17 additions and 18 deletions

View File

@ -8,10 +8,7 @@
<li>订单管理</li> <li>订单管理</li>
</ul> </ul>
<div class="layui-tab-content"> <div class="layui-tab-content">
<div class="layui-tab-item layui-show"> <div class="layui-tab-item layui-show"> 内容1 </div>
1. 高度默认自适应也可以随意固宽
<br>2. Tab进行了响应式处理所以无需担心数量多少
</div>
<div class="layui-tab-item"> 内容2 </div> <div class="layui-tab-item"> 内容2 </div>
<div class="layui-tab-item"> 内容3 </div> <div class="layui-tab-item"> 内容3 </div>
<div class="layui-tab-item"> 内容4 </div> <div class="layui-tab-item"> 内容4 </div>
@ -21,5 +18,4 @@
</template> </template>
<script setup name="LayTab" lang="ts"> <script setup name="LayTab" lang="ts">
</script> </script>

View File

@ -1,4 +1,7 @@
<template> <template>
<div class="layui-tab-item">
<slot></slot>
</div>
</template> </template>
<script setup name="LayTabItem" lang="ts"> <script setup name="LayTabItem" lang="ts">