UNPKG

primevue

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primevue.svg)](https://badge.fury.io/js/primevue) [![Discord Chat](https://img.shields.io/discord/55794023

27 lines (21 loc) 1 kB
this.primevue = this.primevue || {}; this.primevue.confirmationservice = (function (ConfirmationEventBus, useconfirm) { 'use strict'; function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var ConfirmationEventBus__default = /*#__PURE__*/_interopDefaultLegacy(ConfirmationEventBus); var ConfirmationService = { install: (app) => { const ConfirmationService = { require: (options) => { ConfirmationEventBus__default['default'].emit('confirm', options); }, close: () => { ConfirmationEventBus__default['default'].emit('close'); } }; app.config.globalProperties.$confirm = ConfirmationService; app.provide(useconfirm.PrimeVueConfirmSymbol, ConfirmationService); } }; return ConfirmationService; }(primevue.confirmationeventbus, primevue.useconfirm));