Skip to content

Commit

Permalink
fix ts
Browse files Browse the repository at this point in the history
  • Loading branch information
xrkffgg committed Mar 30, 2021
1 parent cb1883e commit 8554682
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/descriptions/demo/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ import { Descriptions, Divider, Switch, Radio } from 'antd';
const labelStyle: React.CSSProperties = { background: 'red' };
const contentStyle: React.CSSProperties = { background: 'green' };

type LayoutType = 'horizontal' | 'vertical' | undefined;

const Demo = () => {
const [border, setBorder] = React.useState(true);
const [layout, setLayout] = React.useState('horizontal');
const [layout, setLayout] = React.useState('horizontal' as LayoutType);

return (
<>
Expand Down

0 comments on commit 8554682

Please sign in to comment.