types(@vant/use): relation key can be symbol

This commit is contained in:
chenjiahan
2020-10-05 10:26:44 +08:00
parent 32697cafad
commit 90e82c277e
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -48,14 +48,14 @@ export default {
```ts
function useParent<T>(
key: string
key: string | symbol
): {
parent?: T;
index?: Ref<number>;
};
function useChildren(
key: string
key: string | symbol
): {
children: ComponentPublicInstance[];
linkChildren: (value: any) => void;