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)

26 lines (21 loc) 695 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _ConfirmationEventBus = _interopRequireDefault(require("../confirmationeventbus/ConfirmationEventBus")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var ConfirmationService = { install: function install(Vue) { Vue.prototype.$confirm = { require: function require(options) { _ConfirmationEventBus.default.emit('confirm', options); }, close: function close() { _ConfirmationEventBus.default.emit('close'); } }; } }; var _default = ConfirmationService; exports.default = _default;