Browse Source

upd: popup docs

suzigang 3 years ago
parent
commit
5c9aaf53bc

+ 1 - 1
src/packages/__VUE/overlay/doc.en-US.md

@@ -242,7 +242,7 @@ Set `close on click override` to control whether the click mask is closed. If it
 | duration               | Display/hide animation duration, in seconds | string \| number | `0.3`    |
 | duration               | Display/hide animation duration, in seconds | string \| number | `0.3`    |
 | overlay-class          | Custom mask class name   | string         | -      |
 | overlay-class          | Custom mask class name   | string         | -      |
 | overlay-style          | Custom Mask Style   | CSSProperties  | -      |
 | overlay-style          | Custom Mask Style   | CSSProperties  | -      |
-| lock-scroll            | Whether the background is locked when the mask is displayed     | boolean        | `false`  |
+| lock-scroll            | Whether the background is locked when the mask is displayed     | boolean        | `true`  |
 | close-on-click-overlay | Whether to close the mask when clicking. If you set `false`, the `click` event will become invalid | boolean        | `true`   |
 | close-on-click-overlay | Whether to close the mask when clicking. If you set `false`, the `click` event will become invalid | boolean        | `true`   |
 
 
 ### Events
 ### Events

+ 1 - 1
src/packages/__VUE/overlay/doc.md

@@ -240,7 +240,7 @@ app.use(Overlay);
 | duration               | 显示/隐藏的动画时长,单位秒 | string \| number | `0.3`    |
 | duration               | 显示/隐藏的动画时长,单位秒 | string \| number | `0.3`    |
 | overlay-class          | 自定义遮罩类名   | string         | -      |
 | overlay-class          | 自定义遮罩类名   | string         | -      |
 | overlay-style          | 自定义遮罩样式   | CSSProperties  | -      |
 | overlay-style          | 自定义遮罩样式   | CSSProperties  | -      |
-| lock-scroll            | 遮罩显示时的背景是否锁定     | boolean        | `false`  |
+| lock-scroll            | 遮罩显示时的背景是否锁定     | boolean        | `true`  |
 | close-on-click-overlay | 点击遮罩时是否关闭,如果设置 `false`,那么 `click`事件将失效 | boolean  | `true`   |
 | close-on-click-overlay | 点击遮罩时是否关闭,如果设置 `false`,那么 `click`事件将失效 | boolean  | `true`   |
 
 
 ### Events
 ### Events

+ 1 - 1
src/packages/__VUE/overlay/doc.taro.md

@@ -240,7 +240,7 @@ app.use(Overlay);
 | duration               | 显示/隐藏的动画时长,单位秒 | string \| number | `0.3`    |
 | duration               | 显示/隐藏的动画时长,单位秒 | string \| number | `0.3`    |
 | overlay-class          | 自定义遮罩类名   | string         | -      |
 | overlay-class          | 自定义遮罩类名   | string         | -      |
 | overlay-style          | 自定义遮罩样式   | CSSProperties  | -      |
 | overlay-style          | 自定义遮罩样式   | CSSProperties  | -      |
-| lock-scroll            | 遮罩显示时的背景是否锁定     | boolean        | `false`  |
+| lock-scroll            | 遮罩显示时的背景是否锁定     | boolean        | `true`  |
 | close-on-click-overlay | 点击遮罩时是否关闭,如果设置 `false`,那么 `click`事件将失效 | boolean    | `true`   |
 | close-on-click-overlay | 点击遮罩时是否关闭,如果设置 `false`,那么 `click`事件将失效 | boolean    | `true`   |
 
 
 ### Events
 ### Events

+ 1 - 1
src/packages/__VUE/overlay/index.vue

@@ -27,7 +27,7 @@ export default create({
     },
     },
     lockScroll: {
     lockScroll: {
       type: Boolean,
       type: Boolean,
-      default: false
+      default: true
     },
     },
     overlayClass: {
     overlayClass: {
       type: String,
       type: String,

+ 1 - 1
src/packages/__VUE/popup/props.ts

@@ -14,7 +14,7 @@ export const popupProps = {
   },
   },
   lockScroll: {
   lockScroll: {
     type: Boolean,
     type: Boolean,
-    default: false
+    default: true
   },
   },
   closeOnClickOverlay: {
   closeOnClickOverlay: {
     type: Boolean,
     type: Boolean,