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)

29 lines (23 loc) 808 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _ConfirmationEventBus = _interopRequireDefault(require("./ConfirmationEventBus")); var _useConfirm = require("./useConfirm"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _default = { install: function install(app) { var ConfirmationService = { require: function require(options) { _ConfirmationEventBus.default.emit('confirm', options); }, close: function close() { _ConfirmationEventBus.default.emit('close'); } }; app.config.globalProperties.$confirm = ConfirmationService; app.provide(_useConfirm.PrimeVueConfirmSymbol, ConfirmationService); } }; exports.default = _default;