A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/tzfun/vue-web-terminal/issues/41 below:

Remove the hump event name and change it to a dash name · Issue #41 · tzfun/vue-web-terminal · GitHub

移除驼峰事件命名,改为中划线命名。

vue官方不推荐 emit 时用驼峰命名的事件,如下图,目前代码中几乎全是这种不规范的命名,因此将在下个版本全部改为中划线命名,为了兼容以前版本,驼峰命名的事件暂时保留,但在未来的版本中会将其移除

届时移除后,对开发者们而言,@execCmd这类事件绑定将不再生效,建议将其修改为@exec-cmd格式。

如果你当前的写法为:

<terminal name="terminal"
              @execCmd="onExecCmd"
              @beforeExecCmd="beforeExecCmd">

建议修改为此类写法:

<terminal name="terminal"
              @exec-cmd="onExecCmd"
              @before-exec-cmd="beforeExecCmd">

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4