mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-29 04:35:32 +08:00
docs(toast): add normal-types
This commit is contained in:
@@ -120,6 +120,16 @@ interface ToastAction {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<Attributes.Title>NormalTypes</Attributes.Title>
|
||||||
|
|
||||||
|
```ts
|
||||||
|
type NormalTypes = 'default'
|
||||||
|
| 'secondary'
|
||||||
|
| 'success'
|
||||||
|
| 'warning'
|
||||||
|
| 'error'
|
||||||
|
```
|
||||||
|
|
||||||
</Attributes>
|
</Attributes>
|
||||||
|
|
||||||
export default ({ children }) => <Layout meta={meta}>{children}</Layout>
|
export default ({ children }) => <Layout meta={meta}>{children}</Layout>
|
||||||
|
|||||||
@@ -120,6 +120,17 @@ interface ToastAction {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<Attributes.Title>NormalTypes</Attributes.Title>
|
||||||
|
|
||||||
|
```ts
|
||||||
|
type NormalTypes = 'default'
|
||||||
|
| 'secondary'
|
||||||
|
| 'success'
|
||||||
|
| 'warning'
|
||||||
|
| 'error'
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
</Attributes>
|
</Attributes>
|
||||||
|
|
||||||
export default ({ children }) => <Layout meta={meta}>{children}</Layout>
|
export default ({ children }) => <Layout meta={meta}>{children}</Layout>
|
||||||
|
|||||||
Reference in New Issue
Block a user