@extclp/vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
1 lines • 1.31 kB
Source Map (JSON)
{"version":3,"file":"symbol.mjs","sources":["../../../components/popup/symbol.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\r\n\r\nexport type Key = string | number\r\nexport type PopupPlacement =\r\n | 'top-right'\r\n | 'top-center'\r\n | 'top-left'\r\n | 'bottom-right'\r\n | 'bottom-center'\r\n | 'bottom-left'\r\n\r\nexport interface PopupItemState extends Record<string, unknown> {\r\n key: Key,\r\n content: string,\r\n closable: boolean,\r\n height: number,\r\n visible: boolean,\r\n verticalPosition: number,\r\n type?: string,\r\n className?: any,\r\n style?: any,\r\n icon?: Record<string, any> | (() => any),\r\n iconColor?: string,\r\n onOpen: (key: Key) => void,\r\n onClose: (result: boolean) => void,\r\n onEnter: () => void,\r\n onLeave: () => void,\r\n}\r\n\r\nexport const DELETE_HANDLER = '__VXP_POPUP_DELETE_HANDLER' as unknown as InjectionKey<\r\n (key: Key) => void\r\n>\r\n\r\nexport const popupPlacements = Object.freeze<PopupPlacement[]>([\r\n 'top-right',\r\n 'top-center',\r\n 'top-left',\r\n 'bottom-right',\r\n 'bottom-center',\r\n 'bottom-left',\r\n])\r\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;"}