chore: 完成 logo 与 header 按需

This commit is contained in:
就眠儀式 2022-04-12 08:48:45 +08:00
parent 32b7cbb7ab
commit 478159c20e
5 changed files with 24 additions and 21 deletions

View File

@ -0,0 +1,12 @@
@import (reference) "../../theme/variable.less";
.layui-logo {
left: 0;
top: 0;
width: 200px;
height: 60px;
line-height: 60px;
text-align: center;
color: @global-primary-color;
font-size: 16px;
}

View File

@ -10,4 +10,6 @@ export default {
};
</script>
<script setup lang="ts"></script>
<script setup lang="ts">
import "./index.less";
</script>

View File

@ -47,6 +47,14 @@ const matchComponents = [
pattern: /^LayBadge$/,
styleDir: "badge",
},
{
pattern: /^(LayHeader)$/,
styleDir: "header",
},
{
pattern: /^LayLogo$/,
styleDir: "logo",
},
// ....
{
pattern: /^LayAvatarList$/,
@ -86,18 +94,10 @@ const matchComponents = [
pattern: /^(LayForm|LayFormItem)$/,
styleDir: "formItem",
},
{
pattern: /^(LayHeader)$/,
styleDir: "",
},
{
pattern: /^LayLine$/,
styleDir: "",
},
{
pattern: /^LayLogo$/,
styleDir: "",
},
{
pattern: /^(LayMenuItem|LaySubMenu)$/,
styleDir: "menu",

View File

@ -267,17 +267,6 @@ a cite {
margin: 0 auto;
}
.layui-logo {
left: 0;
top: 0;
width: 200px;
height: 60px;
line-height: 60px;
text-align: center;
color: @global-primary-color;
font-size: 16px;
}
.layui-layout-left {
position: absolute !important;
left: 200px;