types: add ListInstance type (#9159)

This commit is contained in:
neverland
2021-07-31 11:29:48 +08:00
committed by GitHub
parent 32e77d71ab
commit 1c781113bd
5 changed files with 62 additions and 20 deletions
+13
View File
@@ -206,6 +206,19 @@ export default {
| --- | --- | --- | --- |
| check | 检查当前的滚动位置,若已滚动至底部,则会触发 load 事件 | - | - |
### 类型定义
通过 `ListInstance` 获取 List 实例的类型定义。
```ts
import { ref } from 'vue';
import type { ListInstance } from 'vant';
const listRef = ref<ListInstance>();
listRef.value?.check();
```
### Slots
| 名称 | 说明 |