Comments (8)
Element Angular 输出的是 ES6 代码,如果你引用了组件应该自己压缩或提供 polyfills,组件本身不包含任何 shim。
简单的说,Element 本身没有扩展任何语法,没有创造语法,使用的都是标准的 ES6 语法,在 Angular 的允许范围之内。这是你的代码 ES6 语法没有正确的转化为 ES5 或是缺少 polyfill 所致,在 IE11 下具体是缺少哪些特性需要你自己判断填补。
最后重要的事情再说一次,UI 库本身不会扩展语法与创造语法。
from element-angular.
没完全搞明白,直接说怎么处理,在IE11下面不报错就行,多谢!
from element-angular.
直接说就是不是 UI 库的问题,是你没做好兼容。
from element-angular.
from element-angular.
from element-angular.
请给出能复现的代码。
from element-angular.
from element-angular.
原因在于 angular/cli 不能将第三方的 ES6 代码转译成 ES5,在没有自己编写编译脚本或使用 eject 的项目中,打包出的代码包含 ES6 引起的 IE 的错误。
目前跳转 element-angular 输出为 ES5,你可以升级再重试。
参考 #13
from element-angular.
Related Issues (20)
- pagination这个组件,里面选择了page四则 HOT 1
- 请问饿了么团队什么时候能更新下一版?很期待 HOT 1
- Ie11不兼容 HOT 2
- bug 实在有点多啊 HOT 4
- tree组件的选择节点问题 HOT 1
- ie11不兼容 ie10没问题 !
- el-upload上传图片组件报错 HOT 3
- Error on build SSR / App shell
- 怎么怎么垂直导航二级菜单的背景颜色
- el-checkbox checked=true 无效
- select 组件在新值为 0 时没有触发 (modelChange) 事件
- Container 布局容器的示例,测试失败,无法渲染 HOT 3
- 何时更新为最新版 Angular? HOT 1
- el-dialog 单独引入报错
- dialog close
- container布局为啥是这样的?
- 快速上手那里的指导,在运行的地方命令出错 HOT 1
- Update on Angular 9 HOT 2
- Generic type 'ModuleWithProviders<T>' requires 1 type argument(s) when tried to import Elmodule HOT 2
- Latest vue.js library version 2.15.14 in angular and compatibility with the latest angular version
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 element-angular.