@qvant/qui-max
Version:
A Vue 3 Design system for Web.
37 lines (36 loc) • 1.05 kB
JavaScript
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __objRest = (source, exclude) => {
var target = {};
for (var prop in source)
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
target[prop] = source[prop];
if (source != null && __getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(source)) {
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
target[prop] = source[prop];
}
return target;
};
import merge from "../../node_modules/lodash-es/merge.js";
let $Q = {
nextZIndex: 0,
locale: "en"
};
const setConfig = (_a) => {
var _b = _a, {
zIndex
} = _b, options = __objRest(_b, [
"zIndex"
]);
$Q.nextZIndex = zIndex != null ? zIndex : 2e3;
$Q = merge($Q, options);
};
const getConfig = (key) => {
if (key === "nextZIndex")
$Q.nextZIndex += 1;
return $Q[key];
};
export { getConfig, setConfig };
//# sourceMappingURL=config.js.map