2.0.0 • Published 4 years ago

v-rare-tools v2.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

v-rare-tools

English | 简体中文

version:1.0.2

fixed the bug which innerHTML auto translate the Escape Sequence

install

npm install v-rare-tools

use

In Your Vue project,main.js like this

import { EmojiTextarea, EmojiWord } from 'v-rare-tools'
Vue.use(EmojiTextarea)
Vue.use(EmojiWord)

plugin

EmojiTextarea is a div like textarea with qqface, emoji

template:
<Emoji-textarea v-bind="textParams" v-model="textVal"/>

js:
data() {
    textParams: {
        maxsize: 1000, // max words input
        textHeight: 200 // this textarea height
    },
    textVal: ''  //  the value of EmojiTextarea 
}

EmojiWord is a tag of p which can translate the qqface and emoji code to img

template:
<Emoji-word :word="textVal"/>

js:
data() {
    textVal: ''  //  the word want to translate the qqface and emoji to img
}
2.0.0

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago