JSPM

@v-chartsv2/hot-chart

1.1.3
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 3
    • Score
      100M100P100Q36035F
    • License MIT

    v-charts2 热门图表切换专用包

    Package Exports

    • @v-chartsv2/hot-chart
    • @v-chartsv2/hot-chart/v-charts.css
    • @v-chartsv2/hot-chart/vue2
    • @v-chartsv2/hot-chart/vue3

    Readme

    mark text

    @v-chart2/hot-chart

    npm version install size GitHub stars GitHub issues
    jsdelivr npm NPM

    🎉 热门图表切换

    下载

    pnpm add @v-chartsv2/hot-chart
    # or
    npm install @v-chartsv2/hot-chart

    安装

    当你当前的打包工具为 webpack 时, 推荐你进行以下的安装步骤

    传统的 webpack4.x 没有 Tree Shaking 的支持, 如果你想引入 @v-chartsv2/hot-chart/vue2 或者 @v-chartsv2/hot-chart/vue3 的话, 可能会报错

    import Vue from "vue";
    import VeHotChart from "@v-chartsv2/hot-chart"; // 兼容 vue2.x 和 vue3.x 的支持, 将会自动加载支持 vue2.x 的支持包或者支持 vue3.x 的支持包
    Vue.use(VeHotChart);

    当你当前的打包工具为 vite 或者 rollup 时, 推荐你进行以下的安装步骤

    • Vue 2.x
    import Vue from "vue";
    import VeHotChart from "@v-chartsv2/hot-chart/vue2"; // 更好的 Tree Shaking 推荐引入 vue2.x 的专属支持包
    import "@v-chartsv2/hot-chart/v-charts.css"; // 需要手动引入样式
    Vue.use(VeHotChart);
    • Vue 3.x
    import { createApp } from "vue";
    const app = createApp();
    import VeHotChart from "@v-chartsv2/hot-chart/vue3"; // 更好的 Tree Shaking 推荐引入 vue3.x 的专属支持包
    import "@v-chartsv2/hot-chart/v-charts.css"; // 需要手动引入样式
    app.use(VeHotChart);