fritx / vue-at

At.js for Vue.
https://fritx.github.io/vue-at/
MIT License
529 stars 114 forks source link

add `has-at` event #15

Closed wangbinyq closed 6 years ago

wangbinyq commented 7 years ago

14

fritx commented 6 years ago

Nice but does it work expectedly? Seems the atwho object is like

this.atwho = {
  range,
  offset,
  list,
  x: rect.left,
  y: rect.top - 4,
  cur: 0, // todo: 尽可能记录
}

which is emitted every time the panel open/closed or the selected item changed.

fritx commented 6 years ago

Merged in branch feat/emit-at. <at> will emit @has-at event on atwho changed, and @at event on at-trigger.