|
@@ -349,7 +349,7 @@ Close Manually ( `toastId` is the return value of the display methods)
|
|
|
| bottom | Pop-up position bottom | number \| string | - | 0.25.0 |
|
|
|
| content | Toast content | string | ReactNode | '' | |
|
|
|
| duration | Automatic close delay, no auto-close when set to 0 | number | 3 | |
|
|
|
-| getPopupContainer | Specifies the parent DOM, and the bullet layer will be rendered to the DOM, you need to set 'position: relative` | () => HTMLElement \| null | () => document.body | 0.34.0 |
|
|
|
+| getPopupContainer | Specifies the parent DOM, and the bullet layer will be rendered to the DOM, you need to set container and inner .semi-toast-wrapper 'position: relative` | () => HTMLElement \| null | () => document.body | 0.34.0 |
|
|
|
| icon | Custom icons | ReactNode | | 0.25.0 |
|
|
|
| left | Pop-up position left | number \| string | - | 0.25.0 |
|
|
|
| right | Pop-up position right | number \| string | - | 0.25.0 |
|
|
@@ -364,15 +364,15 @@ The global configuration is set before any method call, and takes effect only on
|
|
|
|
|
|
- `Toast.config(config)`
|
|
|
|
|
|
-| Properties | Instructions | type | Default | version |
|
|
|
-| --- | --- | --- | --- | --- |
|
|
|
-| bottom | Bottom, absolute position | number \| string | - | 0.25.0 |
|
|
|
-| duration | Automatic close delay, no auto-close when set to 0 | number(second) | 3 | 0.25.0 |
|
|
|
-| getPopupContainer | Specifies the parent DOM, and the bullet layer will be rendered to the DOM, you need to set 'position: relative` | () => HTMLElement \| null | () => document.body | 1.23.0 |
|
|
|
-| left | Left, absolute position | number \| string | - | 0.25.0 |
|
|
|
-| right | Right, absolute position | number \| string | - | 0.25.0 |
|
|
|
-| top | Top, absolute position | number \| string | - | 0.25.0 |
|
|
|
-| zIndex | Z-index | number | 1010 | 0.25.0 |
|
|
|
+| Properties | Instructions | type | Default | version |
|
|
|
+| --- |-----------------------------------------------------------------------------------------------------------------------------------------------------------| --- | --- | --- |
|
|
|
+| bottom | Bottom, absolute position | number \| string | - | 0.25.0 |
|
|
|
+| duration | Automatic close delay, no auto-close when set to 0 | number(second) | 3 | 0.25.0 |
|
|
|
+| getPopupContainer | Specifies the parent DOM, and the bullet layer will be rendered to the DOM, you need to set container and inner .semi-toast-wrapper 'position: relative` | () => HTMLElement \| null | () => document.body | 1.23.0 |
|
|
|
+| left | Left, absolute position | number \| string | - | 0.25.0 |
|
|
|
+| right | Right, absolute position | number \| string | - | 0.25.0 |
|
|
|
+| top | Top, absolute position | number \| string | - | 0.25.0 |
|
|
|
+| zIndex | Z-index | number | 1010 | 0.25.0 |
|
|
|
|
|
|
- `ToastFactory.create(config) => Toast`
|
|
|
If you need Toast with different configs in your application, you can use ToastFactory.create(config)to create a new Toast (>= 1.23):
|