Nuxt ECharts
用於 Apache ECharts™ 的 Nuxt 模組
功能
- ✌️ Vue ECharts: 輕鬆整合 ECharts 的頂級 Vue 元件
- ⛰ SSR: 使用 Nuxt 伺服器元件 進行伺服器端 SVG 渲染
- ♾️ 客戶端水合: 懶載入完整的 ECharts 或 輕量級客戶端執行時
- 🛠️ 可配置: 僅匯入 必要功能 以縮小打包體積
- 🦾 型別安全: 根據您的配置自動匯入 ECharts 選項型別
- 🌲 Tree-shaking: 元件和 ECharts 僅在您使用時才會被包含
快速設定
透過一個命令將模組安裝到您的 Nuxt 應用中
npx nuxi module add echarts
就是這樣!您現在可以在 Nuxt 應用中使用 Nuxt ECharts 了 ✨
貢獻
本地開發
# Install dependencies
pnpm install
# Generate type stubs
pnpm run dev:prepare
# Develop with the playground
pnpm run dev
# Build the playground
pnpm run dev:build
# Run ESLint
pnpm run lint
# Format with Prettier
pnpm run format
# Run Vitest
pnpm run test
pnpm run test:watch
# Release new version
pnpm run release
鳴謝
Nuxt ECharts 模組依賴於由 @Justineo 建立的 vue-echarts。
許可證
本專案採用 MIT 許可證。
注意
Apache 軟體基金會 Apache ECharts, ECharts, Apache, Apache 羽毛和 Apache ECharts 專案徽標是 Apache 軟體基金會 的註冊商標或商標。