element-plus: [Component] [message] ElMessage bug
Bug Type: Component
Environment
- Vue Version:
3.2.26 - Element Plus Version:
2.2.12 - Browser / OS:
chrome 99.0.4844.82 - Build Tool:
Vite
Reproduction
Related Component
el-message
Reproduction Link
Steps to reproduce
ElMessage({
message: 'Congrats, this is a success message.',
type: 'success',
})
然后会报错
What is Expected?
不报错
What is actually happening?
TypeError: Cannot set properties of null (setting ‘visible’) at Object.close (_arrayMap.js:7:1) at fne (_arrayMap.js:7:1) at onClose (_arrayMap.js:7:1) at callWithErrorHandling (runtime-dom.esm-browser.js:1603:22) at callWithAsyncErrorHandling (runtime-dom.esm-browser.js:1612:21) at callHook (runtime-dom.esm-browser.js:3474:13) at Object.leave (runtime-dom.esm-browser.js:3551:13) at updated (runtime-dom.esm-browser.js:10543:28) at callWithErrorHandling (runtime-dom.esm-browser.js:1603:22) at callWithAsyncErrorHandling (runtime-dom.esm-browser.js:1612:21)
Additional comments
(empty)
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (1 by maintainers)
@wgyy
我本地尝试了一下,得到的也是null。这个属性我也是第一次知道,不熟悉 🤦♂️我这里写了个例子,能够看到exposeProxy有值,你可以看一下。