-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
chenna
authored and
chenna
committed
Feb 11, 2018
1 parent
a0aed5d
commit f2ec07b
Showing
6 changed files
with
55 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
<template> | ||
<div id="app"> | ||
<img src="./assets/logo.png">2222222222 | ||
<router-view/> | ||
</div> | ||
</template> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,113 +1,50 @@ | ||
<template> | ||
<div class="hello"> | ||
<h1>{{ msg }}</h1> | ||
<h2>Essential Links</h2> | ||
<ul> | ||
<li> | ||
<a | ||
href="https://vuejs.org" | ||
target="_blank" | ||
> | ||
Core Docs | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
href="https://forum.vuejs.org" | ||
target="_blank" | ||
> | ||
Forum | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
href="https://chat.vuejs.org" | ||
target="_blank" | ||
> | ||
Community Chat | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
href="https://twitter.com/vuejs" | ||
target="_blank" | ||
> | ||
</a> | ||
</li> | ||
<br> | ||
<li> | ||
<a | ||
href="http://vuejs-templates.github.io/webpack/" | ||
target="_blank" | ||
> | ||
Docs for This Template | ||
</a> | ||
</li> | ||
</ul> | ||
<h2>Ecosystem</h2> | ||
<ul> | ||
<li> | ||
<a | ||
href="http://router.vuejs.org/" | ||
target="_blank" | ||
> | ||
vue-router | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
href="http://vuex.vuejs.org/" | ||
target="_blank" | ||
> | ||
vuex | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
href="http://vue-loader.vuejs.org/" | ||
target="_blank" | ||
> | ||
vue-loader | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
href="https://github.com/vuejs/awesome-vue" | ||
target="_blank" | ||
> | ||
awesome-vue | ||
</a> | ||
</li> | ||
</ul> | ||
<div id="main" style="width: 600px;height:400px;"></div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'HelloWorld', | ||
data () { | ||
return { | ||
msg: 'Welcome to Your Vue.js App' | ||
// eslint-disable-next-line | ||
/* eslint-disable */ | ||
export default { | ||
name: 'HelloWorld', | ||
data() { | ||
return { | ||
} | ||
}, | ||
mounted() { | ||
// 引入 ECharts 主模块 | ||
var echarts = require('echarts/lib/echarts'); | ||
// 引入柱状图 | ||
require('echarts/lib/chart/bar'); | ||
// 引入提示框和标题组件 | ||
require('echarts/lib/component/tooltip'); | ||
require('echarts/lib/component/title'); | ||
// 基于准备好的dom,初始化echarts实例 | ||
var myChart = echarts.init(document.getElementById('main')); | ||
// 绘制图表 | ||
myChart.setOption({ | ||
title: { | ||
text: 'ECharts 入门示例' | ||
}, | ||
tooltip: {}, | ||
xAxis: { | ||
data: ['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子'] | ||
}, | ||
yAxis: {}, | ||
series: [{ | ||
name: '销量', | ||
type: 'bar', | ||
data: [5, 20, 36, 10, 10, 20] | ||
}] | ||
}); | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<!-- Add "scoped" attribute to limit CSS to this component only --> | ||
<style scoped> | ||
h1, h2 { | ||
font-weight: normal; | ||
} | ||
ul { | ||
list-style-type: none; | ||
padding: 0; | ||
} | ||
li { | ||
display: inline-block; | ||
margin: 0 10px; | ||
} | ||
a { | ||
color: #42b983; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters