New: 37 Vue composables, zero dependencies
Libraries
Helper bersama. Ikut terpasang sendiri saat dibutuhkan composable lain.
4 composables
lib/is-browser.ts
if (isBrowser) {
localStorage.setItem('theme', 'dark')
}isBrowser
no install
Lihat halamannya untuk padanan Vue-nya.
lib/create-context.ts
provide('theme', theme)
const theme = inject('theme')createContext
no install
Lihat halamannya untuk padanan Vue-nya.
lib/target.ts
const el = getTargetElement(target)target
no install
Lihat halamannya untuk padanan Vue-nya.
lib/try-on-mounted.ts
tryOnMounted(() => {
width.value = window.innerWidth
})tryOnMounted
no install
Lihat halamannya untuk padanan Vue-nya.