Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/klouskingsley/wepy-sticker

emotion component for wechat mini program 微信小程序表情包组件
https://github.com/klouskingsley/wepy-sticker

emoji emotion meme sticker wechat wepy

Last synced: about 1 month ago
JSON representation

emotion component for wechat mini program 微信小程序表情包组件

Awesome Lists containing this project

README

        

# wepy-sticker

小程序表情包组件

![screenshot](https://raw.githubusercontent.com/klouskingsley/wepy-sticker/master/screenshots/1.gif)
## Install 安装

```
$ npm i wepy-sticker -S
```

## Usage 使用

```html
// index.wpy

.page-container {
width: 750rpx;
height: 400rpx;
border: 1px solid rgba(0,0,0,.3);
box-sizing: border-box;
}

.input {
width: 750rpx;
border: 1px solid #000;
}






import wepy from 'wepy'
import Sticker from 'wepy-sticker'
import stickerDefaultConfig from 'wepy-sticker/defaultConfig'

export default class Index extends wepy.page {
data = {
stickerConfig: stickerDefaultConfig,
inputValue: ''
}

components = {
sticker: Sticker
}

events = {
'wepy-sticker-tap': (stickerObj) => {
console.log(stickerObj)
this.inputValue += stickerObj.wrappedKey
}
}
}

```

## Events 事件

```js

events = {
'wepy-sticker-tap': (stickerObj) => {

}
}

```

## License

MIT