File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ This component provides a configuration to all Vue components underneath itself
12
12
export default {
13
13
methods: {
14
14
getPopupContainer (el , dialogContext ) {
15
- if (dialogContext) {
16
- return dialogContext .$refs . wrap ;
15
+ if (dialogContext) {
16
+ return dialogContext .getDialogWrap () ;
17
17
} else {
18
18
return document .body ;
19
19
}
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ ConfigProvider 使用 Vue 的 [provide / inject](https://vuejs.org/v2/api/#provi
12
12
export default {
13
13
methods: {
14
14
getPopupContainer (el , dialogContext ) {
15
- if (dialogContext) {
16
- return dialogContext .$refs . wrap ;
15
+ if (dialogContext) {
16
+ return dialogContext .getDialogWrap () ;
17
17
} else {
18
18
return document .body ;
19
19
}
Original file line number Diff line number Diff line change @@ -112,6 +112,10 @@ export default {
112
112
clearTimeout ( this . timeoutId ) ;
113
113
} ,
114
114
methods : {
115
+ // 对外暴露的 api 不要更改名称或删除
116
+ getDialogWrap ( ) {
117
+ return this . $refs . wrap ;
118
+ } ,
115
119
updatedCallback ( visible ) {
116
120
const mousePosition = this . mousePosition ;
117
121
if ( this . visible ) {
You can’t perform that action at this time.
0 commit comments