初始版本
This commit is contained in:
18
staff_uniapp/typings/env.d.ts
vendored
Normal file
18
staff_uniapp/typings/env.d.ts
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
declare module '*.vue' {
|
||||
import { DefineComponent } from 'vue'
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
||||
const component: DefineComponent<{}, {}, any>
|
||||
export default component
|
||||
}
|
||||
|
||||
declare interface Window {
|
||||
signLink: string
|
||||
}
|
||||
|
||||
declare module 'uview-plus'
|
||||
|
||||
declare module 'weixin-js-sdk'
|
||||
|
||||
declare module 'css-color-function'
|
||||
10
staff_uniapp/typings/router.d.ts
vendored
Normal file
10
staff_uniapp/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
|
||||
}
|
||||
}
|
||||
3
staff_uniapp/typings/uni.d.ts
vendored
Normal file
3
staff_uniapp/typings/uni.d.ts
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
interface Uni {
|
||||
$u: any
|
||||
}
|
||||
12
staff_uniapp/typings/vue.d.ts
vendored
Normal file
12
staff_uniapp/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