Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Elements-SY
2023-09-06 18:42:32 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
84472213f12fe88cc45faa774b52a6f7605229de
84472213
1 parent
2fa773f3
modify
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
src/layout/index.vue
src/layout/mixin/ResizeHandler.js
src/utils/index.js
src/views/et86Config/et86RuleConfig/index.vue
src/layout/index.vue
View file @
8447221
...
...
@@ -4,7 +4,7 @@
<sidebar class="sidebar-container"
:style="{ backgroundColor: sideTheme === 'theme-dark' ? variables.menuBg : variables.menuLightBg }" />
<div :class="{ hasTagsView: needTagsView }" class="main-container">
<div :class="{ 'fixed-header': fixedHeader }" ref="headerRef">
<div
class="headerRef"
:class="{ 'fixed-header': fixedHeader }" ref="headerRef">
<navbar />
<tags-view v-if="needTagsView" />
</div>
...
...
src/layout/mixin/ResizeHandler.js
View file @
8447221
...
...
@@ -50,7 +50,6 @@ export default {
let
appMainHeight
=
this
.
$refs
.
appMainBlock
.
$el
.
clientHeight
;
this
.
$store
.
dispatch
(
"app/setAppHeaderBlockCH"
,
appHeaderHeight
);
this
.
$store
.
dispatch
(
"app/setAppMainBlockCH"
,
appMainHeight
);
console
.
log
(
appHeaderHeight
);
},
},
};
...
...
src/utils/index.js
View file @
8447221
...
...
@@ -448,5 +448,7 @@ export function restTableHeight($refs) {
heigth
+=
getPropertyValue
(
$refs
[
key
]);
}
});
return
heigth
;
let
topHeaderClientHeight
=
document
.
querySelector
(
".headerRef"
).
clientHeight
;
return
heigth
+
topHeaderClientHeight
;
}
...
...
src/views/et86Config/et86RuleConfig/index.vue
View file @
8447221
...
...
@@ -71,11 +71,12 @@ export default {
});
},
mounted() {
let headerRef = document.querySelector('.headerRef');
this.$nextTick(() => {
this.tableAttr.maxHeight =
window.innerHeight - restTableHeight(this.$refs);
// console.log(headerRef.clientHeight)
});
console.log(store.getters.appHeaderBlockClientHeight)
},
methods: {
// ET86查询
...
...
Please
register
or
login
to post a comment