We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.6.0
No response
// components/Message/Message.js import Message from 'tdesign-miniprogram/message/index'; Component({ /** * 组件的属性列表 */ properties: {}, /** * 组件的方法列表 */ methods: { show (text, type = 'error') { Message[type]({ context: this, content: text, duration: 2000 }); } } })
<!-- components/Message/Message.wxml--> <t-message id="t-message" />
以上是自定义组件,这么做是为了后面替换UI库,message 自定义组件放在page里面,我在其他自定义组件需要调用自定义组件message的show方法,show方法体内去调用真实T-message组件的 api,提示 context 不对;
// 我看实现是下面的逻辑 const page = getCurrentPages() return page[page.length - 1].selectComponent(`#${id}`)
The text was updated successfully, but these errors were encountered:
👋 @k186,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
。。。没有引用问题
No branches or pull requests
tdesign-miniprogram 版本
1.6.0
重现链接
No response
重现步骤
以上是自定义组件,这么做是为了后面替换UI库,message 自定义组件放在page里面,我在其他自定义组件需要调用自定义组件message的show方法,show方法体内去调用真实T-message组件的 api,提示 context 不对;
期望结果
No response
实际结果
No response
基础库版本
No response
补充说明
No response
The text was updated successfully, but these errors were encountered: