mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
docs: update demo
This commit is contained in:
parent
9d99f884ed
commit
916d63e2bb
@ -2,7 +2,12 @@ import React from 'react';
|
||||
import { Segmented } from 'antd';
|
||||
|
||||
const Demo: React.FC = () => (
|
||||
<Segmented options={['Daily', 'Weekly', 'Monthly', 'Quarterly', 'Yearly']} />
|
||||
<Segmented<string | number | boolean>
|
||||
options={['Daily', 'Weekly', 2021, 2022, true, false]}
|
||||
onChange={(value) => {
|
||||
console.log(value);
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
||||
export default Demo;
|
||||
|
Loading…
Reference in New Issue
Block a user