瀏覽代碼

style: add layout background color

陈凯龙 3 年之前
父節點
當前提交
9b614fe892
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7 2
      src/layout/Layout.vue

+ 7 - 2
src/layout/Layout.vue

@@ -67,7 +67,12 @@ export default defineComponent({
 </script>
 
 <style lang="less" scoped>
-:deep(.@{elNamespace}-scrollbar__view) {
-  height: 100% !important;
+@prefix-cls: ~'@{namespace}-layout';
+
+.@{prefix-cls} {
+  background-color: var(--app-contnet-bg-color);
+  :deep(.@{elNamespace}-scrollbar__view) {
+    height: 100% !important;
+  }
 }
 </style>