阿里的流程圖庫 G6,不兼容IE11。官網有解決方案。
https://g6.antv.vision/zh/docs/manual/FAQ/supportIE
但我實踐下來,有點問題。
我的框架是VUE -CLI 4.1.1
1、在Vue.cofnig.js中,module.exports 中添加
transpileDependencies: ["@antv/g6"]
2、在babel.config.js中,配置:
module.exports = {
//讓G6支持IE https://g6.antv.vision/zh/docs/manual/FAQ/supportIE
sourceType: 'unambiguous',
presets: ['@vue/app'],//此處和官網不一樣,官網為['@vue/cli-plugin-babel/preset']
}
這其中,可能要運行,vue add babel命令。