UNPKG

bin-charts

Version:

基于echarts的 vue插件,用于配合实现图表组件

26 lines (20 loc) 442 B
// 核心插件 import corePlugin from './plugin' // 组件 import Charts from './components/chart' const components = [ Charts ] const install = function (Vue) { components.forEach(component => { Vue.component(component.name, component) }) Vue.use(corePlugin) } /* istanbul ignore if */ if (typeof window !== 'undefined' && window.Vue) { install(window.Vue) } export default { install, Charts }