MadCcc
2 years ago
82 changed files with 184 additions and 181 deletions
@ -1,19 +1,17 @@ |
|||
import React from 'react'; |
|||
import { CheckOutlined, CloseOutlined } from '@ant-design/icons'; |
|||
import { Switch } from 'antd'; |
|||
import { Switch, Space } from 'antd'; |
|||
|
|||
const App: React.FC = () => ( |
|||
<> |
|||
<Space direction="vertical"> |
|||
<Switch checkedChildren="开启" unCheckedChildren="关闭" defaultChecked /> |
|||
<br /> |
|||
<Switch checkedChildren="1" unCheckedChildren="0" /> |
|||
<br /> |
|||
<Switch |
|||
checkedChildren={<CheckOutlined />} |
|||
unCheckedChildren={<CloseOutlined />} |
|||
defaultChecked |
|||
/> |
|||
</> |
|||
</Space> |
|||
); |
|||
|
|||
export default App; |
|||
|
Loading…
Reference in new issue