Giter Site home page Giter Site logo

Comments (7)

FateRiddle avatar FateRiddle commented on May 17, 2024

@lengthmin 最新版支持ui:readonly 参数为 true 时,列表所有的可控操作都会消失。可以试试看哦~

from x-render.

bytemain avatar bytemain commented on May 17, 2024

那想删除岂不是不行了,只希望能控制这个添加的消失...

from x-render.

FateRiddle avatar FateRiddle commented on May 17, 2024

@lengthmin 我理解错了。你的建议是合理的。已经在开发中。

from x-render.

bytemain avatar bytemain commented on May 17, 2024

@lengthmin 我理解错了。你的建议是合理的。已经在开发中。

谢啦~
还有类推的操作就是:

  • 默认展示 minNum 个数组,
  • minNum 个数组时隐藏删除按钮...

希望可以考虑一下~

from x-render.

bytemain avatar bytemain commented on May 17, 2024

如果不默认实现隐藏删除按钮的话,还希望有个参数能控制删除按钮...
用起来像 "ui:hiddenDeleteButton": "num === 1"

from x-render.

FateRiddle avatar FateRiddle commented on May 17, 2024

@lengthmin 这个的场景是什么?可以通过校验来判断数据的有效性。并没有禁止删除,因为考虑到有人希望删除特定的一条,然后在新增一条补回,不应该禁止此类操作。

from x-render.

bytemain avatar bytemain commented on May 17, 2024

@FateRiddle 你说的有道理,通过校验来判断就可以了。
我一开始这样想是因为 想让用户明显的感觉到有最低最高条目的限制

from x-render.

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.