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:
JeremyWuuuuu 2022-05-06 18:41:50 +08:00 committed by GitHub
parent 0c583d0967
commit 9a88fb4e46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 7 deletions

View File

@ -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)"

View File

@ -9,7 +9,6 @@
:transition="transition"
:popper-options="popperOptions"
:tabindex="tabindex"
:append-to-body="appendToBody"
:content="content"
:offset="offset"
:show-after="showAfter"

View File

@ -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('')
})

View File

@ -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()"

View File

@ -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"