mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 11:17:46 +08:00
fix(components): [popper] appendToBody API deprecation (#7534)
* fix(components): [popper] appendToBody API deprecation - Remove `appendToBody` for components still using it. * Remove duplicated attribute
This commit is contained in:
parent
0c583d0967
commit
9a88fb4e46
@ -17,9 +17,9 @@
|
||||
:virtual-ref="triggeringElementRef"
|
||||
:virtual-triggering="splitButton"
|
||||
:disabled="disabled"
|
||||
append-to-body
|
||||
pure
|
||||
:transition="`${ns.namespace.value}-zoom-in-top`"
|
||||
teleported
|
||||
pure
|
||||
persistent
|
||||
@show="$emit('visible-change', true)"
|
||||
@hide="$emit('visible-change', false)"
|
||||
|
@ -9,7 +9,6 @@
|
||||
:transition="transition"
|
||||
:popper-options="popperOptions"
|
||||
:tabindex="tabindex"
|
||||
:append-to-body="appendToBody"
|
||||
:content="content"
|
||||
:offset="offset"
|
||||
:show-after="showAfter"
|
||||
|
@ -106,7 +106,6 @@ const createSelect = (
|
||||
:collapseTagsTooltip="collapseTagsTooltip"
|
||||
:filterable="filterable"
|
||||
:multiple-limit="multipleLimit"
|
||||
:popper-append-to-body="popperAppendToBody"
|
||||
:placeholder="placeholder"
|
||||
:allow-create="allowCreate"
|
||||
:remote="remote"
|
||||
@ -1503,7 +1502,7 @@ describe('Select', () => {
|
||||
|
||||
await nextTick()
|
||||
expect(
|
||||
document.body.querySelector(POPPER_CONTAINER_SELECTOR).innerHTML
|
||||
document.body.querySelector(POPPER_CONTAINER_SELECTOR)!.innerHTML
|
||||
).not.toBe('')
|
||||
})
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
:placement="placement"
|
||||
:show-arrow="false"
|
||||
:stop-popper-mouse-event="false"
|
||||
append-to-body
|
||||
teleported
|
||||
effect="light"
|
||||
pure
|
||||
:popper-class="ns.b()"
|
||||
|
@ -6,7 +6,7 @@
|
||||
pure
|
||||
trigger="click"
|
||||
v-bind="$attrs"
|
||||
append-to-body
|
||||
teleported
|
||||
:transition="`${nsDate.namespace.value}-zoom-in-top`"
|
||||
:popper-class="[`${nsDate.namespace.value}-picker__popper`, popperClass]"
|
||||
:popper-options="elPopperOptions"
|
||||
|
Loading…
Reference in New Issue
Block a user