diff --git a/components/flex/demo/align.tsx b/components/flex/demo/align.tsx index 1b230dbb13..5102ad3563 100644 --- a/components/flex/demo/align.tsx +++ b/components/flex/demo/align.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { Button, Flex, Segmented } from 'antd'; -import type { FlexProps, SegmentedProps } from 'antd'; +import type { FlexProps } from 'antd'; const boxStyle: React.CSSProperties = { width: '100%', @@ -26,9 +26,9 @@ const App: React.FC = () => { return (

Select justify :

- +

Select align :

- + diff --git a/components/popover/demo/arrow.tsx b/components/popover/demo/arrow.tsx index 5742dc01f9..0198935248 100644 --- a/components/popover/demo/arrow.tsx +++ b/components/popover/demo/arrow.tsx @@ -34,7 +34,7 @@ const App: React.FC = () => { setArrow(val)} + onChange={setArrow} style={{ marginBottom: 24 }} /> diff --git a/components/qr-code/demo/download.tsx b/components/qr-code/demo/download.tsx index a822a15801..d37d3945d1 100644 --- a/components/qr-code/demo/download.tsx +++ b/components/qr-code/demo/download.tsx @@ -32,10 +32,7 @@ const App: React.FC = () => { const [renderType, setRenderType] = React.useState('canvas'); return ( - setRenderType(val as QRCodeProps['type'])} - /> +
{ /> setCount(value)} + onChange={setCount} options={[ { label: 'None', value: 0 }, { label: 'Less', value: 4 }, diff --git a/components/tabs/demo/custom-indicator.tsx b/components/tabs/demo/custom-indicator.tsx index 99e73f531b..c2ec04abf3 100644 --- a/components/tabs/demo/custom-indicator.tsx +++ b/components/tabs/demo/custom-indicator.tsx @@ -19,9 +19,9 @@ const App: React.FC = () => { return ( <> setAlignValue(value as Align)} + onChange={setAlignValue} options={['start', 'center', 'end']} /> { setArrow(val)} + onChange={setArrow} style={{ marginBottom: 24 }} />