no message

Former-commit-id: fb3f946a68fe7df7b84f74aaecdf4fef48201d1b
Former-commit-id: 415c4fb1778e0bcf38b422f26cd9b5f56a446fb6
Former-commit-id: 3fe7f26d64a6c630ebe234b15acfd7acb57a3375
This commit is contained in:
李杨
2018-02-10 21:18:53 +08:00
parent ea9de0c547
commit 225331df26
3 changed files with 15 additions and 1 deletions

View File

@@ -29,12 +29,15 @@ import '@/mock/index.js'
// vuex // vuex
import store from '@/store/index.js' import store from '@/store/index.js'
// log简化 // 插件 log简化
import pluginLog from '@/plugin/log' import pluginLog from '@/plugin/log'
// 插件 导出文件
import pluginExport from '@/plugin/export'
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(pluginLog) Vue.use(pluginLog)
Vue.use(pluginExport)
Vue.config.productionTip = false Vue.config.productionTip = false

View File

@@ -41,6 +41,7 @@ export default {
}, },
methods: { methods: {
exportCsv (params = {}) { exportCsv (params = {}) {
this.$export.csv()
// 默认值 // 默认值
const paramsDefault = { const paramsDefault = {
noHeader: false noHeader: false

View File

@@ -0,0 +1,10 @@
export default {
install (Vue, options) {
// 导出
Vue.prototype.$export = {
csv () {
console.log('export csv')
}
}
}
}