🌱 尝试函数式组件 #34

This commit is contained in:
BTMuli
2023-08-28 15:52:52 +08:00
parent 8073d79856
commit 923aae692f
3 changed files with 154 additions and 0 deletions

24
src/types/Component/Snackbar.d.ts vendored Normal file
View 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;
}
}