mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 09:21:22 +08:00
24 lines
286 B
Markdown
24 lines
286 B
Markdown
---
|
|
order: 1
|
|
title:
|
|
zh-CN: 半星
|
|
en-US: Half star
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
支持选中半星。
|
|
|
|
## en-US
|
|
|
|
Support select half star.
|
|
|
|
```tsx
|
|
import { Rate } from 'antd';
|
|
import React from 'react';
|
|
|
|
const App: React.FC = () => <Rate allowHalf defaultValue={2.5} />;
|
|
|
|
export default App;
|
|
```
|