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.2.3
<t-notice-bar visible="{{true}}" direction="vertical" interval="{{3000}}" suffixIcon="chevron-right" content="{{marketlisttitle}}" prefixIcon="sound" bind:click="clicknotice" t-class="external-class" t-class-prefix-icon="external-class-prefix-icon" ></t-notice-bar>
clicknotice(e){ console.log(e) },
No response
获取我点击时的content
The text was updated successfully, but these errors were encountered:
👋 @Nathanielna,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
<t-notice-bar visible="{{true}}" direction="vertical" interval="{{3000}}" suffixIcon="chevron-right" content="{{marketlisttitle}}" data-content="{{marketlisttitle}}" prefixIcon="sound" bind:click="clicknotice" t-class="external-class" t-class-prefix-icon="external-class-prefix-icon" />
clicknotice(e) { const { content } = e.currentTarget.dataset; console.log(content); },
通过 dataset 来获取即可
dataset
No branches or pull requests
tdesign-miniprogram 版本
1.2.3
重现链接
<t-notice-bar visible="{{true}}" direction="vertical" interval="{{3000}}" suffixIcon="chevron-right" content="{{marketlisttitle}}" prefixIcon="sound" bind:click="clicknotice" t-class="external-class" t-class-prefix-icon="external-class-prefix-icon" ></t-notice-bar>
clicknotice(e){ console.log(e) },
重现步骤
No response
期望结果
获取我点击时的content
实际结果
基础库版本
No response
补充说明
No response
The text was updated successfully, but these errors were encountered: