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

25 lines (21 loc) 687 B
import type { ExtractPropTypes } from 'vue' import { useCustomClassProp, useCustomStyleProp } from '../composables' import { CANCEL_EVENT, CONFIRM_EVENT } from '../constants' import { truthProp } from '../utils' export const dialogProps = { customClass: useCustomClassProp, customStyle: useCustomStyleProp, show: Boolean, title: String, message: String, showConfirmButton: truthProp, showCancelButton: Boolean, confirmButtonText: String, cancelButtonText: String, } export const dialogEmits = { [CONFIRM_EVENT]: () => true, [CANCEL_EVENT]: () => true, } export type DialogProps = ExtractPropTypes<typeof dialogProps> export type DialogEmits = typeof dialogEmits