Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReadOnlyModel 建议可以添加做为STNode属性 #6

Closed
GlodenBoy opened this issue Nov 11, 2021 · 1 comment
Closed

ReadOnlyModel 建议可以添加做为STNode属性 #6

GlodenBoy opened this issue Nov 11, 2021 · 1 comment

Comments

@GlodenBoy
Copy link

ReadOnlyModel 建议可以作为 STNode 属性,开启后只针对该节点, 外部的改成readOnly 作为全局统一的。

现在我想针对局部的节点是没有办法的,只能改造了

@DebugST
Copy link
Owner

DebugST commented Nov 11, 2021

ReadOnlyModel 建议可以作为 STNode 属性,开启后只针对该节点, 外部的改成readOnly 作为全局统一的。

现在我想针对局部的节点是没有办法的,只能改造了

感谢你的一直使用。。最近也收集了一些之前用户提供的建议。。在开始构思3.0版本的一些东西
关于你的这个问题目前可以通过Editor的SelectedChanged来根据当前选择的节点来判断是否 readonly 。或者通过给STNode添加ReadOlny属性 并提供Changed这样的事件 然后属性编辑器的ReadOnly采用STNode的值

关于你这个问题我也想了一下。。如果把ReadOnly移动到STNode中的话 需要批量的时候 比如当前需要锁定所有节点的时候 需要循环每个节点去设置之,,也会变得繁琐。。到时候我思考一下是否需要改变处理方式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants