GithubHelp home page GithubHelp logo

Comments (5)

janryWang avatar janryWang commented on May 5, 2024

这种场景能否推动后端支持value:"ALL"之类的枚举值,空值的话太容易出现边界问题

from formily.

foolyoghurt avatar foolyoghurt commented on May 5, 2024

这种场景能否推动后端支持value:"ALL"之类的枚举值,空值的话太容易出现边界问题

确实容易出现边界问题,但是 UForm 是一个基础组件,使用广泛了,总会遇到这种 case,不可能每次都能推动去使用 value: ALL 这样的方式解决,所以长期来讲,我觉得 UForm 还是需要解决这个问题的

from formily.

janryWang avatar janryWang commented on May 5, 2024

咱们可以考虑一个场景:
Input为空字符串是属于有值还是没值,Select为空字符串是属于有值还是没值,如果两个组件一个的定义是有值,一个定义是没值,那这个空字符串定义就是有歧义的

from formily.

foolyoghurt avatar foolyoghurt commented on May 5, 2024

咱们可以考虑一个场景:
Input为空字符串是属于有值还是没值,Select为空字符串是属于有值还是没值,如果两个组件一个的定义是有值,一个定义是没值,那这个空字符串定义就是有歧义的

嗯,有道理,确实容易产生歧义,我这块先自己改成非空的

from formily.

janryWang avatar janryWang commented on May 5, 2024

嗯嗯,那就先close掉了哈

from formily.

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.