@tencentcloud/roomkit-web-vue3
Version:
<h1 align="center"> TUIRoomKit</h1> Conference (TUIRoomKit) is a product suitable for multi-person audio and video conversation scenarios such as business meetings, webinars, and online education. By integrating this product, you can add room management,
18 lines (17 loc) • 405 B
JavaScript
import { computed, ref } from "vue";
const zIndex = ref(0);
const defaultInitialZIndex = 3e3;
function useZIndex() {
const currentZIndex = computed(() => defaultInitialZIndex + zIndex.value);
const nextZIndex = () => {
zIndex.value = zIndex.value + 1;
return currentZIndex.value;
};
return {
currentZIndex: currentZIndex.value,
nextZIndex
};
}
export {
useZIndex as default
};