Skip to content

Commit

Permalink
docs: update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Feb 19, 2021
1 parent 3ec7495 commit 8baa019
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ npm i element-pro-crud -s
完整引入

```javascript
import Vue from 'vue';
import ElementProCrud from 'element-pro-crud'
import ElementUI from 'element-ui'
import 'element-pro-crud/lib/ProCrud.css'
Expand All @@ -38,8 +39,6 @@ Vue.use(ElementProCrud)
```javascript
import Vue from 'vue';
import { GenerateForm, ProTable, CrudTable, FormDesigner, TableDesigner } from 'element-pro-crud';
import App from './App.vue';

Vue.use(GenerateForm);
Vue.use(ProTable);
Vue.use(FormDesigner);
Expand All @@ -49,11 +48,6 @@ Vue.use(ElementProCrud)
getTableDetail: (tablename) => AxiosPromise(tableJSON);// 获取某个表格设计json
crud: (dml: DML, tableName: string, data?: object, params?: object)=> AxiosPromise; // 通用CRUD封装
})

new Vue({
el: '#app',
render: h => h(App)
});
```

### CDN
Expand Down

0 comments on commit 8baa019

Please sign in to comment.