File tree 4 files changed +6
-4
lines changed
4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ overlay-props | Object | - | Typescript:`OverlayProps `,[Overlay API Documen
16
16
placement | String | middle | options: top/middle/bottom | N
17
17
prevent-scroll-through | Boolean | false | \- | N
18
18
show-overlay | Boolean | false | \- | N
19
- theme | String | - | options: loading/success/error | N
19
+ theme | String | - | options: loading/success/warning/ error | N
20
20
using-custom-navbar | Boolean | false | \- | N
21
21
22
22
### Toast Events
@@ -25,6 +25,7 @@ name | params | description
25
25
-- | -- | --
26
26
close | \- | \-
27
27
destroy | \- | \-
28
+
28
29
### Toast External Classes
29
30
30
31
className | Description
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ overlay-props | Object | - | 遮罩层属性,透传至 Overlay。TS 类型:`
53
53
placement | String | middle | 弹窗展示位置。可选项: top/middle/bottom | N
54
54
prevent-scroll-through | Boolean | false | 防止滚动穿透,即不允许点击和滚动 | N
55
55
show-overlay | Boolean | false | 是否显示遮罩层 | N
56
- theme | String | - | 提示类型。可选项:loading/success/error | N
56
+ theme | String | - | 提示类型。可选项:loading/success/warning/ error | N
57
57
using-custom-navbar | Boolean | false | 是否使用了自定义导航栏 | N
58
58
59
59
### Toast Events
@@ -62,6 +62,7 @@ using-custom-navbar | Boolean | false | 是否使用了自定义导航栏 | N
62
62
-- | -- | --
63
63
close | \- | 轻提示隐藏的时候触发
64
64
destroy | \- | 轻提示销毁的时候触发
65
+
65
66
### Toast External Classes
66
67
67
68
类名 | 描述
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { getInstance } from '../common/utils';
2
2
3
3
type Context = WechatMiniprogram . Page . TrivialInstance | WechatMiniprogram . Component . TrivialInstance ;
4
4
5
- type ToastType = 'loading' | 'success' | 'error' ;
5
+ type ToastType = 'loading' | 'success' | 'warning' | ' error';
6
6
type ToastPositionType = 'top' | 'middle' | 'bottom' ;
7
7
type ToastDirectionType = 'row' | 'column' ;
8
8
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ export interface TdToastProps {
73
73
*/
74
74
theme ?: {
75
75
type : StringConstructor ;
76
- value ?: 'loading' | 'success' | 'error' ;
76
+ value ?: 'loading' | 'success' | 'warning' | ' error';
77
77
} ;
78
78
/**
79
79
* 是否使用了自定义导航栏
You can’t perform that action at this time.
0 commit comments