pasBone / vue-fit-next

一个大屏可视化自适应工具集合的vue指令, 具有拖拽、缩放、入场出场动画等功能
MIT License
207 stars 29 forks source link

vue2.x引入此组件,运行报错 #17

Closed Grails125 closed 1 year ago

Grails125 commented 1 year ago

报错如下 `error in ./node_modules/vue-fit-next/dist/index.mjs

Module parse failed: Unexpected token (140:23) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | el.dataset.fit = id; | const { arg, value } = binding;

const origin = value?.origin || arg || ""; | const lockX = value?.lockX || false; | const lockY = value?.lockY || false;`

pasBone commented 1 year ago

参见 #14, optional chian 的配置问题。

Grails125 commented 1 year ago

感谢,参照里面的方法已解决