mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 21:18:01 +08:00
1fb8fc57d3
* 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>
342 B
342 B
zh-CN
渲染触发器的默认文本, showText
为 true
时生效。自定义文本时,可以使用 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.