mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-16 09:58:13 +08:00
🌱 尝试函数式组件 #34
This commit is contained in:
24
src/types/Component/Snackbar.d.ts
vendored
Normal file
24
src/types/Component/Snackbar.d.ts
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* @file types Component Snackbar.d.ts
|
||||
* @description Component Snackbar 类型声明文件
|
||||
* @author BTMuli <bt-muli@outlook.com>
|
||||
* @since Alpha v0.2.3
|
||||
*/
|
||||
|
||||
declare namespace TGApp.Component.Snackbar {
|
||||
/**
|
||||
* @description Snackbar 参数
|
||||
* @interface Params
|
||||
* @since Alpha v0.2.3
|
||||
* @property {string} text 文本
|
||||
* @property {string} color 颜色
|
||||
* @property {number} timeout 超时时间
|
||||
* @property {boolean} show 是否显示
|
||||
* @return Params
|
||||
*/
|
||||
export interface Params {
|
||||
text: string;
|
||||
color?: string;
|
||||
timeout?: number;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user