Giter VIP home page Giter VIP logo

oview's Introduction

oView Vue.js移动端图表库

oView是基于 蚂蚁金服F2图表库的二次封装,以便于Vue.js开发者在移动端和PC端更好进行图表的展示。

vue插件

vue add oview
vue invoke vue-cli-plugin-oview

NPM安装

npm install oview --save
//或者使用yarn
yarn add oview

使用

//main.js中
import oView from "oview";
Vue.use(oView);

oview默认会使用:o-chart,o-line的方式全局注册组件。使用时,请记得使用o-x的方式哦

oView特性

  • 1、oview支持哪些图?

    • 目前oview支持:柱状图,饼状图,面积图,散点图,气泡图,折线图 ,雷达图。
  • 2、图表配置简单

    <!-- 没错,配置一个饼状图就是这么简单--->
    <o-chart :data="data">
      <o-pie position="name*percent"></o-pie>
    </o-chart>
  • oview图表色彩鲜艳

色彩主要使用F2官方建议色彩,如需自定义色彩可使用:color="yourColors"传入即可。(详细请见oview文档

oview's People

Contributors

mrgaogang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

oview's Issues

同学,您这个项目引入了724个开源组件,存在35个漏洞,辛苦升级一下

检测到 MrGaoGang/oview 一共引入了724个开源组件,存在35个漏洞

漏洞标题:serialize-javascript 代码问题漏洞
缺陷组件:[email protected]
漏洞编号:CVE-2020-7660
漏洞描述:Verizon serialize-javascript是美国威瑞森电信(Verizon)公司的一款支持将JavaScript序列化为 JSON超集的软件包。
serialize-javascript 3.1.0之前版本中存在代码问题漏洞。远程攻击者可借助index.js文件中的‘deleteFunctions’函数利用该漏洞注入任意代码。
国家漏洞库信息:https://www.cnvd.org.cn/flaw/show/CNVD-2020-53801
影响范围:(∞, 3.1.0)
最小修复版本:3.1.0
缺陷组件引入路径:[email protected]>[email protected]>[email protected]>[email protected]
[email protected]>[email protected]>[email protected]
[email protected]>[email protected]>[email protected]

另外还有35个漏洞,详细报告:https://mofeisec.com/jr?p=i9a4b3

IOS端出现滚动条时会不断刷新页面

在IOS端,当引入了oview的页面出现滚动条时,会刷新页面

最后定位到Chart.vue 中的reRender方法中的window.location.reload()导致

请作者抽时间修复一下,谢谢!!!

PS:提供的演示demo在IOS上同样出现不断刷新界面的bug

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.