Coder Social home page Coder Social logo

Comments (4)

levy9527 avatar levy9527 commented on September 9, 2024

牛逼,说得这么抽象也能看得懂 @snowlocked

from el-form-renderer.

levy9527 avatar levy9527 commented on September 9, 2024

请问,到底是什么场景呢。你说的有道理,但我们无法找到你的场景,因而代码不能简单地就去改动

from el-form-renderer.

Jogiter avatar Jogiter commented on September 9, 2024

Dingtalk_20200924175214

如图。在查询表格的时,选择特殊的状态一起查询。这时需要用单独的 checkbox 来渲染(期望 data 输出 boolean)。

// expected
{
  id: 'isNewToday',
  type: 'checkbox',
  default: false,
  label: 'mycheckbox'
},

当然。可以用 checkbox-group 实现。

{
  id: 'isNewToday',
  type: 'checkbox-group',
  default: [],
  options: [
    {
      label: '今日新增',
    }
  ]
},

此时 isNewToday 的值是 ['今日新增'] 或者 []。而期望的是 boolean

from el-form-renderer.

snowlocked avatar snowlocked commented on September 9, 2024

这个可以使用 inputFormatoutputFormat 将数组转换一下

from el-form-renderer.

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.