-
Notifications
You must be signed in to change notification settings - Fork 155
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
Refactor: 重构 Slider 组件 #115
Conversation
Size Change: +955 B (0%) Total Size: 225 kB
ℹ️ View Unchanged
|
Size Change: +955 B (0%) Total Size: 225 kB
ℹ️ View Unchanged
|
src/slider/slider.vue
Outdated
context.emit('change', value); | ||
tmpValue.sort((a, b) => a - b); | ||
setInnerValue(tmpValue); | ||
// context.emit('update:modelValue', value); |
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.
删除注释掉的代码
src/hooks/useVModel.ts
Outdated
@@ -0,0 +1,51 @@ | |||
import { ref, Ref, getCurrentInstance, ComponentInternalInstance } from 'vue'; |
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.
已经有了useVModel这个hook,在src/shared/useVModel
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.
1
🤔 这个 PR 的性质是?
🔗 相关 Issue
无
💡 需求背景和解决方案
重构 Slider 组件
📝 更新日志
feat: 支持新组件 Slider 滑动选择器
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单