UNPKG

@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,

19 lines (14 loc) 382 B
import { computed, ref } from 'vue'; const zIndex = ref(0); const defaultInitialZIndex = 3000; export default function () { const currentZIndex = computed(() => defaultInitialZIndex + zIndex.value); const nextZIndex = () => { zIndex.value = zIndex.value + 1; return currentZIndex.value; }; return { currentZIndex: currentZIndex.value, nextZIndex, }; }