初始化
This commit is contained in:
14
typings/env.d.ts
vendored
Normal file
14
typings/env.d.ts
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
declare interface Window {
|
||||
signLink: string
|
||||
}
|
||||
|
||||
declare module 'uview-plus'
|
||||
declare module 'weixin-js-sdk'
|
||||
|
||||
declare module 'css-color-function'
|
||||
|
||||
declare module 'markdown-it-math'
|
||||
|
||||
declare module 'js-mp3'
|
||||
10
typings/router.d.ts
vendored
Normal file
10
typings/router.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import 'uniapp-router-next'
|
||||
declare module 'uniapp-router-next' {
|
||||
// 扩展 RouteMeta
|
||||
interface RouteMeta {
|
||||
share?: boolean
|
||||
auth?: boolean
|
||||
white?: string
|
||||
isTab?: boolean
|
||||
}
|
||||
}
|
||||
5
typings/uni.d.ts
vendored
Normal file
5
typings/uni.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
interface Uni {
|
||||
$u: any
|
||||
}
|
||||
|
||||
declare const wx: any
|
||||
12
typings/vue.d.ts
vendored
Normal file
12
typings/vue.d.ts
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import 'vue'
|
||||
declare module 'vue' {
|
||||
interface ComponentCustomProperties {
|
||||
$theme: {
|
||||
primaryColor: string
|
||||
pageStyle: string
|
||||
navColor: string
|
||||
navBgColor: string
|
||||
title: string
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user