UNPKG

@opensig/opendesign

Version:

<p align="center"><img src="../docs/public/opendesign-logo-light.png"/></p> <h1 align="center">opendesign</h1> <p align="center">一个 Vue 3 组件库</p> <p align="center"><b>皮肤可定制,使用 TypeScript</b></p>

21 lines (20 loc) 526 B
"use strict"; 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;