Environment
win11,chrome最新
Version
20+
Version
tinyEngine 2.8 , opentiny/vue 3.20
Link to minimal reproduction
拖入画布中的组件设置 条件渲染,使用stores的属性值,如果在stores中的getters里加了函数,画布上绑定的stores值都会失效。 删除掉就又可以了。
getters里是按照传统的 function(){ return this.count } 类似这种写法,可以存入数据库。写法错误数据库不会存储。
Step to reproduce
- 拖入一个自定义或者内置组件,在高级选项中绑定 stores的属性值 如 isShow 为true。
- 在该stores中getters里写入函数(正确的函数,可成功保存到数据库)
- 保存后,该组件消失。
- 个人理解:在getters写入函数后,画布上无法获取到stores实例 导致永远为false
What is expected
No response
What is actually happening
No response
What is your project name
二开 tinyEngine
Any additional comments (optional)
No response