🐛 [Bug]: 区块用emit无法触发事件方法
Closed this issue · 5 comments
Environment
chrome
Version
latest
Version
latest
Link to minimal reproduction
区块中已设置事件,并在引用页面设置了事件绑定方法, 但无法用emit触发事件, 不会进入调用页面的事件方法,如用$emit则会报错
Step to reproduce
区块中已设置事件,并在引用页面设置了事件绑定方法
但无法用emit触发事件, 不会进入调用页面的事件方法,如用$emit则会报错
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.