Update README.md
parent
7520bf2c45
commit
245812df9b
79
README.md
79
README.md
|
@ -66,9 +66,54 @@
|
|||
npm run build
|
||||
|
||||
## 组件使用说明与演示 ##
|
||||
|
||||
### element-ui ###
|
||||
一套基于vue.js2.0的桌面组件库。访问地址:[element](http://element.eleme.io/#/zh-CN/component/layout)
|
||||
|
||||
### vue-datasource ###
|
||||
一个用于动态创建表格的vue.js服务端组件。访问地址:[vue-datasource](https://github.com/coderdiaz/vue-datasource)
|
||||
|
||||
```JavaScript
|
||||
<template>
|
||||
<div>
|
||||
<datasource language="en" :table-data="information.data"
|
||||
:columns="columns"
|
||||
:pagination="information.pagination"
|
||||
:actions="actions"
|
||||
v-on:change="changePage"
|
||||
v-on:searching="onSearch"></datasource>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Datasource from 'vue-datasource'; // 导入quillEditor组件
|
||||
export default {
|
||||
data: function(){
|
||||
return {
|
||||
information: {
|
||||
pagination: {...}, // 页码配置
|
||||
data: [...]
|
||||
},
|
||||
columns: [...], // 列名配置
|
||||
actions: [...] // 功能配置
|
||||
}
|
||||
},
|
||||
components: {
|
||||
Datasource // 声明组件Datasource
|
||||
},
|
||||
methods: {
|
||||
changePage(values) {...},
|
||||
onSearch(searchQuery) {...}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
```
|
||||
|
||||
|
||||
### Vue-Quill-Editor ###
|
||||
基于Quill、适用于Vue2的富文本编辑器。访问地址:[vue-quill-editor](https://github.com/surmon-china/vue-quill-editor)
|
||||
|
||||
```JavaScript
|
||||
<template>
|
||||
<div>
|
||||
<quill-editor ref="myTextEditor" v-model="content" :config="editorOption"></quill-editor>
|
||||
|
@ -91,10 +136,12 @@
|
|||
}
|
||||
}
|
||||
</script>
|
||||
```
|
||||
|
||||
### Vue-SimpleMDE ###
|
||||
Vue.js的Markdown Editor组件。访问地址:[Vue-SimpleMDE](https://github.com/F-loat/vue-simplemde)
|
||||
|
||||
```JavaScript
|
||||
<template>
|
||||
<div>
|
||||
<markdown-editor v-model="content" :configs="configs" ref="markdownEditor"></markdown-editor>
|
||||
|
@ -122,6 +169,7 @@ Vue.js的Markdown Editor组件。访问地址:[Vue-SimpleMDE](https://github.c
|
|||
}
|
||||
}
|
||||
</script>
|
||||
```
|
||||
|
||||
### Vue-Core-Image-Upload ###
|
||||
一款轻量级的vue上传插件,支持裁剪。访问地址:[Vue-Core-Image-Upload](https://github.com/Vanthink-UED/vue-core-image-upload)
|
||||
|
@ -165,11 +213,40 @@ Vue.js的Markdown Editor组件。访问地址:[Vue-SimpleMDE](https://github.c
|
|||
### vue-echarts-v3 ###
|
||||
基于vue2和eCharts.js3的图表组件。访问地址:[vue-echarts-v3](https://github.com/xlsdg/vue-echarts-v3)
|
||||
|
||||
```JavaScript
|
||||
<template>
|
||||
<div>
|
||||
<markdown-editor v-model="content" :configs="configs" ref="markdownEditor"></markdown-editor>
|
||||
<IEcharts :option="bar"></IEcharts>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import IEcharts from 'vue-echarts-v3'; // 导入IEcharts组件
|
||||
export default {
|
||||
data: function(){
|
||||
return {
|
||||
bar: {
|
||||
title: {
|
||||
text: '柱状图' // 图标标题文本
|
||||
},
|
||||
tooltip: {},
|
||||
xAxis: { // 横坐标
|
||||
data: ['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子']
|
||||
},
|
||||
yAxis: {}, // 纵坐标
|
||||
series: [{
|
||||
name: '销量',
|
||||
type: 'bar', // 图标类型
|
||||
data: [5, 20, 36, 10, 10, 20]
|
||||
}]
|
||||
}
|
||||
}
|
||||
},
|
||||
components: {
|
||||
IEcharts // 声明组件VueCoreImageUpload
|
||||
}
|
||||
}
|
||||
</script>
|
||||
```
|
||||
|
||||
## 其他注意事项 ##
|
||||
|
|
Loading…
Reference in New Issue