import { FC, PropsWithChildren } from 'react'; interface INoticebarProps { /** * css class */ className?: string; /** * 是否允许换行(当 marquee 值为 true 时,wrap 无效) */ wrap?: boolean; /** * 通告左侧的图标名称或图片链接 */ leftIcon?: string; /** * 通告右侧的图标名称或图片链接 */ rightIcon?: string; /** * 通知文本颜色,默认取 scss 变量 $ink-noticebar-text-color */ color?: string; /** * 滚动条背景,默认取 scss 变量 $ink-noticebar-bg-color */ background?: string; /** * 内容是否滚动(内容只能单行) * @default false */ marquee?: boolean; /** * 内容滚动速度(每秒) * @default 75 */ speed?: number; /** * 点击通告栏的回调函数 */ onClick?: () => void; /** * 点击通告右侧图标的回调函数 */ onRightIconClick?: () => void; } declare const Noticebar: FC>; export default Noticebar;