opentiny/tiny-engine

🐛 [Bug]: 区块用emit无法触发事件方法

Closed this issue · 5 comments

Environment

chrome

Version

latest

Version

latest

Link to minimal reproduction

区块中已设置事件,并在引用页面设置了事件绑定方法, 但无法用emit触发事件, 不会进入调用页面的事件方法,如用$emit则会报错

Step to reproduce

区块中已设置事件,并在引用页面设置了事件绑定方法
d450492aa9080cc9e3b8ff8d93765ad
a97cc6ead9d82bede6fc46ec1d5aa54
但无法用emit触发事件, 不会进入调用页面的事件方法,如用$emit则会报错
0a8f20af8f5684e734c7ccf40da4cbc
b95c07a9db4a19594389b1900d69eca

What is expected

No response

What is actually happening

No response

Any additional comments (optional)

No response

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐛 [Bug]: Block cannot trigger event method using emit

emit 不需要加this 区块的事件绑定名字要 on开头

Bot detected the issue body's language is not English, translate it automatically.


emit does not need to add this block. The event binding name must start with on.

emit 不需要加this 区块的事件绑定名字要 on开头

按此设置可以触发事件了。

Bot detected the issue body's language is not English, translate it automatically.


emit does not need to add this block. The event binding name must start with on.

Press this setting to trigger an event.