1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 20:39:48 +08:00

Correcting scroll error and empty left panel (#573)

* Correcting escroll error

* minimal change
This commit is contained in:
Elsio Sanchez 2021-01-25 11:19:24 -04:00 committed by GitHub
parent d6a03895b7
commit ae46494f20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 2 deletions

View File

@ -140,7 +140,7 @@ export default {
}
}
return {
height: '17%',
height: '11%',
overflow: 'hidden'
}
}

View File

@ -130,6 +130,9 @@ export default {
}
},
created() {
if (this.isEmptyValue(this.currentPoint)) {
this.$store.dispatch('listPointOfSalesFromServer')
}
this.unsubscribe = this.subscribeChanges()
},
mounted() {

View File

@ -12,12 +12,13 @@
<!-- this slot is 'paneL' (with 'L' in uppercase) do not change -->
<div class="left-container">
<el-aside v-show="isShowedRecordNavigation" width="100%">
<div class="small-4 columns">
<div class="small-4 columns" style="height: 100%;">
<div class="w">
<div class="open-left" />
<div :class="styleTableNavigation">
<!-- close record navigation and advanced query panel -->
<el-button
v-show="!isShowedRecordPanel"
:icon="iconShowedRecordNavigation"
circle
style="margin-left: 10px;"
@ -722,6 +723,9 @@ export default {
})
},
handleChangeShowedRecordNavigation(valueToChange) {
const panelRight = document.getElementById('PanelRight')
const heightPanel = panelRight.clientHeight + 50
this.$store.dispatch('setHeight', heightPanel)
this.$store.dispatch('changeWindowAttribute', {
parentUuid: this.windowUuid, // act as parentUuid
window: this.windowMetadata,
@ -816,6 +820,9 @@ export default {
width: 100%;
background-color: transparent;
}
.w {
height: 100%;
}
.open-table-detail-mobile {
position: absolute;
right: 50%;