ant-design/components/rate/demo/clear.md
xrkffgg f37f471373
feat: expand rate character (#24903)
* feat: expand rate character

* fix: demo

* fix: snap

* Update components/rate/index.zh-CN.md

Co-authored-by: 偏右 <afc163@gmail.com>

* fix

Co-authored-by: 偏右 <afc163@gmail.com>
2020-06-11 14:11:21 +08:00

464 B

order title
4
zh-CN en-US
清除 Clear star

zh-CN

支持允许或者禁用清除。

en-US

Support set allow to clear star when click again.

import { Rate } from 'antd';

ReactDOM.render(
  <>
    <Rate defaultValue={3} />
    <span className="ant-rate-text">allowClear: true</span>
    <br />
    <Rate allowClear={false} defaultValue={3} />
    <span className="ant-rate-text">allowClear: false</span>
  </>,
  mountNode,
);