mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-04 12:17:37 +08:00
fix(components): [loading] Compatible with vue3.2.0~12 (#12377)
* fix(components): [loading] Compatible with vue3.2.0~12 * fix(components): [loading] add comment
This commit is contained in:
parent
fb1117afe1
commit
74daf8bd00
@ -98,7 +98,10 @@ const addStyle = async (
|
|||||||
parent: HTMLElement,
|
parent: HTMLElement,
|
||||||
instance: LoadingInstance
|
instance: LoadingInstance
|
||||||
) => {
|
) => {
|
||||||
const { nextZIndex } = (instance.vm as any).zIndex as UseZIndexReturn
|
// Compatible with the instance data format of vue@3.2.12 and earlier versions #12351
|
||||||
|
const { nextZIndex } =
|
||||||
|
((instance.vm as any).zIndex as UseZIndexReturn) ||
|
||||||
|
(instance.vm as any)._.exposed.zIndex
|
||||||
|
|
||||||
const maskStyle: CSSProperties = {}
|
const maskStyle: CSSProperties = {}
|
||||||
if (options.fullscreen) {
|
if (options.fullscreen) {
|
||||||
@ -140,7 +143,10 @@ const addClassList = (
|
|||||||
parent: HTMLElement,
|
parent: HTMLElement,
|
||||||
instance: LoadingInstance
|
instance: LoadingInstance
|
||||||
) => {
|
) => {
|
||||||
const ns = (instance.vm as any).ns as UseNamespaceReturn
|
// Compatible with the instance data format of vue@3.2.12 and earlier versions #12351
|
||||||
|
const ns =
|
||||||
|
((instance.vm as any).ns as UseNamespaceReturn) ||
|
||||||
|
(instance.vm as any)._.exposed.ns
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!['absolute', 'fixed', 'sticky'].includes(instance.originalPosition.value)
|
!['absolute', 'fixed', 'sticky'].includes(instance.originalPosition.value)
|
||||||
|
Loading…
Reference in New Issue
Block a user