uView 中 API 的 Props 使用
你确定不会用 API 中的 Props ? 我以 uView 框架中的 NoticeBar 滚动通知 来和你简单说下吧 !
需求 : 在官方代码中添加 Props 中的 volumeIcon
属性
添加前代码 :
复制代码
1
2<u-notice-bar mode="vertical" :list="list" type="none"></u-notice-bar>
添加后的代码为 :
复制代码
1
2<u-notice-bar mode="vertical" :list="list" type="none" :volumeIcon="false"></u-notice-bar>
小结 :
只要在 html 代码中按 属性名="属性值"
或 :属性名="属性值"
的方式添加 Props 中属性即可 !
最后
以上就是慈祥黄豆最近收集整理的关于uView 中 API 的 Props 使用uView 中 API 的 Props 使用的全部内容,更多相关uView内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复