Giter VIP home page Giter VIP logo

Comments (8)

jingsam avatar jingsam commented on May 14, 2024 1

此问题的根源在于在template中使用了ES6语法,例如模板字符串 :class="[${prefixCls}-item]".

在template中的表达式是无法在babel中转换为es5的,意味着只有template中的表达式是浏览器所支持的语法特性时,才能正确地被解析。

此问题对于vue1是无解的,所以要支持IE,必须将这些属性转换为计算属性或者使用字符串拼接。就现在来看,使用字符串拼接的成本小一些。

from iview.

jingsam avatar jingsam commented on May 14, 2024

谢谢,正在处理这个bug

from iview.

icarusion avatar icarusion commented on May 14, 2024

这个是什么原因呢,看似样式没有应用,很多组件在IE上都有些样式问题

from iview.

jingsam avatar jingsam commented on May 14, 2024

ivu-page-item 这个class没有附着到分页的li元素上

from iview.

icarusion avatar icarusion commented on May 14, 2024

这样啊,那问题挺严重的,之前忽略了,很多组件都用了字符串模板,我在后面的一个版本批量改一下吧

from iview.

henryzp avatar henryzp commented on May 14, 2024

@jingsam ,它这个组件是基于vue1.x吗?还是2.x?

from iview.

jingsam avatar jingsam commented on May 14, 2024

1.0, 能所有组件完成之后会考虑更新到2.0

from iview.

jingsam avatar jingsam commented on May 14, 2024

@YXDay fixed in #39

from iview.

Related Issues (20)

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.