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

[全局提示] MessagePlugin API参数错误 #3404

Open
Ceqin opened this issue Nov 27, 2024 · 4 comments
Open

[全局提示] MessagePlugin API参数错误 #3404

Ceqin opened this issue Nov 27, 2024 · 4 comments
Labels
📒 documentation Improvements or additions to documentation

Comments

@Ceqin
Copy link

Ceqin commented Nov 27, 2024

tdesign-vue 版本

无关版本

重现链接

No response

重现步骤

No response

期望结果

在全局提示组件的API页面中,MessagePlugin中的参数字段为message

实际结果

实际使用时message无用,应为content

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

👋 @Ceqin,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@morningbao
Copy link
Contributor

api里写的message是形参名的意思,不是对象数组里的key。
参考ts:
type MessageMethod = (
theme: MessageThemeList,
message: string | MessageOptions,
duration?: number,
) => Promise;

message形参可以传MessageOptions对象,关于MessageOptions对象参见文档,继承 MessageProps 中的全部 API,所以有content。

@morningbao
Copy link
Contributor

此issus非bug,可以考虑调整文档说明 @uyarn

@uyarn uyarn added the 📒 documentation Improvements or additions to documentation label Dec 5, 2024
@uyarn
Copy link
Collaborator

uyarn commented Dec 5, 2024

这个地方现在的API生成无法满足,暂时只能在文档上说明是第一个参数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📒 documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants