mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-24 07:28:28 +08:00
bd505a690c
* feat: CP support Tag closeIcon * fix: fix * fix: fix
18 lines
386 B
TypeScript
18 lines
386 B
TypeScript
import React from 'react';
|
|
import { Flex, Rate } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Flex gap="middle" vertical>
|
|
<Flex gap="middle">
|
|
<Rate defaultValue={3} />
|
|
<span>allowClear: true</span>
|
|
</Flex>
|
|
<Flex gap="middle">
|
|
<Rate defaultValue={3} allowClear={false} />
|
|
<span>allowClear: false</span>
|
|
</Flex>
|
|
</Flex>
|
|
);
|
|
|
|
export default App;
|