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

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

parent e7edd6c9
......@@ -82,12 +82,14 @@ export default class Activity extends Mixins(TransformStyleMixin) {
gridItemEle.style.transform = 'none';
gridItemEle.style.top = `${transformY}px`;
// 处理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];
crTabs.style.backgroundColor = backgroundColor;
crTabs.style.backgroundColor = activityBgColor;
const stickyEle = crTabs?.childNodes[0];
if (stickyEle?.classList.contains('cr-sticky') && stickyEle?.childNodes) {
stickyEle.childNodes[0]?.style.backgroundColor = backgroundColor;
stickyEle.childNodes[0]?.style.backgroundColor = gridItemEleBgColor;
}
}
}
......
......@@ -34,8 +34,8 @@
min-height: 100%;
background-color: rgb(244, 244, 244);
box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.2);
overflow-x: hidden;
overflow-y: scroll;
// overflow-x: hidden;
// overflow-y: scroll;
/deep/ .vue-grid-layout {
min-height: 667px;
// transform: translateY(-10px);
......
......@@ -28,7 +28,7 @@ export default (appInfo: EggAppConfig) => {
config.static = {
prefix: '/public/',
dir: path.join(appInfo.baseDir, 'public'),
gzip: true
// gzip: true
};
config.keys = '123456';
......
......@@ -20376,9 +20376,9 @@
"integrity": "sha1-8z/pz7Urv9UgqhgyO8ZdsRCht2w="
},
"rollup": {
"version": "2.41.5",
"resolved": "http://npmprivate.quantgroups.com/rollup/-/rollup-2.41.5.tgz",
"integrity": "sha512-uG+WNNxhOYyeuO7oRt98GA2CNVRgQ67zca75UQVMPzMrLG9FUKzTCgvYVWhtB18TNbV7Uqxo97h+wErAnpFNJw==",
"version": "2.42.0",
"resolved": "http://npmprivate.quantgroups.com/rollup/-/rollup-2.42.0.tgz",
"integrity": "sha512-P9bJnaZ2P0hawoJo+Jto8YZZqil9URogNVE4KJeyj6wrUSDIbdMvmj7CsyEFwdXu/I5SiWEzB1hfmLeMldH6ww==",
"requires": {
"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