Commit 840d2089 authored by 前端-许佳敏's avatar 前端-许佳敏

fix

parent 7792ba9a
...@@ -24,7 +24,7 @@ const config: any = { ...@@ -24,7 +24,7 @@ const config: any = {
routes, routes,
extraBabelPlugins: [ extraBabelPlugins: [
['import', { ['import', {
libraryName: 'bizcharts', libraryDirectory: 'lib/components', libraryName: 'bizcharts',
camel2DashComponentName: false, camel2DashComponentName: false,
customName: require('path').resolve(__dirname, './utils/customBitchartsName.js') customName: require('path').resolve(__dirname, './utils/customBitchartsName.js')
}, 'bizcharts'], }, 'bizcharts'],
......
module.exports = function customName(name) { module.exports = function customName(name) {
console.log(name)
if (name === 'Interval') { if (name === 'Interval') {
return 'bizcharts/lib/geometry/Interval' return 'bizcharts/lib/geometry/Interval'
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment