fritx / vue-at

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

[Question] How to use v-model and custom tags? #111

Open christhofer opened 4 years ago

christhofer commented 4 years ago
<vue-at
  :members="users"
  :allow-spaces="false"
  @at="getUsers"
  v-model="html">
  <div
    class="form-control border-input"
    style="height: 80px;"
    contenteditable
  />
  <span
    slot="embeddedItem"
    slot-scope="s">
    <span>prefix{{ s.name }}suffix</span>
  </span>
</vue-at>

2019-10-14_10-25-17

Variable html still showing empty string no matter what I type. Am I putting v-model at the wrong location? And I'm trying custom tags to add prefix and suffix, but it is also not working. I expect the output to be prefix@superadminsuffix.