0.0.37 • Published 6 years ago
vuetify-gen v0.0.37
install
npm install vuetify-gen --savecreate plugins/vuetify-gen.js
import Vue from 'vue'
// your plugins/vuetify
import vuetify from './vuetify'
import * as components from 'vuetify-gen/lib/components'
import vuetifyGen from 'vuetify-gen'
Vue.use(vuetifyGen, {
vuetify,
components
})use
toast
this.$toast('message')
// timeout
this.$toast('message', 2000)
// persistent
this.$toast('message', 2000, true)notify
this.$notify('message')
// color
this.$notify('message', 'success')
// timeout
this.$notify('message', 'success', 2000)confirm
this.$confirm('title').then(() => {
console.log('ok')
}).catch(() => {
console.log('cancel')
})
// confirm persistent
this.$confirm('title', true)form
this.$form(
'form title', [
{
is: 'v-text-field',
name: 'username',
props: {
label: 'username label'
}
}
],
// persistent
true
).then(({ username }) => {
console.log('submit', username)
}).catch(() => {
console.log('cancel')
})dateTimePicker
this.$dateTimePicker().then(date => {
console.log('submit', date)
}).catch(() => {
console.log('cancel')
})
// range
this.$dateTimePicker(true)
// persistent
this.$dateTimePicker(true, true)0.0.37
6 years ago
0.0.35
6 years ago
0.0.34
6 years ago
0.0.33
6 years ago
0.0.32
7 years ago
0.0.31
7 years ago
0.0.30
7 years ago
0.0.29
7 years ago
0.0.28
7 years ago
0.0.27
7 years ago
0.0.26
7 years ago
0.0.25
7 years ago
0.0.24
7 years ago
0.0.23
7 years ago
0.0.22
7 years ago
0.0.21
7 years ago
0.0.20
7 years ago
0.0.19
7 years ago
0.0.18
7 years ago
0.0.17
7 years ago
0.0.16
7 years ago
0.0.15
7 years ago
0.0.14
7 years ago
0.0.13
7 years ago
0.0.12
7 years ago
0.0.11
7 years ago
0.0.10
7 years ago
0.0.9
7 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago