diff --git a/nezha-fronted/src/components/charts/chart-alert-list.vue b/nezha-fronted/src/components/charts/chart-alert-list.vue index e2030fcde..e6180da5f 100644 --- a/nezha-fronted/src/components/charts/chart-alert-list.vue +++ b/nezha-fronted/src/components/charts/chart-alert-list.vue @@ -133,7 +133,7 @@ - + diff --git a/nezha-fronted/src/components/charts/chart-table.vue b/nezha-fronted/src/components/charts/chart-table.vue index 089fecfc9..d9c470899 100644 --- a/nezha-fronted/src/components/charts/chart-table.vue +++ b/nezha-fronted/src/components/charts/chart-table.vue @@ -54,7 +54,7 @@ - + diff --git a/nezha-fronted/src/components/common/pagination.vue b/nezha-fronted/src/components/common/pagination.vue index aabade534..a82f3f334 100644 --- a/nezha-fronted/src/components/common/pagination.vue +++ b/nezha-fronted/src/components/common/pagination.vue @@ -12,7 +12,7 @@ layout="total, prev, pager, next, slot" :total="this.pageObj.total" > - + @@ -28,7 +28,8 @@ export default { pageObj:{}, tableId:{}, postPageSizes:{}, - appendToBody:{default:true} + appendToBody:{default:true}, + popClass:{} }, data() { return { @@ -50,6 +51,26 @@ export default { }; }, methods: { + popperVisible:function(visible){ + console.log('fixed') + if(visible==true){ + this.$nextTick(()=>{ + if(this.popClass&&this.popClass==='out-popper-fix'){ + let popDoms=document.querySelectorAll('.out-popper-fix'); + popDoms.forEach(item=>{ + item.style.bottom=item.style.top; + item.style.top='unset'; + + let icon=item.querySelector('.popper__arrow'); + icon.style.bottom=icon.style.top; + icon.style.top='unset'; + icon.style.transform='rotate(180deg)' + + }) + } + }) + } + }, background() { this.backgroundColor(); }, @@ -117,6 +138,12 @@ export default { handler(n,o){ this.resetPageSizes(); } + }, + popClass:{ + immediate:true, + handler(n,o){ + console.log(n) + } } } };