mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +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) {
|
setAddressDetail(value) {
|
||||||
this.data.addressDetail = 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 DialogAction = 'confirm' | 'cancel';
|
||||||
type DialogDone = (close?: boolean) => void;
|
type DialogDone = (close?: boolean) => void;
|
||||||
|
|
||||||
@ -32,7 +34,7 @@ export interface Dialog {
|
|||||||
install(): void;
|
install(): void;
|
||||||
setDefaultOptions(options: DialogOptions): void;
|
setDefaultOptions(options: DialogOptions): void;
|
||||||
resetDefaultOptions(): void;
|
resetDefaultOptions(): void;
|
||||||
Component: any;
|
Component: VanComponent;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module 'vue/types/vue' {
|
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 const version: string;
|
||||||
export function install (vue: typeof Vue): void
|
export function install (vue: typeof Vue): void
|
||||||
export class ActionSheet extends VanComponent {}
|
export class ActionSheet extends VanComponent {}
|
||||||
export class AddressEdit extends VanComponent {}
|
|
||||||
export class AddressList extends VanComponent {}
|
export class AddressList extends VanComponent {}
|
||||||
export class Area extends VanComponent {}
|
export class Area extends VanComponent {}
|
||||||
export class Button extends VanComponent {}
|
export class Button extends VanComponent {}
|
||||||
@ -84,6 +84,7 @@ export class Tabs extends VanComponent {}
|
|||||||
export class Tag extends VanComponent {}
|
export class Tag extends VanComponent {}
|
||||||
export class TreeSelect extends VanComponent {}
|
export class TreeSelect extends VanComponent {}
|
||||||
export class Uploader extends VanComponent {}
|
export class Uploader extends VanComponent {}
|
||||||
|
|
||||||
export {
|
export {
|
||||||
Toast,
|
Toast,
|
||||||
Dialog,
|
Dialog,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user