@zhaochengxian/big-screen-components
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

DataV Vue3+TS+Vite版

Author

LICENSE

NPM

由于之前大佬写的 DataV 存在各种兼容性问题,我做了一些优化 1 轮播表的columnWidth不支持百分比 2 轮播表的单元格如果内容很长,展示不全,没有鼠标悬浮展示所有功能 3 支持插槽

使用方法

  • 安装,此处使用pnpm工具,也可以yarn,npm等
pnpm install @zhaochengxian/big-screen-component

全局引入

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

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 '@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 开发。支持脚本生成基础文件,文档,可使用Markdown一边开发源码一边写文档。详情可见MY-Kit文档。

文档样式说明

  • 文档部分 demo 的 CSS 样式使用 UnoCSS 构建,文档里使用的一些 UnoCSSshortcuts,例如:demo-bgdv-bgsmall-bg、 见 UnoCSS 配置文件:unocss.config.ts,路径:packages/docs/unocss.config.ts

Package Sidebar

Install

npm i @zhaochengxian/big-screen-components

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

721 kB

Total Files

96

Last publish

Collaborators

  • zhaochengxian