<template>
  <div id="app">
    <ac-compose-message :options="mentions" @on_emoji_click="show"/>
  </div>
</template>

<script>
import acComposeMessage from "./components/ac-compose-message.vue";
export default {
  name: "app",
  components: {
    acComposeMessage
  },
  data() {
    return {
      mentions: [
        {
          trigger: "@",
          data: [
            { key: "Pollin Henderson", value: "syropian" },
            { key: "Sarah Drasner", value: "sarah_edo" },
            { key: "Evan You", value: "youyuxi" },
            { key: "Adam Wathan", value: "adamwathan" }
          ]
        },
        {
          trigger: "#",
          data: [
            { key: "Collin Henderson", value: "syropian" },
            { key: "Sarah Drasner", value: "sarah_edo" },
            { key: "Evan You", value: "youyuxi" },
            { key: "Adam Wathan", value: "adamwathan" }
          ],
          html: "{{key}}-{{value}}"
        }
      ]
    };
  },
  methods:{
    show(e){
      console.log(e);
    }
  }
};
</script>

<style>
</style>
