Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/toast/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ overlay-props | Object | - | Typescript:`OverlayProps `,[Overlay API Documen
placement | String | middle | options: top/middle/bottom | N
prevent-scroll-through | Boolean | false | \- | N
show-overlay | Boolean | false | \- | N
theme | String | - | options: loading/success/error | N
theme | String | - | options: loading/success/warning/error | N
using-custom-navbar | Boolean | false | \- | N

### Toast Events
Expand All @@ -25,6 +25,7 @@ name | params | description
-- | -- | --
close | \- | \-
destroy | \- | \-

### Toast External Classes

className | Description
Expand Down
3 changes: 2 additions & 1 deletion src/toast/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ overlay-props | Object | - | 遮罩层属性,透传至 Overlay。TS 类型:`
placement | String | middle | 弹窗展示位置。可选项: top/middle/bottom | N
prevent-scroll-through | Boolean | false | 防止滚动穿透,即不允许点击和滚动 | N
show-overlay | Boolean | false | 是否显示遮罩层 | N
theme | String | - | 提示类型。可选项:loading/success/error | N
theme | String | - | 提示类型。可选项:loading/success/warning/error | N
using-custom-navbar | Boolean | false | 是否使用了自定义导航栏 | N

### Toast Events
Expand All @@ -62,6 +62,7 @@ using-custom-navbar | Boolean | false | 是否使用了自定义导航栏 | N
-- | -- | --
close | \- | 轻提示隐藏的时候触发
destroy | \- | 轻提示销毁的时候触发

### Toast External Classes

类名 | 描述
Expand Down
2 changes: 1 addition & 1 deletion src/toast/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { getInstance } from '../common/utils';

type Context = WechatMiniprogram.Page.TrivialInstance | WechatMiniprogram.Component.TrivialInstance;

type ToastType = 'loading' | 'success' | 'error';
type ToastType = 'loading' | 'success' | 'warning' | 'error';
type ToastPositionType = 'top' | 'middle' | 'bottom';
type ToastDirectionType = 'row' | 'column';

Expand Down
2 changes: 1 addition & 1 deletion src/toast/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export interface TdToastProps {
*/
theme?: {
type: StringConstructor;
value?: 'loading' | 'success' | 'error';
value?: 'loading' | 'success' | 'warning' | 'error';
};
/**
* 是否使用了自定义导航栏
Expand Down