-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathenv.d.ts
30 lines (28 loc) · 1007 Bytes
/
env.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/// <reference types="vite/client" />
import { DialogApi, LoadingBarApi, MessageApi, NotificationApi } from 'naive-ui'
declare global {
declare namespace NTheme {
/** 颜色类型 */
type ColorType = 'primary' | 'info' | 'success' | 'warning' | 'error'
/** 颜色类型大写值 */
type ColorTypeCase = 'Primary' | 'Info' | 'Success' | 'Warning' | 'Error'
/** 颜色场景 */
type ColorScene = '' | 'suppl' | 'hover' | 'pressed'
/** 颜色场景大写值 */
type ColorSceneCase = '' | 'Suppl' | 'Hover' | 'Pressed'
/** 按钮颜色场景 */
type ButtonColorScene = '' | 'hover' | 'pressed' | 'focus' | 'disabled'
/** 按钮颜色场景大写值 */
type ButtonColorSceneCase = '' | 'Hover' | 'Pressed' | 'Focus' | 'Disabled'
// 主题配置
type Config = {
[key in NTheme.ColorType]: string
}
}
interface Window {
$message: MessageApi
$dialog: DialogApi
$notification: NotificationApi
$loadingBar: LoadingBarApi
}
}