UNPKG

vant

Version:

Mobile UI Components built on Vue

31 lines (30 loc) 939 B
import type { TeleportProps } from 'vue'; import type { Numeric } from '../utils'; export type NotifyMessage = Numeric; export type NotifyType = 'primary' | 'success' | 'danger' | 'warning'; export type NotifyPosition = 'top' | 'bottom'; export type NotifyOptions = { type?: NotifyType; color?: string; message?: NotifyMessage; duration?: number; zIndex?: number; position?: NotifyPosition; className?: unknown; background?: string; lockScroll?: boolean; teleport?: TeleportProps['to']; onClick?: (event: MouseEvent) => void; onClose?: () => void; onOpened?: () => void; }; export type NotifyThemeVars = { notifyTextColor?: string; notifyPadding?: string; notifyFontSize?: string; notifyLineHeight?: number | string; notifyPrimaryBackground?: string; notifySuccessBackground?: string; notifyDangerBackground?: string; notifyWarningBackground?: string; };