sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
31 lines (30 loc) • 877 B
TypeScript
import { type StyleValue } from 'vue';
import { type DefaultProps } from '../config';
export interface NoticeBarProps {
rootStyle?: StyleValue;
rootClass?: string;
color?: string;
background?: string;
hideLeftIcon?: boolean;
delay?: number;
speed?: number;
scrollable?: 'auto' | 'never' | 'always';
wrap?: boolean;
closable?: boolean;
linkable?: boolean;
visible?: boolean;
vertical?: boolean;
}
export declare const defaultNoticeBarProps: () => DefaultProps<NoticeBarProps>;
export interface NoticeBarSlots {
default?(props: Record<string, never>): any;
'left-icon'?(props: Record<string, never>): any;
'right-icon'?(props: Record<string, never>): any;
}
export interface NoticeBarEmits {
(e: 'click', event: any): void;
(e: 'close'): void;
}
export interface NoticeBarExpose {
update: () => void;
}