🐛(component): 按需加载下 dropdown 样式污染

This commit is contained in:
sight 2022-05-05 19:52:24 +08:00
parent ed0b508a0f
commit fe3061ec96
2 changed files with 8 additions and 2 deletions

View File

@ -32,8 +32,8 @@
background-color: #fff; background-color: #fff;
} }
.layui-menu li, .layui-dropdown .layui-menu li,
.layui-menu-body-title a { .layui-dropdown .layui-menu-body-title a {
padding: 5px 15px; padding: 5px 15px;
} }

View File

@ -308,6 +308,7 @@ export default {
</script> </script>
<style> <style>
@import "@layui/layui-vue/es/menu/index.css";
.layui-layout-document > .layui-header { .layui-layout-document > .layui-header {
z-index: 99; z-index: 99;
width: 100%; width: 100%;
@ -375,6 +376,11 @@ export default {
padding-left: 10px; padding-left: 10px;
} }
.layui-menu-docs .layui-menu li,
.layui-menu-docs .layui-menu-body-title a {
padding: 5px 15px;
}
.layui-side hr { .layui-side hr {
margin: 8px; margin: 8px;
} }