跳到主要內容

附加元件

核心套件旨在輕量且無依賴性。而附加元件則是將流行的套件封裝成一致的 API 風格。

Head - @vueuse/head

Vue 3 的文件 head 管理器。支援 SSR。由 @egoist 建立和維護

Motion - @vueuse/motion

Vue Composables 讓你的組件動起來。

  • 🏎 基於 Popmotion流暢動畫
  • 🎮 宣告式 API
  • 🚀 即插即用,具有 10 多種預設
  • 🚚 支援使用 nuxt-use-motionNuxt
  • ✨ 以 TypeScript 編寫
  • 🏋️‍♀️ 輕量級,捆綁包大小 <20kb

@Tahul 建立和維護

Gesture - @vueuse/gesture

Vue Composables 讓你的應用程式更互動

  • 🚀 即插即用
  • 🕹 滑鼠觸控支援
  • 🎮 指令支援 (v-drag, v-pinch, v-move...)
  • ✨ 以 TypeScript 編寫
  • 🤹 與 vueuse/motion任何其他動畫解決方案良好協作

@Tahul 建立和維護

Sound - @vueuse/sound

用於播放音效的 Vue composables。

  • 👂 讓你的網站使用 2 種人類感官而非 1 種進行溝通
  • 🔥 使用 Vue Composition API 建構
  • 🚚 支援使用 @vueuse/sound/nuxtNuxt 3
  • ⚡️ <1kb 位元組 (gzip) 在你的捆綁包中!~10kb 異步載入。
  • ✨ 以 TypeScript 建構
  • 🗣 使用強大、經過實戰考驗的音訊工具:Howler.js

@Tahul 建立和維護

SchemaOrg - @vueuse/schema-org

Vue 的 Schema.org。支援類型化和自動化的 Google 豐富成果

  • 😊 無需 Schema 知識,只需最少的設定即可在幾分鐘內開始運作
  • ✨ 20 多個類型化的 Schema,以獲得最佳實踐 (Google, Yoast) 豐富成果
  • 🧙 自動化 Schema: @id、URL / 日期解析、路由元數據等
  • 🤝 整合 VitePressNuxtVitesseVite,具有自動導入
  • 🍞 選擇你偏好的 API:Composables 或 Components
  • 🌳 支援 SSR、tree-shaking 和 Schema 繼承

@harlan-zw 建立和維護

Router - @vueuse/router

vue-router 的工具

Integrations - @vueuse/integrations

用於工具庫的整合包裝器

RxJS - @vueuse/rxjs

在 Vue 中啟用 RxJS 反應式函式

Firebase - @vueuse/firebase

為 Firebase 啟用即時綁定

Electron - @vueuse/electron

VueUse 的 Electron 渲染器進程模組

在 MIT 許可證下發布。