Giter Site home page Giter Site logo

Comments (6)

Justineo avatar Justineo commented on July 20, 2024

ActionPanel 内部的逻辑能不能不要暴露给外面呢?而是通过一些事件机制来完成业务交互?

from ef.

uraincay avatar uraincay commented on July 20, 2024

谢回复。我指的是actionPanel的内部逻辑想要得到uiVIew里面的控件,然后操作

from ef.

otakustay avatar otakustay commented on July 20, 2024

我们不会做这些改变,因为一个ActionPanel加载的Action是任意且未知的,如我们通过用户自定义模板来加载一个子Action。此时无法确保子Action中的控件的id不会与ActionPanel所在的ViewContext冲突,因此这一隔离是必须的

如果你确实需要达到你的目的,让你的View重写createViewContext方法,可以想办法让外层把ViewContext的名称传过来,从而用er/ViewContext.get获取出来

但依旧不建议这么玩

Best regards

Gray Zhang

在 2015年3月20日 下午4:16:36, uraincay ([email protected]) 写到:

谢回复。我指的是actionPanel的内部逻辑想要得到uiVIew里面的控件,然后操作


Reply to this email directly or view it on GitHub.

from ef.

uraincay avatar uraincay commented on July 20, 2024

明白。刻意这么设计,为了隔离。
感觉已经在ActionPanel--->UIView--->ActionPanel--->UIView的逻辑中迷失。
借楼多问一个问题,一段复杂业务的功能块,是应该写成一个控件(包含很多子控件)还是子action(可以在template中写很多控件)怎么划分两者的界限?
当前我认为是有无数据请求,求解答。

from ef.

otakustay avatar otakustay commented on July 20, 2024

我一般就是按有无数据请求来分的

Best regards

Gray Zhang

在 2015年3月20日 下午7:18:34, uraincay ([email protected]) 写到:

明白。刻意这么设计,为了隔离。
感觉已经在ActionPanel--->UIView--->ActionPanel--->UIView的逻辑中迷失。
借楼多问一个问题,一段复杂业务的功能块,是应该写成一个控件(包含很多子控件)还是子action(可以在template中写很多控件)怎么划分两者的界限?
当前我认为是有无数据请求,求解答。


Reply to this email directly or view it on GitHub.

from ef.

uraincay avatar uraincay commented on July 20, 2024

好的!谢

from ef.

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.