Skip to content

Commit 3fe249b

Browse files
committed
fix: safeArea 属性不生效的问题
fix: 点击内容,再点击遮罩无法关闭的Bug
1 parent dabbca5 commit 3fe249b

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

docs/components/forms.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ uni-app的内置组件已经有了 `<form>`组件,用于提交表单内容。
3030
- `focus` 属性在开发者工具从不生效,需要真机测试
3131
- `resetFields` 方法不会重置原生组件和三方组件的值
3232
- 如果配置 `validateTrigger` 属性为 `bind` 且表单域组件使用 `input` 事件触发会耗损部分性能,请谨慎使用
33+
- 组件支持 nvue ,需要在 `manifest.json > app-plus` 节点下配置 `"nvueStyleCompiler" : "uni-app"`
3334
- 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839
3435
:::
3536

docs/components/popup.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ url : pages/vue/popup/popup
2525
- 使用 `npm` 方式引入组件,如果确认引用正确,但是提示未注册组件或显示不正常,请尝试重新编译项目
2626
- `uni-popup` 中尽量不要使用 `scroll-view` 嵌套过多的内容,可能会影响组件的性能,导致组件无法打开或者打开卡顿
2727
- `uni-popup` 不会覆盖原生 tabbar 和原生导航栏
28+
- 组件支持 nvue ,需要在 `manifest.json > app-plus` 节点下配置 `"nvueStyleCompiler" : "uni-app"`
2829
- 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839
2930

3031
:::

uni_modules/uni-popup/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## 1.4.3
22
- 修复 错误的 watch 字段
3+
- 修复 safeArea 属性不生效的问题
4+
- 修复 点击内容,再点击遮罩无法关闭的Bug
35
## 1.4.2(2021-05-12)
46
- 新增 组件示例地址
57
## 1.4.1(2021-04-29)

uni_modules/uni-popup/components/uni-popup/uni-popup.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<view @touchstart="touchstart" >
44
<uni-transition key="1" v-if="maskShow" name="mask" mode-class="fade" :styles="maskClass" :duration="duration" :show="showTrans" @click="onTap" />
55
</view>
6-
7-
<uni-transition key="2" :mode-class="ani" name="content" :styles="transClass" :duration="duration" :show="showTrans" @click="onTap">
6+
7+
<uni-transition key="2" :mode-class="ani" name="content" :styles="transClass" :duration="duration" :show="showTrans" @touchstart="touchstart" @click="onTap">
88
<view class="uni-popup__wrapper" :style="{ backgroundColor: bg }" :class="[popupstyle]" @click="clear"><slot /></view>
99
</uni-transition>
1010
<!-- #ifdef H5 -->
@@ -200,7 +200,7 @@ export default {
200200
// #endif
201201
this.clearPropagation = true
202202
},
203-
203+
204204
open(direction) {
205205
let innerType = ['top', 'center', 'bottom', 'left', 'right', 'message', 'dialog', 'share']
206206
if (!(direction && innerType.indexOf(direction) !== -1)) {
@@ -233,7 +233,7 @@ export default {
233233
touchstart(){
234234
this.clearPropagation = false
235235
},
236-
236+
237237
onTap() {
238238
if(this.clearPropagation) return
239239
if (!this.mkclick) return
@@ -369,8 +369,8 @@ export default {
369369
position: relative;
370370
/* iphonex 等安全区设置,底部安全区适配 */
371371
/* #ifndef APP-NVUE */
372-
padding-bottom: constant(safe-area-inset-bottom);
373-
padding-bottom: env(safe-area-inset-bottom);
372+
// padding-bottom: constant(safe-area-inset-bottom);
373+
// padding-bottom: env(safe-area-inset-bottom);
374374
/* #endif */
375375
&.left,
376376
&.right {

0 commit comments

Comments
 (0)