2016-04-01 10:12:02 +08:00
|
|
|
---
|
|
|
|
order: 1
|
2016-07-21 10:10:04 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 半星
|
|
|
|
en-US: Half star
|
2016-04-01 10:12:02 +08:00
|
|
|
---
|
2016-03-31 14:43:38 +08:00
|
|
|
|
2016-07-21 10:10:04 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2016-03-31 14:43:38 +08:00
|
|
|
支持选中半星。
|
|
|
|
|
2016-07-21 10:10:04 +08:00
|
|
|
## en-US
|
|
|
|
|
|
|
|
Support select half star.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2016-03-31 14:43:38 +08:00
|
|
|
import { Rate } from 'antd';
|
2022-05-21 22:14:15 +08:00
|
|
|
import React from 'react';
|
2016-03-31 14:43:38 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => <Rate allowHalf defaultValue={2.5} />;
|
|
|
|
|
|
|
|
export default App;
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|