@jx3box/jx3box-emotion

1.2.8 • Public • Published

usage

  1. 表情渲染
import JX3_EMOTION from '@jx3box/jx3box-emotion'

const ins = new JX3_EMOTION(str)

// return html
ins.code
  1. 表情组件

该组件会 emit 一个 selected 事件,向上传递一个参数,其值为选中的表情的key

import Emotion from '@jx3box/jx3box-emotion/src/Emotion.vue'

<Emotion @selected="handleSelected" />

const handleSelected = (key) => {
  // your code
}

Readme

Keywords

none

Package Sidebar

Install

npm i @jx3box/jx3box-emotion

Weekly Downloads

86

Version

1.2.8

License

none

Unpacked Size

73.5 kB

Total Files

13

Last publish

Collaborators

  • rx6