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
目前van-notice-bar组件只能配置纯文本text
希望能改成可通过slot设置text,这样才能使用文本+图片(如头像等)。
<van-notice-bar left-icon="volume-o" speed="{{20}}"> <view slot="text"> <view wx:for="{{list}}""> <image src="avatar.jpg"/> <text>XXX获得XXX</text> </view> </view> </van-notice-bar>
The text was updated successfully, but these errors were encountered:
feat(notice-bar): add default slot
d03593a
fix youzan#4023
feat(notice-bar): add default slot (#4048)
a61f765
fix #4023
Successfully merging a pull request may close this issue.
这个功能解决了什么问题
目前van-notice-bar组件只能配置纯文本text
建议的API是什么样的
希望能改成可通过slot设置text,这样才能使用文本+图片(如头像等)。
预期新功能的大致用法
The text was updated successfully, but these errors were encountered: