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

Plus/color picker #2218

Open
wants to merge 19 commits into
base: plus/done
Choose a base branch
from
Open

Plus/color picker #2218

wants to merge 19 commits into from

Conversation

DaiQiangReal
Copy link
Collaborator

中文模板 / 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 #

Changelog

🇨🇳 Chinese

  • Feat: 新增 颜色选择器 ColorPicker 组件,用户快速选择颜色,支持滴管屏幕取色

🇺🇸 English

  • Feat: Added the ColorPicker component, which allows users to quickly select colors and supports eyedropper screen color selection.

Checklist

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

Other

  • Skip Changelog

Additional information

const rgba = hsvaToRgba(hsva);
const hex = hsvaToHex(hsva);

currentColor = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

改了形参?

@pointhalo pointhalo added the new component add new component in semi design label May 7, 2024
Copy link

codesandbox-ci bot commented May 15, 2024

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 ddc22a2:

Sandbox Source
pr-story Configuration

this.setState({ isHandleGrabbing: false });
},
getDOM: ()=>this.ref.current,
onChange: (newColor)=>this.props.onChange(newColor)
Copy link
Collaborator

@pointhalo pointhalo May 16, 2024

Choose a reason for hiding this comment

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

notify。。。遵循规范统一命名。这是为了其他人不熟悉,介入代码的时候能快速搜索到所有对外的callback,onXX的命名太泛滥了,没有办法快速区分对外callback跟对内处理的函数。你看看其他组件的adapter命名。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new component add new component in semi design
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants