mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [message] the value of exposeProxy may be null (#9378)
* fix(components): [message] the value of exposeProxy may be null * feat: use exposed
This commit is contained in:
@@ -26,5 +26,5 @@ export const getInstance = (id: string) => {
|
||||
export const getLastOffset = (id: string): number => {
|
||||
const { prev } = getInstance(id)
|
||||
if (!prev) return 0
|
||||
return prev.vm.exposeProxy!.bottom
|
||||
return prev.vm.exposed!.bottom.value
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ const createMessage = (
|
||||
// instead of calling the onClose function directly, setting this value so that we can have the full lifecycle
|
||||
// for out component, so that all closing steps will not be skipped.
|
||||
close: () => {
|
||||
vm.exposeProxy!.visible = false
|
||||
vm.exposed!.visible.value = false
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user