vue-cli 4.3 + iview 兼容IE9
vue-cli 4.3 + iview 兼容IE9
安装bable依赖
npm install babel-polyfill --save
vue.config.js 中配置
IE9 不兼容flex 写法,这里引入的iview 中很多样式都是flex 写的
给flex-direction:row 中的子元素添加float:left,当高版本浏览器识别flex时,就会自动忽略 float 样式
IE9 不兼容 transform 3D 写法 只支持-ms-transform写法(2D)
IE9 upload 组件 使用了 vue-upload-component
https://lian-yue.github.io/vue-upload-component/#/zh-cn/documents
以上是 vue-cli 4.3 + iview 兼容IE9 的全部内容, 来源链接: utcz.com/a/56428.html