ant-design/components/color-picker/demo/text-render.md
红果汁 1fb8fc57d3
feat: ColorPicker implement showText API (#42865)
* feat: color-picker support showValue api

* Update components/color-picker/index.en-US.md

Co-authored-by: MadCcc <1075746765@qq.com>

* docs: add version column

* test: fix test coverage

* feat: replace showValue with textRender

* Update components/color-picker/components/ColorTrigger.tsx

Co-authored-by: MadCcc <1075746765@qq.com>

* fix: style issue

* feat: add showText prop and optimization code

* fix: lint issue

* test: fix coverage

* refactor: combine showText and textRender

* fix: lint issue

---------

Co-authored-by: MadCcc <1075746765@qq.com>
2023-06-19 19:29:39 +08:00

342 B

zh-CN

渲染触发器的默认文本, showTexttrue 时生效。自定义文本时,可以使用 showText 为函数的方式,返回自定义的文本。

en-US

Renders the default text of the trigger, effective when showText is true. When customizing text, you can use showText as a function to return custom text.