feat(components): [notification] support updateOffsets command (#21300)

* feat(components): [notification] support updateOffsets command

* fix(components): [notification] correct calculation offset

* test(components): [notification] add test case

* feat(components): [notification] add default value & update doc

* test(components): [notification] cleanup

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

* docs(components): [notification] update

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

* test(components): [notification] use defineGetter replace defineProperty

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
This commit is contained in:
Zhong
2025-07-16 08:01:41 +08:00
committed by GitHub
parent db680e4dd0
commit a6cc30b979
4 changed files with 69 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ ElNotification({
})
```
In this case you should call `ElNotification(options)`. We have also registered methods for different types, e.g. `ElNotification.success(options)`. You can call `ElNotification.closeAll()` to manually close all the instances.
In this case you should call `ElNotification(options)`. We have also registered methods for different types, e.g. `ElNotification.success(options)`. You can call `ElNotification.closeAll()` to manually close all the instances. In ^(2.10.5) you can manually update the offsets of all instances in a specific direction by calling `ElNotification.updateOffsets(position)`.
## App context inheritance <el-tag>> 2.0.4</el-tag>