From 62dbb864bb62a0a50cea9e1741bb015cf52fe539 Mon Sep 17 00:00:00 2001 From: jzh <1587315093@qq.com> Date: Mon, 24 Jul 2023 15:06:18 +0800 Subject: [PATCH] chore: repair type warning --- src/components/picker-view/demos/demo1.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ( <>