diff --git a/Api/Ewide.Core/Ewide.Core.Web.Src/src/assets/style/frame/dark.less b/Api/Ewide.Core/Ewide.Core.Web.Src/src/assets/style/frame/dark.less index bc360c4..652c2f2 100644 --- a/Api/Ewide.Core/Ewide.Core.Web.Src/src/assets/style/frame/dark.less +++ b/Api/Ewide.Core/Ewide.Core.Web.Src/src/assets/style/frame/dark.less @@ -2,6 +2,7 @@ .dark { .main(@nav-background: @layout-header-background; @nav-box-shadow-color: fade(@black, 25%); + @nav-scrollbar-background: fade(@white, 50%); @logo-color: @white; @logo-box-shadow: none; @header-action-color: fade(@white, 60%); diff --git a/Api/Ewide.Core/Ewide.Core.Web.Src/src/assets/style/frame/light.less b/Api/Ewide.Core/Ewide.Core.Web.Src/src/assets/style/frame/light.less index fff53e1..040ffe7 100644 --- a/Api/Ewide.Core/Ewide.Core.Web.Src/src/assets/style/frame/light.less +++ b/Api/Ewide.Core/Ewide.Core.Web.Src/src/assets/style/frame/light.less @@ -2,6 +2,7 @@ .light { .main(@nav-background: @white; @nav-box-shadow-color: fade(@black, 5%); + @nav-scrollbar-background: fade(@black, 30%); @logo-color: @black; @logo-box-shadow: inset -1px -1px 1px @border-color-split; @header-action-color: fade(@black, 35%); diff --git a/Api/Ewide.Core/Ewide.Core.Web.Src/src/assets/style/main.less b/Api/Ewide.Core/Ewide.Core.Web.Src/src/assets/style/main.less index 4bcfa5c..15660a7 100644 --- a/Api/Ewide.Core/Ewide.Core.Web.Src/src/assets/style/main.less +++ b/Api/Ewide.Core/Ewide.Core.Web.Src/src/assets/style/main.less @@ -3,6 +3,7 @@ .main(@nav-background: @layout-header-background, @nav-box-shadow-color: fade(@black, 25%), + @nav-scrollbar-background: fade(@white, 30%), @logo-color: @white, @logo-box-shadow: none, @header-action-color: fade(@white, 60%), @@ -35,12 +36,14 @@ box-shadow: inset 1px 1px 10px rgba(0, 0, 0, .05); } } - >.ant-input-search { + >.ant-input-search, + >.ant-select-auto-complete { display: flex; align-items: center; margin: 5px @padding-md; .ant-input { + width: 180px; height: 34px; padding: 5px 30px 5px 11px; @@ -52,6 +55,9 @@ box-shadow: none; } } + .ant-select-selection { + background-color: transparent; + } } } } @@ -194,7 +200,8 @@ } } } - >.ant-input-search { + >.ant-input-search, + >.ant-select-auto-complete { .ant-input { &:focus { background-color: fade(@black, 5%); @@ -256,9 +263,27 @@ height: 100%; box-shadow: 2px 0 8px @nav-box-shadow-color; + .swiper-scrollbar { + transition: @animation-duration-slow; + transition-property: opacity; + + opacity: 0; + } + .swiper-scrollbar-drag { + background-color: @nav-scrollbar-background; + } + &:hover { + .swiper-scrollbar { + opacity: 1; + } + } } .swiper-slide { height: auto; + min-height: 100%; + >.ant-spin-nested-loading { + height: 100%; + } } } } @@ -298,7 +323,8 @@ } } } - >.ant-input-search { + >.ant-input-search, + >.ant-select-auto-complete { .ant-input { color: @header-search-color; background-color: @header-search-background; @@ -306,7 +332,7 @@ background-color: @header-search-focus-background; } } - .ant-input-search-icon { + .anticon-search { color: @header-search-icon-color; &:hover { color: @header-search-icon-hover-color; diff --git a/Api/Ewide.Core/Ewide.Core.Web.Src/src/components/yoTreeLayout/index.js b/Api/Ewide.Core/Ewide.Core.Web.Src/src/components/yoTreeLayout/index.js index 3dafefd..c6c74fb 100644 --- a/Api/Ewide.Core/Ewide.Core.Web.Src/src/components/yoTreeLayout/index.js +++ b/Api/Ewide.Core/Ewide.Core.Web.Src/src/components/yoTreeLayout/index.js @@ -81,6 +81,7 @@ export default { data.forEach((p, i) => { n[n.length - 1] = i p.key = n.join('-') + p.scopedSlots = { title: 'title' } if (p.children) { this.generateKey(p.children, Object.assign([], n)) } @@ -125,14 +126,20 @@ export default { mousewheel: true, } - const slots = { + const scopedSlots = { title: ({ title }) => { return (