Skip to content

Commit

Permalink
Добавлено чуток информации о использовании
Browse files Browse the repository at this point in the history
  • Loading branch information
fgbm committed Mar 2, 2020
1 parent c405d26 commit ecf796b
Showing 1 changed file with 27 additions and 16 deletions.
43 changes: 27 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,35 @@
# vuetify_drf_forms

## Project setup
```
npm install
```
### plugins/vuetify_drf_forms.js
```javascript
import Vue from 'vue';
import VuetifyDRF from 'vuetify-drf-forms';

### Compiles and hot-reloads for development
```
npm run serve
export default ({store}) => {
Vue.use(VuetifyDRF, {store});
};
```

### Compiles and minifies for production
```
npm run build
### nuxt.config.js
```javascript
...
plugins: [
...
{src: '~plugins/vuetify_drf_forms', mode: 'client'}
],
```

### Lints and fixes files
```
npm run lint
### Использование формы
```javascript
import CForm from 'vuetify-drf-forms/src/components/CForm.vue';
const endpoint = 'API ENDPOINT';
export default {
mixins: [CForm],
data() {
return {
endpoint,
...
}
...
}
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).

0 comments on commit ecf796b

Please sign in to comment.