修复wd-tour组件h5引入useLockScroll报错,swiper默认插槽标签补齐#1380
修复wd-tour组件h5引入useLockScroll报错,swiper默认插槽标签补齐#1380jinxin0354 wants to merge 2 commits intoMoonofweisheng:masterfrom
Conversation
BREAKING CHANGE: 🧨 轮播图自定义默认插槽无效添加了插槽标签
Walkthrough本PR在两个组件中进行了修改:wd-swiper.vue增加了默认插槽覆盖功能以自定义swiper-item的内容渲染,wd-tour.vue调整了useLockScroll的导入方式从默认导入改为命名导入。 Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 需要重点关注的区域:
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (2)📓 Common learnings📚 Learning: 2024-11-24T06:12:44.418ZApplied to files:
🪛 GitHub Actions: Component Testing (H5)src/uni_modules/wot-design-uni/components/wd-tour/wd-tour.vue[error] 1-1: vitest: No "useLockScroll" export is defined on the "@/uni_modules/wot-design-uni/components/composables/useLockScroll" mock. Did you forget to return it from "vi.mock"? [warning] 1-1: The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details. 🔇 Additional comments (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. Comment |
|
@jinxin0354 is attempting to deploy a commit to the weisheng's projects Team on Vercel. A member of the Team first needs to authorize it. |
✅ Deploy Preview for wot-design-uni ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
🤔 这个 PR 的性质是?(至少选择一个)
🔗 相关 Issue
💡 需求背景和解决方案
☑️ 请求合并前的自查清单
Summary by CodeRabbit
新功能
✏️ Tip: You can customize this high-level summary in your review settings.