@opensig/opendesign
Version:
21 lines (20 loc) • 526 B
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const vue = require("vue");
const global = require("./global.js");
let topZIndex = 100;
vue.watchEffect(() => {
topZIndex = global.defaultZIndex.value;
});
function createTopZIndex() {
topZIndex += 1;
return topZIndex;
}
function removeZIndex(current) {
if (current === void 0 || current === topZIndex) {
topZIndex -= 1;
}
return topZIndex;
}
exports.createTopZIndex = createTopZIndex;
exports.removeZIndex = removeZIndex;