GithubHelp home page GithubHelp logo

boxiweizhao1 / datav-vue3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vaemusic/datav-vue3

0.0 0.0 0.0 2.65 MB

datav Vue3+TS+Vite版

Home Page: https://datav-vue3.netlify.app

License: MIT License

JavaScript 3.06% TypeScript 29.86% CSS 1.16% HTML 0.14% Smarty 0.90% Vue 62.66% Less 2.22%

datav-vue3's Introduction

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 @kjgl77/datav-vue3

全局引入

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

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 '@kjgl77/datav-vue3'
</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

datav-vue3's People

Contributors

vaemusic avatar soya-xy avatar xla740920 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.