# datav-vue3 **Repository Path**: kjgl77/datav-vue3 ## Basic Information - **Project Name**: datav-vue3 - **Description**: datav Vue3+TS+Vite版 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: https://datav-vue3.netlify.app - **GVP Project**: No ## Statistics - **Stars**: 289 - **Forks**: 84 - **Created**: 2022-04-16 - **Last Updated**: 2025-06-12 ## Categories & Tags **Categories**: charting-components **Tags**: None ## README # DataV Vue3+TS+Vite版 [![Author](https://img.shields.io/badge/Author-kjgl77-red.svg "Author")](https://github.com/vaemusic "Author") [![LICENSE](https://img.shields.io/github/license/vaemusic/datav-vue3 "LICENSE")](https://github.com/vaemusic/datav-vue3/blob/master/LICENSE "LICENSE") [![NPM](https://nodei.co/npm/@kjgl77/datav-vue3.png?mini=true)](https://www.npmjs.com/package/@kjgl77/datav-vue3) 本库来源自 [DataV-Team/DataV](https://github.com/DataV-Team/DataV),另外,大佬的 [DataV-Vue3](https://github.com/DataV-Team/DataV-Vue3) 项目也已经在开发中了,地址:https://github.com/DataV-Team/DataV-Vue3 由于之前大佬写的 [DataV](http://datav.jiaminghi.com/) 不支持Vue3 Vite2.x,现部分代码用Vue3+TS重构。 - [文档地址](https://datav-vue3.netlify.app):https://datav-vue3.netlify.app - [Gitee地址](https://gitee.com/kjgl77/datav-vue3):https://gitee.com/kjgl77/datav-vue3 - [Github地址](https://github.com/vaemusic/datav-vue3):https://github.com/vaemusic/datav-vue3 - [Demo预览地址](https://datav-vue3-demo.netlify.app/):https://datav-vue3-demo.netlify.app/ - [Demo Gitee地址](https://gitee.com/kjgl77/electronic-file):https://gitee.com/kjgl77/electronic-file - [Demo Github地址](https://github.com/vaemusic/electronic-file):https://github.com/vaemusic/electronic-file ## 使用方法 - 安装,此处使用pnpm工具,也可以yarn,npm等 ```shell pnpm install @kjgl77/datav-vue3 ``` ### 全局引入 ```ts // main.ts中全局引入 import { createApp } from 'vue' import DataVVue3 from '@kjgl77/datav-vue3' const app = createApp(App) app.use(DataVVue3) app.mount('#app') ``` 引入后在.vue文件中可以直接使用 ```html ``` ### 局部引入 ```html ``` ## 二次开发 二次开发可见文档中[二次开发部分](https://datav-vue3.netlify.app/Guide/contribute.html)或[contribute](./packages/docs/docs/Guide/contribute.md)