You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
children | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
11
12
closeBtn | TNode | undefined | Typescript:`string \| boolean \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
12
13
content | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
13
14
duration | Number | 3000 | \- | N
14
15
footer | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
15
16
icon | TNode | true | Typescript:`boolean \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
16
-
theme | String | info | options:info/success/warning/error。Typescript:`NotificationThemeList``type NotificationThemeList = 'info' \| 'success' \| 'warning' \| 'error'`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/notification/type.ts) | N
17
+
theme | String | info | options: info/success/warning/error。Typescript:`NotificationThemeList``type NotificationThemeList = 'info' \| 'success' \| 'warning' \| 'error'`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/notification/type.ts) | N
17
18
title | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
19
+
onClose | Function | | Typescript:`() => void`<br/>the callback event of NotificationPlugin.close | N
18
20
onCloseBtnClick | Function | | Typescript:`(context: { e: MouseEvent }) => void`<br/> | N
19
21
onDurationEnd | Function | | Typescript:`() => void`<br/> | N
20
22
@@ -24,15 +26,15 @@ name | type | default | description | required
24
26
-- | -- | -- | -- | --
25
27
attach | String / Function | 'body' | Typescript:`AttachNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
Copy file name to clipboardExpand all lines: packages/products/tdesign-vue-next/packages/components/notification/notification.en-US.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,15 @@ footer | String / Slot / Function | - | Typescript:`string \| TNode`。[see mo
14
14
icon | Boolean / Slot / Function | true | Typescript:`boolean \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
15
15
theme | String | info | options: info/success/warning/error。Typescript:`NotificationThemeList``type NotificationThemeList = 'info' \| 'success' \| 'warning' \| 'error'`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/notification/type.ts) | N
16
16
title | String / Slot / Function | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
17
+
onClose | Function | | Typescript:`() => void`<br/>the callback event of NotificationPlugin.close | N
17
18
onCloseBtnClick | Function | | Typescript:`(context: { e: MouseEvent }) => void`<br/> | N
18
19
onDurationEnd | Function | | Typescript:`() => void`<br/> | N
19
20
20
21
### Notification Events
21
22
22
23
name | params | description
23
24
-- | -- | --
25
+
close | \- | the callback event of NotificationPlugin.close
Copy file name to clipboardExpand all lines: packages/products/tdesign-vue/src/notification/notification.en-US.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
:: BASE_DOC ::
2
2
3
3
## API
4
+
4
5
### Notification Props
5
6
6
7
name | type | default | description | required
@@ -11,15 +12,17 @@ default | String / Slot / Function | - | Typescript:`string \| TNode`。[see m
11
12
duration | Number | 3000 | \- | N
12
13
footer | String / Slot / Function | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
13
14
icon | Boolean / Slot / Function | true | Typescript:`boolean \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
14
-
theme | String | info | options:info/success/warning/error。Typescript:`NotificationThemeList``type NotificationThemeList = 'info' \| 'success' \| 'warning' \| 'error'`。[see more ts definition](https://github.com/Tencent/tdesign-vue/tree/develop/src/notification/type.ts) | N
15
+
theme | String | info | options: info/success/warning/error。Typescript:`NotificationThemeList``type NotificationThemeList = 'info' \| 'success' \| 'warning' \| 'error'`。[see more ts definition](https://github.com/Tencent/tdesign-vue/tree/develop/src/notification/type.ts) | N
15
16
title | String / Slot / Function | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
17
+
onClose | Function | | Typescript:`() => void`<br/>the callback event of NotificationPlugin.close | N
16
18
onCloseBtnClick | Function | | Typescript:`(context: { e: MouseEvent }) => void`<br/> | N
17
19
onDurationEnd | Function | | Typescript:`() => void`<br/> | N
18
20
19
21
### Notification Events
20
22
21
23
name | params | description
22
24
-- | -- | --
25
+
close | \- | the callback event of NotificationPlugin.close
@@ -29,18 +32,19 @@ name | type | default | description | required
29
32
-- | -- | -- | -- | --
30
33
attach | String / Function | 'body' | Typescript:`AttachNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
0 commit comments