diff --git a/frontend/src/components/gridTable/index.vue b/frontend/src/components/gridTable/index.vue index 711977679f..536dcd454e 100644 --- a/frontend/src/components/gridTable/index.vue +++ b/frontend/src/components/gridTable/index.vue @@ -169,6 +169,15 @@ export default { } } + .el-table::before { + content: ''; + position: absolute; + top: 0; + left: 0; + z-index: 10; + border-top: 1px solid rgba(31, 35, 41, 0.15);; + } + ::v-deep .el-table__fixed-body-wrapper { tr { background-color: var(--TableBG, #ffffff) !important; diff --git a/frontend/src/directive/index.js b/frontend/src/directive/index.js index 1273bd4c9e..346a665ab9 100644 --- a/frontend/src/directive/index.js +++ b/frontend/src/directive/index.js @@ -64,6 +64,36 @@ export const bottom2TopDrag = { } } +const closePress = { + inserted: function (el) { + el.querySelector('.el-drawer__close-btn').onmousedown = function (e) { + e.currentTarget.style.background = '#d2d3d4'; + } + el.querySelector('.el-drawer__close-btn').onmouseup = function (e) { + e.currentTarget.style.background = 'none'; + } + } +} + +// const btnPress = { +// inserted: function (el) { +// el.onmousedown = function () { +// el.style.background = '#EFF0F1'; +// } +// el.onmouseenter = function () { +// el.style.background = '#F5F6F7 !important'; +// } +// el.onmouseleave = function () { +// el.style.background = 'none'; +// } +// el.onmouseup = function () { +// el.style.background = 'none'; +// } +// } +// } + +// #EFF0F1 + export default { install(Vue) { // Vue.directive('data-permission', dataPermission) @@ -71,6 +101,8 @@ export default { Vue.directive('left-to-right-drag', left2RightDrag) Vue.directive('right-to-left-drag', right2LeftDrag) Vue.directive('bottom-to-top-drag', bottom2TopDrag) + Vue.directive('closePress', closePress) + // Vue.directive('btnPress', btnPress) } } diff --git a/frontend/src/layout/components/Sidebar/index.vue b/frontend/src/layout/components/Sidebar/index.vue index aa711cb469..1fd71d9501 100644 --- a/frontend/src/layout/components/Sidebar/index.vue +++ b/frontend/src/layout/components/Sidebar/index.vue @@ -1,12 +1,13 @@