mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 05:42:44 +08:00
types(AddressEdit): add setAddressDetail method type (#5352)
This commit is contained in:
parent
84f53d0014
commit
a54a77d8c8
@ -233,6 +233,7 @@ export default createComponent({
|
||||
}
|
||||
},
|
||||
|
||||
// @exposed-api
|
||||
setAddressDetail(value) {
|
||||
this.data.addressDetail = value;
|
||||
},
|
||||
|
5
types/address-edit.d.ts
vendored
Normal file
5
types/address-edit.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
import { VanComponent } from './component';
|
||||
|
||||
export class AddressEdit extends VanComponent {
|
||||
setAddressDetail(val: string): void;
|
||||
}
|
4
types/dialog.d.ts
vendored
4
types/dialog.d.ts
vendored
@ -1,3 +1,5 @@
|
||||
import { VanComponent } from './component';
|
||||
|
||||
type DialogAction = 'confirm' | 'cancel';
|
||||
type DialogDone = (close?: boolean) => void;
|
||||
|
||||
@ -32,7 +34,7 @@ export interface Dialog {
|
||||
install(): void;
|
||||
setDefaultOptions(options: DialogOptions): void;
|
||||
resetDefaultOptions(): void;
|
||||
Component: any;
|
||||
Component: VanComponent;
|
||||
}
|
||||
|
||||
declare module 'vue/types/vue' {
|
||||
|
3
types/index.d.ts
vendored
3
types/index.d.ts
vendored
@ -10,7 +10,7 @@ import { ImagePreview } from './image-preview';
|
||||
export const version: string;
|
||||
export function install (vue: typeof Vue): void
|
||||
export class ActionSheet extends VanComponent {}
|
||||
export class AddressEdit extends VanComponent {}
|
||||
|
||||
export class AddressList extends VanComponent {}
|
||||
export class Area extends VanComponent {}
|
||||
export class Button extends VanComponent {}
|
||||
@ -84,6 +84,7 @@ export class Tabs extends VanComponent {}
|
||||
export class Tag extends VanComponent {}
|
||||
export class TreeSelect extends VanComponent {}
|
||||
export class Uploader extends VanComponent {}
|
||||
|
||||
export {
|
||||
Toast,
|
||||
Dialog,
|
||||
|
Loading…
x
Reference in New Issue
Block a user