Giter Site home page Giter Site logo

Comments (4)

itxx00 avatar itxx00 commented on September 4, 2024

使用模板继承的方式,子模板里面设置自定义阈值,你说的这种方式就是原生支持的

from portal.

laiwei avatar laiwei commented on September 4, 2024

@hackstoic 嗯,只能是子模板继承覆盖父模板,子模板设置一个不会触发的阈值,来覆盖掉父模板对应的项。

from portal.

hackstoic avatar hackstoic commented on September 4, 2024

@laiwei 谢谢。如果strategy增加一个state字段,当state为false的时候, 就可以把strategy disable掉。使用这种方式会不会更好, 个人觉得这样的话比起想办法去设置一个不会触发的阈值更简洁明了,没有歧义。

from portal.

hackstoic avatar hackstoic commented on September 4, 2024

@laiwei 既然子模板可以改父模板的值, 是否也应该直接提供删除父模板的值的机制? 您觉得在strategy增加一个state字段的方式是否有不合理的地方?

from portal.

Related Issues (18)

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.