Comments (5)
我改了你 两段代码就可以用了 楼主请看:
第一:
在main.js里边,我把
Vue.prototype.emoji = emoji
改成
Vue.prototype.$emoji = emoji
第二:
在/src/compents/emoji.vue里边,我把
<span class="emoji-item" :title="emoji" :class="'sprite-' + getPureName(emoji)"></span>
改成
<span class="emoji-item" v-html="$emoji(emoji)" :class="'sprite-' + getPureName(emoji)"></span>
第三:
在app.js里边,我把
<transition-group tag="div" name="list" class="comment"> <p v-for="(item) in data" :key="item" class="item"> <span v-html="emoji(item)"></span> </p> </transition-group>
改成了
<transition-group tag="div" name="list" class="comment"> <p v-for="(item) in data" :key="item" class="item"> <span v-html="$emoji(item)"></span> </p> </transition-group>
年前我用过楼主的代码,是好用的,年后就不可以了,并且看楼主近一年都没修改过代码,也许Vue版本的问题吧!
另外:感谢楼主精致的代码!看完学到了很多,也很享受!
祝好:fooller
from vue-emoji.
@fooller 大图片挂了 - -
from vue-emoji.
@fooller 现在应该可以了
from vue-emoji.
我的项目里已经用了你这套代码。这个大图片挂了不要紧,github上所有的项目,带表情的都不显示了,我改了代码就可以用了呢,就算大表情挂了也能显示
from vue-emoji.
来个 PR 挺不错的😄
from vue-emoji.
Related Issues (15)
- 报错呀 HOT 1
- 解析表情的方法 HOT 2
- 请问代码这个地方...报错, 是babelrc的问题吗怎么解决
- 请问怎么样保存后可以让图片在微信正常展示出来 HOT 2
- 雪碧图的图片为什么用不了
- 背景图地址失效了 HOT 1
- 老哥,你这个雪碧图的scss代码是用什么工具生成的呀
- 老哥,怎么将:shortname:,转换成中文 [亲亲],这种格式啊 HOT 1
- 为何不让显示出的emoji也用雪碧图呢 HOT 1
- 为什么有一些没有emoji编码?octocat、shipit、bowtie HOT 1
- 表情突然不显示了 HOT 2
- 老兄抽空补下文档呗 HOT 3
- Yeah HOT 1
- ios打开表情时,读不出来,然后Vue自动刷新 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-emoji.