1.0.0 • Published 5 years ago
dl_echarts v1.0.0
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>
参考文档
For a detailed explanation on how things work, check out the guide and docs for vue-loader.
1.0.0
5 years ago