Giter VIP home page Giter VIP logo

Comments (4)

otakustay avatar otakustay commented on July 17, 2024

json schema根据我和 @jinzhubaofu 先否定了,主要原因在于无法对element之类的非json类型进行校验

另一方面来说,vue也存在这样的问题,并且vue开放function支持后,早晚会变成prop types这种样子

所以综合来说,我选择prop types吧

from san.

jinzhubaofu avatar jinzhubaofu commented on July 17, 2024

现在看来 pro-types 只是写起来有点麻烦,其他没毛病,所以 prop types +1

from san.

errorrik avatar errorrik commented on July 17, 2024

ok,大家倾向都差不多,那 @jinzhubaofu 实现完了再关issue吧。不过我们是data不是prop,只能叫 DataTypes。

var DataTypes = san.DataTypes;
// blabla

from san.

jinzhubaofu avatar jinzhubaofu commented on July 17, 2024

不过我们是data不是prop,只能叫 DataTypes。

好的没问题

有个一小问题,defineComponent 出来的组件,没有组件名/类名,校验出来的报错都很难看。

所以,是否要加一个给 defineComponent 加一个 displayName 之类的东西?

from san.

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.