短通知 + 上部消息
This commit is contained in:
42
components/toast/type.d.ts
vendored
Normal file
42
components/toast/type.d.ts
vendored
Normal 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';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user