-
-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: wd-input-number自定义按钮图标 #504
Conversation
✅ Deploy Preview for wot-design-uni ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Walkthrough此次变更主要集中在 Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant InputNumber
participant SlotIcons
User->>InputNumber: 输入数字
InputNumber->>SlotIcons: 渲染左侧图标
InputNumber->>SlotIcons: 渲染右侧图标
SlotIcons-->>InputNumber: 返回自定义图标
InputNumber-->>User: 显示输入框及图标
Poem
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 as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- docs/component/input-number.md (3 hunks)
- src/uni_modules/wot-design-uni/components/wd-input-number/wd-input-number.vue (2 hunks)
Additional comments not posted (2)
docs/component/input-number.md (1)
126-131
: 新增插槽文档部分插槽部分的新增为用户提供了关于自定义图标的清晰指导。描述准确且与文档其余部分保持一致。
src/uni_modules/wot-design-uni/components/wd-input-number/wd-input-number.vue (1)
4-6
: 引入图标自定义插槽通过使用
left-icon
和right-icon
插槽,组件的灵活性得到了增强,符合PR目标。实现正确且未引入任何问题。Also applies to: 23-25
🤔 这个 PR 的性质是?(至少选择一个)
🔗 相关 Issue
issue
💡 需求背景和解决方案
☑️ 请求合并前的自查清单
Summary by CodeRabbit
新特性
InputNumber
组件中新增了左侧和右侧图标的插槽,提升了图标自定义灵活性。文档
InputNumber
组件文档的格式和结构,增强了可读性。