Skip to content

Commit

Permalink
docs(Toast): sync api doc
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 committed Sep 3, 2024
1 parent bd472e1 commit 4c856b2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/toast/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ direction | String | row | options: row/column | N
duration | Number | 2000 | \- | N
icon | String / Object / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
message | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
overlay-props | Object | {} | Typescript:`OverlayProps `[Overlay API Documents](./overlay?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/toast/type.ts) | N
overlay-props | Object | - | Typescript:`OverlayProps `[Overlay API Documents](./overlay?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/toast/type.ts) | N
placement | String | middle | options: top/middle/bottom | N
prevent-scroll-through | Boolean | false | \- | N
show-overlay | Boolean | false | \- | N
Expand All @@ -24,7 +24,7 @@ using-custom-navbar | Boolean | false | \- | N
name | params | description
-- | -- | --
close | \- | \-
destory | \- | \-
destroy | \- | \-
### Toast External Classes

className | Description
Expand Down
6 changes: 3 additions & 3 deletions src/toast/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,19 @@ direction | String | row | 图标排列方式。可选项:row/column | N
duration | Number | 2000 | 弹窗显示毫秒数 | N
icon | String / Object / Slot | - | 自定义图标。传入对象则透传至 Icon 组件。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
message | String / Slot | - | 弹窗显示文字。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
overlay-props | Object | {} | 遮罩层属性,透传至 Overlay。TS 类型:`OverlayProps `[Overlay API Documents](./overlay?tab=api)[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/toast/type.ts) | N
overlay-props | Object | - | 遮罩层属性,透传至 Overlay。TS 类型:`OverlayProps `[Overlay API Documents](./overlay?tab=api)[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/toast/type.ts) | N
placement | String | middle | 弹窗展示位置。可选项: top/middle/bottom | N
prevent-scroll-through | Boolean | false | 防止滚动穿透,即不允许点击和滚动 | N
show-overlay | Boolean | false | 是否显示遮罩层 | N
theme | String | - | 提示类型。可选项:loading/success/error,skyline模式下暂不支持枚举值loading | N
theme | String | - | 提示类型。可选项:loading/success/error | N
using-custom-navbar | Boolean | false | 是否使用了自定义导航栏 | N

### Toast Events

名称 | 参数 | 描述
-- | -- | --
close | \- | 轻提示隐藏的时候触发
destory | \- | 轻提示销毁的时候触发
destroy | \- | 轻提示销毁的时候触发
### Toast External Classes

类名 | 描述
Expand Down
6 changes: 5 additions & 1 deletion src/toast/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const props: TdToastProps = {
/** 遮罩层属性,透传至 Overlay */
overlayProps: {
type: Object,
value: {},
},
/** 弹窗展示位置 */
placement: {
Expand All @@ -48,6 +47,11 @@ const props: TdToastProps = {
theme: {
type: String,
},
/** 是否使用了自定义导航栏 */
usingCustomNavbar: {
type: Boolean,
value: false,
},
};

export default props;
3 changes: 1 addition & 2 deletions src/toast/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
* */

import { TdOverlayProps as OverlayProps } from '../overlay/index';
import { OverlayProps } from '../overlay/index';

export interface TdToastProps {
/**
Expand Down Expand Up @@ -39,7 +39,6 @@ export interface TdToastProps {
};
/**
* 遮罩层属性,透传至 Overlay
* @default {}
*/
overlayProps?: {
type: ObjectConstructor;
Expand Down

0 comments on commit 4c856b2

Please sign in to comment.