Giter VIP home page Giter VIP logo

bs-ant-design's People

Contributors

andresrgz avatar anisjonischkeit avatar enalmada avatar hossman333 avatar jakubmarkiewicz avatar josephhajduk avatar mariazagrodzka avatar nirvdrum avatar thangngoc89 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bs-ant-design's Issues

Form component doesn't match upstream

This fork of the project has a Form component definition that doesn't match upstream. While there's a fair bit of divergence by virtue of targeting JSX 3, the definition in this fork doesn't appear to be all that usable. In particular, Ant expects you to call a create function to wrap its Form element, giving you something with FormComponentProps, which is needed to validate and extract form values. Basically, it's needed to work with Ant's version of controlled form components. That function is not imported here, so the Form component can't be wrapped.

Update to antd ^3.18

Not a priority as of now, but we should keep it in mind.
Right now every component breaks upon updating ant to 3.18.x.
The fix seams to be rewriting

[@module] external reactComponent: React.component('a) = "antd/lib/package" 

to

[@module "antd/lib/package" ] external reactComponent: React.component('a) = "default"

Didn't yet check why is it an issue, maybe we could do something to omit changing every file.

Can't run with BuckleScript 7.1.0

BuckleScript 7.1.0 ships with refmt 3.6.0 and I think it's a bit stricter than older versions were. I'm seeing a couple problems with type definitions in the Antd_Form component:

  We've found a bug for you!
  /home/nirvdrum/dev/workspaces/todo-app/node_modules/bs-ant-design-alt/src/Antd_Form.re 43:8-30
  
  41 ┆     ~wrapperCol: option(Antd_Grid.Col.props)=?,
  42 ┆     ~colon: option(bool)=?,
  43 ┆     ~children: React.element=?,
  44 ┆   ) =>
  45 ┆ React.createElement(
  
  ReasonReact: optional argument annotations must have explicit `option`. Did you mean `option(React.element)=?`?
  We've found a bug for you!
  /home/nirvdrum/dev/workspaces/todo-app/node_modules/bs-ant-design-alt/src/Antd_Form.re 113:10-32
  
  111 ┆     ~style: option(ReactDOMRe.Style.t)=?,
  112 ┆     ~colon: option(bool)=?,
  113 ┆     ~children: React.element=?,
  114 ┆   ) =>
  115 ┆ React.createElement(
  
  ReasonReact: optional argument annotations must have explicit `option`. Did you mean `option(React.element)=?`?

I'm not sure if there are other components that are similarly impacted.

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.