diff --git a/src/components/picker-view/demos/demo1.tsx b/src/components/picker-view/demos/demo1.tsx index bf29028c9d..a29740c672 100644 --- a/src/components/picker-view/demos/demo1.tsx +++ b/src/components/picker-view/demos/demo1.tsx @@ -1,10 +1,11 @@ import React, { useState } from 'react' import { PickerView } from 'antd-mobile' +import type { PickerValue } from 'antd-mobile/es/components/picker-view' import { DemoBlock } from 'demos' import { basicColumns } from './columns-data' export default () => { - const [value, setValue] = useState<(string | null)[]>(['Mon', 'am']) + const [value, setValue] = useState(['Mon', 'am']) return ( <>