UNPKG

@farris/ui-vue

Version:

Farris Vue, a Farris Design based Vue3 component library.

53 lines (52 loc) 2.05 kB
import { NotifyData } from './notify.props'; /** * Notify 组件用来显示全局消息。 1. 轻量级的提示,不影响用户继续执行其他操作 2. 有默认类提示、信息类提示、成功类提示、警告类提示、错误类提示 3. 可以设置提示显示位置 4. 提示可以只有内容,也可以带标题 * @example * ```vue * <script lang="ts" setup> * import { ref,inject } from 'vue'; * const notifyService = inject('FNotifyService'); * * notifyService.info(options) * notifyService.success(options) * notifyService.warning(options) * notifyService.error(options) * </script> * ``` * @public */ declare const _default: import("vue").DefineComponent<{ showCloseButton: boolean; position: import("./notify.props").NotifyPosition; timeout: number; theme: import("./notify.props").NotifyTheme; animate: import("./notify.props").ToastyAnimate; safeHtml: boolean; id?: string | undefined; top?: number | undefined; left?: number | undefined; right?: number | undefined; bottom?: number | undefined; options?: NotifyData | undefined; }, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{ showCloseButton: boolean; position: import("./notify.props").NotifyPosition; timeout: number; theme: import("./notify.props").NotifyTheme; animate: import("./notify.props").ToastyAnimate; safeHtml: boolean; id?: string | undefined; top?: number | undefined; left?: number | undefined; right?: number | undefined; bottom?: number | undefined; options?: NotifyData | undefined; }> & Readonly<{}>, { showCloseButton: boolean; position: import("./notify.props").NotifyPosition; timeout: number; theme: import("./notify.props").NotifyTheme; animate: import("./notify.props").ToastyAnimate; safeHtml: boolean; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; export default _default;