types(@vant/use): improve Ref param typing
This commit is contained in:
@@ -37,7 +37,9 @@ export default {
|
||||
### 类型定义
|
||||
|
||||
```ts
|
||||
function useScrollParent(element: Ref<Element>): Ref<Element>;
|
||||
function useScrollParent(
|
||||
element: Ref<Element | undefined>
|
||||
): Ref<Element | Window | undefined>;
|
||||
```
|
||||
|
||||
### 参数
|
||||
|
||||
Reference in New Issue
Block a user