From 432d86838ae155ae21c6eab3d864f6c1b6b8901e Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 29 Oct 2019 17:37:38 +0800 Subject: [PATCH] docs(Dialog): add lazy-render prop (#4865) --- src/dialog/README.md | 1 + src/dialog/README.zh-CN.md | 1 + 2 files changed, 2 insertions(+) diff --git a/src/dialog/README.md b/src/dialog/README.md index d871b8f2d..6a0caaae1 100644 --- a/src/dialog/README.md +++ b/src/dialog/README.md @@ -159,6 +159,7 @@ export default { | overlay-style | Custom overlay style | *object* | - | 2.2.7 | | close-on-popstate | Whether to close when popstate | *boolean* | `false` | 2.0.5 | | close-on-click-overlay | Whether to close when click overlay | *boolean* | `false` | - | +| lazy-render | Whether to lazy render util appeared | *boolean* | `true` | - | | lock-scroll | Whether to lock background scroll | *boolean* | `true` | - | | before-close | Callback before close,
call done() to close dialog,
call done(false) to cancel loading | (action: string, done: Function) => void | - | - | | transition | Transition, equivalent to `name` prop of [transtion](https://vuejs.org/v2/api/#transition) | *string* | - | 2.2.6 | diff --git a/src/dialog/README.zh-CN.md b/src/dialog/README.zh-CN.md index 0bd5becd7..4a5fe6244 100644 --- a/src/dialog/README.zh-CN.md +++ b/src/dialog/README.zh-CN.md @@ -190,6 +190,7 @@ export default { | overlay-style | 自定义遮罩层样式 | *object* | - | 2.2.7 | | close-on-popstate | 是否在页面回退时自动关闭 | *boolean* | `false` | 2.0.5 | | close-on-click-overlay | 是否在点击遮罩层后关闭弹窗 | *boolean* | `false` | - | +| lazy-render | 是否在显示弹层时才渲染节点 | *boolean* | `true` | - | | lock-scroll | 是否锁定背景滚动 | *boolean* | `true` | - | | before-close | 关闭前的回调函数,
调用 done() 后关闭弹窗,
调用 done(false) 阻止弹窗关闭 | *(action, done) => void* | - | - | | transition | 动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性 | *string* | - | 2.2.6 |