Эх сурвалжийг харах

style: add layout background color

陈凯龙 3 жил өмнө
parent
commit
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>