| | |
| | | export interface TdMessageProps { |
| | | action?: { |
| | | type: StringConstructor; |
| | | value?: string; |
| | | }; |
| | | align?: { |
| | | type: StringConstructor; |
| | | value?: MessageAlignType; |
| | | }; |
| | | closeBtn?: { |
| | | type: null; |
| | | value?: string | boolean; |
| | | value?: string | boolean | object; |
| | | }; |
| | | content?: { |
| | | type: StringConstructor; |
| | | value?: string; |
| | | }; |
| | | style?: { |
| | | type: StringConstructor; |
| | | value?: string; |
| | | }; |
| | |
| | | type: NumberConstructor; |
| | | value?: number; |
| | | }; |
| | | externalClasses?: { |
| | | type: ArrayConstructor; |
| | | value?: ['t-class', 't-class-content', 't-class-icon', 't-class-action', 't-class-close-btn']; |
| | | gap?: { |
| | | type: null; |
| | | value?: string | number | boolean; |
| | | }; |
| | | icon?: { |
| | | type: null; |
| | | value?: boolean | 'info' | 'bell'; |
| | | value?: string | boolean | object; |
| | | }; |
| | | link?: { |
| | | type: null; |
| | | value?: string | object; |
| | | }; |
| | | marquee?: { |
| | | type: null; |
| | | value?: boolean | DrawMarquee; |
| | | value?: boolean | MessageMarquee; |
| | | }; |
| | | offset?: { |
| | | type: ArrayConstructor; |
| | | value?: Array<string | number>; |
| | | }; |
| | | single?: { |
| | | type: BooleanConstructor; |
| | | value?: boolean; |
| | | }; |
| | | theme?: { |
| | | type: StringConstructor; |
| | |
| | | type: NumberConstructor; |
| | | value?: number; |
| | | }; |
| | | link?: { |
| | | type: null; |
| | | value?: string | object; |
| | | }; |
| | | gap?: { |
| | | type: null; |
| | | value?: string | number; |
| | | }; |
| | | single?: { |
| | | type: BooleanConstructor; |
| | | value?: boolean; |
| | | }; |
| | | } |
| | | export declare type MessageAlignType = 'left' | 'center'; |
| | | export interface DrawMarquee { |
| | | export interface MessageMarquee { |
| | | speed?: number; |
| | | loop?: number; |
| | | delay?: number; |