1.0.3 • Published 10 months ago

datav-plus v1.0.3

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

DataV Vue3+TS+Vite版

Author LICENSE

NPM

本库来源自 DataV-Team/DataV,另外,大佬的 DataV-Vue3 项目也已经在开发中了,地址:https://github.com/DataV-Team/DataV-Vue3

由于之前大佬写的 DataV 不支持Vue3 Vite2.x,现部分代码用Vue3+TS重构。

使用方法

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

全局引入

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

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 'datav-plus'
</script>
<template>
  <!-- 引入之后就可以在vue的template中直接使用 -->
  <decoration-1 :color="['pink','yellow']" style="width:200px;height:50px;" />
  <decoration-2 :reverse="true" style="width:5px;height:150px;" />
</template>

二次开发

二次开发可见文档中二次开发部分contribute

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago