UNPKG

hd-echarts

Version:

huidian ECharts component for Vue.js.

49 lines (43 loc) 779 B
import HdLine from './line' import HdBar from './bar' import HdPie from './pie' import HdRadar from './radar' import HdLineBar from './lineBar' import HdChart from './chart' import { initOptions } from './common' const components = [ HdLine, HdBar, HdPie, HdRadar, HdLineBar, HdChart, ] function install (Vue, options) { initOptions(options) if (install.installed) return components.forEach(component => { Vue.use(component) }) } // 全局引用可自动安装 if (typeof window !== 'undefined' && window.Vue) { install(window.Vue) } export default { install, HdLine, HdBar, HdPie, HdRadar, HdLineBar, HdChart } export { HdLine, HdBar, HdPie, HdRadar, HdLineBar, HdChart }