1.0.0 • Published 5 years ago

dl_echarts v1.0.0

Weekly downloads
4
License
-
Repository
-
Last release
5 years ago

echarts

基于vue和Echarts的二次封装的echarts组件

属性

下载:
npm install dl_echarts

引入:
import echarts from 'echarts'
import DlEcharts from 'dl_echarts'
Vue.use(DlEcharts);
Vue.prototype.$echarts = echarts;

使用示例:
<template>
  <div id="app">
    <DlEcharts id="DlEcharts" width="100%" height="300px" :option="option"/>
  </div>
</template>

<script>
export default {
  name: 'App',
  data(){
    return{
      option:{}  //配置项,参考echarts文档
    }
  },
}
</script>

参考文档

echarts配置项手册

For a detailed explanation on how things work, check out the guide and docs for vue-loader.