修改d.ts中的类名,并添加全局方法的d.ts定义
This commit is contained in:
parent
c703e2b4a4
commit
6d9afa9c19
60 changed files with 216 additions and 212 deletions
6
types/notice.d.ts
vendored
6
types/notice.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode, CreateElement } from "vue";
|
||||
|
||||
export declare class NoticeInstance {
|
||||
export declare class Notice {
|
||||
/**
|
||||
* 打开
|
||||
* @param config NoticeConfig为相关配置,string为待显示的内容
|
||||
|
@ -82,11 +82,11 @@ export declare class NoticeGlobalConfig {
|
|||
duration?: number;
|
||||
}
|
||||
|
||||
declare module "vue/types/vue" {
|
||||
declare module 'vue/types/vue' {
|
||||
interface Vue {
|
||||
/**
|
||||
* 通知提醒
|
||||
*/
|
||||
$Notice?: NoticeInstance;
|
||||
$Notice?: Notice;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue