types(AddressEdit): add AddressEditInstance type (#9197)

This commit is contained in:
neverland
2021-08-06 19:11:38 +08:00
committed by GitHub
parent cf86a23c51
commit 10c36c05c3
7 changed files with 123 additions and 70 deletions
+13
View File
@@ -126,6 +126,19 @@ Use [ref](https://v3.vuejs.org/guide/component-template-refs.html) to get Addres
| --- | --- | --- | --- |
| setAddressDetail | Set address detail | _addressDetail: string_ | - |
### Types
Get the type definition of the AddressEdit instance through `AddressEditInstance`.
```ts
import { ref } from 'vue';
import type { AddressEditInstance } from 'vant';
const addressEditRef = ref<AddressEditInstance>();
addressEditRef.value?.setAddressDetail('');
```
### AddressInfo Data Structure
| key | Description | Type |