ant-design/components/rate/demo/disabled.md

24 lines
312 B
Markdown
Raw Normal View History

2016-04-01 10:12:02 +08:00
---
order: 3
title:
zh-CN: 只读
en-US: Read only
2016-04-01 10:12:02 +08:00
---
2016-03-31 14:43:38 +08:00
## zh-CN
2016-03-31 14:43:38 +08:00
只读,无法进行鼠标交互。
## en-US
Read only, can't use mouse to interact.
```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
const App: React.FC = () => <Rate disabled defaultValue={2} />;
export default App;
2019-05-07 14:57:32 +08:00
```