mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-23 09:40:25 +08:00
fix: mouse events ignored on modal loading (#5409)
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
CI / CI OK (push) Has been cancelled
Deploy Website on push / Rerun on failure (push) Has been cancelled
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
CI / CI OK (push) Has been cancelled
Deploy Website on push / Rerun on failure (push) Has been cancelled
This commit is contained in:
parent
509b268fba
commit
2d0859a727
@ -252,7 +252,7 @@ const getAppendTo = computed(() => {
|
|||||||
ref="wrapperRef"
|
ref="wrapperRef"
|
||||||
:class="
|
:class="
|
||||||
cn('relative min-h-40 flex-1 overflow-y-auto p-3', contentClass, {
|
cn('relative min-h-40 flex-1 overflow-y-auto p-3', contentClass, {
|
||||||
'pointer-events-none overflow-hidden': showLoading || submitting,
|
'overflow-hidden': showLoading || submitting,
|
||||||
})
|
})
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
|
@ -121,7 +121,7 @@ const bindProps = computed(() => {
|
|||||||
[`onUpdate:${props.modelPropName}`]: (val: string) => {
|
[`onUpdate:${props.modelPropName}`]: (val: string) => {
|
||||||
modelValue.value = val;
|
modelValue.value = val;
|
||||||
},
|
},
|
||||||
...objectOmit(attrs, ['onUpdate:value']),
|
...objectOmit(attrs, [`onUpdate:${props.modelPropName}`]),
|
||||||
...(props.visibleEvent
|
...(props.visibleEvent
|
||||||
? {
|
? {
|
||||||
[props.visibleEvent]: handleFetchForVisible,
|
[props.visibleEvent]: handleFetchForVisible,
|
||||||
@ -191,18 +191,16 @@ function emitChange() {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div v-bind="{ ...$attrs }">
|
<component
|
||||||
<component
|
:is="component"
|
||||||
:is="component"
|
v-bind="bindProps"
|
||||||
v-bind="bindProps"
|
:placeholder="$attrs.placeholder"
|
||||||
:placeholder="$attrs.placeholder"
|
>
|
||||||
>
|
<template v-for="item in Object.keys($slots)" #[item]="data">
|
||||||
<template v-for="item in Object.keys($slots)" #[item]="data">
|
<slot :name="item" v-bind="data || {}"></slot>
|
||||||
<slot :name="item" v-bind="data || {}"></slot>
|
</template>
|
||||||
</template>
|
<template v-if="loadingSlot && loading" #[loadingSlot]>
|
||||||
<template v-if="loadingSlot && loading" #[loadingSlot]>
|
<LoaderCircle class="animate-spin" />
|
||||||
<LoaderCircle class="animate-spin" />
|
</template>
|
||||||
</template>
|
</component>
|
||||||
</component>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user