Comments (3)
- 说得没错,viewContext应该是一个初始化时设置且后续不能更改的属性,不过既然现状已经是这样了,为了保持兼容性不可能修改
- 事实上
initOptions
没有处理viewContext,是在setProperties
里处理的,而setProperties
不仅仅初始化时,运行期也会不断被调用,所以这个问题和1是一样的 - 暂时没理解具体指的是什么
from esui.
对于1,2:能否把这个流程放入组件的构造函数中初始化,然后在dispose的时候进行销毁,这样修改的话对当前流程会有影响吗?兼容性呢?
对于3:对于ViewContext的操作,是不是写一个类似ViewContextGroup或者ViewContextManager的管理器来管理viewContext集合,比如说组件切换视图视图时,通过这个Manager来管理;这样也可以支持实例级别的复用?(虽然几乎不存在这样场景...但是对复用性有追求,用不到,但是我们可以有...)
from esui.
能否把这个流程放入组件的构造函数中初始化,然后在dispose的时候进行销毁,这样修改的话对当前流程会有影响吗?兼容性呢?
因为现在我们允许在组件初始化以后再改变viewContext(不可改变这个逻辑),所以肯定要在setProperties
中支持修改,那么把这个流程放进初始化中去就是浪费
是不是写一个类似ViewContextGroup或者ViewContextManager的管理器来管理viewContext集合,比如说组件切换视图视图时,通过这个Manager来管理
现在的ViewContext
本身就是这个Manager,提供了get
等方法获取不同的ViewContext实例
from esui.
Related Issues (20)
- 日程投放控件 HOT 4
- InputCollection 应当继承 ControlCollection HOT 1
- Table 的 overflowX 属性为非 hidden 的时候多出一个横向滚动条 HOT 3
- BoxGroup有一处事件没使用addDOMEvent绑定
- 解决set和setProperties触发change的问题
- Table的依赖不全
- 控件初始化子控件时的valueReplacer管理
- 控件初始化子控件时的valueReplacer管理
- 控件初始化子控件时的valueReplacer管理
- 指定元素的销毁子控件
- Select 控件对于value比较判断的兼容性问题 HOT 2
- 希望能添加一些布局相关的组件 HOT 4
- 对于带有数据源的控件是否应该支持外部不提供数据源的场景的表决 HOT 19
- addChild的时候添加校验 HOT 6
- 加个Lisence HOT 1
- MonthView的年月下拉框格式可调 HOT 1
- 渐变背景的问题
- Panel控件的addContent方法不适用table布局 HOT 2
- 关于拓展组件
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esui.