UNPKG

vexip-ui

Version:

A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good

1 lines 1.23 kB
{"version":3,"file":"symbol.mjs","sources":["../../../components/popup/symbol.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\n\nexport type Key = string | number\nexport type PopupPlacement =\n | 'top-right'\n | 'top-center'\n | 'top-left'\n | 'bottom-right'\n | 'bottom-center'\n | 'bottom-left'\n\nexport interface PopupItemState extends Record<string, unknown> {\n key: Key,\n content: string,\n closable: boolean,\n height: number,\n visible: boolean,\n verticalPosition: number,\n type?: string,\n className?: any,\n style?: any,\n icon?: Record<string, any> | (() => any),\n iconColor?: string,\n onOpen: (key: Key) => void,\n onClose: (result: boolean) => void,\n onEnter: () => void,\n onLeave: () => void,\n}\n\nexport const DELETE_HANDLER = '__VXP_POPUP_DELETE_HANDLER' as unknown as InjectionKey<\n (key: Key) => void\n>\n\nexport const popupPlacements = Object.freeze<PopupPlacement[]>([\n 'top-right',\n 'top-center',\n 'top-left',\n 'bottom-right',\n 'bottom-center',\n 'bottom-left',\n])\n"],"names":["DELETE_HANDLER","popupPlacements"],"mappings":"AA6BO,MAAMA,IAAiB,8BAIjBC,IAAkB,OAAO,OAAyB;AAAA,EAC7D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;"}