mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-13 23:20:12 +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 {
|
return {
|
||||||
height: '17%',
|
height: '11%',
|
||||||
overflow: 'hidden'
|
overflow: 'hidden'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -130,6 +130,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
if (this.isEmptyValue(this.currentPoint)) {
|
||||||
|
this.$store.dispatch('listPointOfSalesFromServer')
|
||||||
|
}
|
||||||
this.unsubscribe = this.subscribeChanges()
|
this.unsubscribe = this.subscribeChanges()
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -12,12 +12,13 @@
|
|||||||
<!-- this slot is 'paneL' (with 'L' in uppercase) do not change -->
|
<!-- this slot is 'paneL' (with 'L' in uppercase) do not change -->
|
||||||
<div class="left-container">
|
<div class="left-container">
|
||||||
<el-aside v-show="isShowedRecordNavigation" width="100%">
|
<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="w">
|
||||||
<div class="open-left" />
|
<div class="open-left" />
|
||||||
<div :class="styleTableNavigation">
|
<div :class="styleTableNavigation">
|
||||||
<!-- close record navigation and advanced query panel -->
|
<!-- close record navigation and advanced query panel -->
|
||||||
<el-button
|
<el-button
|
||||||
|
v-show="!isShowedRecordPanel"
|
||||||
:icon="iconShowedRecordNavigation"
|
:icon="iconShowedRecordNavigation"
|
||||||
circle
|
circle
|
||||||
style="margin-left: 10px;"
|
style="margin-left: 10px;"
|
||||||
@ -722,6 +723,9 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleChangeShowedRecordNavigation(valueToChange) {
|
handleChangeShowedRecordNavigation(valueToChange) {
|
||||||
|
const panelRight = document.getElementById('PanelRight')
|
||||||
|
const heightPanel = panelRight.clientHeight + 50
|
||||||
|
this.$store.dispatch('setHeight', heightPanel)
|
||||||
this.$store.dispatch('changeWindowAttribute', {
|
this.$store.dispatch('changeWindowAttribute', {
|
||||||
parentUuid: this.windowUuid, // act as parentUuid
|
parentUuid: this.windowUuid, // act as parentUuid
|
||||||
window: this.windowMetadata,
|
window: this.windowMetadata,
|
||||||
@ -816,6 +820,9 @@ export default {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
.w {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
.open-table-detail-mobile {
|
.open-table-detail-mobile {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 50%;
|
right: 50%;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user