Skip to content

Conversation

@LonelySnowman
Copy link
Contributor

中文模板 / Chinese Template

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Test Case
  • TypeScript definition update
  • Document improve
  • CI/CD improve
  • Branch sync
  • Other, please describe:

PR description

Fixes #1015

Changelog

🇨🇳 Chinese

  • Feature: Switch 组件新增不同类型的主题色

🇺🇸 English

  • Feature: Switch component adds different types of theme colors

Checklist

  • Test or no need
  • Document or no need
  • Changelog or no need

Other

  • Skip Changelog

Additional information

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 26, 2025

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 9daac7d:

Sandbox Source
pr-story Configuration
@LonelySnowman LonelySnowman changed the title Feat switch type Mar 27, 2025
@LonelySnowman
Copy link
Contributor Author

LonelySnowman commented Mar 27, 2025

我看贡献指南里的介绍release分支应该是优先于main分支的,main分支只是稳定版本的快照,release分支拥有更多新特性和bugfix,但是现在 release 落后于 main

贡献者应该基于哪个分支开发最后合并到哪个分支呢?

现在的测试好像有些问题,但并不是该 PR 引起的。

@pointhalo
Copy link
Collaborator

一般情况下,基于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 这种

@YannLynn YannLynn requested a review from pointhalo April 2, 2025 12:41
@LonelySnowman LonelySnowman mentioned this pull request May 7, 2025
15 tasks
@YyumeiZhang
Copy link
Collaborator

给 switch 加上不同的 mode 的业务背景是什么呢?感觉给 switch 加上不同的 mode 用的很少,如果有主题上的需求,倒是可以通过在主题配置上做处理

@LonelySnowman
Copy link
Contributor Author

给 switch 加上不同的 mode 的业务背景是什么呢?感觉给 switch 加上不同的 mode 用的很少,如果有主题上的需求,倒是可以通过在主题配置上��处理

@YyumeiZhang #1015 我看这个 issue 有相关诉求, @pointhalo 打了 PR Welcome tag。可以确认下,如果不需要的话我就关掉 PR 了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants