lin-xin / vue-toast

A mobile toast plugin for vue2.

Home Page:https://lin-xin.gitee.io/example/#/vue2-toast/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

runtime-only 无法使用 template属性

shmy opened this issue · comments

commented

Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.

The same here

the same here++

Please update to the V2.0.0

可以说具体点吗,升级什么到2.0.0,我刚看了release并没有新版本

npm i vue2-toast@2.0.0 -S 即可

感谢

default
打包的时候出错了

@Joeyueh 我来看看

@Joeyueh 里面 render 函数用了es6的语法,所以在uglifyJs压缩的时候出了错误。你可以改了一第51行和第105行的render函数,我现在来发一个新的版本修复。

好的,我上次在使用swiper的时候遇到过类似的问题,没有将语法转为es5。
但是只是在少数不支持es6语法的手机中会出现空白的问题。
ps,我记得之前一个项目使用起来没这个问题啊,而且你的这个项目开源有一年了,不应该到现在才出现吧

@Joeyueh 好了,已经发了 V2.0.1