1.1.1 • Published 9 months ago

mrblackdatav3-charts v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

DataV Vue3+TS+Vite版

Gitee地址https://gitee.com/SirBlack/datav-vue3

使用方法

  • 安装,此处使用pnpm工具,也可以yarn,npm等
pnpm install mrblackdatav3-charts

全局引入

// main.ts中全局引入
import { createApp } from 'vue'
import DataVVue3 from 'mrblackdatav3-charts'

const app = createApp(App)

app.use(DataVVue3)
app.mount('#app')

引入后在.vue文件中可以直接使用

<dv-decoration-1 :color="['pink','yellow']" style="width:200px;height:50px;" />

局部引入

<!-- 在.vue文件的script中import部分组件 -->
<script lang="ts" setup>
import { Decoration1, Decoration2 } from 'mrblackdatav3-charts'
</script>
<template>
  <!-- 引入之后就可以在vue的template中直接使用 -->
  <decoration-1 :color="['pink','yellow']" style="width:200px;height:50px;" />
  <decoration-2 :reverse="true" style="width:5px;height:150px;" />
</template>