Open 5565007 opened 1 month ago
Name | Link |
---|---|
Latest commit | 4848dbf16743732cc9fca1dc79c9dc16f308d3c3 |
Latest deploy log | https://app.netlify.com/sites/wot-design-uni/deploys/66c47b44db79320008120c02 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
wot-design-uni | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 20, 2024 11:18am |
此次更改引入了一个可取消选择的单选按钮组功能,提升了用户交互体验。新增的Demo块展示了如何使用wd-radio-group
组件,用户可以通过单击已选中的选项来取消选择。相关属性和逻辑的调整确保了组件的灵活性和可用性。
文件 | 更改摘要 |
---|---|
src/pages/radio/Index.vue |
新增演示块,展示可取消的单选按钮组,添加新变量value4 以管理选中的按钮状态。 |
src/uni_modules/wot-design-uni/components/wd-radio-group/types.ts |
添加cancelable 属性,允许单选组支持取消选择功能,默认值为false 。 |
src/uni_modules/wot-design-uni/components/wd-radio-group/wd-radio-group.vue |
修改updateValue 函数,根据cancelable 属性条件性发出更新,允许点击已选项以清除选择。 |
在草地上跳跃的小兔子,
新功能让我们乐无比。
单选按钮可取消,
用户体验齐欢笑。
跟随更新的步伐,
让互动变得更精彩! 🐇✨
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?
🤔 这个 PR 的性质是?(至少选择一个)
🔗 相关 Issue
💡 需求背景和解决方案
boolean
☑️ 请求合并前的自查清单
⚠️ 请自检并全部勾选全部选项。⚠️
Summary by CodeRabbit