UNPKG

ano-ui

Version:

<p align="center"> <img src="https://github.com/ano-ui/ano-ui/raw/main/public/logo.svg" style="width:100px;" /> <h1 align="center">Ano-UI (WIP)</h1> <p align="center">An UniApp UI components with UnoCSS.</p> </p> <p align="center"> <a href="https://www.np

22 lines (17 loc) 562 B
import type { ExtractPropTypes } from 'vue' import { useCustomClassProp, useCustomStyleProp } from '../composables' import { CLOSE_EVENT } from '../constants' import type { ToastOptions } from './types' export const toastProps = { customClass: useCustomClassProp, customStyle: useCustomStyleProp, } export const toastEmits = { [CLOSE_EVENT]: () => true, } export type ToastProps = ExtractPropTypes<typeof toastProps> export type ToastEmits = typeof toastEmits export interface ToastInst { show: (options?: ToastOptions) => void close: () => void }