You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Vue tip]: Event "sortchange" is emitted in component at /src/table.vue but the handler is registered for "sortChange". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "sort-change" instead of "sortChange".
The text was updated successfully, but these errors were encountered:
<sr-table ref="myTable" :loading="loading" :data="dataList" @sortChange="change" :table-id="tableId">
sortChange: function ({ column, prop, order }) { this.$emit('sortChange', { column, prop, order }) },
改为sort-change ,才能正常监听到。
请问可以实现 驼峰命名的事件监听吗? 在 0.6.0版本好像解决过这个问题,但目前我这个版本依然不行
v2.4.1
[Vue tip]: Event "sortchange" is emitted in component at /src/table.vue but the handler is registered for "sortChange". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "sort-change" instead of "sortChange".
The text was updated successfully, but these errors were encountered: