Coder Social home page Coder Social logo

表情不显示 about vue-emoji HOT 5 CLOSED

fooller avatar fooller commented on August 22, 2024
表情不显示

from vue-emoji.

Comments (5)

fooller avatar fooller commented on August 22, 2024

我改了你 两段代码就可以用了 楼主请看:
第一:
在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.

jkchao avatar jkchao commented on August 22, 2024

@fooller 大图片挂了 - -

from vue-emoji.

jkchao avatar jkchao commented on August 22, 2024

@fooller 现在应该可以了

from vue-emoji.

fooller avatar fooller commented on August 22, 2024

我的项目里已经用了你这套代码。这个大图片挂了不要紧,github上所有的项目,带表情的都不显示了,我改了代码就可以用了呢,就算大表情挂了也能显示

from vue-emoji.

jkchao avatar jkchao commented on August 22, 2024

来个 PR 挺不错的😄

from vue-emoji.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.