UNPKG

@vant/weapp

Version:

轻量、可靠的小程序 UI 组件库

23 lines (22 loc) 645 B
interface NotifyOptions { type?: 'primary' | 'success' | 'danger' | 'warning'; color?: string; zIndex?: number; top?: number; message: string; context?: any; duration?: number; selector?: string; background?: string; safeAreaInsetTop?: boolean; onClick?: () => void; onOpened?: () => void; onClose?: () => void; } declare function Notify(options: NotifyOptions | string): any; declare namespace Notify { var clear: (options?: NotifyOptions | undefined) => void; var setDefaultOptions: (options: NotifyOptions) => void; var resetDefaultOptions: () => void; } export default Notify;