添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
刚毅的围巾  ·  Instance created by ...·  2 周前    · 
小胡子的莴苣  ·  Undefined type ...·  1 周前    · 
完美的草稿本  ·  人大重阳网 ...·  1 月前    · 
豪情万千的刺猬  ·  Appier 說明 Apple ...·  5 月前    · 

emoji-vue

0.2.4 Public • Published

emoji-vue

😀 😁 😂 🤣 😃 😄 😅 😆 😉 😊 😋

A Vue.js project implementing a input field addon allowing to add emojis via dropdown.

Install ⚙️

npm i emoji-vue --save

Use 😎👌🏻

import VueEmoji from 'emoji-vue'
//in component def
  methods: {
      onInput(event) {
          //event.data contains the value of the textarea
      clearTextarea(){
        this.$refs.emoji.clear()
  components: {
    VueEmoji
//in template section
<VueEmoji ref="emoji" @input="onInput" :value="myText" />

Event & properties 📕 📗 📘 📙

@input - event generated when content of textarea with emoji selector is changed.

value - property to place initial content of the textarea.

width - sets width of visible textarea in px; defaults to '200px'.

height - sets height of visible textarea in px; defaults to '50px'.

Build Setup 🧠 ❤️ ✅

# install dependencies
npm install
 
# serve with hot reload at localhost:8080
npm run dev
 
# build for production with minification
npm run build

Project uses the following setup: guide and docs for vue-loader.

Check the DEMO

About

Based on code from https://github.com/OneSignal/emoji-picker

Create an issue or ping me on twitter @legkoletat

License