diff --git a/.eslintignore b/.eslintignore index 2bc76f59..ff3710d8 100755 --- a/.eslintignore +++ b/.eslintignore @@ -3,3 +3,4 @@ /dist/ /*.js /src/plugin/vue-bigdata-table +/src/pages/demo/charts diff --git a/src/assets/style/theme/theme.scss b/src/assets/style/theme/theme.scss index 38288756..968c26f0 100644 --- a/src/assets/style/theme/theme.scss +++ b/src/assets/style/theme/theme.scss @@ -52,12 +52,19 @@ float: left; border-bottom: none; background-color: transparent; - .el-menu-item { + %header-menu-item { @extend %unable-select; + i.fa { + font-size: 16px; + margin-right: 4px; + } + } + .el-menu-item { + @extend %header-menu-item; border-bottom: none; } .el-submenu { - @extend %unable-select; + @extend %header-menu-item; .el-submenu__title { border-bottom: none; } @@ -227,17 +234,21 @@ transition: border-top-color 0s; color: $theme-header-item-color; background: $theme-header-item-background-color; + i.fa { color: inherit; } &:hover { color: $theme-header-item-color-hover; background: $theme-header-item-background-color-hover; + i.fa { color: inherit; } } &:focus { color: $theme-header-item-color-focus; background: $theme-header-item-background-color-focus; + i.fa { color: inherit; } } &.is-active { color: $theme-header-item-color-active; background: $theme-header-item-background-color-active; + i.fa { color: inherit; } } } .el-submenu { @@ -245,12 +256,14 @@ transition: border-top-color 0s; color: $theme-header-item-color; background: $theme-header-item-background-color; + i.fa { color: inherit; } .el-submenu__icon-arrow { color: $theme-header-item-color; } &:hover { color: $theme-header-item-color-hover; background: $theme-header-item-background-color-hover; + i.fa { color: inherit; } .el-submenu__icon-arrow { color: $theme-header-item-color-hover; } @@ -258,6 +271,7 @@ &:focus { color: $theme-header-item-color-focus; background: $theme-header-item-background-color-focus; + i.fa { color: inherit; } .el-submenu__icon-arrow { color: $theme-header-item-color-focus; } diff --git a/src/components/core/d2-layout-main/components/-menu-item/index.vue b/src/components/core/d2-layout-main/components/-menu-item/index.vue index 845b83ba..caafa43f 100644 --- a/src/components/core/d2-layout-main/components/-menu-item/index.vue +++ b/src/components/core/d2-layout-main/components/-menu-item/index.vue @@ -1,6 +1,6 @@ diff --git a/src/components/core/d2-layout-main/components/-menu-side/index.vue b/src/components/core/d2-layout-main/components/-menu-side/index.vue index ecf0413a..afeb81f0 100644 --- a/src/components/core/d2-layout-main/components/-menu-side/index.vue +++ b/src/components/core/d2-layout-main/components/-menu-side/index.vue @@ -1,6 +1,6 @@