npm install vuetify-gen --save
import Vue from 'vue'
import vuetify from './vuetify'
import * as components from 'vuetify-gen/lib/components'
import vuetifyGen from 'vuetify-gen'
Vue.use(vuetifyGen, {
vuetify,
components
})
online demo
this.$toast('message')
this.$toast('message', 2000)
this.$toast('message', 2000, true)
this.$notify('message')
this.$notify('message', 'success')
this.$notify('message', 'success', 2000)
this.$confirm('title').then(() => {
console.log('ok')
}).catch(() => {
console.log('cancel')
})
this.$confirm('title', true)
this.$form(
'form title', [
{
is: 'v-text-field',
name: 'username',
props: {
label: 'username label'
}
}
],
true
).then(({ username }) => {
console.log('submit', username)
}).catch(() => {
console.log('cancel')
})
this.$dateTimePicker().then(date => {
console.log('submit', date)
}).catch(() => {
console.log('cancel')
})
this.$dateTimePicker(true)
this.$dateTimePicker(true, true)