tdesign-miniprogram
Version:
tdesign-miniprogram
52 lines (51 loc) • 1.17 kB
TypeScript
export interface TdNoticeBarProps {
content?: {
type: null;
value?: null;
};
style?: {
type: StringConstructor;
value?: string;
};
direction?: {
type: StringConstructor;
value?: 'horizontal' | 'vertical';
};
externalClasses?: {
type: ArrayConstructor;
value?: ['t-class', 't-class-content', 't-class-prefix-icon', 't-class-operation', 't-class-suffix-icon'];
};
operation?: {
type: StringConstructor;
value?: string;
};
marquee?: {
type: null;
value?: boolean | DrawMarquee;
};
prefixIcon?: {
type: null;
value?: boolean | string | object;
};
suffixIcon?: {
type: null;
value?: string | object;
};
theme?: {
type: StringConstructor;
value?: 'info' | 'success' | 'warning' | 'error';
};
visible?: {
type: BooleanConstructor;
value?: boolean;
};
defaultVisible?: {
type: BooleanConstructor;
value?: boolean;
};
}
export interface DrawMarquee {
speed?: number;
loop?: number;
delay?: number;
}