fix: the shake problem of head menu when mouse hover; 🐛 #115

修复:鼠标移入时顶部菜单抖动问题;
master
iczer 4 years ago
parent 6a3ec944c6
commit 75c165c83f
  1. 6
      src/config/replacer/resolve.config.js

@ -37,6 +37,12 @@ const cssResolve = {
return cssObj.toText() return cssObj.toText()
} }
}, },
'.ant-menu-horizontal>.ant-menu-item-active,.ant-menu-horizontal>.ant-menu-item-open,.ant-menu-horizontal>.ant-menu-item-selected,.ant-menu-horizontal>.ant-menu-item:hover,.ant-menu-horizontal>.ant-menu-submenu-active,.ant-menu-horizontal>.ant-menu-submenu-open,.ant-menu-horizontal>.ant-menu-submenu-selected,.ant-menu-horizontal>.ant-menu-submenu:hover': {
resolve(cssText, cssObj) {
cssObj.selector = cssObj.selector.replace(/.ant-menu-horizontal/g, '.ant-menu-horizontal:not(.ant-menu-dark)')
return cssObj.toText()
}
},
'.ant-layout-sider': { '.ant-layout-sider': {
resolve(cssText, cssObj) { resolve(cssText, cssObj) {
cssObj.selector = '.ant-layout-sider-dark' cssObj.selector = '.ant-layout-sider-dark'

Loading…
Cancel
Save