index.js 579 B

123456789101112131415161718192021222324
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. var vue = require('vue');
  4. var index = require('../use-global-config/index.js');
  5. const zIndex = vue.ref(0);
  6. const useZIndex = () => {
  7. const initialZIndex = index.useGlobalConfig("zIndex", 2e3);
  8. const currentZIndex = vue.computed(() => initialZIndex.value + zIndex.value);
  9. const nextZIndex = () => {
  10. zIndex.value++;
  11. return currentZIndex.value;
  12. };
  13. return {
  14. initialZIndex,
  15. currentZIndex,
  16. nextZIndex
  17. };
  18. };
  19. exports.useZIndex = useZIndex;
  20. //# sourceMappingURL=index.js.map