提交 c2867eaa 编写于 作者: 雪洛's avatar 雪洛

fix: 修复弹窗位置随页面滚动的Bug

上级 5b4ec2a0
...@@ -1015,6 +1015,7 @@ ...@@ -1015,6 +1015,7 @@
"navigationBarTitleText": "模板" "navigationBarTitleText": "模板"
} }
}, },
// #ifdef APP
{ {
"path": "pages/template/list-news/list-news", "path": "pages/template/list-news/list-news",
"style": { "style": {
...@@ -1027,6 +1028,7 @@ ...@@ -1027,6 +1028,7 @@
"navigationBarTitleText": "详情示例" "navigationBarTitleText": "详情示例"
} }
}, },
// #endif
{ {
"path": "pages/template/drop-card/drop-card", "path": "pages/template/drop-card/drop-card",
"style": { "style": {
...@@ -1078,6 +1080,7 @@ ...@@ -1078,6 +1080,7 @@
"navigationBarTitleText": "半屏弹窗" "navigationBarTitleText": "半屏弹窗"
} }
}, },
// #ifdef APP
{ {
"path": "pages/template/long-list/long-list", "path": "pages/template/long-list/long-list",
"style": { "style": {
...@@ -1092,6 +1095,7 @@ ...@@ -1092,6 +1095,7 @@
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
}, },
// #endif
{ {
"path": "pages/template/pull-zoom-image/pull-zoom-image", "path": "pages/template/pull-zoom-image/pull-zoom-image",
"style": { "style": {
......
...@@ -29,8 +29,7 @@ ...@@ -29,8 +29,7 @@
<!-- #ifdef APP --> <!-- #ifdef APP -->
</scroll-view> </scroll-view>
<!-- #endif --> <!-- #endif -->
<view ref="pop" @click="hidePop()" <view ref="pop" @click="hidePop()" class="popup">
style="width: 100%; height: 100%; position: absolute;align-items: center;justify-content: center; display: none;background-color: rgba(16, 16, 16, 0.5);">
<view style="width: 90%;background-color: white;" @click="stopClickPop"> <view style="width: 90%;background-color: white;" @click="stopClickPop">
<api-set-tabbar></api-set-tabbar> <api-set-tabbar></api-set-tabbar>
</view> </view>
...@@ -160,7 +159,7 @@ ...@@ -160,7 +159,7 @@
name: 'element draw', name: 'element draw',
url: 'element-draw', url: 'element-draw',
api: ["Element.getDrawableContext"] api: ["Element.getDrawableContext"]
},{ }, {
name: 'element截图', name: 'element截图',
url: 'element-takesnapshot', url: 'element-takesnapshot',
api: ["Element.takeSnapshot"] api: ["Element.takeSnapshot"]
...@@ -551,4 +550,20 @@ ...@@ -551,4 +550,20 @@
.item { .item {
margin-bottom: 12px; margin-bottom: 12px;
} }
.popup {
width: 100%;
/* #ifdef APP */
position: absolute;
height: 100%;
/* #else */
position: fixed;
top: var(--window-top);
bottom: var(--window-bottom);
/* #endif */
align-items: center;
justify-content: center;
display: none;
background-color: rgba(16, 16, 16, 0.5);
}
</style> </style>
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
data() { data() {
return { return {
list: [ list: [
// #ifdef APP
{ {
id: 'long-list', id: 'long-list',
url: 'long-list', url: 'long-list',
...@@ -79,6 +80,7 @@ ...@@ -79,6 +80,7 @@
open: false, open: false,
pages: [] as Page[], pages: [] as Page[],
}, },
// #endif
{ {
id: 'scroll-fold-nav', id: 'scroll-fold-nav',
url: 'scroll-fold-nav', url: 'scroll-fold-nav',
...@@ -125,6 +127,7 @@ ...@@ -125,6 +127,7 @@
open: false, open: false,
pages: [] as Page[], pages: [] as Page[],
}, },
// #ifdef APP
{ {
id: 'scroll-sticky', id: 'scroll-sticky',
url: 'scroll-sticky', url: 'scroll-sticky',
...@@ -132,6 +135,7 @@ ...@@ -132,6 +135,7 @@
open: false, open: false,
pages: [] as Page[], pages: [] as Page[],
}, },
// #endif
{ {
id: 'half-screen', id: 'half-screen',
url: 'half-screen', url: 'half-screen',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册