From 2ed6fc4cee75ee71493dd712d694ac1fb480f346 Mon Sep 17 00:00:00 2001 From: msidolphin Date: Fri, 11 Feb 2022 11:41:29 +0800 Subject: [PATCH] docs: [el-image] add preview-append-to-body (#5901) * docs: [el-image] add preview-append-to-body * chore: rename --- docs/en-US/component/image.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/en-US/component/image.md b/docs/en-US/component/image.md index 4f63b64ca5..df4941538a 100644 --- a/docs/en-US/component/image.md +++ b/docs/en-US/component/image.md @@ -61,6 +61,7 @@ image/image-preview | src | Image source, same as native | string | — | - | | scroll-container | The container to add scroll listener when using lazy load | string / HTMLElement | — | The nearest parent container whose overflow property is auto or scroll | | z-index | set image preview z-index | Number | — | 2000 | +| preview-teleported | whether to append image-viewer to body. A nested parent element attribute transform should have this attribute set to `true` | boolean | — | false | ## Image Events @@ -85,7 +86,7 @@ image/image-preview | initial-index | The initial preview image index, less than or equal to the length of `url-list` | number | int | 0 | | infinite | Whether preview is infinite | boolean | true / false | true | | hide-on-click-modal | Whether user can emit close event when clicking backdrop | boolean | true / false | false | -| append-to-body | whether to append image itself to body. A nested parent element attribute transform should have this attribute set to `true` | boolean | — | false | +| teleported | whether to append image itself to body. A nested parent element attribute transform should have this attribute set to `true` | boolean | — | false | ## ImageViewer Events