song-ui-u
Version:
vue3 + js的PC前端组件库
18 lines (15 loc) • 363 B
JavaScript
import { ref, computed } from 'vue';
const initZindex = 3e3;
const zIndex = ref(0);
const useZindex = () => {
const currentZindex = computed(() => initZindex + zIndex.value);
const nextZindex = () => {
zIndex.value++;
};
return {
currentZindex,
nextZindex
};
};
export { initZindex, useZindex, zIndex };
//# sourceMappingURL=index.mjs.map