UNPKG

@vuesax-alpha/nightly

Version:
28 lines (23 loc) 890 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var vue = require('vue'); require('../../../hooks/index.js'); var index = require('../../../hooks/use-global-config/index.js'); var index$1 = require('../../../hooks/use-namespace/index.js'); var index$2 = require('../../../hooks/use-id/index.js'); let cachedContainer; const useNotificationContainerId = () => { const namespace = index.useGlobalConfig("namespace", index$1.defaultNamespace); const idInjection = index$2.useIdInjection(); const id = vue.computed(() => { return `${namespace.value}-notification-container-${idInjection.prefix}`; }); const selector = vue.computed(() => `#${id.value}`); return { id, selector }; }; exports.cachedContainer = cachedContainer; exports.useNotificationContainerId = useNotificationContainerId; //# sourceMappingURL=use-notification.js.map