feat(ColorPicker): add color-picker #222
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
新增移动端ColorPicker组件 API:
功能:base 版本支持单色模式
具体api:
value 色值
format 格式化色值(组件内部不需要支持下拉切换)
enableAlpha 是否开启透明通道
showPrimaryColorPreview 是否展示颜色选择条右侧的颜色预览区域
swatchColors 系统预设颜色
type 颜色选择器类型(base: 仅展示系统预设; multiple: 色板+系统预设)
事件
change
paletteBarChange