import Vue from "vue"; // 2. 定制一个文件,设置你想要补充的类型 // 在 types/vue.d.ts 里 Vue 有构造函数类型 declare module "vue/types/vue" { // 3. 声明为 Vue 补充的东西 interface Vue { $frameSentMessage(option: object); $frameReceiveMessage(): object; $validate(value: string, type: string); $getHostName(); $getIP(); $getMAC(); successMessage(info: string); errorMessage(info: string); infoMessage(info: string); warningMessage(info: string); } } declare class DialogVO { /**弹框标题 */ title: string; /**弹框是否禁用 */ disableFlag: boolean; /**弹框功能,0查看,1新增 2修改 3删除 */ action: number; /**是否显示 */ visible: boolean; /**是否可以通过点击 modal 关闭 Dialog */ closeOnClickModal: boolean; getSeeDialog(title): DialogVO; getAddDialog(title): DialogVO; getUpdateDialog(title): DialogVO; getDeleteDialog(title): DialogVO; } declare class zhz { xdq:string }