feat: switch component add type prop
- [x] I have read and followed Pull Request Guidelines of the contributing guide.
What kind of change does this PR introduce? (check at least one)
- [ ] Bugfix
- [x] Feature
- [ ] Code style update
- [ ] Refactor
- [ ] Test Case
- [ ] TypeScript definition update
- [ ] Document improve
- [ ] CI/CD improve
- [ ] Branch sync
- [ ] Other, please describe:
PR description
Fixes https://github.com/DouyinFE/semi-design/issues/1015
Changelog
🇨🇳 Chinese
- Feature: Switch 组件新增不同类型的主题色
🇺🇸 English
- Feature: Switch component adds different types of theme colors
Checklist
- [x] Test or no need
- [x] Document or no need
- [x] Changelog or no need
Other
- [ ] Skip Changelog
Additional information
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit 9daac7d04bb5b7ea1fc6675b209b7fb0129d9859:
| Sandbox | Source |
|---|---|
| pr-story | Configuration |
我看贡献指南里的介绍release分支应该是优先于main分支的,main分支只是稳定版本的快照,release分支拥有更多新特性和bugfix,但是现在 release 落后于 main。
贡献者应该基于哪个分支开发最后合并到哪个分支呢?
现在的测试好像有些问题,但并不是该 PR 引起的。
一般情况下,基于main分支checkout,提交到 release 就可以了。PR target branch这里我们也可以操作修改,问题不大。 我们每两周发一个 minor 版本,每个minor 会先发一个 beat 观察一周后,再转化为正式版本。 eg: 1月1号:发布 2.77.0-beta.0 1月8号左右:发布 2.77.0 1月15号左右:发布 2.78.0-beta.0
如果当前处于 beta 版本周期,所有 beta version的commit会仅在 release上存在,而不会在 main。 如果当前处于 正式版本周期,一些 bug fix会直接在 patch version上发布,就会提交到 main。 eg,2.77.1、2.77.2 这种
给 switch 加上不同的 mode 的业务背景是什么呢?感觉给 switch 加上不同的 mode 用的很少,如果有主题上的需求,倒是可以通过在主题配置上做处理
给 switch 加上不同的 mode 的业务背景是什么呢?感觉给 switch 加上不同的 mode 用的很少,如果有主题上的需求,倒是可以通过在主题配置上做处理
@YyumeiZhang https://github.com/DouyinFE/semi-design/issues/1015 我看这个 issue 有相关诉求, @pointhalo 打了 PR Welcome tag。可以确认下,如果不需要的话我就关掉 PR 了。