This commit is contained in:
Ling53666
2025-08-18 09:11:51 +08:00
commit 02554225da
2516 changed files with 133155 additions and 0 deletions

View File

@ -0,0 +1,47 @@
import { IBaseProps } from '../_util/base';
/**
* @description 通告栏,
* 当应用有重要公告或者由于用户的刷新操作产生提示反馈时可以使用通告栏系统。
* 通告栏不会对用户浏览当前页面内容产生影响,但又能明显的引起用户的注意。公告内容不超过一行。
*/
export interface INoticeBarProps extends IBaseProps {
/**
* @description 消息的展示
*/
icon?: string;
/**
* @description 提示类型
* default 橙色error 红色primary 蓝色info 灰色
* @default "default"
*/
type?: 'default' | 'error' | 'primary' | 'info';
/**
* @description 通告类型link 表示连接整行可点closeable 表示点击 x 可以关闭;不填时表示你右侧没有图标
*/
mode?: 'link' | 'closeable';
/**
* @description 是否开启滚动动画
* @default false
*/
enableMarquee: boolean;
/**
* @description 是否循环滚动enableMarquee 为 true 时有效
* @default false
*/
loop: boolean;
/**
* @description 微信版本需要通过此字段启用 icon 位置的插槽
* @default false
*/
slotIcon?: boolean;
/**
* @description 点击图标箭头或者叉由mode属性决定的事件回调
*/
onTap: () => void;
/**
* @description 行动点点击回调
* @param 当前点击的行动点序号
*/
onActionTap: (index: number) => void;
}
export declare const NoticeBarDefaultProps: Partial<INoticeBarProps>;