File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed
Expand file tree Collapse file tree 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
1616placement | String | middle | options: top/middle/bottom | N
1717prevent-scroll-through | Boolean | false | \- | N
1818show-overlay | Boolean | false | \- | N
19- theme | String | - | options: loading/success/error | N
19+ theme | String | - | options: loading/success/warning/ error | N
2020using-custom-navbar | Boolean | false | \- | N
2121
2222### Toast Events
@@ -25,6 +25,7 @@ name | params | description
2525-- | -- | --
2626close | \- | \-
2727destroy | \- | \-
28+
2829### Toast External Classes
2930
3031className | Description
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ overlay-props | Object | - | 遮罩层属性,透传至 Overlay。TS 类型:`
5353placement | String | middle | 弹窗展示位置。可选项: top/middle/bottom | N
5454prevent-scroll-through | Boolean | false | 防止滚动穿透,即不允许点击和滚动 | N
5555show-overlay | Boolean | false | 是否显示遮罩层 | N
56- theme | String | - | 提示类型。可选项:loading/success/error | N
56+ theme | String | - | 提示类型。可选项:loading/success/warning/ error | N
5757using-custom-navbar | Boolean | false | 是否使用了自定义导航栏 | N
5858
5959### Toast Events
@@ -62,6 +62,7 @@ using-custom-navbar | Boolean | false | 是否使用了自定义导航栏 | N
6262-- | -- | --
6363close | \- | 轻提示隐藏的时候触发
6464destroy | \- | 轻提示销毁的时候触发
65+
6566### Toast External Classes
6667
6768类名 | 描述
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { getInstance } from '../common/utils';
22
33type Context = WechatMiniprogram . Page . TrivialInstance | WechatMiniprogram . Component . TrivialInstance ;
44
5- type ToastType = 'loading' | 'success' | 'error' ;
5+ type ToastType = 'loading' | 'success' | 'warning' | ' error';
66type ToastPositionType = 'top' | 'middle' | 'bottom' ;
77type ToastDirectionType = 'row' | 'column' ;
88
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ export interface TdToastProps {
7373 */
7474 theme ?: {
7575 type : StringConstructor ;
76- value ?: 'loading' | 'success' | 'error' ;
76+ value ?: 'loading' | 'success' | 'warning' | ' error';
7777 } ;
7878 /**
7979 * 是否使用了自定义导航栏
You can’t perform that action at this time.
0 commit comments