docs: update demo

This commit is contained in:
madocto 2024-01-22 15:37:30 +08:00 committed by 章鱼怪
parent 9d99f884ed
commit 916d63e2bb

View File

@ -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;