# 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](http://datav.jiaminghi.com/) 存在各种兼容性问题，我做了一些优化
 1 轮播表的columnWidth不支持百分比
 2 轮播表的单元格如果内容很长，展示不全，没有鼠标悬浮展示所有功能
 3 支持插槽



## 使用方法
- 安装，此处使用pnpm工具，也可以yarn,npm等
```shell
pnpm install @zhaochengxian/big-screen-component
```
## 全局引入

```js
// main.ts中全局引入
import { createApp } from 'vue'
import DataVVue3 from '@zhaochengxian/big-screen-component'

const app = createApp(App)

app.use(DataVVue3)
app.mount('#app')
```
引入后在.vue文件中可以直接使用
```html
<dv-decoration-1 :color="['pink','yellow']" style="width:200px;height:50px;" />
```

## 局部引入
```vue
<!-- 在.vue文件的script中import部分组件 -->
<script lang="ts" setup>
import { Decoration1, Decoration2 } from '@zhaochengxian/big-screen-component'
</script>

<template>
  <!-- 引入之后就可以在vue的template中直接使用 -->
  <Decoration1 :color="['pink', 'yellow']" style="width:200px;height:50px;" />
  <Decoration2 :reverse="true" style="width:5px;height:150px;" />
</template>
```

新的组件库开发根据大佬的 [MY-Kit](https://github.com/jrainlau/MY-Kit) 开发。支持脚本生成基础文件，文档，可使用Markdown一边开发源码一边写文档。详情可见MY-Kit文档。

## 文档样式说明
- 文档部分 demo 的 CSS 样式使用 [UnoCSS](https://github.com/unocss/unocss) 构建，文档里使用的一些 **UnoCSS** 的 **shortcuts**，例如：**`demo-bg`**、**`dv-bg`**、**`small-bg`**、 见 UnoCSS 配置文件：**`unocss.config.ts`**，路径：**`packages/docs/unocss.config.ts`**
