mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user