fix(components): [message-box] vue wraning when button state is loading (#17603)

This commit is contained in:
btea 2024-07-20 11:16:06 +08:00 committed by GitHub
parent 1af2641228
commit ab494bb48a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -153,6 +153,7 @@
import {
computed,
defineComponent,
markRaw,
nextTick,
onBeforeUnmount,
onMounted,
@ -297,8 +298,8 @@ export default defineComponent({
action: '' as Action,
confirmButtonLoading: false,
cancelButtonLoading: false,
confirmButtonLoadingIcon: Loading,
cancelButtonLoadingIcon: Loading,
confirmButtonLoadingIcon: markRaw(Loading),
cancelButtonLoadingIcon: markRaw(Loading),
confirmButtonDisabled: false,
editorErrorMessage: '',
// refer to: https://github.com/ElemeFE/element/commit/2999279ae34ef10c373ca795c87b020ed6753eed