Commit b266fc0f authored by 郝聪敏's avatar 郝聪敏

feature: 修改tabs内容背景显示异常问题

parent e7edd6c9
...@@ -82,12 +82,14 @@ export default class Activity extends Mixins(TransformStyleMixin) { ...@@ -82,12 +82,14 @@ export default class Activity extends Mixins(TransformStyleMixin) {
gridItemEle.style.transform = 'none'; gridItemEle.style.transform = 'none';
gridItemEle.style.top = `${transformY}px`; gridItemEle.style.top = `${transformY}px`;
// 处理backgroundColor // 处理backgroundColor
const backgroundColor = getStyle(gridItemEle, 'backgroundColor'); const activityEle = document.querySelector('.activity');
const activityBgColor = getStyle(activityEle, 'backgroundColor');
const gridItemEleBgColor = getStyle(gridItemEle, 'backgroundColor');
const crTabs = tabsEle.childNodes[0]; const crTabs = tabsEle.childNodes[0];
crTabs.style.backgroundColor = backgroundColor; crTabs.style.backgroundColor = activityBgColor;
const stickyEle = crTabs?.childNodes[0]; const stickyEle = crTabs?.childNodes[0];
if (stickyEle?.classList.contains('cr-sticky') && stickyEle?.childNodes) { if (stickyEle?.classList.contains('cr-sticky') && stickyEle?.childNodes) {
stickyEle.childNodes[0]?.style.backgroundColor = backgroundColor; stickyEle.childNodes[0]?.style.backgroundColor = gridItemEleBgColor;
} }
} }
} }
......
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
min-height: 100%; min-height: 100%;
background-color: rgb(244, 244, 244); background-color: rgb(244, 244, 244);
box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.2); box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.2);
overflow-x: hidden; // overflow-x: hidden;
overflow-y: scroll; // overflow-y: scroll;
/deep/ .vue-grid-layout { /deep/ .vue-grid-layout {
min-height: 667px; min-height: 667px;
// transform: translateY(-10px); // transform: translateY(-10px);
......
...@@ -28,7 +28,7 @@ export default (appInfo: EggAppConfig) => { ...@@ -28,7 +28,7 @@ export default (appInfo: EggAppConfig) => {
config.static = { config.static = {
prefix: '/public/', prefix: '/public/',
dir: path.join(appInfo.baseDir, 'public'), dir: path.join(appInfo.baseDir, 'public'),
gzip: true // gzip: true
}; };
config.keys = '123456'; config.keys = '123456';
......
...@@ -20376,9 +20376,9 @@ ...@@ -20376,9 +20376,9 @@
"integrity": "sha1-8z/pz7Urv9UgqhgyO8ZdsRCht2w=" "integrity": "sha1-8z/pz7Urv9UgqhgyO8ZdsRCht2w="
}, },
"rollup": { "rollup": {
"version": "2.41.5", "version": "2.42.0",
"resolved": "http://npmprivate.quantgroups.com/rollup/-/rollup-2.41.5.tgz", "resolved": "http://npmprivate.quantgroups.com/rollup/-/rollup-2.42.0.tgz",
"integrity": "sha512-uG+WNNxhOYyeuO7oRt98GA2CNVRgQ67zca75UQVMPzMrLG9FUKzTCgvYVWhtB18TNbV7Uqxo97h+wErAnpFNJw==", "integrity": "sha512-P9bJnaZ2P0hawoJo+Jto8YZZqil9URogNVE4KJeyj6wrUSDIbdMvmj7CsyEFwdXu/I5SiWEzB1hfmLeMldH6ww==",
"requires": { "requires": {
"fsevents": "~2.3.1" "fsevents": "~2.3.1"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment