Skip to content

🐛 [Bug]: tinyEngine编辑态,添加了stores后,在getters中写函数会导致画布绑定的stores都失效 #1724

@recharge-top-up

Description

@recharge-top-up

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

  1. 拖入一个自定义或者内置组件,在高级选项中绑定 stores的属性值 如 isShow 为true。
  2. 在该stores中getters里写入函数(正确的函数,可成功保存到数据库)
  3. 保存后,该组件消失。
  4. 个人理解:在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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions