mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
types: fix plugin install #7056
This commit is contained in:
parent
4ddf4e7018
commit
e2c082b204
6
types/component.d.ts
vendored
6
types/component.d.ts
vendored
@ -1,7 +1,7 @@
|
||||
import Vue from 'vue';
|
||||
import { App } from 'vue';
|
||||
|
||||
export class VanComponent extends Vue {
|
||||
export class VanComponent {
|
||||
static name: string;
|
||||
|
||||
static install(vue: typeof Vue): void;
|
||||
static install: (app: App) => any;
|
||||
}
|
||||
|
2
types/index.d.ts
vendored
2
types/index.d.ts
vendored
@ -1,5 +1,4 @@
|
||||
/* eslint-disable max-classes-per-file */
|
||||
import Vue from 'vue';
|
||||
import { VanComponent } from './component';
|
||||
import { AddressEdit } from './address-edit';
|
||||
import { Area } from './area';
|
||||
@ -26,7 +25,6 @@ import { Toast } from './toast';
|
||||
import { Uploader } from './uploader';
|
||||
|
||||
export const version: string;
|
||||
export function install(vue: typeof Vue): void;
|
||||
|
||||
export class ActionSheet extends VanComponent {}
|
||||
export class AddressList extends VanComponent {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user