Skip to content
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

Merged
merged 8 commits into from
May 26, 2022
Merged

Refactor: 重构 Slider 组件 #115

merged 8 commits into from
May 26, 2022

Conversation

LeeJim
Copy link
Collaborator

@LeeJim LeeJim commented May 13, 2022

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

💡 需求背景和解决方案

重构 Slider 组件

📝 更新日志

  • feat: 支持新组件 Slider 滑动选择器

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@github-actions
Copy link
Contributor

github-actions bot commented May 13, 2022

完成

@github-actions
Copy link
Contributor

Size Change: +955 B (0%)

Total Size: 225 kB

Filename Size Change
./dist/tdesign.js 123 kB +624 B (+1%)
./dist/tdesign.min.js 71.7 kB +331 B (0%)
ℹ️ View Unchanged
Filename Size
./dist/tdesign.css 16.1 kB
./dist/tdesign.min.css 14.5 kB

@github-actions
Copy link
Contributor

Size Change: +955 B (0%)

Total Size: 225 kB

Filename Size Change
./dist/tdesign.js 123 kB +624 B (+1%)
./dist/tdesign.min.js 71.7 kB +331 B (0%)
ℹ️ View Unchanged
Filename Size
./dist/tdesign.css 16.2 kB
./dist/tdesign.min.css 14.5 kB

@LeeJim LeeJim changed the title [WIP] Refactor: 重构 Slider 组件 Refactor: 重构 Slider 组件 May 17, 2022
context.emit('change', value);
tmpValue.sort((a, b) => a - b);
setInnerValue(tmpValue);
// context.emit('update:modelValue', value);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

删除注释掉的代码

@@ -0,0 +1,51 @@
import { ref, Ref, getCurrentInstance, ComponentInternalInstance } from 'vue';
Copy link
Collaborator

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

Copy link
Collaborator

@Dengzygx Dengzygx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1

@LeeJim LeeJim merged commit af205a8 into develop May 26, 2022
This was referenced May 30, 2022
@anlyyao anlyyao deleted the feat/slider branch January 2, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants