- E-DataV是一个基于Vue3的数据可视化组件库(Vue2版本及React版本)
- 提供数据可视化大屏所需的各种组件,朋友写的DataV组件库中已有的组件,我这边不会过多增加,最多是效果提升
- 因个人比较佛系,更新会比较慢,但会持续更新
$ npm install e-datav-vue3
import Vue from 'vue'
import EDataV from 'e-datav-vue3'
// 全局全部组件注册
Vue.use(EDataV)
// 按需引入,全局注册
import { EDigitalFlop } from 'e-datav-vue3'
Vue.use(EDigitalFlop)
// 单组件内按需引入
<script setup>
import { EDigitalFlop } from 'e-datav-vue3';
</script>
<body>
<div id="app">
<e-full-screen-container>
<e-digital-flop :value="9999" separator="," color="#c75151"></e-digital-flop>
</e-full-screen-container>
</div>
</body>
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>
<script src="https://unpkg.com/e-datav-vue3/umd/e-datav-vue3.umd.js"></script>
<script>
const { createApp } = Vue;
const { EDigitalFlop, EFullScreenContainer } = EDataV;
const App = createApp();
App.component('EDigitalFlop', EDigitalFlop);
App.component('EFullScreenContainer', EFullScreenContainer);
App.mount('#app');
</script>