Giter Site home page Giter Site logo

Comments (5)

weepy3641 avatar weepy3641 commented on August 26, 2024

你想要 className 干啥?
你外层的 container 节点加上 classname 不可以?

from bizcharts.

CharlesMoone avatar CharlesMoone commented on August 26, 2024

看源码多出来一个div,所以想为啥不能直接在这个div上直接加,非要再包一层?

from bizcharts.

BambooSword avatar BambooSword commented on August 26, 2024

这个多出来的div是为了兼容react v16以前的版本,因为在v16之前,render必须返回有且只有一个父级jsx元素。

from bizcharts.

BambooSword avatar BambooSword commented on August 26, 2024

你好,我今天又验证了一下,的确没必要在Chart上多出一个外层div,我会向上反馈一下,看看是否要将其去掉。关于你说要跟Chart提供一个className的接口,我首先想了解的是,您是出于怎样的需求需要这样的接口?提供这样的接口意义何在? @CharlesMoone

from bizcharts.

weepy3641 avatar weepy3641 commented on August 26, 2024

3.1.0 版本已经提供了 classname 和 style 接口。
详见 chart api 文档
https://github.com/alibaba/BizCharts/blob/master/doc/api/chart.md

from bizcharts.

Related Issues (20)

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.