调整下伍总的前端代码emmm
This commit is contained in:
@@ -158,12 +158,14 @@ sudo dnf install php-pgsql
|
||||
```bash
|
||||
npm i element-ui @d2-projects/d2-crud -S
|
||||
npm install -S vue-cheetah-grid
|
||||
npm i @d2-projects/vue-table-export --save
|
||||
```
|
||||
|
||||
添加依赖(使用yarn):
|
||||
```bash
|
||||
yarn add element-ui @d2-projects/d2-crud
|
||||
yarn add vue-cheetah-grid
|
||||
yarn add @d2-projects/vue-table-export
|
||||
```
|
||||
|
||||
需要在`main.js`中增加(全局引入组件):
|
||||
@@ -175,10 +177,13 @@ import 'element-ui/lib/theme-chalk/index.css'
|
||||
import D2Crud from '@d2-projects/d2-crud'
|
||||
// Cheetah-Grid
|
||||
import vueCheetahGrid from 'vue-cheetah-grid'
|
||||
// 表格导出插件
|
||||
import pluginExport from '@d2-projects/vue-table-export'
|
||||
|
||||
Vue.use(ElementUI)
|
||||
Vue.use(D2Crud)
|
||||
Vue.use(vueCheetahGrid)
|
||||
Vue.use(pluginExport)
|
||||
```
|
||||
|
||||
*(可选)* 在`package.json`里更改`element-ui`版本:
|
||||
|
||||
Reference in New Issue
Block a user