Skip to content

fgbm/vuetify-drf-forms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vuetify_drf_forms

plugins/vuetify_drf_forms.js

import Vue from 'vue';
import VuetifyDRF from 'vuetify-drf-forms';

export default ({store}) => {
  Vue.use(VuetifyDRF, {store});
};

nuxt.config.js

...
plugins: [
  ...
  {src: '~plugins/vuetify_drf_forms', mode: 'client'}
],

Использование формы

import CForm from 'vuetify-drf-forms/src/components/CForm.vue';
const endpoint = 'API ENDPOINT';
export default {
  mixins: [CForm],
  data() {
    return {
      endpoint,
      ...
    }
  ...
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published