docs: improve classname typing (#7927)

This commit is contained in:
neverland
2021-01-16 19:52:36 +08:00
committed by GitHub
parent 9d152bdf74
commit 8f2b03ec18
26 changed files with 65 additions and 65 deletions
+2 -2
View File
@@ -160,8 +160,8 @@ Toast.resetDefaultOptions('loading');
| closeOnClickOverlay | Whether to close when overlay is clicked | _boolean_ | `false` |
| loadingType | Loading icon type, can be set to `spinner` | _string_ | `circular` |
| duration | Toast duration(ms), won't disappear if value is 0 | _number_ | `2000` |
| className | Custom className | _any_ | - |
| overlayClass `v3.0.4` | Custom overlay class | _string \| string[] \| object_ | - |
| className | Custom className | _string \| Array \| object_ | - |
| overlayClass `v3.0.4` | Custom overlay class | _string \| Array \| object_ | - |
| overlayStyle `v3.0.4` | Custom overlay style | _object_ | - |
| onOpened | Callback function after opened | _Function_ | - |
| onClose | Callback function after close | _Function_ | - |
+2 -2
View File
@@ -173,8 +173,8 @@ Toast.resetDefaultOptions('loading');
| closeOnClickOverlay | 是否在点击遮罩层后关闭 | _boolean_ | `false` |
| loadingType | [加载图标类型](#/zh-CN/loading), 可选值为 `spinner` | _string_ | `circular` |
| duration | 展示时长(ms),值为 0 时,toast 不会消失 | _number_ | `2000` |
| className | 自定义类名 | _any_ | - |
| overlayClass `v3.0.4` | 自定义遮罩层类名 | _string \| string[] \| object_ | - |
| className | 自定义类名 | _string \| Array \| object_ | - |
| overlayClass `v3.0.4` | 自定义遮罩层类名 | _string \| Array \| object_ | - |
| overlayStyle `v3.0.4` | 自定义遮罩层样式 | _object_ | - |
| onOpened | 完全展示后的回调函数 | _Function_ | - |
| onClose | 关闭时的回调函数 | _Function_ | - |