Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add error icon type for toast #10742

Merged
merged 5 commits into from
Dec 3, 2021
Merged
Changes from 1 commit
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 packages/taro/types/api/ui/interaction.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ declare module '../../index' {
*
* 可选值:
* - 'success': 显示成功图标,此时 title 文本最多显示 7 个汉字长度;
* - 'error': 显示失败图标,此时 title 文本最多显示 7 个汉字长度;
* - 'loading': 显示加载图标,此时 title 文本最多显示 7 个汉字长度;
* - 'none': 不显示图标,此时 title 文本最多可显示两行 */
icon?: 'success' | 'loading' | 'none'
icon?: 'success' | 'error' | 'loading' | 'none'
/** 自定义图标的本地路径,image 的优先级高于 icon */
image?: string
/** 是否显示透明蒙层,防止触摸穿透 */
Expand Down