feat(video): 兼容taro Component属性#3185
Conversation
Walkthrough本次变更扩展了 Changes
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feat_v3.x #3185 +/- ##
==========================================
Coverage 86.52% 86.53%
==========================================
Files 289 289
Lines 18725 18725
Branches 2819 2819
==========================================
+ Hits 16202 16203 +1
+ Misses 2518 2517 -1
Partials 5 5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
src/packages/video/video.taro.tsx
Outdated
| autoplay={options.autoplay || autoplay} | ||
| loop={options.loop || loop} | ||
| poster={options.poster || poster} | ||
| controls={controls !== undefined ? controls : options.controls} |
There was a problem hiding this comment.
controls 的值 默认是true。其他的不是。需要处理下 为 control 默认false的情况,也就是 undefined 的情况。
src/packages/video/video.taro.tsx
Outdated
| autoplay={options.autoplay || autoplay} | ||
| loop={options.loop || loop} | ||
| poster={options.poster || poster} | ||
| controls={controls !== undefined ? controls : options.controls} |
There was a problem hiding this comment.
controls也是bollean类型,这里是不是和上面一样都用||运算就可以
🤔 这个变动的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
☑️ 请求合并前的自查清单
Summary by CodeRabbit
新功能
文档