[调整] panel 组件代码结构

This commit is contained in:
就眠儀式
2021-11-16 13:52:54 +08:00
parent 9b16171edb
commit 3715898049
8 changed files with 31 additions and 23 deletions

View File

@@ -1258,14 +1258,6 @@ a cite {
margin: 0;
}
.layui-panel {
border-width: 1px;
border-style: solid;
border-radius: 2px;
background-color: #fff;
color: #666;
}
.layui-bg-black,
.layui-bg-blue,
.layui-bg-cyan,

View File

@@ -0,0 +1,7 @@
.layui-panel {
border-width: 1px;
border-style: solid;
border-radius: 2px;
background-color: #fff;
color: #666;
}

View File

@@ -6,4 +6,4 @@ Component.install = (app: App) => {
app.component(Component.name || 'LayPanel', Component)
}
export default Component as IDefineComponent
export default Component as IDefineComponent

View File

@@ -1,6 +1,15 @@
<script lang="ts">
export default {
name: "LayPanel"
}
</script>
<script setup lang="ts">
import "./index.less"
</script>
<template>
<div class="layui-panel">
<slot />
</div>
</template>
<script setup name="LayPanel" lang="ts"></script>
</template>