Skip to content

Commit 88fea7b

Browse files
committed
docs: correct picker doc
1 parent a83e137 commit 88fea7b

File tree

1 file changed

+3
-3
lines changed
  • packages/react-vant/src/components/picker

1 file changed

+3
-3
lines changed

packages/react-vant/src/components/picker/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,13 @@ export type PickerColumn<T = PickerColumnOption> = (string | T)[];
118118

119119
### 类型定义
120120

121-
通过 `PickerInstance` 获取 Picker 实例的类型定义。
121+
通过 `PickerPopupActions` 获取 Picker 实例的类型定义。
122122

123123
```ts
124124
import { useRef } from 'react';
125-
import type { PickerInstance } from 'react-vant';
125+
import type { PickerPopupActions } from 'react-vant';
126126

127-
const pickerRef = useRef<PickerInstance>();
127+
const pickerRef = useRef<PickerPopupActions>();
128128

129129
pickerRef.current?.open();
130130
```

0 commit comments

Comments
 (0)