mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
feat(components): [dialog] append dialog to any element (#14317)
* feat(components): [dialog] append dialog to any element Add the ability to append dialog not just to body, but to any element * fix(components): [dialog] fix appending to body when append-to is used * docs(components): [dialog] add version to docs append-to attribute
This commit is contained in:
committed by
GitHub
parent
9d65c0be90
commit
02090482ed
@@ -125,6 +125,7 @@ When using `modal` = false, please make sure that `append-to-body` was set to **
|
||||
| modal | whether a mask is displayed | ^[boolean] | true |
|
||||
| modal-class | custom class names for mask | ^[string] | — |
|
||||
| append-to-body | whether to append Dialog itself to body. A nested Dialog should have this attribute set to `true` | ^[boolean] | false |
|
||||
| append-to ^(2.4.3) | which element the Dialog appends to. Will override `append-to-body` | ^[string] | body |
|
||||
| lock-scroll | whether scroll of body is disabled while Dialog is displayed | ^[boolean] | true |
|
||||
| custom-class ^(deprecated) | custom class names for Dialog | ^[string] | '' |
|
||||
| open-delay | the Time(milliseconds) before open | ^[number] | 0 |
|
||||
|
||||
Reference in New Issue
Block a user