upload project source code
This commit is contained in:
5
前端源码/uni-app/types/assets.d.ts
vendored
Normal file
5
前端源码/uni-app/types/assets.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
declare module "*.png" {
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
18
前端源码/uni-app/types/global.d.ts
vendored
Normal file
18
前端源码/uni-app/types/global.d.ts
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import type { Router } from 'vue-router'
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
uni: any
|
||||
vueRouter: Router
|
||||
}
|
||||
|
||||
// uni-app 全局变量
|
||||
const uni: any
|
||||
}
|
||||
|
||||
export { }
|
||||
|
||||
declare module "*.png" {
|
||||
const src: string
|
||||
export default src
|
||||
}
|
||||
18
前端源码/uni-app/types/uni.d.ts
vendored
Normal file
18
前端源码/uni-app/types/uni.d.ts
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
declare const uni: {
|
||||
showToast(options: {
|
||||
title: string;
|
||||
icon?: "success" | "error" | "loading" | "none";
|
||||
duration?: number;
|
||||
mask?: boolean;
|
||||
}): void;
|
||||
showModal(options: {
|
||||
title?: string;
|
||||
content?: string;
|
||||
showCancel?: boolean;
|
||||
cancelText?: string;
|
||||
confirmText?: string;
|
||||
success?: (res: { confirm: boolean; cancel: boolean }) => void;
|
||||
}): void;
|
||||
[key: string]: any;
|
||||
};
|
||||
|
||||
3
前端源码/uni-app/types/vue.d.ts
vendored
Normal file
3
前端源码/uni-app/types/vue.d.ts
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/// <reference types="vue/macros-global" />
|
||||
|
||||
export {};
|
||||
Reference in New Issue
Block a user