primevue
Version:
[](https://opensource.org/licenses/MIT) [](https://badge.fury.io/js/primevue)
29 lines (23 loc) • 808 B
JavaScript
;
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;