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:
parent
d6a03895b7
commit
ae46494f20
@ -140,7 +140,7 @@ export default {
|
||||
}
|
||||
}
|
||||
return {
|
||||
height: '17%',
|
||||
height: '11%',
|
||||
overflow: 'hidden'
|
||||
}
|
||||
}
|
||||
|
@ -130,6 +130,9 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
if (this.isEmptyValue(this.currentPoint)) {
|
||||
this.$store.dispatch('listPointOfSalesFromServer')
|
||||
}
|
||||
this.unsubscribe = this.subscribeChanges()
|
||||
},
|
||||
mounted() {
|
||||
|
@ -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%;
|
||||
|
Loading…
x
Reference in New Issue
Block a user