You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
759 B
TypeScript

/* eslint-disable @typescript-eslint/no-unused-vars */
/*
* @Author: zhou lei
* @Date: 2022-01-21 09:23:56
* @LastEditTime: 2022-01-21 09:34:15
* @LastEditors: zhou lei
* @Description:
* @FilePath: /wms_haiwai_app/types/vue-prototype.d.ts
* 联系方式:910592680@qq.com 18669792120 科海达信息技术有限公司
*/
import Vue from 'vue';
// 在 types/vue.d.ts 里 Vue 有构造函数类型
declare module 'vue/types/vue' {
interface Vue {
// $myProperty: string;
/**
* 自定义弹窗提示
* @param {string} msg 消息
* @param {string} [type='toast'] 类型
* @param {string} [title=''] 标题
* @memberof Vue
*/
customToast(msg: string, type?: string = 'toast', title?: string = ''): void;
}
}