短通知 + 上部消息

This commit is contained in:
limqhz
2022-12-12 18:05:49 +08:00
parent 44df516337
commit 0efe64d1bb
34 changed files with 1262 additions and 58 deletions

42
components/toast/type.d.ts vendored Normal file
View File

@@ -0,0 +1,42 @@
export interface TdToastProps {
direction?: {
type: StringConstructor;
value?: 'row' | 'column';
};
duration?: {
type: NumberConstructor;
value?: number;
};
externalClasses?: {
type: ArrayConstructor;
value?: ['t-class'];
};
icon?: {
type: StringConstructor;
value?: string;
};
message?: {
type: StringConstructor;
value?: string;
};
overlayProps?: {
type: ObjectConstructor;
value?: object;
};
placement?: {
type: StringConstructor;
value?: 'top' | 'middle' | 'bottom';
};
preventScrollThrough?: {
type: BooleanConstructor;
value?: boolean;
};
showOverlay?: {
type: BooleanConstructor;
value?: boolean;
};
theme?: {
type: StringConstructor;
value?: 'loading' | 'success' | 'fail';
};
}