feat: ✨ Swiper 轮播视频支持控制静音播放和循环播放#855
Conversation
✅ Closes: #846
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
概述演练此次更改为 变更
对链接问题的评估
可能相关的 PR
诗歌
Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 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 (
|
✅ Deploy Preview for wot-design-uni ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
docs/component/swiper.md (1)
330-331: 表格格式需要修正表格的分隔符格式不一致,建议修改如下:
-| muted | 视频是否静音播放 | `boolean` | - | `true` | $LOWEST_VERSION$ | +| muted | 视频是否静音播放 | `boolean` | - | `true` | $LOWEST_VERSION$ |🧰 Tools
🪛 Markdownlint (0.37.0)
330-330: Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe
Table pipe style(MD055, table-pipe-style)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
docs/component/swiper.md(1 hunks)src/uni_modules/wot-design-uni/components/wd-swiper/types.ts(1 hunks)src/uni_modules/wot-design-uni/components/wd-swiper/wd-swiper.vue(1 hunks)
🧰 Additional context used
🪛 Markdownlint (0.37.0)
docs/component/swiper.md
330-330: Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe
Table pipe style
(MD055, table-pipe-style)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Cloudflare Pages
🔇 Additional comments (4)
src/uni_modules/wot-design-uni/components/wd-swiper/types.ts (2)
118-124: 视频循环播放属性定义正确!
videoLoop属性的类型定义和默认值设置合理,注释清晰完整。
125-131: 视频静音属性定义正确!
muted属性的类型定义和默认值设置合理,注释清晰完整。src/uni_modules/wot-design-uni/components/wd-swiper/wd-swiper.vue (1)
33-34: 视频属性绑定实现正确!
:loop="videoLoop"和:muted="muted"的动态绑定实现正确,使视频的循环和静音状态可以通过属性控制。docs/component/swiper.md (1)
330-331: 新属性文档说明完整!
muted和videoLoop属性的说明清晰,包含了类型、默认值等必要信息。🧰 Tools
🪛 Markdownlint (0.37.0)
330-330: Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe
Table pipe style(MD055, table-pipe-style)
✅ Closes: #846
🤔 这个 PR 的性质是?(至少选择一个)
🔗 相关 Issue
#846
💡 需求背景和解决方案
添加
muted和video-loop属性用于控制视频静音播放和循环播放☑️ 请求合并前的自查清单
Summary by CodeRabbit
wd-swiper组件添加了视频播放控制选项muted属性,控制视频是否静音(默认为true)videoLoop属性,控制视频是否循环播放(默认为true)