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>
<script setup lang="ts"></script> <script setup lang="ts">
import "./index.less";
</script>

View File

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

View File

@ -267,17 +267,6 @@ a cite {
margin: 0 auto; 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 { .layui-layout-left {
position: absolute !important; position: absolute !important;
left: 200px; left: 200px;