From 463fc93af9100011b4fdc4c6796921326b37e8ca Mon Sep 17 00:00:00 2001
From: chenghongxing <1126263215@qq.com>
Date: Sat, 3 Oct 2020 00:20:30 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20popup=20container=20problem=20of=20Advan?=
=?UTF-8?q?ceTable.vue=20in=20full=20screen=20mode;=20:bug:=20fix=EF=BC=9A?=
=?UTF-8?q?=E9=AB=98=E7=BA=A7=E8=A1=A8=E6=A0=BC=E5=85=A8=E5=B1=8F=E6=A8=A1?=
=?UTF-8?q?=E5=BC=8F=E4=B8=8B=E6=B5=AE=E5=B1=82=E7=9A=84=E6=98=BE=E7=A4=BA?=
=?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/table/advance/AdvanceTable.vue | 6 +++++-
src/components/table/advance/SearchArea.vue | 17 +++++++++++------
2 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/src/components/table/advance/AdvanceTable.vue b/src/components/table/advance/AdvanceTable.vue
index cf36384..1dd73a2 100644
--- a/src/components/table/advance/AdvanceTable.vue
+++ b/src/components/table/advance/AdvanceTable.vue
@@ -131,6 +131,7 @@
},
inFullScreen() {
const el = this.$refs.table
+ el.classList.add('beauty-scroll')
if (el.requestFullscreen) {
el.requestFullscreen()
return true
@@ -145,6 +146,7 @@
return true
}
this.$message.warn('对不起,您的浏览器不支持全屏模式')
+ el.classList.remove('beauty-scroll')
return false
},
outFullScreen() {
@@ -157,6 +159,7 @@
} else if (document.msExitFullscreen) {
document.msExiFullscreen()
}
+ this.$refs.table.classList.remove('beauty-scroll')
},
onColumnsReset(conditions) {
this.$emit('reset', conditions)
@@ -193,6 +196,7 @@
\ No newline at end of file
+
diff --git a/src/components/table/advance/SearchArea.vue b/src/components/table/advance/SearchArea.vue
index ef1b2da..e611b95 100644
--- a/src/components/table/advance/SearchArea.vue
+++ b/src/components/table/advance/SearchArea.vue
@@ -1,5 +1,6 @@
+
@@ -13,28 +14,28 @@
{{col.title}}:
-
onCalendarChange(time, timeStr, col)" @openChange="open => onCalendarOpenChange(open, col)" class="time-picker" size="small" />
+ onCalendarChange(time, timeStr, col)" @openChange="open => onCalendarOpenChange(open, col)" class="time-picker" size="small" :get-popup-container="() => $refs.root"/>
{{col.title}}:
-
onCalendarChange(date, dateStr, col)" @openChange="open => onCalendarOpenChange(open, col)" show-time class="datetime-picker" size="small" />
+ onCalendarChange(date, dateStr, col)" @openChange="open => onCalendarOpenChange(open, col)" class="datetime-picker" size="small" show-time :getCalendarContainer="() => $refs.root"/>
-
+
@@ -199,6 +200,9 @@
\ No newline at end of file
+