Giter Site home page Giter Site logo

antd-mobile-dva-f2's Introduction

antd-mobile-dva-f2

Ant Mobile 2 + Dva2 + Roadhog2 + F2

基于 dva-antd-mobile-starter,主要将Roadhog升级到了2.3.0,并参照 g2-react 简单封装了一个F2图表组件以便在React中使用。

工程说明

  1. 参照Antd Pro工程进行了一些优化,并将request组件移植过来。
  2. 增加了图表的mock数据,以结合dva和F2图表进行数据演示。
  3. 封装的F2图表组件F2React,默认支持宽度自适应。

图表使用

  • 目前基于已封装的F2React组件,初步封装了基本柱图、双柱图、基本饼图3个组件,可自行根据需求进一步封装。
  • 仪表盘(routes下的Dashboard)为结合DVA使用的例子。
  • 图表演示(routes下的ChartDemo)为纯静态数据的例子。
import BarDodge from '../../components/Charts/Bar/dodge';
<BarDodge
  data={barDodgeData}
  // width={360} // 不设置宽度则宽度自适应父容器
  height={360} // 需根据实际需要设置高度
  padding={30} // 可传入padding给F2React组件
  // configs={{}} // 需要传入给F2React组件的一些配置
/>

Screen Shot

TODO

  • F2React独立为npm组件
  • 常用图表组件封装
  • Dva loading的处理
  • ...

antd-mobile-dva-f2's People

Contributors

beautycss avatar

Watchers

James Cloos avatar yaochuxia 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.