From 3d54838d2a4f9d64b2f5a2a4b659a77b452d5563 Mon Sep 17 00:00:00 2001 From: Yuno Date: Fri, 30 Aug 2024 18:15:24 +0900 Subject: [PATCH] docs: update color-picker onChage Docs (#50656) --- components/color-picker/index.en-US.md | 2 +- components/color-picker/index.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/color-picker/index.en-US.md b/components/color-picker/index.en-US.md index 83bb556ec0..f564ac0a12 100644 --- a/components/color-picker/index.en-US.md +++ b/components/color-picker/index.en-US.md @@ -60,7 +60,7 @@ Common props ref:[Common props](/docs/react/common-props) | size | Setting the trigger size | `large` \| `middle` \| `small` | `middle` | 5.7.0 | | trigger | ColorPicker trigger mode | `hover` \| `click` | `click` | | | value | Value of color | string \| `Color` | - | | -| onChange | Callback when `value` is changed | `(value: Color, hex: string) => void` | - | | +| onChange | Callback when `value` is changed | `(value: Color, css: string) => void` | - | | | onChangeComplete | Called when color pick ends | `(value: Color) => void` | - | 5.7.0 | | onFormatChange | Callback when `format` is changed | `(format: 'hex' \| 'rgb' \| 'hsb') => void` | - | | | onOpenChange | Callback when `open` is changed | `(open: boolean) => void` | - | | diff --git a/components/color-picker/index.zh-CN.md b/components/color-picker/index.zh-CN.md index 5b18d66a93..dcaa72cccb 100644 --- a/components/color-picker/index.zh-CN.md +++ b/components/color-picker/index.zh-CN.md @@ -61,7 +61,7 @@ group: | size | 设置触发器大小 | `large` \| `middle` \| `small` | `middle` | 5.7.0 | | trigger | 颜色选择器的触发模式 | `hover` \| `click` | `click` | | | value | 颜色的值 | string \| `Color` | - | | -| onChange | 颜色变化的回调 | `(value: Color, hex: string) => void` | - | | +| onChange | 颜色变化的回调 | `(value: Color, css: string) => void` | - | | | onChangeComplete | 颜色选择完成的回调 | `(value: Color) => void` | - | 5.7.0 | | onFormatChange | 颜色格式变化的回调 | `(format: 'hex' \| 'rgb' \| 'hsb') => void` | - | | | onOpenChange | 当 `open` 被改变时的回调 | `(open: boolean) => void` | - | |